CI doesn't run on PRs into feature branches, so fixes are only tested after they merge
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Read .github/workflows/ci.yml and check its existing push, pull_request, and concurrency settings. Update the pull request trigger so CI runs for every base branch while pushes remain limited to master; keep azure-deploy.yml unchanged. Done means this PR's checks show the four Python version jobs, as described in the issue.
Written by the indexing model from the issue text.
Description
Problem
.github/workflows/ci.yml (lint plus pytest on Python 3.11–3.14) triggers only on:
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
Release work happens on a feature branch (feat/pi-version-1-8-0), and fix PRs target that branch: 41 PRs have merged into it so far. Because those PRs don't target master, CI never runs on them. #456, #458 and #460, for example, show no checks at all, only CodeQL.
CI does check the feature branch indirectly, through the open release PR #433 (feat/pi-version-1-8-0 → master). Each merge into the feature branch updates #433, which starts a pull_request run. So each fix gets tested only after it has merged:
- A fix PR that breaks lint, breaks a test, or fails on a Python version the developer didn't test locally is merged anyway. The failure first shows up on #433, which is then red for every later fix until someone pushes a fix.
- Reviewers of a fix PR have no CI result to go on.
- A change to
ci.ymlitself, such as #460 addingscriptsto the lint step, can't be tested on its own PR.
Local pre-commit (ruff plus pytest on one Python version) is the only check before a merge, and it's opt-in per machine. It doesn't cover the 3.11–3.14 matrix.
Expected
Every PR runs CI before it merges, whatever its base branch.
Suggested fix
Run CI on pull requests to any branch, and keep pushes limited to master:
on:
push:
branches: ["master"]
pull_request:
Leaving out branches: under pull_request covers every base branch. Alternatively, list the patterns: branches: ["master", "feat/**", "fix/**", "release/**"].
Things to check:
- Concurrency: the group
${{ github.workflow }}-${{ github.ref }}is per PR ref (refs/pull/N/merge), so fix PRs don't cancel each other or #433's runs. - Cost: each fix PR adds one 4-version matrix run, about 30 s of tests per job. Pushes to feature branches still don't trigger a run, so this doesn't double up with #433.
azure-deploy.yml: it triggers on push tomasterandworkflow_dispatchonly, and should stay that way.- Verifying: the PR that makes this change targets
feat/pi-version-1-8-0and is the first fix PR to run CI under the new trigger. Its checks list should show the fourPython 3.xjobs.
Optional, separate decision
The repository ruleset (default) targets only the default branch and has no required status check. So even on master, a red CI run doesn't block a merge (CodeQL is enforced through the code_scanning rule). Making the Python 3.x jobs required, on master and on release feature branches if the ruleset is extended to them, would make CI a gate rather than a signal. That needs repo admin settings, not a code change.
Out of scope
- Changing the Python matrix or the test command.
- Adding
ruff format --checkto CI. Pre-commit runs it, CI doesn't.
- Dominant language
- Python
- Stars
- 7
- Forks
- 2
- Avg merge
- 3h 41m
- Merged PRs (30d)
- 59
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pendingintent/soa-workbench
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
pendingintent/soa-workbench#452 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
pendingintent/soa-workbench#453 ·
Maintainers usually reply within 1 day
-
Add Badges to READMEPossibly taken @pendingintent claimed this 17 days ago. Openenhancement
pendingintent/soa-workbench#401 · 1 assignee ·
Maintainers usually reply within 1 day
-
Add wizard driven help for end userPossibly taken @pendingintent claimed this 20 days ago. Openenhancement
pendingintent/soa-workbench#382 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Transfer repository ownershipMay be free again @pendingintent claimed this 31 days ago, and no pull request is open. Openenhancement
pendingintent/soa-workbench#379 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in pendingintent/soa-workbench
Similar issues
-
bug feature request
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Qiskit/qiskit-obp#156 ·
-
action-item enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
getcommunityone/open-navigator#1658 ·
Maintainers usually reply within 1 day
-
review-panel severity:low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kristovatlas/coin-accounting#636 ·
Maintainers usually reply within 1 day