Repository navigation
ci: main baseline of failing labels and a PR baseline-diff job - #14815
Conversation
|
/evidence platforms=["linux_x86_64"] task=test scope=//tools/ci/producers:producers_bin_test //tools/ci:aggregate_gates_test //tools/ci:ci_check_jobs_test //tools/ci:actionlint_test //tools/ci:workflow_pins_test //tools/ci:workflow_expressions_test //tools/ci:workflow_files_test //tools/ci:input_validation_test //tools/ci:comment_budget_test //tools/ci:prose_rules_test |
A push to main runs the check and coverage gate jobs with --keep_going and uploads the failing target labels per job as main-baseline-<job>-<platform>. Each push pins its affected base to the commit of the last baseline and keeps earlier labels its affected set did not reach, so the baseline stays whole across affected-only runs and cancelled pushes. On a pull request each gate job uploads failing-<job>-<platform>, and the new baseline-diff job compares them with the newest main baseline and fails only on labels that are not red on main, listing them in the job summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus
33abd7c to
67945d2
Compare
On main, dx check stops after a failed generate phase and skips format, lint, typecheck and test, while command_started still lists //... as affected. The carry-forward now treats nothing as reached when a phase was skipped or the run did not finish, so those labels stay in the baseline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus
|
/evidence platforms=["linux_x86_64"] task=test scope=//tools/ci:config_consistency_test //tools/ci:host_env_test //tools/ci:hub_literals_test //tools/ci:lint_attributes_test //tools/ci:lock_registry_test //tools/ci:pin_locations_test //tools/ci:repo_rule_refetch_test //tools/ci:rule_set_loads_test //tools/ci:sandbox_escape_test //tools/ci:starlark_docs_test //tools/ci:test_budget_test //tools/ci:unreferenced_files_test //tools/ci:zero_compat_test //tools/testing:language_skeleton_test //tools/testing:module_extension_srcs_test //core/modules:versions_contract //core/modules:consumer_deps_test //core/quality/tests:qt_adapter_test //rust/tests/fixtures/native_call:native_mixed_crt_actions_test |
- Tests dx reports as skipped, filtered or cancelled are not failing labels. - A run with dx error events keeps earlier labels, like a skipped phase. - With a previous baseline, failing-labels refuses a run where dx did not finish, and a push uploads only after a successful lookup and a dx step that ran, so a broken run never replaces the baseline or moves its base. - The push takes the newest baseline whose commit is an ancestor of HEAD, so a rerun of an older push cannot pin an unrelated base. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus
|
/evidence platforms=["linux_x86_64"] task=test scope=//core/quality:tools_registry_test //core/quality/adapter:update_severity_test |
|
Evidence started on |
#14815 merged without its lint run. Indexing a serde_json Value is clippy::indexing_slicing, which dx check reported 17 times on macos_arm64. Read fields with Value::get like test_log_tails does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus
Makes "does this failure also fail on main?" mechanical.
mainruns the samecheckandcoveragegate jobs (--keep_goingfrom gate: --keep_going, target pattern file, skip incompatible lock steps (part of #14802) #14803) and uploadsmain-baseline-<job>-<platform>.jsonwith the failing target labels, read from the gate's--output=jsonstream byproducers_bin --failing-labels. A newer push cancels the older push run.--affected, so each push pins its base to the last baseline's commit and carries forward earlier labels its affected set did not reach.failing-<job>-<platform>.json. The newbaseline-diffjob compares it with the newest trusted main baseline, fails only on labels not red on main, and lists them in its job summary. No extra builds on PRs:producers_binis already built when the gate fails.Compatible with #14793: the baseline input is per gate job, so a future
dx test --affectedjob per OS can passbaseline: test-<platform>.Limits: the first baseline is partial until main touches the red targets. Steps outside the gate (whole-repo
dx generate) are not compared.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus