Skip to content

Deflake gc packing test and harden local perf gates (PRD-7494) (#2773)#722

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jul 21, 2026
Merged

Deflake gc packing test and harden local perf gates (PRD-7494) (#2773)#722
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Copybara-translated 1 Inkeep OSS change. Rebase-merge this PR so the prepared commit lands directly on public main.

The maintenance-coordinator packing test asserted git gc --auto's packing
outcome, but --auto estimates loose-object count by sampling the objects/17
fanout dir, which lands under threshold ~6.8% of runs with 1500 random
seeds. The test now writes three precomputed blobs that hash into
objects/17, pinning the sample over threshold so gc packs every run. The
A1/A2 race tests seed the same pins so the gc-vs-commit interleaving is
actually exercised every run. Verified 25/25 consecutive green under load.

The comment-discipline perf gate's wall-clock medians inflate when the
machine is saturated by sibling test tiers. The verdict now accepts either
the wall-clock median or the process CPU-time median within the same
unchanged budgets; CPU time excludes scheduler wait but still grows with
any real slowdown of the CPU-bound ts-morph work. The per-test timeout
widens to a hang guard that lets the measurement finish under load.

The M2 project-markdown sweep parsed the whole repo in one test under one
flat timeout, so total work scaled with the repo while the cap did not.
The sweep is now sliced into 8 round-robin batches, bounding the work each
timeout guards without changing the zero-whole-doc-fallback gate.

GitOrigin-RevId: 7134ab7b4cecfcb3762b00bacac4ad02b26dba42
@inkeep-oss-sync
inkeep-oss-sync Bot merged commit 621c0a7 into main Jul 21, 2026
2 checks passed
@inkeep-oss-sync
inkeep-oss-sync Bot deleted the copybara/sync branch July 21, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant