Skip to content

ci: main baseline drops unbuilt targets and clears labels on red runs - #14836

Open
TrapsterDK wants to merge 2 commits into
mainfrom
ci-baseline-reach
Open

TrapsterDK wants to merge 2 commits into
mainfrom
ci-baseline-reach

Conversation

@TrapsterDK

@TrapsterDK TrapsterDK commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #14815, based on the first main baselines.

  • build_failure events with category skipped, aborted or cancelled, and aborted test outcomes, no longer count as failing. Run 45389222096's coverage (windows_arm64) hit a Bazel server OOM and recorded 14,917 labels.
  • A run whose only errors are bazel_failed, tests_failed, analysis_failed or incomplete_results now clears the earlier labels it reached. Before this, every red main run kept all old labels, so the baseline could only grow.
  • Fields are read with Value::get. ci: main baseline of failing labels and a PR baseline-diff job #14815 merged without its lint run, and dx check reports 17 clippy::indexing_slicing findings in failing_labels.rs.

Replaying the CI NDJSON gives 19 labels instead of 14,917 for the OOM run and 11 instead of 76 for run 45369444926.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus

The first main baselines from #14815 showed two problems:
- A Bazel server OOM (exit 33) reported every target as an aborted
  build_failure, so coverage-windows_arm64 recorded 14,917 labels.
  Targets that were skipped, aborted or cancelled were never built, so
  they are not failures.
- A run with any dx error kept every earlier label. dx emits
  bazel_failed and incomplete_results on every ordinary red run, so
  while main was red the baseline could only grow. Those target-failure
  codes now count as reaching the covered scope; host and other errors
  still keep the earlier labels.

Replaying the CI NDJSON: the OOM run gives 19 labels (7 carried) and
the red run 45369444926 gives 11 instead of 76.

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/producers:producers_bin_test //tools/ci:comment_budget_test

@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 //core/quality:tools_registry_test //core/quality/adapter:update_severity_test

@github-actions

Copy link
Copy Markdown
Contributor

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

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

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

#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
@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 //core/quality:tools_registry_test //core/quality/adapter:update_severity_test //tools/ci/producers:producers_bin_test

This branch has not been deployed

No deployments
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