Skip to content

Four Dependabot Merges, One Closed PR, and Five Gaps in the Gate

Four Dependabot PRs merged in one day in a pnpm monorepo. TypeScript 6, Storybook, Playwright and the lockfile each broke what a green check missed.

· · 11 min read
Timeline of four Dependabot pull requests from 03:35 to 12:14 UTC with fix commits, red checks and merge times

Dependabot opens pull requests and raises alerts. Neither stops anything. It becomes a gate only when a check that can say no is required, when a no blocks the merge, and when a person reads the no before choosing a different button. On 2026-10-23 this pnpm monorepo merged four Dependabot pull requests, closed a fifth and learned that its one required check was built for a different job.

The options themselves, from groups to cooldown, are in the setup and triage post. This one is about what happens after the bot opens the pull request, with every claim tied to a pull request or a CI run you can open.

What counts as the gate here?

One check. The branch rules for main list required_status_checks with exactly one entry, validate. The Playwright matrix runs on pull requests too, but nothing requires it, so a red matrix leaves a pull request mergeable.

That distinction showed up on #2899, the Playwright bump. validate finished at 11:16 UTC and we merged at 11:46. The matrix jobs started at 11:58 and the last one ended at 12:14, six of six green. Lucky? Partly. The checks that mattered had passed, but we merged before the slower check had said anything, and a non-required check can't stop a merge it hasn't finished running for. Either require it or stop counting it as protection. I'd rather the gate be smaller and real.

Timeline of four Dependabot pull requests from 03:35 to 12:14 UTC with fix commits, red checks and merge times
The four pull requests of 2026-10-23, from open to merge. Source: gh pr view and gh run view, times in UTC.

What did one day of merges look like?

All four pull requests opened between 03:35 and 03:36 UTC. They merged between 09:58 and 11:46, after 6.4 to 8.2 hours open. Across the 54 merged Dependabot pull requests in the repository, the median is 6.0 hours.

PR Bump Open to merge What went wrong How it showed up
#2898 prettier 3.9.9 to 3.9.10 6.4 h Root package.json conflicted after #2897 merged Merge state
#2896 typescript 5.9.3 to 6.0.3 7.0 h Type checking stopped on some projects Error counts fell
#2900 @storybook/addon-docs 10.6.0 to 10.6.2 7.3 h One member of a four-package family moved Unit test failed
#2899 playwright 1.58.2 to 1.64.1 8.2 h A second copy of Playwright Every spec failed
#2883 security group, 27 directories closed Frozen benchmark fixtures Went DIRTY, then the bot errored

Ten merges of main into those four branches happened between 08:23 and 10:33. Hold that number. It matters in a minute.

Why is a major bump a migration, not a merge click?

#2896 changed 24 files. The bot's commit edited package.json files and the lockfile. A person's second commit added five tsconfig files and one TypeScript source file.

The second commit message holds the detail worth remembering. TypeScript 6 turns baseUrl and moduleResolution: node10 into hard errors, TS5101 and TS5107, and those errors don't just report. They stop type checking altogether. In the commit's words, real-smart-home dropped from 35 reported errors to 1. A third error, TS2880, wanted with instead of assert on a JSON import in one gym-navigator script.

The fix was ignoreDeprecations: "6.0" in five tsconfig files plus that one keyword. Afterwards the per-blog counts matched the TypeScript 5.9 baseline again: 35, 2 and 29 for three of the blogs.

Now the awkward part. This repo's own review checklist says the type gate is "no new errors", not "zero", because the blogs carry old errors. A gate written that way passes when the checker quietly stops checking, because 35 to 1 is a perfect score. Did anyone design it to do that? No. It just never expected a tool to get quieter by breaking.

A gate that says "no new errors" passes the moment the checker stops checking.

SHARE Post on X Bluesky

After a compiler major, compare error counts before and after, and treat a drop as a symptom. That's cheap: you already have the baseline.

What breaks when a bot bumps one name of a family?

Two of the four had the same shape, and the bot did exactly what it was configured to do.

Two panels: four Storybook packages with one at a different version, and two Playwright packages at 1.64.1 and 1.58.2
Declared versions in the package.json files on 2026-10-23. Source: the validate log of the #2900 run and commit 37a3bd8521.

Storybook. #2900 moved @storybook/addon-docs from 10.6.0 to 10.6.2 and left storybook, @storybook/react-vite and @storybook/addon-a11y at ^10.6.0. The repo has a unit test for exactly this, and its comment explains why: on 2026-09-11 an addon-docs bump from 10.5.10 to 10.6.0 landed alone, merged green, and the next coding-dunia deploy died in its first step on a missing export. The test failed on #2900 and listed the two ranges. A person moved all four packages to 10.6.2 in two commits. At 10:23 the bot raised a separate addon-a11y pull request, #2916, and closed it itself at 10:55 as no longer needed.

