fix(autobump): trigger on scripts/build_runtime_package.py changes #1580
Reference in New Issue
Block a user
Delete Branch "fix/autobump-trigger-include-build-script"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Cure for the autobump-blind-spot found in commit
a05add29.mc#1578 (commit
1278d57c) pinnedpython-multipart>=0.0.27to fix the PDF/multipart chat-upload P0. The pin lives inscripts/build_runtime_package.py(PYPROJECT_TEMPLATE.dependencies), which IS publish-affecting. Butpublish-runtime-autobump.ymlonly triggered onworkspace/**, so the autobump never fired and no newruntime-v$VERSIONtag was claimed at merge.Someone then hand-tagged
runtime-v0.1.18to force the publish. That collided with the existing PyPI 0.1.18 from 2026-04-27, sopublish-runtime.ymlfailed twine-upload and the PDF P0 cure never reached prod.Change
+10 / -0in.gitea/workflows/publish-runtime-autobump.yml:on.pull_request.paths-> addscripts/build_runtime_package.pyandscripts/test_build_runtime_package.pyon.push.paths(main/staging) -> same two pathsInline comment cites mc#1578 / a05add29 / the 0.1.18 collision so the rationale survives the next reader.
Stale tag -
runtime-v0.1.18Tag SHA:
b27028306d89233b6447861b41459682f13ec99d-> commit1278d57c(mc#1578 merge).It can never publish to PyPI (0.1.18 already exists, twine 409s). Two options:
DELETE /repos/molecule-ai/molecule-core/tags/runtime-v0.1.18. Clean state; next autobump-driven tag is unambiguous.Do not execute either until a reviewer approves in a PR comment. Default-recommend: delete.
Out of scope (deliberately)
runtime-v*tag - gated on (a) this PR merging AND (b) CTOPYPI_TOKENrotation. After both, push a no-op edit toscripts/build_runtime_package.py(orworkspace/**) on main and the autobump will claim the next version itself; orworkflow_dispatchpublish-runtime-autobump.runtime-v*tags today, so there's no script-level guard to add. The only durable guard is the PyPI-collision check already insidebump-and-tag(lines 137-140 pre-this-PR).Test plan
tests/test_lint_workflow_yaml.pypasses)PYPI_TOKENrotation: any PR that touchesscripts/build_runtime_package.pytriggerspublish-runtime-autobump / pr-validatebump-and-tagruns and pushesruntime-v$NEXT(where NEXT > max(PyPI-latest, in-repo tag-latest))publish-runtime.ymlfires on the tag push and uploads to PyPIDELETE /repos/molecule-ai/molecule-core/tags/runtime-v0.1.18APPROVE — trivial +10/-0 trigger-paths addition in publish-runtime-autobump.yml. Mechanical and low-risk; closes the autobump-blind-spot for scripts/build_runtime_package.py. Stale runtime-v0.1.18 tag delete: APPROVE — PyPI 0.1.18 already published, in-repo tag can never publish; deleting clears ambiguity. Proceed with DELETE /repos/molecule-ai/molecule-core/tags/runtime-v0.1.18 post-merge.
APPROVE — trivial +10/-0 trigger-paths addition in publish-runtime-autobump.yml. Mechanical and low-risk; closes the autobump-blind-spot for scripts/build_runtime_package.py. Stale runtime-v0.1.18 tag delete: APPROVE — PyPI 0.1.18 already published, in-repo tag can never publish; deleting clears ambiguity. Proceed with DELETE /repos/molecule-ai/molecule-core/tags/runtime-v0.1.18 post-merge.
APPROVE — trivial +10/-0 trigger-paths addition in publish-runtime-autobump.yml. Mechanical and low-risk; closes the autobump-blind-spot for scripts/build_runtime_package.py. Stale runtime-v0.1.18 tag delete: APPROVE — PyPI 0.1.18 already published, in-repo tag can never publish; deleting clears ambiguity. Proceed with DELETE /repos/molecule-ai/molecule-core/tags/runtime-v0.1.18 post-merge.