-
-
Notifications
You must be signed in to change notification settings - Fork 64
ref(ci): Run more of sentry's tests when we change the API in snuba #8237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
bb56d76
5150e13
7ecbb74
299ff7c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -225,17 +225,16 @@ jobs: | |
| . | ||
|
|
||
| - name: Publish snuba-ci image to artifacts | ||
| # we publish to github artifacts separately so that third-party | ||
| # contributions also work, as all the test jobs need this image. | ||
| # otherwise third-party contributors would have to provide a working, | ||
| # authenticated GHCR, which seems impossible to ensure in the general | ||
| # case. | ||
| # we publish to github artifacts separately so that third-party | ||
| # contributions also work, as all the test jobs need this image. | ||
| # otherwise third-party contributors would have to provide a working, | ||
| # authenticated GHCR, which seems impossible to ensure in the general | ||
| # case. | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| with: | ||
| name: snuba-ci | ||
| path: /tmp/snuba-ci.tar | ||
|
|
||
|
|
||
| docker-deps: | ||
| name: Warm Docker dependency image cache | ||
| runs-on: ubuntu-latest | ||
|
|
@@ -466,54 +465,18 @@ jobs: | |
| - name: Bootstrap per-worker Snuba instances | ||
| run: python3 sentry/.github/workflows/scripts/bootstrap-snuba.py | ||
|
|
||
| - name: Run snuba tests | ||
| if: needs.files-changed.outputs.api_changes == 'false' | ||
| - name: Run snuba CI tests | ||
| working-directory: sentry | ||
| run: | | ||
| # Only these dirs carry the `snuba_ci` marker; collecting all of tests/ just to find them is wasteful. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment is valid; but given that pytest collection is pretty fast, and reverting a change can take up to 2+ hours if we miss something on the CI ... better to just collect everything |
||
| pytest -k 'not __In' \ | ||
| tests/sentry/snuba \ | ||
| tests/sentry/workflow_engine/endpoints \ | ||
| tests/snuba/rules/conditions \ | ||
| -m snuba_ci \ | ||
| -n "$XDIST_WORKERS" --dist=loadfile --reuse-db \ | ||
| -vv | ||
| # monolith acceptance tests contain some js | ||
| env: | ||
| PYTEST_ADDOPTS: "-k 'not __In' -m snuba_ci -n ${{ env.XDIST_WORKERS }} --dist=loadfile -vv" | ||
| run: make test-python-ci | ||
|
|
||
| - name: Run full tests | ||
| if: needs.files-changed.outputs.api_changes == 'true' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full tests missing API-change gateMedium Severity The Reviewed by Cursor Bugbot for commit 5150e13. Configure here. |
||
| working-directory: sentry | ||
| run: | | ||
| pytest -k 'not __In' \ | ||
| tests/snuba \ | ||
| tests/sentry/snuba \ | ||
| tests/sentry/eventstream/kafka \ | ||
| tests/sentry/post_process_forwarder \ | ||
| tests/sentry/services/eventstore/snuba \ | ||
| tests/sentry/search/events \ | ||
| tests/sentry/event_manager \ | ||
| tests/sentry/api/endpoints/test_organization_profiling_functions.py \ | ||
| tests/sentry/integrations/slack/test_unfurl.py \ | ||
| tests/sentry/uptime/endpoints/test_project_uptime_alert_check_index.py \ | ||
| tests/sentry/uptime/endpoints/test_organization_uptime_stats.py \ | ||
| tests/sentry/api/endpoints/test_organization_traces.py \ | ||
| tests/sentry/api/endpoints/test_organization_spans_fields.py \ | ||
| tests/sentry/api/endpoints/test_organization_ai_conversations.py \ | ||
| tests/sentry/api/endpoints/test_organization_ai_conversation_details.py \ | ||
| tests/sentry/sentry_metrics/querying \ | ||
| -n "$XDIST_WORKERS" --dist=loadfile --reuse-db \ | ||
| -vv | ||
|
|
||
| - name: Run CI module tests | ||
| if: needs.files-changed.outputs.api_changes == 'true' | ||
| working-directory: sentry | ||
| run: | | ||
| pytest -k 'not __In' \ | ||
| tests/sentry/snuba \ | ||
| tests/sentry/workflow_engine/endpoints \ | ||
| tests/snuba/rules/conditions \ | ||
| -m snuba_ci \ | ||
| -n "$XDIST_WORKERS" --dist=loadfile --reuse-db \ | ||
| -vv | ||
| env: | ||
| PYTEST_ADDOPTS: "-k 'not __In' -m snuba -n ${{ env.XDIST_WORKERS }} --dist=loadfile -vv" | ||
| run: make test-python-ci | ||
|
|
||
| clickhouse-versions: | ||
| needs: [linting, snuba-image, docker-deps] | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.