Skip to content

Skip unrelated CI jobs when uploading the pipeline - #6067

Merged
iangmaia merged 4 commits into
trunkfrom
iangmaia/skip-jobs-at-upload
Nov 23, 2026
Merged

iangmaia merged 4 commits into
trunkfrom
iangmaia/skip-jobs-at-upload

Conversation

@iangmaia

@iangmaia iangmaia commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Part of AINFRA-3622

Related issues

Uses the upload-time approach from bloom/DayOne-Apple#30814.

How AI was used in this PR

AI-assisted implementation and review.

Proposed Changes

Decide skips during pipeline upload, before taking a Mac, Windows or Linux agent. The existing rules stay in place for lint, tests, fastlane helpers and metrics.

  • Skipped required checks are reported by the uploader. Only opted-in checks appear in its annotation.
  • Remove toolkit mounts that existed only for the old in-job skip checks; lint keeps its cache helpers.
  • Errors and non-PR builds still run. Metrics keeps its existing trunk-only status condition.

Testing Instructions

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors? (N/A — CI only.)

Decide which jobs to skip in `shared-pipeline-vars`, on the upload agent, and use `skip:` on the steps and groups, instead of starting each job to exit early. The skipped Required checks still report their status through `even-if-skipped`, handled by the toolkit's `notify_skipped_steps` in the central upload step.

`should-skip-job.sh` now prints the reason to skip, or `false` to run. The toolkit mounts that only gave the Linux containers `pr_changed_files` are removed; Lint keeps its mount for the cache helpers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@iangmaia
iangmaia force-pushed the iangmaia/skip-jobs-at-upload branch from a4d4bc1 to 702d916 Compare November 19, 2026 12:57
@iangmaia
iangmaia marked this pull request as ready for review November 23, 2026 14:18
@iangmaia
iangmaia requested a review from a team as a code owner November 23, 2026 14:18

@AliSoftware AliSoftware left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small needs, non-blockers, approving to unblock

Comment thread .buildkite/commands/should-skip-job.sh Resolved
Comment thread .buildkite/shared-pipeline-vars Resolved
Comment thread .buildkite/commands/should-skip-job.sh Resolved
@iangmaia
iangmaia requested a review from a team November 23, 2026 17:12
@iangmaia
iangmaia merged commit d89127a into trunk Nov 23, 2026
12 checks passed
@iangmaia
iangmaia deleted the iangmaia/skip-jobs-at-upload branch November 23, 2026 19:32
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.

2 participants