Skip to content

fix(DAN-873): CI must follow the code, not the base branch - #9

Open
Danny-Devs wants to merge 1 commit into
mainfrom
agent-a/DAN-873-ci-runs-on-stacked-prs
Open

fix(DAN-873): CI must follow the code, not the base branch#9
Danny-Devs wants to merge 1 commit into
mainfrom
agent-a/DAN-873-ci-runs-on-stacked-prs

Conversation

@Danny-Devs

Copy link
Copy Markdown
Contributor

Closes DAN-873.

The defect

pull_request.branches filters on the pull request's base branch. With branches: [main], a stacked PR — one opened against another PR's branch — matches nothing and runs zero jobs. GitHub still renders a green checks column, because the Vercel deployment reports independently of the CI workflow.

Measured in this repo today, within the same hour:

PR base CI jobs Vercel how the column reads
#7 agent-a/DAN-855-… 0 2 pass ✅ "green"
#8 main 8 2 pass ✅ green

Absence of a failing check is not absence of checking, and at a glance the two are identical. PR #7's eight jobs — Python 3.10/3.11/3.12/3.13, S7 Chain-Agnostic Boundary, TypeScript Node 20/22, TypeScript Build — never ran at all. They were run by hand instead, which is a person doing a machine's job.

The fix

Remove the branches filter from pull_request. The push trigger keeps [main], which is correct — push-CI on every branch would be duplicate work, since the PR event already covers it.

Stacking is a normal way to work in this repo (#7 is stacked on #6 right now), so the suite has to follow the code rather than the base branch.

Verification

The definitive proof is a stacked PR running the full suite after this lands — that cannot be observed from this PR, and I am not claiming it has been. What is established is the diagnosis, from the measurement above: the only difference between #7 and #8 is the base branch, and the only construct keying on the base branch is the line this PR deletes.

This PR targets main, so its own checks run.

🤖 Generated with Claude Code

pull_request.branches filters on the PR BASE. With [main], a stacked PR — one
opened against another PR branch — matched nothing and ran ZERO jobs, while
GitHub still rendered a green checks column from the Vercel deployment.

Measured today, same repo, same hour:
  PR #7  base agent-a/DAN-855-...   0 CI jobs + 2 Vercel   reads "green"
  PR #8  base main                  8 CI jobs + 2 Vercel   is green

Absence of a failing check is not absence of checking, and at a glance the two
are identical. Stacking is a normal way to work in this repo, so removing the
filter is the fix; the push trigger keeps its [main] filter, which is correct.
@vercel

vercel Bot commented Aug 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
s402-docs Ready Ready Preview Aug 16, 2026 11:10pm

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