Skip to content

fix(ci): restrict nightly failure alert to main branch at workflow level - #888

Merged
janzak-dev merged 1 commit into
mainfrom
fix/nightly-alert-main-only
Sep 15, 2026
Merged

janzak-dev merged 1 commit into
mainfrom
fix/nightly-alert-main-only

Conversation

@janzak-dev

Copy link
Copy Markdown
Collaborator

Summary

Restricts the nightly failure reporting and OWNERS alert job in the nightly test suite workflow to run exclusively on the `main` branch.

Motivation & Context

When developers trigger or test the `nightly-test-suite.yml` workflow on feature branches (e.g. via manual `workflow_dispatch`), downstream job failures or cancellations should not alert repository OWNERS or create/comment on production GitHub issues. Adding `github.ref == 'refs/heads/main'` to the `report-nightly-failure` job condition ensures the reporting job is cleanly skipped at the GitHub Actions scheduler level for all non-main workflow executions.

Key Changes

  • Updated `.github/workflows/nightly-test-suite.yml` `report-nightly-failure` job `if:` condition to enforce `github.ref == 'refs/heads/main'`.

Assumptions

None — requirements were fully specified.

Verification & Testing

  • Node Unit Tests: `node --test .github/scripts/*.test.js` (157 passing across 10 suites).
  • Pre-Commit Checks: Passed all formatting, linting, Go test determinism, and license checks.

Related Issues / Bugs

Related to #887

TAG=agy
CONV=acf882de-1561-404c-ba2e-ae0940451165

Add `github.ref == 'refs/heads/main'` to the `report-nightly-failure`
job condition in `.github/workflows/nightly-test-suite.yml` so that
manual `workflow_dispatch` runs or tests on feature branches do not
erroneously alert repository OWNERS or create failure issues.

TAG=agy
CONV=acf882de-1561-404c-ba2e-ae0940451165
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@janzak-dev
janzak-dev requested a review from AntonTyb September 15, 2026 15:19
@janzak-dev
janzak-dev marked this pull request as ready for review September 15, 2026 15:19
@janzak-dev
janzak-dev added this pull request to the merge queue Sep 15, 2026
Merged via the queue into main with commit 0edba95 Sep 15, 2026
12 checks passed
@janzak-dev
janzak-dev deleted the fix/nightly-alert-main-only branch September 15, 2026 15:40
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