Repository navigation
ci: decide the full e2e suite from the pull request's current labels (#372) - #34
Merged
Merged
Conversation
…(#372) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync of private jcguo123/Choruz#372, merged as
c6e1c36d. The same patch is applied on publicmain; the branch tree equals privatemain's tree.Type
ci/build/depsAgent Note
New:
.agents/notes/implemented/process/2026-10-28-full-suite-follows-current-labels.mdSummary
CI (linux) requiredcould pass without the full e2e suite on a pull request labelleddatabase,securityorci-full:github.event.pull_request.labels).openedandlabeledwithin a second, and the per-ref concurrency group cancels one of the two runs.openedrun survives, its payload has no label. Change detection then reportsFULL: falseand the required check goes green.This happened on jcguo123/Choruz#371:
checks,rust-lint,rust-test,db-smoke,e2e,perfand passed.e2e-full.gh pr create --labelalso produces two runs (inclusionAI/Choruz#32).Changes:
check_ci_results.pyowns which labels require the full suite (FULL_SUITE_LABELS).check_ci_results.py full, which reads the pull request's labels through the API when the job runs.e2e-full, it fails, naming the label and telling the author to re-run the labelled run.mainstill selects the full suite without any lookup.github.event.pull-requests: read. Change detection already had it.Ownership
.github/scripts/check_ci_results.pydecides when the full e2e suite is required, for both change detection and the required gate.FULLexpression inci.ymlthat read the event payload's labels.Tests
All in
.github/scripts/tests/test_check_ci_results.py. Every test that runs the real required step fromci.ymlnow does so underbash -e, as Actions does.test_full_suite_follows_the_pull_requests_current_labelsci-full,databaseandsecurityselectse2e-full. An unrelated label does not. A workflow change still does. The workflow no longer readsgithub.event.pull_request.labels.test_gate_rejects_a_run_that_predates_a_full_suite_labele2e-fulland with thedatabaselabel exits 1 with the remedy. No label exits 0.e2e-fullselected exits 0.test_gate_fails_closed_when_labels_cannot_be_readurlopenraisingURLError, both make the selection and the gate raise.pull_request_labelsswallowingOSErrortest_push_runs_the_full_suite_without_a_label_lookupEVENT=pushwith no PR or API variables: the list includese2e-full, the step writesfull=true, andcheck_ci_results.py fullprintstrue.fullalways looking up labelstest_server_and_schema_pull_requests_require_the_load_smokePR_LABELS.With the previous
ci.ymlandcheck_ci_results.py, the new tests fail.Ran locally
CI script tests:
python3 -m unittest discover -s .github/scripts/tests -vonf3aed0e0: 53 tests, OK (captured verbose output).Real API path, using the
jcguo123token:check_ci_results.py fullfor #371 (labeldatabase)truecheck_ci_results.py fullfor #370 (no label)falseREQUIRED_NEEDS=checksOther checks:
python3 scripts/verify_agent_notes.pyandpython3 scripts/check_architecture.pyboth pass.Not run locally: the Rust, web and e2e suites. No Rust or web source changed, and this workflow change makes CI run the full suite.
Independent audit: GPT-5.6 Terra used
choruz-pre-simplify-audit.1945f5e8f3aed0e0f3aed0e0This PR's own run uses the new workflow, so its change detection performs the live label lookup.
Risk
This PR was written by an AI agent (Claude), which ran every command listed above.