Skip to content

tests: release consumer tests merge into one target (part of #10990) - #11072

Merged
TrapsterDK merged 1 commit into
mainfrom
issue-10990-release-consumer
Nov 10, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
issue-10990-release-consumer

Conversation

@TrapsterDK

@TrapsterDK TrapsterDK commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #10990

Plan

  1. Merge release_candidate_smoke_test and readme_quickstart_smoke_test into one rust_test, so the three cases share one nested Bazel server (dx_nested::case keeps one server per process).
  2. Move the target onto the hermetic harness. Not in this PR: nested_repository_cache and the offline harness of tests: nested Bazel harness runs sandboxed, offline and from declared inputs #10986 are not on main.

Changed

  • deploy/private/release/tests/BUILD.bazel: one target release_consumer_smoke_test, crate root release_consumer_test.rs, data and env are the union of both old targets.
  • deploy/private/release/tests/release_consumer_test.rs: new crate root with mod candidate_consumer_test; mod quickstart_consumer_test;. Both case files are unchanged.
  • deploy/private/release/tests/Cargo.toml: one [[test]].
  • tools/testing/nested_smoke.txt: two lines become one.
  • tools/ci/test_tags_allowlist.txt: local, no-sandbox, requires-network for this package go from 2 to 1.
  • docs/design/nested-tests.md: the decisions table names the merged target.

Old target to new test

Old target Old case Now
:release_candidate_smoke_test a_candidate_archive_builds_tests_and_checks_a_registry_consumer :release_consumer_smoke_test, candidate_consumer_test::a_candidate_archive_builds_tests_and_checks_a_registry_consumer
:readme_quickstart_smoke_test the_readme_quickstart_runs_as_written :release_consumer_smoke_test, quickstart_consumer_test::the_readme_quickstart_runs_as_written
:readme_quickstart_smoke_test bcr_test_module_runs_its_presubmit_targets :release_consumer_smoke_test, quickstart_consumer_test::bcr_test_module_runs_its_presubmit_targets

No assertion changed: the two case files have no diff.

Tests

Remaining on #10990

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

@TrapsterDK TrapsterDK added the needs-review Touches review paths; needs a second-session Review: comment label Nov 10, 2026
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Review: approve

Read the full diff at 3011bfd against origin/main b4032b0. No must-fix items.

Replaced test targets and what proves them now:

  • :release_candidate_smoke_test (a_candidate_archive_builds_tests_and_checks_a_registry_consumer) -> :release_consumer_smoke_test, candidate_consumer_test::a_candidate_archive_builds_tests_and_checks_a_registry_consumer
  • :readme_quickstart_smoke_test (the_readme_quickstart_runs_as_written, bcr_test_module_runs_its_presubmit_targets) -> :release_consumer_smoke_test, quickstart_consumer_test::* (both cases)

Checked:

  • data, env and deps of the merged target are the union of both old targets; tags and env_inherit are unchanged.
  • Both case files are untouched and have no crate-level attributes, so they compile as modules; their helper names (ok, write, dx) stay module-private.
  • The footprint budget of the_readme_quickstart_runs_as_written is not affected by the candidate case running first: Server::enter gives each workspace name its own path, so its own output base, and stops the previous server.
  • git grep on origin/main finds the old target names only in the six files this PR edits. tools/testing/host_path_allowlist.txt:88 names candidate_consumer_test.rs, which still exists.
  • Allowlist counts 2 -> 1 match the single remaining NESTED_BAZEL_NETWORK_TAGS use; nested_smoke.txt matches the new label.

Not blocking:

Not run: Bazel (read-only review); CI was pending.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

@TrapsterDK
TrapsterDK merged commit 952794f into main Nov 10, 2026
1 check failed
@TrapsterDK
TrapsterDK deleted the issue-10990-release-consumer branch November 10, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Touches review paths; needs a second-session Review: comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant