Skip to content

ci: main baseline of failing labels and a PR baseline-diff job - #14815

Merged
TrapsterDK merged 3 commits into
mainfrom
ci-main-baseline
Nov 24, 2026
Merged

TrapsterDK merged 3 commits into
mainfrom
ci-main-baseline

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Makes "does this failure also fail on main?" mechanical.

  • Push to main runs the same check and coverage gate jobs (--keep_going from gate: --keep_going, target pattern file, skip incompatible lock steps (part of #14802) #14803) and uploads main-baseline-<job>-<platform>.json with the failing target labels, read from the gate's --output=json stream by producers_bin --failing-labels. A newer push cancels the older push run.
  • Main runs are --affected, so each push pins its base to the last baseline's commit and carries forward earlier labels its affected set did not reach.
  • Pull requests upload failing-<job>-<platform>.json. The new baseline-diff job 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_bin is already built when the gate fails.

Compatible with #14793: the baseline input is per gate job, so a future dx test --affected job per OS can pass baseline: 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

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

/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
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
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

/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
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

/evidence platforms=["linux_x86_64"] task=test scope=//core/quality:tools_registry_test //core/quality/adapter:update_severity_test

@github-actions

Copy link
Copy Markdown
Contributor

Evidence started on ci-main-baseline: https://github.com/devhusdk/rules_dx/actions/runs/45361911794

@TrapsterDK
TrapsterDK merged commit 8da8e88 into main Nov 24, 2026
17 of 29 checks passed
@TrapsterDK
TrapsterDK deleted the ci-main-baseline branch November 24, 2026 09:37
TrapsterDK added a commit that referenced this pull request Nov 24, 2026
#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant