Skip to content

Commit 6f592de

Browse files
authored
[ci] Disable mid-stack PR optimization for native PR stacks (#95427)
https://vercel.slack.com/archives/C04KC8A53T7/p1783018076576349 <img width="1015" height="347" alt="Screenshot 2026-07-02 at 11 57 05 AM" src="https://github.com/user-attachments/assets/74d99079-d165-435a-aece-161862795ef6" /> If we're in the middle of a stack, but the PRs below us in the stack are already merged, we should not skip CI jobs. This logic isn't smart enough to handle that.
1 parent ee7f889 commit 6f592de

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎.github/workflows/pr_stack_optimizer.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ jobs:
5656
#
5757
# We skip if either Graphite's optimizer says to skip, or the PR is a mid-stack PR in a
5858
# GitHub native stack. The bypass label overrides both.
59-
skip: |-
60-
${{ env.HAS_BYPASS_LABEL == 'false' && (
61-
steps.check-skip.outputs.skip == 'true' || env.IS_MID_STACK_NATIVE == 'true'
62-
) }}
59+
skip: ${{ env.HAS_BYPASS_LABEL == 'false' && steps.check-skip.outputs.skip == 'true' }}
60+
# Note: IS_MID_STACK_NATIVE is disabled for now because it doesn't
61+
# understand if we're not on the bottom of the stack, but all the PRs
62+
# below us are merged.
63+
# <https://vercel.slack.com/archives/C04KC8A53T7/p1783018076576349>
64+
# || env.IS_MID_STACK_NATIVE == 'true'
6365
steps:
6466
- name: Optimize CI
6567
id: check-skip

0 commit comments

Comments
 (0)