Skip to content

ci: let the changed-files lane report quarantined files without blocking - #6783

Merged
hurttlocker merged 1 commit into
mainfrom
ci/changed-lane-reads-quarantine
Nov 25, 2026
Merged

hurttlocker merged 1 commit into
mainfrom
ci/changed-lane-reads-quarantine

Conversation

@hurttlocker

Copy link
Copy Markdown
Collaborator

What changed

  • Changed-files lane: it now uses tests/integration-quarantine.json (Real-path suites drifted on main because they only run when their own files change #6761) as its red baseline, read as committed at the merge base (O8_INTEGRATION_BASELINE_REF).
    • A touched file on that list still runs, and prints baseline red, or baseline file now green, remove it from the list. It no longer blocks the merge.
    • A red file that is not on the list fails the job, as before.
  • Base copy only: the list comes from the merge base, so adding a file to the list in the same change does not exempt it.
  • loadRedBaseline(path, ref, cwd): can read the list from a commit. The full-suite lane is unchanged and still reads the working-tree copy.

Why

A change that edits a file already red on unmodified main could not merge. Removing a deleted module's mock from such a file was enough to trigger this.

Test

  • tests/linux-red-baseline.test.ts adds a case: a fixture repo commits a list, then the working tree adds a second file to it. Reading at HEAD returns only the committed entry, the added file is still new red, and an unknown ref returns null. On main the extra arguments are ignored, so this case fails.
  • Real entry point: with the new env, scripts/integration-test-gate.mjs on tests/approve-and-merge-squash-real-path.test.ts (listed, 0/5 passing) printed baseline red and exited 0.

🤖 Generated with Claude Code

@github-actions github-actions Bot added the size/M Pull request with M diff size label Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🔍 PR Review Bot

Metric Value
Files changed 7
Additions +62
Deletions -10
New files 0

Automated review — CI workflow

A touched test file that is already red on unmodified main (listed in
tests/integration-quarantine.json, #6761) failed the changed-files lane,
so any change that edited such a file could not merge. That lane now
reads the quarantine as committed at the merge base: a listed file still
runs and prints "baseline red" or "now green", and every other red file
fails the job as before. Reading the base copy means a change cannot
exempt a file by adding it to the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hurttlocker
hurttlocker force-pushed the ci/changed-lane-reads-quarantine branch from 1531b5a to 0d4a7a3 Compare November 25, 2026 19:29
@hurttlocker
hurttlocker added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 3e1467e Nov 25, 2026
32 checks passed
@hurttlocker
hurttlocker deleted the ci/changed-lane-reads-quarantine branch November 25, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Pull request with M diff size

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant