Skip to content

perf(tests): keep 4 heaviest invariant files under 15 s - #7630

Merged
dan-petty merged 1 commit into
mainfrom
perf/4890-invariant-test-speed
Nov 28, 2026
Merged

dan-petty merged 1 commit into
mainfrom
perf/4890-invariant-test-speed

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Move whole-tree AST checks out of the 4 heaviest invariant test files into the single-process test-tree gate, collect the 3 telemetry tables in one pass, and isolate inner floor runs with a floor-only conftest and --confcutdir.

Before and after with uv run pytest -n 4 -p no:cov -q --durations=20 on the 4 files:

  • Before: 190 passed in 39.72s
  • After: 165 passed in 13.12s (-67.0%)

Closes #4890

Change: openspec/changes/archive/2026-11-28-4890-invariant-test-speed/

@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/tests The test suite, its fixtures, fakes and floor labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 20:14
@dan-petty
dan-petty merged commit 724426f into main Nov 28, 2026
26 checks passed
@dan-petty
dan-petty deleted the perf/4890-invariant-test-speed branch November 28, 2026 20:47
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.240.1](v0.240.0...v0.240.1)
(2026-11-28)


### Bug Fixes

* **docs:** fix stale statements found by the content census
([#7632](#7632))
([7eed4ac](7eed4ac))
* **infra:** render infra.repos in ConfigMap and drift exit
([#7631](#7631))
([24d2193](24d2193))
* **k8s:** delete late-bound move volume by claim UID
([#7633](#7633))
([abeebd8](abeebd8))
* **roadmap:** brain sync rewrites stale near lists of unchanged
neighbours
([#7629](#7629))
([ac36afe](ac36afe))


### Performance Improvements

* **tests:** keep 4 heaviest invariant files under 15 s
([#7630](#7630))
([724426f](724426f)),
closes [#4890](#4890)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/tests The test suite, its fixtures, fakes and floor type/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(tests): the 4 heaviest invariant test files take over 15 s

1 participant