Skip to content

chore: repair broken lockfile from #4939 and add merge queue CI support - #4941

Merged
escapedcat merged 2 commits into
masterfrom
fix/lockfile-dup-key-merge-queue
Aug 10, 2026
Merged

escapedcat merged 2 commits into
masterfrom
fix/lockfile-dup-key-merge-queue

Conversation

@escapedcat

Copy link
Copy Markdown
Member

Problem

The #4939 squash merge combined a stale renovate lock-file-maintenance branch with current master. The resulting pnpm-lock.yaml contains two identical copies of the '@conventional-changelog/git-client@3.1.1' entry in the packages: section — invalid YAML:

  • CI installs fail: ERR_PNPM_BROKEN_LOCKFILE ... duplicated mapping key (944:3) — all master workflows are red since that merge.
  • Local non-frozen pnpm install does 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

  1. 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-lockfile passes (pnpm 11.20.0).
  2. CI.yml — add the merge_group trigger 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 the push trigger so each queue build runs only once. The existing fork-only/schedule if: conditions on the jobs already pass for merge_group events — no job changes needed.

After merging (repo settings, admin-only)

The merge_group trigger 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

escapedcat and others added 2 commits August 10, 2026 17:43
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>
@greptile-apps

greptile-apps Bot commented Aug 10, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

The 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.

Important Files Changed

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

@escapedcat
escapedcat merged commit c907b50 into master Aug 10, 2026
15 checks passed
@escapedcat
escapedcat deleted the fix/lockfile-dup-key-merge-queue branch August 10, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant