Repository navigation
chore: repair broken lockfile from #4939 and add merge queue CI support - #4941
Merged
Merged
Conversation
The lock file maintenance merge combined a stale renovate branch with current master and kept two identical copies of the '@conventional-changelog/git-client@3.1.1' entry in the packages section, making pnpm-lock.yaml invalid YAML. CI installs fail with ERR_PNPM_BROKEN_LOCKFILE (duplicated mapping key), while non-frozen installs silently discard and regenerate the whole file. Delete the second copy of the block; every resolved version stays exactly as on master. Verified with pnpm install --frozen-lockfile. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Lets a merge queue validate the exact merge result of a PR before it lands on master, so a PR whose checks passed against an older base (like a stale renovate lockfile branch) can no longer break master. Queue builds arrive on gh-readonly-queue/** branches, which are excluded from the push trigger so each build runs only once. The new trigger is inert until the merge queue is enabled in the branch protection settings for master. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Confidence Score: 5/5The PR appears safe to merge, with no actionable failures identified in either changed file. The workflow now validates merge-group commits without duplicate push runs, and the lockfile repair removes the invalid duplicate mapping without changing dependency resolutions.
|
| Filename | Overview |
|---|---|
| .github/workflows/CI.yml | Adds the merge-queue event and excludes queue refs from push-triggered runs; no actionable issue identified. |
| pnpm-lock.yaml | Removes only the duplicated package mapping while retaining the valid identical entry and existing resolutions. |
Reviews (1): Last reviewed commit: "ci: run required checks on merge_group e..." | Re-trigger Greptile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The #4939 squash merge combined a stale renovate lock-file-maintenance branch with current master. The resulting
pnpm-lock.yamlcontains two identical copies of the'@conventional-changelog/git-client@3.1.1'entry in thepackages:section — invalid YAML:ERR_PNPM_BROKEN_LOCKFILE ... duplicated mapping key (944:3)— all master workflows are red since that merge.pnpm installdoes not error: it silently discards the broken lockfile and regenerates it from scratch, rolling back the recent in-range bumps (vite 8.2.1→8.2.0, vue 3.5.41→3.5.40, oxlint 1.77.0→1.76.0, git-client 3.1.1→3.1.0). Do not commit such a regeneration.Same failure mode as the es-toolkit incident of 2026-06-15: two lockfile-touching branches merge cleanly textually while corrupt semantically, and the PR's green checks predate the merge, so nothing ever validated the bytes that actually landed.
Fix
pnpm-lock.yaml— delete the duplicated 12-line block, nothing else. Zero version churn; every resolved version stays exactly as on master. Verified:pnpm install --frozen-lockfilepasses (pnpm 11.20.0).CI.yml— add themerge_grouptrigger so a merge queue can run the required build checks on the exact merge result before it lands on master, which prevents this whole class of stale-merge corruption.gh-readonly-queue/**is excluded from thepushtrigger so each queue build runs only once. The existing fork-only/scheduleif:conditions on the jobs already pass formerge_groupevents — no job changes needed.After merging (repo settings, admin-only)
The
merge_grouptrigger is inert until the queue is switched on: Settings → Branches → master rule → Require merge queue. The two required checks (build (ubuntu-22.04, 22),build (windows-2025, 22)) will then gate each queue entry. Until that's flipped, everything behaves exactly as today.🤖 Generated with Claude Code