ci(e2e): run the Docker-free lane from the E2E Tests parent workflow
Stacked on #21673 (E2E Tests parent workflow + callable docker-unified.yml).
Summary
docker-free-e2e.yml becomes a reusable workflow that the E2E Tests parent (e2e-tests.yml) calls next to the Docker lane. The lane gets the same smart-testing pipeline as the Docker lane: one classification in the parent, its own batch plan on the Docker-free stack's weights, its own PR comment and PostHog events.
docker-free-e2e.yml:push,pull_request, thedocker-free:pytestslabel gate and the label-aware concurrency group are removed. It now hasworkflow_call(the 9 classifier inputsdocker-unified.ymltakes, plussmoke_tierandsmoke_changed_tests) andworkflow_dispatch(full tier, 9 batches, smart testing off).- New
smoke_test_matrixjob: resolves the smart-testing mode like the Docker lane and runsplan_pytest_batches.shwithSMOKE_BACKEND=local, so batches are packed onpytest_test_weights_docker_free.json(cap 9, 8-minute target). Plan artifact:pytest-smoke-plan-local. Same fallbacks as the Docker lane: fixed 9 batches for the full tier, 3 forp0, andp0in 3 batches if an active plan fails. pytest_testsreads the matrix, tier and plan fromsmoke_test_matrix. PostHog failure events keep--workflow-name "Docker-free E2E"and--batch-label docker-free.- New
comment_smart_testingjob posts the lane's own sticky comment.
- New
e2e-tests.yml:setupdecidesrun_pytest,smoke_tierandsmoke_changed_tests. These are copies of the Docker lane's PR logic, with "keep in step" comments on both sides. The newdocker_freejob calls the lane on pull requests when the Docker lane runs pytest, and on every push tomaster.- Scripts:
render_comment.py compose --lanegives a lane its own comment marker.send_smart_selection_to_posthog.pyadds alaneproperty (docker,docker-free). - Listeners:
post-workflow-actions.yml: the Docker build success message for anE2E Testspush follows the run'sdocker / *jobs, so a Docker-free-only failure does not suppress it. It waits for the retry when attempt 1 failed.Docker Build, Scan, Testpushes from older release branches still notify. The escape check downloads only the Docker lane's pytest results.update-test-weights.ymlreads Docker-free results frome2e-tests.yml.validate_post_workflow_list.pyallowsDocker-free E2E, which now has dispatch runs only.- The
ci-optimizationpytest-workflowfilter covers the lane and its stack action.
- Docs:
smoke-test/README.mddescribes both lanes in a table, with labels and dispatch.AGENTS.mdno longer mentions the label.
Workflow after this PR
flowchart LR
PR["pull_request"]
PUSH["push: master, releases/**"]
DISP_D["workflow_dispatch: docker-unified.yml"]
DISP_F["workflow_dispatch: docker-free-e2e.yml"]
REL["release"]
subgraph PARENT["E2E Tests (e2e-tests.yml)"]
SETUP["setup: change flags, run_pytest, smoke_tier"]
CLASSIFY["classify_pr: smart-testing tags"]
DJOB["docker"]
FJOB["docker_free"]
end
subgraph DOCKER["Docker lane (docker-unified.yml)"]
D_BUILD["setup, base_build"]
D_MATRIX["smoke_test_matrix"]
D_PYTEST["pytest_tests batches"]
D_PW["playwright_plan, Playwright shards"]
D_OTHER["Java SDK, AI smoke, publish"]
D_COMMENT["comment_smart_testing"]
end
subgraph FREE["Docker-free lane (docker-free-e2e.yml)"]
F_BUILD["build"]
F_MATRIX["smoke_test_matrix: plan on local weights"]
F_PYTEST["pytest_tests batches"]
F_COMMENT["comment_smart_testing"]
end
subgraph POST["post-workflow-actions.yml"]
RETRY["retry on first failure"]
SLACK_F["Slack: failure"]
SLACK_S["Slack: Docker build success"]
METRICS["metrics"]
ESCAPE["escape check"]
end
PR --> SETUP
SETUP -->|"same-repo PR, not run-all-tests"| CLASSIFY
PUSH --> DJOB
SETUP --> DJOB
CLASSIFY -->|"tags or empty"| DJOB
CLASSIFY -->|"tags or empty"| FJOB
SETUP -->|"run_pytest (forks too)"| FJOB
PUSH -->|"master only (stability window)"| FJOB
DJOB --> D_BUILD
D_BUILD --> D_MATRIX --> D_PYTEST
D_BUILD --> D_PW
D_BUILD --> D_OTHER
D_MATRIX -->|"same-repo PR, mode not off"| D_COMMENT
DISP_D --> D_BUILD
REL --> D_BUILD
FJOB --> F_BUILD
FJOB --> F_MATRIX
F_BUILD --> F_PYTEST
F_MATRIX --> F_PYTEST
F_MATRIX -->|"same-repo PR, mode not off"| F_COMMENT
DISP_F -->|"full tier, 9 batches, smart off"| F_BUILD
PARENT -->|"workflow_run: E2E Tests"| POST
DOCKER -->|"workflow_run: Docker Build, Scan, Test (release, dispatch)"| POST
FREE -->|"workflow_run: Docker-free E2E (dispatch)"| POST
Smart-testing mode for each lane's pytest comes from the SMART_TESTING_MODE repository variable on same-repo PRs. It is off on pushes, on dispatch, on fork PRs, and with the run-all-tests or run-all-tests:pytest label. SMART_TESTING_MODE and PYTEST_P0_SMOKE are set in this repository, so same-repo PRs run the p0 tier with planned batches. A PR that only changes the pytest wiring runs a canary.
What changes for contributors
- Same-repo PRs that run pytest on the Docker lane also run it on the Docker-free stack. You'll see
docker-free / ā¦jobs and a second sticky comment, "Smart test selection (docker-free lane)". Thedocker-free:pytestslabel is no longer needed. - Fork PRs run the Docker-free lane too, on GitHub-hosted runners: full tier, 9 batches, smart testing off, no comment.
run-all-tests/run-all-tests:pytestturn smart testing off in both lanes. They don't start a lane the change wouldn't start.- To run the Docker-free lane alone, dispatch
Docker-free E2Efrom the Actions tab.
Decisions
- Forks run the lane. Repository variables and secrets don't reach fork PRs, so the lane falls back to
ubuntu-24.04runners, no remote Gradle cache and smart testing off. - No gate job. Branch protection (Mergeable) blocks on the lane's own
docker-free / *jobs. - Lane-specific comment marker (
<!-- smart-testing-selection:docker-free -->), so the two lanes don't overwrite each other's comment. - PostHog
laneproperty onci_smart_selectionevents (docker/docker-free). Failure events keep their pinned workflow names. - Every push to
masterruns the lane while it runs next to the Docker lane. It is a temporary stability window, to be narrowed later. - Batch counts (9 full, 3
p0) are unchanged here. A follow-up will right-size them from real runs.
Validation
Checks run locally:
actionlinton the changed workflowsgithubActionsPrettierCheckandmdPrettierCheckvalidate_post_workflow_list.pypytest .github/scripts/test .github/scripts/release/test .github/smart-testing/test: 858 passedplan_pytest_batches.shwithSMOKE_BACKEND=local: a canary plans 1 batch
To run on the branch:
- This PR touches only workflow files (all
pytest-workflowchanges). Under active mode, both lanes should plan a canary. Expectdocker-free / smoke_test_matrixinactivemode,pytest-smoke-plan-localuploaded, a small planned matrix, and two sticky comments. - A connector-source-only change:
docker_freeis skipped, along with the Docker lane's pytest. - A backend change:
p0tier, planned batches in both lanes,ci_smart_selectionevents with eachlane. - The
run-all-tests:pytestlabel: fixed 9 batches at the full tier, no lane comment. - A forced batch failure: the
docker-free / ā¦batch job and the run go red. - Dispatch
docker-free-e2e.ymlalone: 9 batches, smart testing off, jobs without a prefix. - "Re-run failed jobs" on one Docker-free batch:
smoke-test-retryfinds its previous results. - After merge: first
masterpush runs both lanes; the Docker build success message follows thedocker / *jobs; weekly weights find Docker-free results undere2e-tests.yml.
Checklist
- The PR conforms to DataHub's Contributing Guideline (particularly PR Title Format)
- Links to related issues (if applicable): stacked on #21673
- Tests for the changes have been added/updated (if applicable)
- Docs related to the changes have been added/updated (if applicable)
- For any breaking change/potential downtime/deprecation/big changes an entry has been made in Breaking Changes: not needed (CI only)
š¤ Generated with Claude Code
Summary by cubic
Makes docker-free-e2e.yml a reusable lane of the E2E Tests parent workflow, giving the Docker-free pytest suite the same smart-testing pipeline as the Docker lane: one PR classification, batches planned on the lane's own weights, its own sticky PR comment, and PostHog events tagged with a lane property.
- The lane loses its own
push/pull_requesttriggers and thedocker-free:pytestslabel. For nowe2e-tests.ymlcalls it only on every push tomasteras a temporary stability window, sodocker / ā¦anddocker-free / ā¦jobs run side by side. The PR wiring (the Docker lane'srun_pytestdecision, tier, changed tests, and classifier tags) is in place, so enabling PRs later is one condition on the calling job.workflow_dispatchstill runs the lane alone with smart testing off. - New
smoke_test_matrixandcomment_smart_testingjobs mirror the Docker lane's planning and comment logic: batches are planned onpytest_test_weights_docker_free.jsonviaSMOKE_BACKEND=local, with the same fallbacks (9 batches full, 3 forp0), and each lane keeps its own comment marker. post-workflow-actions.ymlnow bases the Docker build success Slack message forE2E Testspushes on the run'sdocker / *jobs, so a Docker-free-only failure doesn't suppress it; it waits for retry-on-failure before notifying. The escape check uses only the Docker lane's pytest results.update-test-weights.ymlreads Docker-free results frome2e-tests.yml;ci-optimization's pytest-workflow filter now covers the lane and its stack action.
What changes for contributors
masterpushes now run the Docker-free lane next to the Docker lane, addingdocker-free / ā¦jobs. Thedocker-free:pytestslabel is no longer used.- To run the lane alone, dispatch
Docker-free E2Efrom the Actions tab.