Skip to content

ci: Run Test Alerts on every pull request, so it can be required - #650

Merged
vvoytovych merged 1 commit into
mainfrom
ci/test-alerts-required
Nov 12, 2026
Merged

vvoytovych merged 1 commit into
mainfrom
ci/test-alerts-required

Conversation

@vvoytovych

@vvoytovych vvoytovych commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #647, from its review. The Test Alerts workflow has a paths filter, so it cannot be a required check. GitHub says that checks of a workflow skipped by a paths filter "stay in a "Pending" state and block merging" (Handling skipped but required checks). So today a change to an alert can still merge with its test red. This PR lets the check be required.

Summary

  • The paths filter is gone. The alert-rule tests run on every pull request and every push to main.
  • The cost is small. A Test Alerts run takes 11–13 s, and the CI workflow takes 5–7 minutes on each pull request. So the filter saved little time.

Test plan

  • actionlint reports no problem.
  • This PR's own Test Alerts run is green.

Merge danger

A two-way door: a revert restores the paths filter. The test steps do not change.

To the build team: after this merges, can Test Alerts / test-alerts join required-ci?

Related to #647

A required check that a paths filter skips stays pending, so the path-filtered
workflow could not be required. The filter is removed: the alert-rule tests
run on every pull request and every push to main. A run takes 11-13 s, against
5-7 minutes for the main CI workflow, so the filter saved little.
@vvoytovych vvoytovych self-assigned this Nov 12, 2026
@vvoytovych
vvoytovych marked this pull request as ready for review November 12, 2026 18:56
@vvoytovych
vvoytovych requested a review from a team as a code owner November 12, 2026 18:56
@vvoytovych
vvoytovych requested a review from ecv November 12, 2026 18:56

@ecv ecv 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.

Approve.

Dropping the paths filter lets the alert tests become a required check, so a red alert test can no longer merge. All checks pass at this head, and test-alerts ran green on a PR that touches no alert file.

  • The check reports as test-alerts (the job name). That is the name to add to required-ci.

@vvoytovych
vvoytovych merged commit 46d0be7 into main Nov 12, 2026
14 checks passed
@vvoytovych
vvoytovych deleted the ci/test-alerts-required branch November 12, 2026 19:16
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