Skip to content

Release: CI reliability fixes (docs notification token, sync-develop race) - #419

Merged
neuromechanist merged 6 commits into
mainfrom
develop
Sep 19, 2026
Merged

neuromechanist merged 6 commits into
mainfrom
develop

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Summary

Release PR bringing develop up to main. Merging strips the .dev suffix and ships 0.8.11.

Test plan

  • Both workflow files validated (YAML parse, shellcheck on extracted run blocks)
  • notify-docs.yml fix verified live: re-ran both previously-failed runs from the v0.8.10 release, both now succeed with the token in place
  • sync-develop.yml fix reviewed (pr-review-toolkit), one Important finding fixed before merge
  • sync-develop.yml's race fix has not been exercised against a live double-trigger yet - this release itself is the first real test, since it will trigger tag-release.yml twice the same way v0.8.10 did

github-actions Bot and others added 6 commits September 19, 2026 21:00
…p-after-v0.8.10

chore: sync develop with main after v0.8.10
…418)

* fix(ci): stop sync-develop.yml from racing itself into duplicate PRs

Tag and Release fires twice per release (issue #417): once for the release
PR's merge commit into main (still .dev-suffixed, so it no-ops but still
reports success), and once for ensure-stable-version.yml's strip commit
that actually creates the tag. Both trigger this workflow via workflow_run,
and its only existing guard (check for an open PR with the sync branch
name) races: the first run can merge and close its PR before the second
run's check even runs, so the second run creates a fresh branch/PR instead
of finding nothing to reuse - producing two competing PRs (#415, #416 on
the v0.8.10 release; same pattern on the prior 09-17 release too).

Adds two layers:
- concurrency: group: sync-develop serializes the two triggered runs
  instead of letting them race, so the second only starts once the first
  has fully finished.
- A ground-truth ancestry check (git merge-base --is-ancestor origin/main
  origin/develop) added to "Fetch main and validate version", re-fetching
  develop fresh at that point rather than trusting the earlier checkout.
  Once the first run's serialized, the second run's fresh fetch correctly
  sees main is already merged and exits cleanly - no PR, no branch push.

* fix(ci): dedupe notify-docs.yml's double dispatch during a release

Same root cause as the sync-develop.yml fix (issue #417): two commits touch
main within seconds during every release, so this fires twice, sending the
documentation repo two osa-updated dispatches for what's semantically one
release. Unlike sync-develop.yml, this job has no stateful git work to
protect - it's a single idempotent repository_dispatch call - so
cancel-in-progress: true is the right choice: a stale in-flight dispatch
for an older commit gets cancelled when a newer push arrives, and only the
latest commit's notification actually goes out.

* fix(ci): reset local develop checkout before merging, not just checking

Review of the previous commit found a real gap: the ancestry check
re-fetches origin/develop fresh, but the merge step right after it still
operated on the local develop branch checked out several steps earlier
(before Python/uv setup and git-identity config ran) - never re-pointed at
that fresh fetch. So the check and the merge could observe two different
states of develop if any commit landed on it in that window, undermining
the freshness the previous commit's comment claimed. `git reset --hard
origin/develop` right before the merge closes that gap: the merge now
always operates on exactly what the ancestry check just validated.
@neuromechanist
neuromechanist merged commit 34ce916 into main Sep 19, 2026
26 checks passed

This branch was previously deployed

1 inactive deployment
testpypi — 1786be31 Deployed Sep 19, 2026 by neuromechanist via Publish to TestPyPI #66
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