Skip to content

ci: stop a contract test near its time limit - #12994

Merged
cv merged 1 commit into
v1from
ci/stop-contract-tests-at-their-limit
Oct 11, 2026
Merged

cv merged 1 commit into
v1from
ci/stop-contract-tests-at-their-limit

Conversation

@cv

@cv cv commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

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 for fabric-provider::contract, 10 s for nemoclaw-provider::contract, and 12 s for openshell-provider::contract. Nextest still stopped those tests at the lifecycle profile's 180 s, and the drift test from #12993 checked only the step budgets.

Decision

An override in the lifecycle profile for each budgeted binary, filtered by binary_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:

Binary Per-test limit Stopped after Slowest test seen, any platform
fabric-provider::contract 22 s 44 s 15.0 s on linux_amd64
nemoclaw-provider::contract 10 s 20 s 9.8 s on windows_amd64
openshell-provider::contract 12 s 24 s 7.1 s on windows_amd64

The times come from the lifecycle JUnit reports of the last 37 Rust runs.

each_nextest_profile_stops_a_test_near_its_per_test_limit now also fails in three cases:

  • a budgeted binary has no override;
  • an override's period differs from its binary's limit, or it stops a test later than three times that limit;
  • an override has no binary budget.

Budgets::binaries lists the binary budgets for that check. The testing guide and the budget file's header describe the overrides.

Validation

  • The extended drift test failed before the overrides (the lifecycle nextest profile has no slow-timeout override with filter "binary_id(=fabric-provider::contract)") and passes with them.
  • In a scratch crate, the pinned nextest 0.9.144 applied a binary_id(=hang::contract) override: the test was flagged as slow at 2 s and stopped as TIMEOUT [4.004s].
  • cargo nextest list --profile lifecycle lists fabric-provider::contract under that binary ID, and all four profiles parse.
  • The nemoclaw-build ci::, archive, and timing tests pass, along with cargo fmt --all --check and cargo clippy --locked --workspace --all-targets -- -D warnings.

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 cv added area: ci CI workflows, checks, release automation, or GitHub Actions v1 NemoClaw v1 branch labels Oct 11, 2026
@cv
cv enabled auto-merge (squash) October 11, 2026 11:58
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit fd1ffb8 into v1 Oct 11, 2026
@cv
cv deleted the ci/stop-contract-tests-at-their-limit branch October 11, 2026 12:02
@wscurran wscurran added the chore Build, CI, dependency, or tooling maintenance label Oct 28, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants