Repository navigation
testing: one nested server per shard, one sharded network test - #14833
Open
TrapsterDK wants to merge 1 commit into
Open
TrapsterDK wants to merge 1 commit into
TrapsterDK wants to merge 1 commit into
Conversation
…#14778, closes #14780) Server::enter empties one slot workspace for every case, so all cases of a test binary share one server and output base. A case in record mode keeps a copy of its module files, since the next case reuses the root. The probe names its second case differently and still sees one pid. cold_start_test and the go/java prebuilt guards become the five cases of //tools/testing/consumer:network_test with shard_count = 5; their pure checks move to the consumer_network library and its unit test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus
Collaborator
Author
|
/evidence platforms=["macos_arm64","windows_x86_64"] task=test scope=//tools/testing/... |
Collaborator
Author
|
/evidence platforms=["linux_x86_64"] task=test scope=//tools/testing/consumer:network_test |
Contributor
|
Evidence started on |
Contributor
|
Evidence started on |
This branch has not been deployed
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.
Closes #14778
Closes #14780
What
tools/testing/nested/src/lib.rs:Server::enter()empties one slot workspace (w/ws) for every case instead of one workspace per case name, so all cases of a test binary (one shard) share one server and output base. In record mode a finished case copies itsMODULE.bazeland lock aside, since the next case reuses the root. The unit test now runs two differently named cases and checks they get the same root and keep their own records.tools/testing/nested_bazel_probe.rs: the second case is namedprobe_renamed; the harness casewithout_a_shared_root_a_test_extracts_fetches_and_stops_its_serverfails unless both report one server pid.tools/testing/consumer/BUILD.bazel:cold_start_test,go_prebuilt_guard_testandjava_prebuilt_guard_testbecome onenetwork_test(caches = "private",network = True,shard_count = 5).network_test.rsholds exactly five cases (go/java/rust cold start, go/java guard), so each shard runs one. The pure checks ofcold_start_test.rsandprebuilt_guard_test.rsstay in those files as#[cfg(test)]modules of the newconsumer_networklibrary, run byconsumer_network_lib_test.tools/ci/test_budget_allowlist.txt: thecold_start_test nested-cold-over-60 140line is gone;tools/testing/nested_smoke.txtlistsnetwork_testinstead of the three targets.cold_start/*.txt,prebuilt_guard_allowlist.txtanddocs/design/test-guards.mdpoint atnetwork_test.Tests
tools/dx test //tools/testing/nested:dx_nested_test //tools/ci:test_budget_test //tools/testing/consumer:consumer_network_lib_test //tools/testing/consumer:prebuilt_guard_lib_test: pass.tools/dx test --affected: 96 pass,//tools/testing/consumer:root_module_testfails on rootMODULE.bazeloverrides and dev repos this PR does not touch.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus