Repository navigation
chore: drop dead e2e fixtures, fix stale comments, and pin the merge-scenario timeouts - #411
Conversation
File size check0 over a hard cap (fails), 30 warning(s).
Split the file, wrap the line, shorten or exempt the comment, or list the path in 5 managed file(s) skipped; repo-platform owns them. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The nightly workflow header still references the nonexistent Dependabot lockfile workflow that this PR intends to remove.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Removes unused e2e fixtures, corrects stale maintenance comments, and stabilizes merge-generator tests.
Changes:
- Deletes 12 unreferenced JSON fixtures.
- Applies a shared 20-second timeout to five merge-scenario test batteries.
- Updates comments about dependency resolution and test locations.
| File | Description |
|---|---|
.github/workflows/nightly.yml |
Revises float-canary commentary. |
_typos.toml |
Corrects the unit-test location comment. |
test/package-pins.test.ts |
Clarifies exact dependency-pin rationale. |
test/e2e/generators.test.ts |
Shares an explicit timeout across merge tests. |
test/e2e/fixtures/actions-permissions.json |
Removes an unused fixture. |
test/e2e/fixtures/autolink.json |
Removes an unused fixture. |
test/e2e/fixtures/branch-protection.json |
Removes an unused fixture. |
test/e2e/fixtures/code-scanning-default-setup.json |
Removes an unused fixture. |
test/e2e/fixtures/collaborator.json |
Removes an unused fixture. |
test/e2e/fixtures/environment.json |
Removes an unused fixture. |
test/e2e/fixtures/label.json |
Removes an unused fixture. |
test/e2e/fixtures/milestone.json |
Removes an unused fixture. |
test/e2e/fixtures/pages.json |
Removes an unused fixture. |
test/e2e/fixtures/ruleset.json |
Removes an unused fixture. |
test/e2e/fixtures/team-repo.json |
Removes an unused fixture. |
test/e2e/fixtures/workflow.json |
Removes an unused fixture. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ec23f6a to
5847832
Compare
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The revised comments incorrectly describe Dependabot's targeted Bun lockfile update as a from-scratch resolution.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 2
Open (2)
Resolved since last review (1)
5847832 to
7d12443
Compare
7d12443 to
3d3c38f
Compare
3d3c38f to
9ddbc74
Compare
…scenario timeouts Twelve of the fourteen JSON files under test/e2e/fixtures are imported by nothing; only org.json and repo.json feed the mock state, so the other twelve go. Four comments named a dependabot-bun-lockfile workflow that exists nowhere; the ones in nightly.yml and package-pins.test.ts now credit the from-scratch resolve to nightly's float-canary, the only one in this repository. The _typos.toml glob comment still placed unit tests under src/sections; they all live under test/ now. The four 300-seed genMergeScenario batteries ran on bun's 5 s default while their sibling had 20 s; one MERGE_TIMEOUT constant now covers all five, and biome reflows the widened calls.
9ddbc74 to
b077244
Compare

Before
test/e2e/fixtures/held 14 JSON files; 12 were imported by nothing (grep -rn fixtures test .github/scriptsfinds onlyorg.jsonandrepo.json, both loaded bytest/e2e/mock/state.ts).nightly.yml,test/package-pins.test.ts, and_typos.tomldescribed adependabot-bun-lockfile.ymlworkflow that exists nowhere and unit tests undersrc/sections/*/that moved totest/in refactor(test): move tests, mocks, generators, scenarios, and docs prose out of src #400.genMergeScenariobatteries ran on bun's 5 s default timeout; only the fifth carried20_000. The heaviest validates 150+ merged documents and has flaked on a loaded runner.After
bun.lockand re-resolves. Dependabot's Bun updater keeps the checked-in lockfile and moves only the bumped dependency, so no comment says a bump regenerates it.MERGE_TIMEOUT = 20_000covers all five batteries.How
git rmof the 12 unreferenced files. Nothing imports them by path or by basename, andgit log -Sfinds no loader ever committed. knip does not see JSON imports, so the grep below is the proof.nightly.ymlcomments: the file header, the float-canary header, and the "delete before resolving" step describe the from-scratch resolve directly instead of a workflow that does not exist.package-pins.test.tsrationale: states what the test actually guards. A from-scratch resolve honors every range inpackage.json, so exact pins leave only transitive ranges to float; the zod incident is dated to when a lockfile-regenerating workflow still existed._typos.tomlcomment: "unit tests under test/".SEEDSinside thedescribe, with the rationale comment moved from the one test that had it. biome reflows atest(title, fn, timeout)call whose title overflows the line onto three lines, which reindents the five bodies; whitespace-insensitive the file is +32/-11.Proof
Red-then-green does not apply: the change is comments, file deletions, and a timeout. Local, targeted:
Line accounting
.github/workflows/nightly.yml_typos.tomltest/e2e/fixtures/*.json(12 files)test/e2e/generators.test.tstest/package-pins.test.tsReviewer note
.github/workflows/auto-fix.ymlcarries the other twodependabot-bun-lockfilecomment lines and is left untouched here: #403 and #405 edit that file, so its two lines go in a follow-up once they land.BEGIN_COMMIT_OVERRIDE
chore: drop dead e2e fixtures, fix stale comments, and pin the merge-scenario timeouts
Twelve of the fourteen JSON files under test/e2e/fixtures are imported by nothing; only org.json and repo.json feed the mock state, so the other twelve go.
Four comments named a dependabot-bun-lockfile workflow that exists nowhere; the ones in nightly.yml and package-pins.test.ts now credit the from-scratch resolve to nightly's float-canary, the only one in this repository.
The _typos.toml glob comment still placed unit tests under src/sections; they all live under test/ now.
The four 300-seed genMergeScenario batteries ran on bun's 5 s default while their sibling had 20 s; one MERGE_TIMEOUT constant now covers all five, and biome reflows the widened calls.
END_COMMIT_OVERRIDE