Skip to content

ci: run the pipeline on pull requests only - #191

Merged
Sev7eNup merged 1 commit into
mainfrom
ci/drop-redundant-main-push-runs
Aug 12, 2026
Merged

ci: run the pipeline on pull requests only#191
Sev7eNup merged 1 commit into
mainfrom
ci/drop-redundant-main-push-runs

Conversation

@Sev7eNup

Copy link
Copy Markdown
Owner

Every change went through CI twice: once as a pull request, then again as the merge commit landing on main. The second run tests the tree the first one already covered — roughly 35 job-minutes per change, with both runs drawing on the same runner pool.

This drops the push: [main, master] trigger from ci.yml. The paths a pull request does not cover are handled elsewhere:

  • Direct pushes to main (release cuts) get workflow_dispatch for an on-demand run, and the nightly task already runs all four suites against main every day at 22:00.
  • CodeQL keeps its own push: [main] trigger. Only a run on the default branch updates the code-scanning dashboard, so that duplication is load bearing and stays.

The README badge is pinned to ?event=pull_request: without runs on the default branch, an unqualified badge has nothing to report.

While in that paragraph, two stale numbers: the pipeline description said three jobs and a 45 % coverage gate — it has been five jobs and 85 % line / 70 % branch since 2026-07-27.

Every change went through CI twice: once as a pull request, then again as the
merge commit landing on main. The second run tests the tree the first one
already covered — roughly 35 job-minutes per change, with both runs drawing on
the same runner pool.

Drop the `push: [main, master]` trigger. The paths a pull request does not
cover are handled elsewhere:

  - Direct pushes to main (release cuts) get `workflow_dispatch` for an
    on-demand run, and the nightly task already runs all four suites against
    main every day at 22:00.
  - CodeQL keeps its own `push: [main]` trigger. Only a run on the default
    branch updates the code-scanning dashboard, so that duplication is load
    bearing and stays.

The README badge is pinned to `?event=pull_request`: without runs on the
default branch an unqualified badge has nothing to report. While there, the
pipeline description was three jobs and a 45 % coverage gate — it is five jobs
and 85 % line / 70 % branch since 2026-07-27.
@Sev7eNup
Sev7eNup merged commit c8162a8 into main Aug 12, 2026
6 of 7 checks passed
@Sev7eNup
Sev7eNup deleted the ci/drop-redundant-main-push-runs branch August 12, 2026 20:37
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.

1 participant