Skip to content

chore(ci): drop retired test-lines allocation records - #197635

Closed
obviyus wants to merge 1 commit into
mainfrom
chore/drop-test-lines-allocations
Closed

obviyus wants to merge 1 commit into
mainfrom
chore/drop-test-lines-allocations

Conversation

@obviyus

@obviyus obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Problem

After #197602, the test-lines check measures only each PR's own net delta. It gives credit only for allocation records that the PR adds or raises. The 2,665 records already on main no longer affect any check.

Change

Delete config/test-lines-allocations/*. The check reads records with git ls-tree/ls-files, so a missing folder gives an empty set. A future PR above the 400-line allowance adds a new record, as documented.

Evidence

  • node scripts/check-test-lines-ratchet.mts --base origin/main on this branch: Test lines OK. Net test lines: 0; allowance: 400; allocation credit: 0.
  • pnpm test test/scripts/check-test-lines-ratchet.test.ts: 2 passed.
  • No production code changes. Path-classification tests use their own fixture paths.

The Labeler workflow can crash with write EINVAL when a PR has this many changed files. That is a Labeler limit on huge diffs, not a defect in this change.

The per-PR allowance (#197602) gives credit only for records a PR adds or
raises, so merged records no longer affect the check.

Co-authored-by: obviyus <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR deletes historical test-line allocation records that no longer grant credit under the per-PR budget.

Example: A later PR adds 401 net test lines without a new allocation.

  • Before: Historical allocation records remain in the repository, but the checker rejects the addition.
  • After: Historical records are removed, and the checker still rejects the addition.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, source-supported maintenance with no actionable code findings; the failed labeling check still needs disposition.
Proof confidence 🐚 platinum hermit (4/6) This repository-metadata cleanup needs no product entry-point proof; the supplied checker output and existing tests support the unchanged enforcement contract.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Contributors carry obsolete allocation metadata that no longer contributes to budget decisions.
Reason: The maintainer-authored cleanup follows the documented deletion contract and adds no replacement machinery.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored cleanup removes obsolete allocation records without changing budget enforcement; no code findings were identified, but the failed Labeler check remains unresolved.

Priority: P3
Reviewed head: 3baecd3224636d67bf7759bf90f85057d473f7c5

Before merge

None.

Findings

None.

Agent review details

How this fits together

Local checks and CI compare test-source growth and changed allocation records against a Git base, then return a budget verdict.

flowchart TD
  A[Local checks and CI] --> B[Git comparison base]
  B --> C[Net test line delta]
  B --> D[New or raised allocations]
  C --> E[Apply 400 line allowance]
  D --> E
  E --> F[Budget verdict]
Loading

Technical review

Best possible solution:

Remove the inert records while retaining the existing checker, allocation format, and normal merge gates.

Do we have a high-confidence way to reproduce the issue?

This is cleanup rather than a reported runtime defect; current source and documentation establish that merged allocations grant no further credit.

Is this the best way to solve the issue?

Deletion is the smallest complete cleanup: the existing checker already handles missing allocation paths, and future allocations remain supported.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9fe59d5e7ef0.

Provenance checked

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 2890bbe adds scripts/check-test-lines-ratchet.mts:163 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2890bbe6c47d; files: scripts/check-test-lines-ratchet.mts)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: Repository housekeeping removes inert budget metadata without changing product behavior or validation policy.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: Repository housekeeping removes inert budget metadata without changing product behavior or validation policy.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 12, 2026, 3:34 AM ET / 08:34 UTC.

@obviyus obviyus closed this Nov 12, 2026
@obviyus
obviyus deleted the chore/drop-test-lines-allocations branch November 12, 2026 08:59
@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by three smaller PRs. CI puts the full changed-path list into one env var (NARROW_CHECK_PATHS_JSON). At 2,665 paths that is 172 KB, over Linux's 128 KiB per-string limit, so the check jobs failed to start (E2BIG). Each split PR is about 57 KB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant