Skip to content

ci: split Fleet status so no job is skipped - #94

Merged
askalf merged 1 commit into
mainfrom
batch/2026-09-26-fleet-split
Sep 26, 2026
Merged

askalf merged 1 commit into
mainfrom
batch/2026-09-26-fleet-split

Conversation

@askalf

@askalf askalf commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Fleet status ran three jobs from one workflow: status, self-test (pull_request only) and backfill (workflow_dispatch only). Every pull_request_review, issue_comment and workflow_run event therefore added two skipped checks to the PR. This splits it so each workflow runs one job on each event it fires on.

Changes:

  • fleet-status.yml keeps only the status job and its triggers, minus workflow_dispatch. Its workflow_run list gains "Fleet status self-test", because that workflow runs on pull requests like every other workflow the list names.
  • fleet-status-self-test.yml (new, "Fleet status self-test") runs the self-test job on pull requests that change a file its tests read: the fleet-status script, its test, or a workflow file (the test checks every workflow's triggers against the workflow_run list). self-test is not a required check on the default branch here, so a PR outside those paths simply has no self-test run. The required checks are unchanged.
  • fleet-status-backfill.yml (new, "Fleet status backfill") holds the manual backfill job, workflow_dispatch only.
  • The fleet-status test reads the backfill limits from the new backfill file.

fleet/verify and fleet/review are commit statuses posted by the script, which is unchanged, so no required check changes name. The test passes and the workflows pass actionlint.

The self-test and backfill jobs shared a workflow with the status job, so
every review, comment and workflow_run event added two skipped checks to
the PR. Each now has its own workflow with only the trigger it runs on.
self-test runs only when a PR changes a file its tests read, and the
status workflow re-posts the lanes when it completes.

@sprayberry-redline sprayberry-redline left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Verdict: approve. Moves the self-test and backfill jobs into their own workflows with only the trigger each runs on, so the status workflow's review, comment and workflow_run events no longer produce skipped checks. The moved jobs are byte-for-byte the old ones with the same scoped permissions and pinned actions; the new self-test workflow triggers on pull_request and is added to the status workflow's workflow_run list, which is exactly what the existing trigger test enforces, and the backfill limit test now reads the file the backfill lives in.

@github-actions github-actions Bot added github_actions Pull requests that update GitHub Actions code size/M 50-199 hand-written lines labels Sep 26, 2026
@askalf
askalf merged commit 9fef832 into main Sep 26, 2026
11 checks passed
@askalf
askalf deleted the batch/2026-09-26-fleet-split branch September 26, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code size/M 50-199 hand-written lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants