Skip to content

fix(ci): a removed layout writer no longer fails other PRs' ratchet check - #27557

Merged
Jinwoo-H merged 1 commit into
mainfrom
layout-ratchet-unbreak
Oct 11, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
layout-ratchet-unbreak

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1

Summary

Main's layout-writer ratchet check is failing every PR. #27529 removed two main-process layout writers after the ratchet (#27431) landed, and its CI ran before the ratchet existed, so main's baseline still allowed the old counts. The check treated "fewer writes than allowed" as an error, so every branch built on main now fails it.

What changes for users

Nothing. This is CI only.

Mechanism

  • Prune config/main-layout-writer-baseline.txt to main's real counts (214 → 212).
  • A file whose count went down is now a warning that suggests --prune. Only a count going up fails. That's the only direction the ratchet exists to stop.

Why this approach

Failing on decreases breaks any PR that branched before someone else removed a writer, and it will keep happening while main moves fast. Removing writers is the goal, so it should never turn CI red.

…heck

#27529 removed two main-process layout writers after the ratchet landed, so main's
baseline went stale and every PR failed the check. Prune the baseline and report a
shrunk count as a warning; only growth fails.
@coderabbitai

coderabbitai Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f3191905-6fcc-413d-b7e6-c90b6858296f

📥 Commits

Reviewing files that changed from the base of the PR and between dbd97f7 and 289b9c2.


📒 Files selected for processing (2)
  • config/main-layout-writer-baseline.txt
  • config/scripts/check-layout-writer-ratchets.mjs

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Jinwoo-H
Jinwoo-H merged commit a0b0328 into main Oct 11, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant