Repository navigation
tests: size, shard, poll and dedupe for faster test runs - #14835
Open
TrapsterDK wants to merge 1 commit into
Open
TrapsterDK wants to merge 1 commit into
TrapsterDK wants to merge 1 commit into
Conversation
- cc_toolchain_test and deploy_verify_test call sites set size small; test budget no-size counts shrink to match. - dx_adopt_test runs in 2 shards. - deploy_smoke_test polls until a deadline instead of sleeping between attempts; sleep budget drops by one. - Delete hello_standalone_output_test; relocate_test checks the same output from the same binary. - aarch64 builtins test builds for //appimage:linux_arm64 so it shares the runtimes built for the other arm64 cross tests. - Fix drop() on Copy send results in cli and plan tests, which broke the build under dropping_copy_types. 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=//cli/adopt:all //cli/plan:all //cli/cli:dx_cli_test //cc/tests:all //deploy/private:all //julia/tests/fixtures/hello:all //tools/ci:all //patches/llvm/tests:all //tools/docs/site:all |
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.
Five test speedups from #14776.
cc_toolchain_testanddeploy_verify_testcall site now setssize = "small". Starlark test rules can't change the implicit size default, so the size goes on each call site. Lowered no-size counts intools/ci/test_budget_allowlist.txt: cc/tests 39→7, cuda/tests 28→22, deploy/private 110→83, plus the cgo, python, qt, native_call and hermetic compiler packages.//cli/adopt:dx_adopt_testgetsshard_count = 2: 4.0s → slowest shard 2.7s. Measured locally, the others don't gain from sharding. adapter takes 0.55s and runner 0.5s, so shard setup costs more than it saves. cli/plan takes 2.4s and gained nothing. Shardingdeploy/private:deploy_tools(7.1s) exposes a PATH race:with_envchanges PATH while other tests spawn processes. That needs a separate fix.deploy_smoke_test.rsnow polls until a 30s deadline instead of sleeping between attempts.maven_pin.rswas already fixed on main in tests: wait on events instead of fixed sleeps in the test harness #14818.sleep_budget.txt: 16 → 15 sleeps.hello_standalone_output_test.relocate_testalready asserts "Hello, julia!" from the same binary. Also removed from the ci.yml launch lists.aarch64_builtinsnow targets//appimage:linux_arm64instead of@llvm//platforms:linux_aarch64. The stage0 runtimes now share one configuration with the other arm64 cross tests:cross_archive_testreused the builtins archive instead of rebuilding it. Forcc/private/toolchain/select.bzl:89I found no rebuild. The transition only sets what each test asks for, and//cc:compileris kept out of the exec config.The PR also fixes a build break on main from #14822:
drop()on aCopysend result failsdropping_copy_typesincli/plan/src/slots_tests.rs,cli/cli/src/test_support.rsandcli/cli/src/exec/error_boundary_launcher_tests.rs.Linux: test_budget_test, sleep_budget_test, dx_plan_test, dx_adopt_test, dx_cli_test, deploy_smoke_test, relocate_test, lse_atomic_sources_test, cross_archive_test and sampled cc/deploy verify tests all pass.
Closes #14787
Closes #14789
Closes #14790
Part of #14788
Part of #14791
🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus