Skip to content

fix: run CI once per push to main to avoid coverage branch race - #257

Merged
bmtcril merged 2 commits into
mainfrom
fix/ci-coverage-race
Oct 2, 2026
Merged

bmtcril merged 2 commits into
mainfrom
fix/ci-coverage-race

Conversation

@bmtcril

@bmtcril bmtcril commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

This got broken in #253 . Release already calls ci.yml via workflow_call, so the separate push trigger ran the coverage action twice concurrently, and both runs pushed to the coverage data branch. Also add the missing coverage_comment step id so the PR comment artifact is actually uploaded.

@bmtcril
bmtcril requested review from farhan and feanil October 2, 2026 18:16
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@bmtcril
bmtcril merged commit b1d0012 into main Oct 2, 2026
7 checks passed
@bmtcril
bmtcril deleted the fix/ci-coverage-race branch October 2, 2026 19:03
farhan added a commit to farhan/django-wiki that referenced this pull request Oct 6, 2026
release.yml calls ci.yml via workflow_call, so keeping a separate
push: trigger in ci.yml would fire CI twice on every merge — both
concurrent runs race to update the coverage data branch. Removing the
push: block from ci.yml is sufficient; release.yml's workflow_call
covers pushes to the default branch.

Same race-condition bug fixed in
openedx/platform-plugin-aspects#257.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
farhan added a commit to farhan/farhan-agent-skills that referenced this pull request Oct 6, 2026
…0 and Test#445

Test#180 now verifies release.yml's push branch matches the repo's
actual default branch (via gh repo view) and flags the mismatch with
a concrete fix instruction. Repos like django-wiki use edx_release,
not master, so the standard template would silently never release.

Test#445 gains a note that a dead push trigger (wrong branch name)
masks the double-run bug — both tests must be fixed together when the
default branch is not master. References:
- openedx/platform-plugin-aspects#257 (original double-run fix)
- openedx/django-wiki#329 (first non-master default branch case)

Co-Authored-By: Claude Sonnet 4.6 <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.

2 participants