Skip to content

ci: run Rust Core CI on push to main, not just PRs - #82

Merged
Brian Krabach (bkrabach) merged 1 commit into
mainfrom
fix/run-ci-on-main-push
May 18, 2026
Merged

ci: run Rust Core CI on push to main, not just PRs#82
Brian Krabach (bkrabach) merged 1 commit into
mainfrom
fix/run-ci-on-main-push

Conversation

@bkrabach

Copy link
Copy Markdown
Collaborator

Problem

The Rust Core CI workflow only triggers on pull requests and pushes to the rust-core branch. Pushes to main (merge commits, admin pushes, reverts, dependabot auto-merges) do not run CI.

This is how main went silently red after IT's wasmtime auto-fix in #74: the bump landed via dependabot auto-merge, no CI ran on the merge commit, and the breakage stayed hidden until the next PR (#79) opened and inherited the failed state.

Fix

One line — add main to the push branches:

on:
  push:
    branches: [rust-core, main]   # was: [rust-core]
  pull_request:
    branches: [rust-core, main]

Effect

Future direct pushes to main run a full CI cycle on the new HEAD. Regressions are caught immediately, not at the next PR open.

Note

This is a small .github/workflows change — no Rust or Python code touched. CI on the PR will run via the existing pull_request trigger before this change lands. After merge, the next push to main will exercise the new push: main trigger.

The workflow was only triggered on pull_request and push to rust-core.
This meant when main went red — as happened after IT's wasmtime
auto-fix in #74 — there was no signal until the next PR opened.

Add 'main' to the push branches so any direct push (merge, admin push,
revert) triggers a full CI run on the new HEAD. Catches future
regressions immediately.

Co-authored-by: Amplifier <amplifier@microsoft.com>
@bkrabach
Brian Krabach (bkrabach) merged commit 9d22129 into main May 18, 2026
6 checks passed
@bkrabach
Brian Krabach (bkrabach) deleted the fix/run-ci-on-main-push branch May 18, 2026 15:24
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