fix(ci): lint TRACKER_RE false-negative on mid-sentence tracker refs #747

Closed
core-devops wants to merge 2 commits from ci/lint-tracker-regex-fix into main

2 Commits

Author SHA1 Message Date
core-devops 1945b361bf ci: re-trigger checks
security-review / approved (pull_request) Failing after 15s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 3s
Harness Replays / detect-changes (pull_request) Successful in 6s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 8s
CI / Detect changes (pull_request) Successful in 11s
E2E API Smoke Test / detect-changes (pull_request) Successful in 11s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 12s
qa-review / approved (pull_request) Failing after 16s
Harness Replays / Harness Replays (pull_request) Successful in 7s
sop-checklist / all-items-acked (pull_request) [soft-fail tier:low] acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: 7
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 22s
CI / Platform (Go) (pull_request) Successful in 8s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 23s
sop-checklist-gate / gate (pull_request) Successful in 15s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 6s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 25s
CI / Python Lint & Test (pull_request) Successful in 6s
gate-check-v3 / gate-check (pull_request) Successful in 25s
sop-tier-check / tier-check (pull_request) Successful in 16s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 4s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 3s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 2s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Failing after 1m3s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m10s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 1m20s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 1m26s
audit-force-merge / audit (pull_request) Has been skipped
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 7m45s
CI / Canvas (Next.js) (pull_request) Successful in 9m15s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / all-required (pull_request) Successful in 6s
2026-05-12 16:59:32 +00:00
core-devops 27a3a15ac6 fix(ci): lint TRACKER_RE false-negative on mid-sentence tracker refs
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 32s
CI / Detect changes (pull_request) Successful in 1m56s
E2E API Smoke Test / detect-changes (pull_request) Successful in 1m54s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 1m55s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 28s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Failing after 1m53s
gate-check-v3 / gate-check (pull_request) Failing after 43s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: 7
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m31s
qa-review / approved (pull_request) Failing after 51s
security-review / approved (pull_request) Failing after 51s
sop-checklist-gate / gate (pull_request) Successful in 53s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 1m43s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 1m43s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 10s
CI / Platform (Go) (pull_request) Successful in 9s
CI / Canvas (Next.js) (pull_request) Successful in 10s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 7s
CI / Python Lint & Test (pull_request) Successful in 12s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 9s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 15s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / all-required (pull_request) Successful in 4s
Block internal-flavored paths / Block forbidden paths (pull_request) Failing after 10m28s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Failing after 13m59s
sop-tier-check / tier-check (pull_request) Failing after 12m45s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Has been skipped
Handlers Postgres Integration / detect-changes (pull_request) Has been skipped
Two fixes bundled here (same bug class — TRACKER_RE misses trackers):

1. lint_continue_on_error_tracking.py: TRACKER_RE required a leading
   `#` comment marker followed by whitespace before the tracker slug.
   This caused a false-negative when the tracker appeared mid-sentence:
   `# Phase 3 mask (internal#350)` — the regex matched `# Phase 3` as
   the comment but then failed because `internal` wasn't directly after
   `#\s*`. Fixed by removing the `\#\s*` anchor so the regex scans the
   entire comment line for the `mc#NNN` / `internal#NNN` pattern.

2. lint-continue-on-error-tracking.yml: The lint job's own
   `continue-on-error: true` directive had no inline tracker comment.
   The lint script could not find `internal#350` because it was 3 lines
   above the directive. Added the tracker comment directly on the
   directive line.

Both changes are Python/YAML only — no Go, no platform code.

Fixes: lint self-violation that caused lint-continue-on-error-tracking
to always fail on this workflow.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 16:39:36 +00:00