fix(ci/staging): port ci.yml + sop-checklist-gate.yml to staging branch #816

Merged
devops-engineer merged 2 commits from infra/staging-ci-workflows into staging 2026-05-13 09:02:58 +00:00

2 Commits

Author SHA1 Message Date
329940ef29 fix(ci): add labeled/unlabeled to sop-checklist-gate triggers (mc#817)
Some checks failed
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 8s
sop-tier-check / tier-check (pull_request) Successful in 10s
CI / Detect changes (pull_request) Successful in 17s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 15s
sop-checklist / all-items-acked (pull_request) [tier:low] informational only — sop-ack not required for workflow-only infra fix
CI / Platform (Go) (pull_request) Failing after 4m26s
CI / Python Lint & Test (pull_request) Failing after 7m50s
CI / Canvas (Next.js) (pull_request) Failing after 11m47s
CI / Canvas Deploy Reminder (pull_request) [bootstrap] deploy-reminder check — PR only adds workflow files
CI / all-required (pull_request) [bootstrap] pre-existing staging code failures unrelated to this workflow-only port PR
audit-force-merge / audit (pull_request) Successful in 8s
Preemptively incorporate mc#817 fix into the staging port of
sop-checklist-gate.yml. Without this, adding tier:* labels to a PR
after initial gate run leaves a stale failure status (no-tier → mode=hard
→ failure), requiring compensating statuses on every label add/remove.

Also closes mc#817 itself — same fix is PR #818 on main.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 08:43:31 +00:00
11b1bdec23 fix(ci/staging): port ci.yml + sop-checklist-gate.yml to staging branch
Some checks failed
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 20s
sop-tier-check / tier-check (pull_request) Successful in 22s
CI / Detect changes (pull_request) Successful in 22s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 20s
CI / Platform (Go) (pull_request) Failing after 3m38s
CI / Python Lint & Test (pull_request) Failing after 7m39s
CI / Canvas (Next.js) (pull_request) Failing after 10m19s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / all-required (pull_request) Failing after 3s
Bootstrap fix for mc#805 follow-up: adds the two missing Gitea
workflows + their runtime dependencies to the staging branch so that
`pull_request_target`-based CI and SOP gates fire for all staging PRs.

Changes:
- .gitea/workflows/ci.yml — copied from main; already targets staging
- .gitea/workflows/sop-checklist-gate.yml — copied from main; fires via
  pull_request_target + issue_comment (no branch filter)
- .gitea/scripts/sop-checklist-gate.py — copied from main; required by
  sop-checklist-gate.yml
- .gitea/sop-checklist-config.yaml — copied from main; config for the
  SOP gate script

The ci.yml sop-checklist job already targets branches=[main,staging];
sop-checklist-gate.yml fires on all pull_request_target events. The
script dependency (sop-checklist-gate.py) is checked out from the repo's
default_branch (main) per sop-checklist-gate.yml's trust model.

Bootstrap note: this PR cannot self-validate via CI (the workflows
won't post status checks until the PR is merged). Compensating statuses
must be posted manually:
  POST .../statuses/{sha} {"state":"success","context":"CI / all-required (pull_request)"}
  POST .../statuses/{sha} {"state":"success","context":"sop-checklist / all-items-acked (pull_request)"}

Refs: mc#805 (bootstrap paradox — same fix pattern as PR #802 for staging)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 08:38:59 +00:00