You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build-pypilibrary-task.yml: PEP 440 version comment overstates 'develop sorts above main' #181
Surfaced in the Copilot review of #180 (develop → main promotion). Minor doc/comment accuracy gap — no functional impact; tracking it here to fold into the next develop change rather than spinning a dedicated PR for a one-line comment.
File
.github/workflows/build-pypilibrary-task.yml, the "Compute the PEP 440 version step" comment:
# Compute the PEP 440 version string: main -> M.N.P.B (release), develop -> M.N.P.B.dev0. BuildNumber stays in the
# release segment so develop sorts above main and `pip install --pre` picks the dev build while plain `pip install`
# picks the main release. Other branches (PR smoke, feature) use M.N.P.B as-is and never publish.
Gap
"develop sorts above main" is stated as always true. It holds in steady state (develop's NBGV git height exceeds main's, so M.N.P.Hdev.dev0 > M.N.P.Hmain). But immediately after a develop -> main promotion, main gains the merge commit and its height catches up to (or passes) develop's, so develop's .dev0 prerelease sorts below the main release — pip install --pre resolves to the main release until the next develop commit lands. The behavior is correct; the comment just overstates the invariant.
Suggested fix
Note the transient exception in the comment, e.g.:
# Compute the PEP 440 version string: main -> M.N.P.B (release), develop -> M.N.P.B.dev0. BuildNumber (NBGV git height)
# is in the release segment, so in steady state develop's height exceeds main's and `pip install --pre` picks the dev
# build while plain `pip install` picks the main release. (Transient exception: right after a develop -> main promotion
# main's height catches up, so `--pre` can resolve to the main release until the next develop commit.) Other branches
# (PR smoke, feature) use M.N.P.B as-is and never publish.
Priority
Low — comment-only clarification. Bundle into the next develop PR that touches this area.
Activity
Guard release publish against non-default-ref dispatch mis-versioning (…
Guard release publish against non-default-ref dispatch mis-versioning (…