Playwright. #2899 bumped playwright to 1.64.1 while @playwright/test stayed at the locked 1.58.2. Two copies of the library, and every spec failed with "Playwright Test did not expect test() to be called here". The fix pinned @playwright/test to exactly 1.64.1 beside playwright.

Would a groups entry have helped? Probably, and the config below has one. But I haven't watched a group run in this repo, so I won't promise it. The test is the part I trust, because it also catches a human who edits one line by hand. Two tests like it, one per family, cost less than one broken deploy.

Why did every branch need the lockfile again?

pnpm keeps one pnpm-lock.yaml at the root. Every dependency pull request edits it, so every merge makes the next branch stale. That's the ten merges of main you saw in the timeline: two into #2898 and #2896, three each into #2900 and #2899.

I replayed one of them with git merge-tree. After #2897 landed, the prettier branch conflicted in the root package.json, because the two bumps sat on neighbouring lines, lint-staged and prettier, of the same dependency block. The lockfile merged without a conflict marker, which is the worse result: text that merges cleanly can still describe an install nobody resolved.

@dependabot rebase didn't help. On #2898 the bot replied that the branch had been edited by someone other than Dependabot and offered recreate, which would have thrown the edits away. GitHub's page on managing these pull requests says Dependabot stops rebasing once extra commits are pushed, and that a skip string such as [dependabot skip] in a commit message lets it force push over them. We didn't try that.

The routine that worked, three rounds in one afternoon:

git fetch origin main
git merge origin/main                  # resolve package.json by hand
git restore --source=origin/main pnpm-lock.yaml
pnpm install --lockfile-only           # re-apply this branch's change to main's lockfile
git add -A && git commit -m "Merge main" && git push

Take main's lockfile, never the branch's. Then let pnpm re-derive the difference. And merge one pull request at a time, because the next one needs this routine anyway.

When a gate cries wolf, who reads it?

The first validate attempt on #2896 after the TypeScript fix failed five unit tests in four files: cron-toolchain, gn-gym-shrink-guard, gn-pointer-bump and strategy-gate-hook. Each message was the same, "Test timed out in 5000ms", against 9,218 passing tests. All four files spawn child processes. The job had also waited about 13 minutes for the single self-hosted runner before it started. Attempt two passed.

Rerunning was the right call this time. It would be a wrong habit if nobody read the failure first, and the timestamps show we only know it was a timeout because somebody did. A gate you rerun without reading teaches the team to rerun without reading, which is how a flake gets through. The cheaper fix is a longer per-test timeout on those four files. We haven't made it.

Which directories does Dependabot touch that you never listed?

.github/dependabot.yml said directory: "/" and nothing else. #2883 still came back titled "bump the npm_and_yarn group across 27 directories with 3 updates". It changed 28 files: 26 inside audits/, where a package-manager benchmark keeps frozen fixtures, and two in a coding-dunia example project. Vite and fastify bumps in the inputs of a measurement would have changed what the measurement measured.

Its sibling #2884 had already merged at 06:54 UTC with 17 files across 16 directories, the same fixtures plus the same example. At 06:55 we commented @dependabot rebase on #2883, at 07:38 recreate, and at 08:00 the bot answered that something went wrong. We closed it at 09:23 and merged #2907, which adds exclude-paths: ["audits/**"].

Here's the weak spot. GitHub's options reference marks exclude-paths as version updates only. The group name npm_and_yarn isn't one our file defines, and the PR body cites GHSA advisories, so #2883 was a security-update pull request. Our fix may not cover the kind of PR it was written for. Today 65 alerts are open, all 65 under audits/, none dismissed. Since #2907 the bot has opened three more pull requests, none touching audits/. One afternoon proves nothing either way.

Also notice what the exclude doesn't cover: the example project under blogs/coding-dunia/examples.

What would a monorepo config look like after this?

The file below passes the config checker in this blog's examples folder with zero errors. It tests option names and value ranges against the options reference, nothing more. The cooldown numbers are our picks, not GitHub's.

