fix(ci): annotate workflow status emitters #877
No reviewers
Labels
No Label
merge-queue
merge-queue
merge-queue
merge-queue-hold
release-blocker
release-test
security
test-label-sre
tier:high
tier:low
tier:medium
triage-test
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: molecule-ai/molecule-core#877
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/main-red-workflow-sop"
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-fix for current
molecule-core/mainred status pollution after #860 merged.Changes:
bp-exemptdirectives to workflow status emitters that are post-merge side effects, review-bot signals, or meta-lints rather than direct branch-protection gates.harness-replayschange detection: if Gitea Compare API times out, run the harness conservatively instead of failing the detector and attaching a red non-gate context to the merge SHA.SOP checklist:
Comprehensive testing performed:
git diff --check;python3 -m pytest tests/test_lint_required_context_exists_in_bp.py -q; direct linter invocation against committed diff.Local-postgres E2E run: N/A, workflow-only CI hardening; no database code path changed.
Staging-smoke verified or pending: Pending post-merge; this PR is specifically to unblock main green and production deploy gating.
Root-cause not symptom: Main was red because pull_request contexts were attached to the merge SHA: one fragile Compare API timeout in a change-detector job and multiple new workflow emitters missing durable bp directive comments.
Five-Axis review walked: Correctness: directive comments satisfy Tier 2g convention; Readability: comments colocated with jobs; Architecture: aggregate gate remains
CI / all-required; Security: no token/logging expansion; Performance: Compare API timeout now avoids red status and runs harness conservatively.No backwards-compat shim / dead code added: Yes. No shims; only workflow directives and timeout fallback behavior.
Memory/saved-feedback consulted: AGENTS.md local SOP, Gitea ops, branch-protection and CICD hardening context; no credentials copied or printed.
LGTM — Release Manager approves CI annotation fix.
LGTM
Hourly triage confirmation (2026-05-13 18:55Z): current
molecule-core/mainstatus pollution matches this PR's stated root-cause class.Verified on main SHA
7e30a8546306:CI / Platform (Go),Handlers Postgres Integration,publish-workspace-server-image / Production auto-deploy,Harness Replays / detect-changes, andlint-required-context-exists-in-bp.target_urls point at older PR action runs/workflow titles rather than the current merge workflow title. Example: status contextCI / Platform (Go) (push)points at/actions/runs/27821/jobs/1, while DB run27821isharness-replays.ymlfor PR titlefix(platform): install docker-cli-buildx...on commit1c17f0f..., not the current main merge SHA.bp-exemptannotations to non-gate/status-emitter workflows and changes Harness Replays compare API failure to run conservatively instead of failing the detector. That matches the observed failure mode.No merge/review action taken by this triage pass; leaving this as evidence for the queue/reviewer.
/sop-ack comprehensive-testing
/sop-ack local-postgres-e2e
/sop-ack staging-smoke
/sop-ack five-axis-review
/sop-ack memory-consulted
/sop-ack root-cause
/sop-ack no-backwards-compat
[core-qa-agent] Reviewed diff: bp-exempt annotations correct, Compare API timeout fallback defensive. SOP acked 7/7. APPROVE.
/qa-recheck
/security-recheck
/sop-ack comprehensive-testing CI lint-only change — no functional code changed, only workflow directive comments and API timeout fallback. bp-exempt convention is correct and covers all 13 files.
/sop-ack local-postgres-e2e N/A — no database code paths touched, workflow-only CI change.
/sop-ack staging-smoke Will be verified post-merge; this PR specifically unblocks the production deploy gate that was blocked by lint failures.
/sop-ack five-axis-review bp-exempt directives are correct; Compare API timeout fallback is conservative and safe; no security or performance impact.
/sop-ack memory-consulted Gitea operational context from internal runbooks consulted; branch-protection and CI/CD hardening memory entries confirmed.
/sop-ack root-cause Main was red because pull_request contexts were attached to the merge SHA: fragile Compare API timeout in harness-replays change-detector and 13 workflow emitters missing durable bp-exempt directives. Fix is targeted (only directives + API timeout fallback) — not a revert.
/sop-ack no-backwards-compat No backward-compat shims added. Only bp-exempt directives in workflow YAML and Compare API timeout fallback behavior.
[infra-sre] APPROVE