Skip to content

ci(action-smoke): gate on pull_request to avoid false fail on main#13

Merged
lesnik512 merged 1 commit into
mainfrom
bugfix/action-smoke-pr-only
Jun 9, 2026
Merged

ci(action-smoke): gate on pull_request to avoid false fail on main#13
lesnik512 merged 1 commit into
mainfrom
bugfix/action-smoke-pr-only

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Why

#12 tightened action-smoke's assertion from non-empty to exact-equality on status=no-bump. That assertion holds for PR commits (non-merge tip → branch-prefix no-bump) but FAILS on push-to-main where the merge tip IS a feat//bugfix/ source → branch-prefix correctly returns created with bump=patch|minor. Concrete failure: run 27187224380, post-#12 main push, status=created bump=patch (the real 0.4.1 tag was created).

Fix

Gate the job on github.event_name == 'pull_request'. The PR-time regression-detection use case is preserved; the redundant main-push run goes away. The dogfood workflow (.github/workflows/semvertag.yml) already exercises uses: ./ end-to-end on every push to main, so coverage is unchanged.

Test plan

  • CI green on this PR (action-smoke runs, asserts no-bump, passes).
  • After merge: main's ci.yml fires lint + pytest matrix only — no action-smoke run, no false failure.

On push-to-main the merge tip IS a `feat/`/`bugfix/` source, so
branch-prefix returns `created` and `bump=patch|minor` — the tightened
no-bump assertions then fail by design. Coverage of that path lives in
the dogfood workflow (`.github/workflows/semvertag.yml`), which runs
the same `uses: ./` end-to-end on every push to main. Gating
action-smoke on `pull_request` keeps the assertion's intent (catch PR-
time regressions in action.yml's normalization) without colliding with
main's expected created-tag path.
@lesnik512 lesnik512 merged commit e97497c into main Jun 9, 2026
6 checks passed
@lesnik512 lesnik512 deleted the bugfix/action-smoke-pr-only branch June 9, 2026 06:09
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