version: 2
updates:
  - package-ecosystem: "npm"
    directory: "/"
    schedule: { interval: "weekly", day: "monday", time: "06:00", timezone: "UTC" }
    open-pull-requests-limit: 5     # the default, kept explicit: five opened at once here
    cooldown:
      default-days: 3
      semver-major-days: 14         # majors are migrations, give them time
      semver-minor-days: 7
      semver-patch-days: 3
    groups:                         # first match wins, so families go first
      storybook:
        patterns: ["storybook", "@storybook/*"]
      playwright:
        patterns: ["playwright", "playwright-core", "@playwright/*"]
      dev-tooling:
        dependency-type: "development"
        update-types: ["minor", "patch"]
    # Version updates only. Verify against your first security run.
    exclude-paths: ["audits/**", "blogs/*/examples/**"]
    commit-message:
      prefix: "chore(deps)"
      prefix-development: "chore(deps-dev)"

Majors match no group, so each arrives alone with its own 14-day cooldown. That's on purpose. Pair it with a per-family alignment test and a before-and-after error count for compilers.

For the 65 fixture alerts, the honest move is to dismiss them as not_used with a comment that says the lockfiles belong to frozen benchmark inputs. That decision is ours, and we haven't made it yet.

Which two numbers show whether the gate works?

Share of closed alerts with a written reason, and time to patch. Both come from gh api. This is the output from this repository on 2026-10-23:

R=OWNER/REPO

# 1. Share of dismissed alerts that carry a comment
gh api --paginate "repos/$R/dependabot/alerts?state=dismissed&per_page=100" \
  | jq -s '[.[][]] | {dismissed: length,
      with_comment: ([.[] | select((.dismissed_comment // "") | length > 0)] | length)}'
# {"dismissed": 0, "with_comment": 0}

# 2. Median days to fix, per alert and per advisory
gh api --paginate "repos/$R/dependabot/alerts?state=fixed&per_page=100" \
  | jq -s '[.[][] | {g: .security_advisory.ghsa_id,
      c: (.created_at | fromdateiso8601), f: (.fixed_at | fromdateiso8601)}]
    | {alerts: length, advisories: (group_by(.g) | length),
       per_alert: (([.[] | (.f - .c) / 86400] | sort) | .[length/2 | floor]),
       per_advisory: ((group_by(.g) | map(((map(.f) | max) - (map(.c) | min)) / 86400)
                      | sort) | .[length/2 | floor])}'
# 524 alerts, 200 advisories, 1.9 days per alert, 8.9 days per advisory

Zero dismissals means the first number is undefined, not 100 percent. It also means 65 open alerts are open because nobody has decided anything about them. The second number depends on how you count: 1.9 days per alert looks healthy, 8.9 per advisory is the one that matches a person's experience of waiting for a fix. Use the larger, and say which one you used.

Does a green validate mean any of this is fine? No. It means the checks it knows about passed.

What would we change next?

  • Dismiss or restructure the 65 fixture alerts, then watch whether exclude-paths actually holds on the next security run.
  • Add a Playwright alignment test beside the Storybook one.
  • Make the typecheck gate fail on a large drop in errors, not only on a rise.
  • Raise the timeout on the four process-spawning tests instead of rerunning them.
  • Decide about the Playwright matrix: require it, or stop treating it as a safety net.

Which of your required checks would have stopped TypeScript 6 on its own? The CI gate audit reads a workflow file in your browser and shows which gates it's missing. If the archived-dependencies post was about what a dependency's silence means, this one is about what your own gate's silence means.

Frequently Asked Questions

Does exclude-paths keep Dependabot security PRs out of a directory?
GitHub's options reference marks exclude-paths as version updates only, and says nothing in the body text about security updates. The grouped PR that touched 27 fixture directories in this repo looked like a security-update PR, so the fix we merged may not cover the next one. 65 open alerts still sit under audits/. Check your first security run instead of assuming.
Why does @dependabot rebase refuse to run on a pull request?
By default Dependabot stops rebasing a pull request once someone has pushed extra commits to it. On PR 2898 the bot answered a rebase request within seconds that it could not rebase an edited branch and offered a recreate instead, which overwrites the edits. GitHub documents a skip string such as [dependabot skip] in a commit message for letting it force push over yours.
How do I stop Dependabot from bumping one package of a family alone?
Add a groups entry with patterns that lists every member, for example storybook and @storybook/*, and put it above any broader group because the first matching group wins. Then add a unit test that fails when the family declares two versions. The group shapes the pull request. The test protects you when a human edits it.
How do I measure time to patch from gh output?
Export fixed alerts with gh api and compute fixed_at minus created_at. Do it per advisory, from the first alert raised to the last one fixed, because one advisory can raise an alert in every manifest that contains the package. In this repo the median was 1.9 days per alert and 8.9 days per advisory.