Repository navigation
ci: stop a contract test near its time limit - #12994
Merged
Merged
Conversation
The lifecycle profile stopped every test at 180 s, twice its 90 s limit, including the provider contract tests whose own limits in .config/test-budgets.yaml are 10 to 22 s. An override for each budgeted binary now reports its tests as slow at the binary's limit and stops them at twice it. The drift test checks each override against its binary budget, in both directions.
cv
enabled auto-merge (squash)
October 11, 2026 11:58
Contributor
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.
Part of #12876. Follow-up to #12993, which closed #12979 before it covered the contract budgets from #12990.
Failure
#12990 gave each provider's contract tests a per-test limit in
.config/test-budgets.yaml: 22 s forfabric-provider::contract, 10 s fornemoclaw-provider::contract, and 12 s foropenshell-provider::contract. Nextest still stopped those tests at thelifecycleprofile's 180 s, and the drift test from #12993 checked only the step budgets.Decision
An override in the
lifecycleprofile for each budgeted binary, filtered bybinary_id(=NAME)so the filter repeats the budget's key, reports its tests as slow at the binary's limit and stops them at twice that limit. That is the same margin the profile's other tests get:fabric-provider::contractnemoclaw-provider::contractopenshell-provider::contractThe times come from the lifecycle JUnit reports of the last 37 Rust runs.
each_nextest_profile_stops_a_test_near_its_per_test_limitnow also fails in three cases:Budgets::binarieslists the binary budgets for that check. The testing guide and the budget file's header describe the overrides.Validation
the lifecycle nextest profile has no slow-timeout override with filter "binary_id(=fabric-provider::contract)") and passes with them.binary_id(=hang::contract)override: the test was flagged as slow at 2 s and stopped asTIMEOUT [4.004s].cargo nextest list --profile lifecyclelistsfabric-provider::contractunder that binary ID, and all four profiles parse.nemoclaw-buildci::, archive, and timing tests pass, along withcargo fmt --all --checkandcargo clippy --locked --workspace --all-targets -- -D warnings.