Repository navigation
feat(smoke-test): select pytest smoke tests by backend capability - #21627
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR SummaryOverview A new Guardrails and CI: static lint Existing modules are tagged with Reviewed by Cursor Bugbot for commit 17b34f9. Bugbot is set up for automated code reviews on this repo. Configure here. |
Smart test selectionpytest smoke testsMode: shadow. The selection below is computed but not applied; this PR still runs the default matrix (
Medium confidence: a wrong tag means tests are skipped, so check the tags above against what this PR touches. Selected scopes (56 files or classes, 276 tests)
Add the commit |
i18n locale parityStatus:
Per-key detail is in the job summary of the ./gradlew :datahub-web-react:yarnI18nParityCheck # all locales
cd datahub-web-react && yarn check-i18n-parity --lang de # one locale |
… index for the local stack - requires(PLAY_FRONTEND) on mcp/mcp_test.py and the two Bearer-token tests in test_authentication_e2e.py. - requires(KAFKA) on the actions doc/term propagation modules: the local stack runs no actions process. - Drop the investigation marker from test_actuator_prometheus_no_auth. - test_queue_ingest_usage.py needs only KAFKA. - Analytics backfill writes to ELASTICSEARCH_INDEX, so it honours the local stack's index prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 17b34f9. Configure here.
| logger.info(f"✅ GraphQL with valid session: {response.status_code}") | ||
|
|
||
|
|
||
| @pytest.mark.requires(Capability.PLAY_FRONTEND) |
There was a problem hiding this comment.
Unmarked prometheus test fails locally
High Severity
Removing DOCKER_FREE_INVESTIGATION from test_actuator_prometheus_no_auth puts this p0 test on the local lane, but get_gms_prometheus_base_url still rewrites a GMS URL on port 8080 to :4319. Local GMS keeps Actuator on the main port (no MANAGEMENT_SERVER_PORT), so slot-0 local stacks hit connection refused instead of a status code.
Reviewed by Cursor Bugbot for commit 17b34f9. Configure here.


Smoke tests can now run against the Docker quickstart (default) or the Docker-free local stack (
datahub-dev.sh start --local).requires(...)marker andutilities/backends.py/backend_plugin.py:SMOKE_BACKEND=localdeselects tests needing Kafka, the SQL database, the docker CLI, the Play frontend or object storage;SMOKE_BACKEND_MODE=canaryruns only those (plusdocker_canary) on Docker..github/scripts/check_backend_markers.py: static lint (pre-commit + smoke-test-lint) for modules that use Kafka/SQL/docker without a marker.SMOKE_BACKEND=dockeron the pytest plan and batch steps; the GMS-lite local-stack workflow runs its smoke tests withSMOKE_BACKEND=localand checks the lane selection.requires(play_frontend)onmcp/mcp_test.pyand the two Bearer-token tests intest_authentication_e2e.py;requires(kafka)on the actions doc/term propagation modules (no actions process locally);test_queue_ingest_usage.pyneeds onlykafka.ELASTICSEARCH_INDEX, so it honours the local stack's index prefix.No behaviour change when
SMOKE_BACKENDis unset (defaults todocker, every test selected).Ported from the fork: bf8f597ae85, 1925b3b8a27, a869b8017bd, 435dba1da41, and marker parts of 73f4a580589.
tests/unit/test_backend_plugin.py,test_check_backend_markers.py,test_batch_plan_dump.py)smoke-test/AGENTS.md,smoke-test/README.md)🤖 Generated with Claude Code
Summary by cubic
Smoke tests can now run on the Docker-free local stack (
datahub-dev.sh start --local) as well as the Docker quickstart. Tests declare the backend capabilities they need with arequires(...)marker;SMOKE_BACKEND=localdeselects tests that need Kafka, the SQL database, the docker CLI, the Play frontend, object storage, or the executor image, andSMOKE_BACKEND_MODE=canaryruns only those tests on Docker.No behavior change when
SMOKE_BACKENDis unset: it defaults todockerand every test is selected.Selection and markers
Capabilityenum and selection logic inutilities/backends.py; a pytest plugin deselects tests the configured backend cannot run.play_frontend, and the actions propagation tests requirekafkabecause the local stack runs no actions process.tests/e2e/utils.pyfail fast naming the missingrequires(...)marker on the local stack.SMOKE_BACKEND_MODE=canarywithoutSMOKE_BACKEND=dockerfail collection with a usage error.CI and guardrails
.github/scripts/check_backend_markers.pyflags modules that use Kafka, SQL, or the docker CLI without a marker; wired into pre-commit andsmoke-test-lint.SMOKE_BACKEND=localand verifies the lane selection.SMOKE_BACKEND=dockeron the pytest plan and batch steps.Written for commit 17b34f9. Summary will update on new commits.