Skip to content

ci: the interaction job loads the heavy-suite caps from the merge commit, not the pull request head - #9005

Merged
cixzhang merged 1 commit into
mainfrom
lane4/heavy-caps-from-merge
Oct 30, 2026
Merged

cixzhang merged 1 commit into
mainfrom
lane4/heavy-caps-from-merge

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

User impact

Changes

  • ci.yml pr-interaction: a sparse checkout of .github/actions/heavy-caps from the merge commit into .heavy-caps, the caps step and its marker from there, then the existing head checkout, which replaces that directory.
  • test-build and fixture-contrast: unchanged. They check out the merge commit, which always has the step.
  • Tests:
    • heavy-caps-action.test.mjs adds a contract over every workflow: a local action other than setup (the pull request's own toolchain) must not load from a checkout of the pull request head. On main today this test fails for pr-interaction.
    • ci-test-routing.test.mjs reads the workspace checkout, not the side one.

Evidence

  • .github/scripts Node suite: 1,523 pass.
  • The new contract test fails on the current main workflow and passes with this change.

Scope

  • One change: where the interaction job loads the heavy-suite caps from.
  • No spec text changes; spec:AST-030 FR16 is unchanged.
  • Public text contains no internal Meta context.

LOC

+66/−9. The workflow change is about +12; the rest is the contract test.

…mit, not the pull request head

pr-interaction checks out the pull request's exact head and then ran the
local heavy-caps action from it, so a pull request branched before the
action existed failed with "Can't find 'action.yml'" and turned the
required test check red. The job now sparse-checks-out the action from
the merge commit into a side path and runs it there before the head
checkout. test-build and fixture-contrast check out the merge commit and
were not affected. A contract test now holds every local action except
setup to a checkout that is not the pull request head.
@vercel

vercel Bot commented Oct 30, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 30, 2026 11:08am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 30, 2026
@astracat-bot

astracat-bot Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 30, 2026, 11:28 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommending approval: loading the heavy-suite caps from the merge commit means a branch cut before #8893 gets its per-author caps and interaction proofs, as AST-030 FR16 expects, instead of failing test on a missing action. The new all-workflow contract fails on the previous pr-interaction layout and passes with this change, so nothing else is needed from you.

[Automated review]

@cixzhang cixzhang closed this Oct 30, 2026
@cixzhang cixzhang reopened this Oct 30, 2026
@cixzhang cixzhang closed this Oct 30, 2026
@cixzhang cixzhang reopened this Oct 30, 2026
@cixzhang
cixzhang merged commit 78e20b6 into main Oct 30, 2026
91 of 95 checks passed

This branch was successfully deployed

1 active deployment
Preview — 533d735a Deployed Oct 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant