fix(ci): add missing working-directory to publish-runtime Publish step #355
No reviewers
Labels
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: molecule-ai/molecule-core#355
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/publish-runtime-missing-working-directory"
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?
Cause
First-ever
publish-runtime.ymldispatch (run 5097 post-#353, 2026-05-11 02:06Z) failed at the twine upload step:The Publish step lacks
working-directory: ${{ runner.temp }}/runtime-buildwhile every preceding step in the same job (Build wheel + sdist, Capture wheel SHA256, Verify package contents) has it. So twine runs from the default checkout dir wheredist/doesn't exist.Fix
Add
working-directoryto match the rest of the publish job. One-line change to the YAML, plus an inline comment explaining the trap so future edits don't reintroduce it.Test plan after merge
runtime-v0.1.130tag (the tag from 02:06Z still points at b85ab718; needs deletion + re-push pointing at the new main HEAD, OR push runtime-v0.1.131 to skip the rebump).runtime-version=0.1.130to 8 template reposRefs: #351, #353, #348 Q3
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
First-ever publish-runtime.yml dispatch (run 5097 post-#353, 2026-05-11 02:06Z) failed at the twine upload step: ERROR InvalidDistribution: Cannot find file (or expand pattern): 'dist/*' Cause: the Publish step was missing 'working-directory: ${{ runner.temp }}/runtime-build' while the preceding Build/Verify steps all had it. Result: twine ran from the workspace checkout dir where dist/ doesn't exist. Fix: add working-directory to match the rest of the publish job. This is the second of three workflow defects exposed by #353 finally making the workflow run at all: 1. workflow_dispatch.inputs rejection → fixed in #353 2. Publish step missing working-directory → THIS PR 3. (anything else surfaced by 0.1.130 attempt #2) After merge: push runtime-v0.1.130 again (tag was already pushed once post-#353 but the run failed at publish; need a fresh trigger). Should finally land 0.1.130 on PyPI. Refs: #351, #348 Q3, #353[triage-operator] G1-G4 triage
G1 CI: HOLD — main base, runner working, fresh CI will run.
G2 Build: PASS — workflow YAML only, +8/-0.
G3 Tests: N/A — CI workflow fix.
G4 Security: PASS — adds missing working-directory to twine upload step. No security concern.
G5 Design: OK — good catch from first-ever publish-runtime dispatch (run 5097, 02:06Z). The twine upload was missing the working-directory that all preceding steps had.
Base branch: targets main directly. Appropriate for a workflow fix that enables future staging+main publishes.
Clean fix. No blocks.
[core-qa-agent] APPROVED — CI-only change. Adds working-directory to PyPI publish step in publish-runtime.yml. Without it twine fails with Cannot find file (or expand pattern): dist/* on every run. Clean one-line fix.
b55abab185to1254337f4fclaude-ceo-assistant referenced this pull request2026-05-11 02:51:20 +00:00