Skip to content

[ALFMOB-423] Run CI once per push - #82

Draft
amccall-mindera wants to merge 1 commit into
mainfrom
task/ALFMOB-423-ci-single-run
Draft

[ALFMOB-423] Run CI once per push#82
amccall-mindera wants to merge 1 commit into
mainfrom
task/ALFMOB-423-ci-single-run

Conversation

@amccall-mindera

@amccall-mindera amccall-mindera commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

What

Remove the push trigger from .github/workflows/ci.yaml so CI runs once per push instead of twice. run-smoke-tests is simplified to a constant true.

Why

ci.yaml fired on both push (branches-ignore: main, release/**) and pull_request. Any branch with an open PR therefore ran the reusable test-and-lint workflow twice on every push:

  • push run → lint + unit + coverage, integration skipped (~4 min)
  • pull_request run → all of the above plus smoke integration tests (~9 min)

The pull_request run is a strict superset, so the push run was fully redundant whenever a PR was open — it only added value before a PR existed, and draft PRs already trigger pull_request. Post-merge validation on main/release/** is handled by cd.yaml (on: push), so nothing is lost there.

How

  • ci.yaml now triggers on pull_request only.
  • run-smoke-tests: ${{ github.event_name == 'pull_request' }}run-smoke-tests: true (the event is always pull_request now, so the conditional was dead).

Test

  • Open this PR → exactly one test-and-lint run should appear (the pull_request one), and it should run the smoke integration tests.
  • Confirm no second run is queued for the push event.
  • cd.yaml is untouched; push-to-main/release behaviour is unchanged.

Trade-off (accepted, per ticket): a branch gets no CI until a PR — including a draft — is opened.

See

Link to JIRA: ALFMOB-423

ci.yaml fired on both push and pull_request, running test-and-lint
twice for any branch with an open PR. The pull_request run is a strict
superset (it also runs smoke integration tests), so the push run was
fully redundant. Rely on pull_request only; cd.yaml still covers
push-to-main/release. run-smoke-tests is now always true.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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