Repository navigation
ci(e2e): run the Docker-free lane from the E2E Tests parent workflow - #21678
devashish2203 merged 2 commits into
Conversation
docker-free-e2e.yml becomes a reusable workflow that e2e-tests.yml calls next to docker-unified.yml. Its own push and pull_request triggers and the docker-free:pytests label gate are removed; workflow_dispatch stays for running the lane alone (full tier, 9 batches, smart testing off). - e2e-tests.yml: setup decides run_pytest, smoke_tier and smoke_changed_tests (copies of docker-unified's PR logic, commented on both sides). The docker_free job calls the lane on pull requests, forks included, when the Docker lane runs pytest, and on every push to master while the lane runs next to the Docker lane. - docker-free-e2e.yml: takes classify_pr's outputs plus smoke_tier and smoke_changed_tests. A new smoke_test_matrix job resolves the smart testing mode and plans batches with SMOKE_BACKEND=local on the lane's own weights (artifact pytest-smoke-plan-local), with the same fallbacks as docker-unified (9 batches full tier, 3 for p0). The lane posts its own sticky smart testing comment and pins its PostHog failure events to "Docker-free E2E". - render_comment.py: compose --lane gives a lane its own comment marker. send_smart_selection_to_posthog.py: events carry a lane property (docker, docker-free). - post-workflow-actions.yml: the Docker build success message for an E2E Tests push now follows the run's docker / * jobs, and Docker Build, Scan, Test pushes from older release branches still notify. The escape check compares Docker-lane results only. - update-test-weights.yml reads Docker-free results from e2e-tests.yml; validate_post_workflow_list.py allows "Docker-free E2E" (dispatch runs); ci-optimization's pytest-workflow filter covers the lane. - smoke-test/README.md describes both lanes, labels and dispatch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR SummaryOverview The lane gets the same pytest smart-testing path as Docker: new
Follow-on CI behavior: Docker build success Slack for Reviewed by Cursor Bugbot for commit 319253a. Bugbot is set up for automated code reviews on this repo. Configure here. |
Smart test selection (docker-free lane)pytest smoke testsMode: active. Only the selection below runs for the pytest smoke tests on this PR (applied:
Selected scopes (3 files or classes, 10 tests)
Add the commit |
Smart test selectionpytest smoke testsMode: active. Only the selection below runs for the pytest smoke tests on this PR (applied:
Selected scopes (3 files or classes, 10 tests)
Add the commit |
The lane runs on every push to master to build up a record of stable runs before it runs on pull requests. The PR wiring (run_pytest, smoke_tier and smoke_changed_tests from setup, the classifier's tags) stays in place, so enabling pull requests is one condition on the docker_free job. The calling job is named docker-free, so the lane's jobs show as "docker-free / <job>" rather than "docker_free / <job>". 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 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 319253a. Configure here.
| if (( total > 0 && bad == 0 )); then | ||
| success=true | ||
| fi | ||
| echo "success=$success" >> "$GITHUB_OUTPUT" |
There was a problem hiding this comment.
Retry omits Docker lane jobs
High Severity
docker-lane-result lists jobs from the attempt-scoped API. After rerun-failed-jobs, that attempt only contains the jobs that reran, so a Docker-free-only failure leaves no docker / * jobs. Combined with skipping the Slack success message on attempt 1, a passing Docker lane never notifies — the case this job was added to cover.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 319253a. Configure here.
| - ".github/workflows/e2e-tests.yml" | ||
| - ".github/workflows/docker-unified.yml" | ||
| - ".github/workflows/docker-free-e2e.yml" | ||
| - ".github/actions/docker-free-stack" |
There was a problem hiding this comment.
Stack action path filter incomplete
Medium Severity
The new path .github/actions/docker-free-stack has no trailing /**, so it does not match files inside that action. !.github/** still excludes them, so a stack-action-only change does not start E2E Tests and the Docker-free lane never runs. The pytest-workflow filter in the same PR correctly uses docker-free-stack/**.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 319253a. Configure here.


Stacked on #21673 (E2E Tests parent workflow + callable
docker-unified.yml).Summary
docker-free-e2e.ymlbecomes a reusable workflow that theE2E Testsparent (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).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.comment_smart_testingjob posts the lane's own sticky comment.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.render_comment.py compose --lanegives a lane its own comment marker.send_smart_selection_to_posthog.pyadds alaneproperty (docker,docker-free).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.ci-optimizationpytest-workflowfilter covers the lane and its stack action.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)"| POSTSmart-testing mode for each lane's pytest comes from the
SMART_TESTING_MODErepository variable on same-repo PRs. It is off on pushes, on dispatch, on fork PRs, and with therun-all-testsorrun-all-tests:pytestlabel.SMART_TESTING_MODEandPYTEST_P0_SMOKEare set in this repository, so same-repo PRs run thep0tier with planned batches. A PR that only changes the pytest wiring runs a canary.What changes for contributors
docker-free / …jobs and a second sticky comment, "Smart test selection (docker-free lane)". Thedocker-free:pytestslabel is no longer needed.run-all-tests/run-all-tests:pytestturn smart testing off in both lanes. They don't start a lane the change wouldn't start.Docker-free E2Efrom the Actions tab.Decisions
ubuntu-24.04runners, no remote Gradle cache and smart testing off.docker-free / *jobs.<!-- smart-testing-selection:docker-free -->), so the two lanes don't overwrite each other's comment.laneproperty onci_smart_selectionevents (docker/docker-free). Failure events keep their pinned workflow names.masterruns the lane while it runs next to the Docker lane. It is a temporary stability window, to be narrowed later.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 batchTo run on the branch:
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.docker_freeis skipped, along with the Docker lane's pytest.p0tier, planned batches in both lanes,ci_smart_selectionevents with eachlane.run-all-tests:pytestlabel: fixed 9 batches at the full tier, no lane comment.docker-free / …batch job and the run go red.docker-free-e2e.ymlalone: 9 batches, smart testing off, jobs without a prefix.smoke-test-retryfinds its previous results.masterpush runs both lanes; the Docker build success message follows thedocker / *jobs; weekly weights find Docker-free results undere2e-tests.yml.Checklist
🤖 Generated with Claude Code
Summary by cubic
Makes
docker-free-e2e.ymla reusable lane of theE2E Testsparent 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 alaneproperty.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.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.Docker-free E2Efrom the Actions tab.Written for commit 319253a. Summary will update on new commits.