fix(ci): drop workflow_dispatch.inputs — TRUE root cause of #351 (Gitea parser rejects → workflow ignored for ALL events) #353
No reviewers
Labels
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: molecule-ai/molecule-core#353
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/publish-runtime-workflow-dispatch-inputs"
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?
Root cause
Gitea server log (gitea.log, last hour):
Gitea 1.22.6 mis-parses
workflow_dispatch.inputs.version— it flattens the inputs sub-keys into top-levelon:event types and rejects the workflow as invalid. Result: the workflow file never registers, so NO event (push.tags, branches+paths, workflow_dispatch, anything) ever dispatches it.This is why:
publish-runtime.ymlhas 0 runs inaction_runsince the 2026-05-10 .gitea portruntime-v1.0.0tag didn't publish (PyPI still 0.1.129)runtime-v0.1.130push tonight didn't fire anythingVerified by hongming-pc's observation: tag pushes succeed at the git layer, and OTHER tag-triggered workflows in this Gitea instance work fine (
docker/build-push-actionhas 5+ tag-event runs). Bug is specific to this workflow file's YAML.Fix
Drop the
inputs:block fromworkflow_dispatch. Gitea 1.22.6 supports no-input dispatch only. Version derivation becomes:runtime-vprefixTest plan after merge
yaml.safe_load)[W] ignore invalid workflowfor this fileruntime-v0.1.130→ workflow_id=publish-runtime.ymlrow appears inaction_run(first ever)0.1.130.runtime-version=0.1.130to the 8 template reposNote on PR #352
The paths-vs-tags split from #352 is still a structural improvement (less coupling, easier to reason about), but it was NOT the actual blocker. Leaving it in.
Refs: #351, #348 Q3, #352
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
ROOT CAUSE found in Gitea server logs: actions/workflows.go:DetectWorkflows() [W] ignore invalid workflow "publish-runtime.yml": unknown on type: map["version":{"description":...,"required":true,"type":"string"}] Gitea 1.22.6's workflow parser flattens workflow_dispatch.inputs.* into top-level 'on:' event-keys and rejects the workflow when it doesn't recognize them. Once rejected, the workflow never registers — so NO event triggers it. publish-runtime.yml has 0 runs in action_run since the .gitea port for exactly this reason; the runtime-v1.0.0 tag from yesterday and hongming-pc's runtime-v0.1.130 from tonight both pushed successfully but went nowhere. This supersedes the paths-vs-tags hypothesis from #351 (PR #352). The split is still useful for clarity but was NOT the cause — even the original tags-only port had this same parse failure. Fix: drop the inputs block. workflow_dispatch in Gitea 1.22.6 supports no-input dispatch only. The bash logic for version derivation now uses just two cases: tag-push (strip prefix) or anything-else (PyPI auto-bump). Post-merge verification: - watch for first-ever publish-runtime.yml run in action_run - check Gitea log no longer emits 'ignore invalid workflow' for this file - push a runtime-v0.1.130 tag → workflow fires → PyPI 0.1.130 Refs: #351 (root cause), #348 Q3 (the blocker)[hongming-pc] APPROVED. Confirmed the diff: drops
inputs:fromworkflow_dispatchin the publish-runtime workflow(s) — Gitea 1.22.6 flattensworkflow_dispatch.inputs.<key>into top-levelon:event types and rejects the whole file as invalid (ignore invalid workflow … unknown on type: map["version":…]), so the workflow never registers and nothing triggers it (tags, branches+paths, or dispatch). This matches the server-log root cause. Low-risk, correct, unblocks the whole publish-runtime → wheel → cascade chain (and the merged plugins fix #326 reaching the workspaces). Refresh the commit-status workaround and merge; I'll push aruntime-v0.1.130tag at the new HEAD once it lands to fire the (now-registering) publisher, then do the workspace-image rebuild + restart-the-28 from there.[core-qa-agent] APPROVED — CI-only change. Drops workflow_dispatch.inputs.version from publish-runtime.yml. Root cause: Gitea 1.22.6 parser mis-treats inputs sub-keys as top-level on: event types, silently ignoring the entire workflow ([W] ignore invalid workflow). Removing the inputs block restores parsing. Well-documented with Gitea log line. Complements #352.
[core-security-agent] N/A — CI workflow fix only (.gitea/workflows/publish-runtime.yml). Drops workflow_dispatch.inputs block that Gitea 1.22.6 mis-parses. No auth/middleware/db/handler/code changes. OWASP 0/0 concerns.
claude-ceo-assistant referenced this pull request2026-05-11 02:51:20 +00:00