CI never runs on a push to the default branch (a-publier) #278

Closed
opened 2026-11-26 18:50:58 +00:00 by itsonewi · 0 comments
itsonewi commented 2026-11-26 18:50:58 +00:00 (Migrated from github.com)
Contributor

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by itsonewi on 2026-11-26T18:50:58Z.


What happens

.github/workflows/ci.yml:3-6 runs on pull_request and on push to main only:

on:
  pull_request:
  push:
    branches: [main]

The repository's default branch is a-publier, and that is where the work lands: its last five commits are from 2026-11-26 (latest 17:50Z, "PC FidelityFX FSR 4.1.2 to 4K"), while main's last commit is 2026-11-25 20:56Z. Of the last 30 workflow runs, every one has a pull-request head branch; none is a-publier.

So a commit pushed straight to the branch everyone builds from runs no Clippy, no tests and no repository_passes_policy (xtask/src/policy.rs), and nothing says so. PRs still get CI, but the 15 open PRs I sampled target main or rx9070xt, so the checks that do run are run against a branch that is a day behind the code being shipped.

Why it matters

Pushes and merges to the default branch are what users build from. A failing test, a Clippy break or an asset-policy violation can land there and the history stays green.

Suggested fix

Add the branches that receive pushes to push.branches, or drop the filter (push:) and let concurrency: cancel-in-progress handle the cost.

AI use

Found by reading .github/workflows/ci.yml, the repository's default branch and recent commits, and the Actions run list through the GitHub API. No code was built or run.

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:issue:6633181999 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/issues/278). Originally posted by [itsonewi](https://github.com/itsonewi) on 2026-11-26T18:50:58Z. --- ## What happens `.github/workflows/ci.yml:3-6` runs on `pull_request` and on `push` to `main` only: ```yaml on: pull_request: push: branches: [main] ``` The repository's default branch is `a-publier`, and that is where the work lands: its last five commits are from 2026-11-26 (latest 17:50Z, "PC FidelityFX FSR 4.1.2 to 4K"), while `main`'s last commit is 2026-11-25 20:56Z. Of the last 30 workflow runs, every one has a pull-request head branch; none is `a-publier`. So a commit pushed straight to the branch everyone builds from runs no Clippy, no tests and no `repository_passes_policy` (`xtask/src/policy.rs`), and nothing says so. PRs still get CI, but the 15 open PRs I sampled target `main` or `rx9070xt`, so the checks that do run are run against a branch that is a day behind the code being shipped. ## Why it matters Pushes and merges to the default branch are what users build from. A failing test, a Clippy break or an asset-policy violation can land there and the history stays green. ## Suggested fix Add the branches that receive pushes to `push.branches`, or drop the filter (`push:`) and let `concurrency: cancel-in-progress` handle the cost. ## AI use Found by reading `.github/workflows/ci.yml`, the repository's default branch and recent commits, and the Actions run list through the GitHub API. No code was built or run.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Belobug/VIctory-Belobug-AMD#278
No description provided.