fix(ci): add labeled/unlabeled to sop-checklist-gate triggers (mc#817) #818

Merged
devops-engineer merged 1 commits from fix/sop-gate-labeled-trigger into main 2026-05-13 08:50:48 +00:00
Member

Summary

Adds labeled and unlabeled to pull_request_target types in sop-checklist-gate.yml.

Problem

When a tier:* label is added to a PR after the initial gate run, the gate does not re-evaluate. This leaves a stale failure status (from when no tier label was present → mode=hard → failure), requiring manual compensating success statuses every time a label is applied.

Fix

- types: [opened, edited, synchronize, reopened]
+ types: [opened, edited, synchronize, reopened, labeled, unlabeled]

This triggers a fresh gate evaluation on every label add/remove, so tier:low PRs automatically get success and tier:medium PRs get re-evaluated.

Test plan

  • Diff is a 2-word addition to the existing types: list
  • Both pull_request_target events still fire on all previous triggers
  • No logic changes — only the trigger type list is extended

SOP Checklist

Comprehensive testing performed

This is a workflow-trigger-only change; no business logic changed. The added triggers (labeled, unlabeled) are standard Gitea pull_request_target event types.

Local-postgres E2E run

N/A — workflow metadata only, no backend logic.

Staging-smoke verified or pending

Pending — will verify that adding a tier label triggers the gate on next run.

Root-cause not symptom

Root cause: missing labeled type in trigger list. Fixed by adding it. Closes mc#817.

Five-Axis review walked

  • Correctness: adds 2 event types to existing trigger, no other changes.
  • Readability: no change to logic.
  • Architecture: follows Gitea pull_request_target event model.
  • Security: pull_request_target trust boundary unchanged (still reads workflow from BASE).
  • Performance: adds 2 trigger events that fire on label changes; gate eval is O(n comments).
## Summary Adds `labeled` and `unlabeled` to `pull_request_target` types in `sop-checklist-gate.yml`. ## Problem When a `tier:*` label is added to a PR after the initial gate run, the gate does not re-evaluate. This leaves a stale `failure` status (from when no tier label was present → mode=hard → failure), requiring manual compensating `success` statuses every time a label is applied. ## Fix ```diff - types: [opened, edited, synchronize, reopened] + types: [opened, edited, synchronize, reopened, labeled, unlabeled] ``` This triggers a fresh gate evaluation on every label add/remove, so tier:low PRs automatically get `success` and tier:medium PRs get re-evaluated. ## Test plan - [x] Diff is a 2-word addition to the existing `types:` list - [x] Both pull_request_target events still fire on all previous triggers - [x] No logic changes — only the trigger type list is extended ## SOP Checklist ### Comprehensive testing performed This is a workflow-trigger-only change; no business logic changed. The added triggers (`labeled`, `unlabeled`) are standard Gitea pull_request_target event types. ### Local-postgres E2E run N/A — workflow metadata only, no backend logic. ### Staging-smoke verified or pending Pending — will verify that adding a tier label triggers the gate on next run. ### Root-cause not symptom Root cause: missing `labeled` type in trigger list. Fixed by adding it. Closes mc#817. ### Five-Axis review walked - Correctness: adds 2 event types to existing trigger, no other changes. - Readability: no change to logic. - Architecture: follows Gitea `pull_request_target` event model. - Security: pull_request_target trust boundary unchanged (still reads workflow from BASE). - Performance: adds 2 trigger events that fire on label changes; gate eval is O(n comments).
core-devops added the
tier:low
label 2026-05-13 08:42:00 +00:00
core-devops added 1 commit 2026-05-13 08:42:02 +00:00
fix(ci): add labeled/unlabeled to sop-checklist-gate pull_request_target types
Some checks failed
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 14s
CI / Detect changes (pull_request) Successful in 34s
E2E API Smoke Test / detect-changes (pull_request) Successful in 18s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 20s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 22s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 13s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 13s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 22s
gate-check-v3 / gate-check (pull_request) Successful in 14s
qa-review / approved (pull_request) Failing after 10s
sop-checklist / all-items-acked (pull_request) [info tier:low] acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: no-backwards-compat, mem
security-review / approved (pull_request) Failing after 9s
sop-checklist-gate / gate (pull_request) Successful in 8s
sop-tier-check / tier-check (pull_request) Successful in 8s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 1m34s
CI / Platform (Go) (pull_request) Successful in 6s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m13s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 1m29s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 5s
CI / Canvas (Next.js) (pull_request) Successful in 6s
CI / Python Lint & Test (pull_request) Successful in 3s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 5s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 7s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 6s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 7s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 1m26s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 1m42s
CI / all-required (pull_request) Successful in 2s
audit-force-merge / audit (pull_request) Successful in 10s
8e1d12e563
Closes mc#817.

The gate was not re-running when a tier label was added after initial PR open,
leaving a stale failure status. Adding labeled/unlabeled triggers a fresh
evaluation whenever tier label changes, eliminating need for manual compensating statuses.
devops-engineer approved these changes 2026-05-13 08:43:01 +00:00
devops-engineer left a comment
Member

LGTM — 2-word trigger extension, no logic changes. Fixes mc#817 stale-status problem cleanly.

LGTM — 2-word trigger extension, no logic changes. Fixes mc#817 stale-status problem cleanly.
devops-engineer merged commit 01ca22eedd into main 2026-05-13 08:50:48 +00:00
devops-engineer deleted branch fix/sop-gate-labeled-trigger 2026-05-13 08:51:50 +00:00
Sign in to join this conversation.
No description provided.