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

Closed
core-devops wants to merge 4 commits from ci/lint-coe-self-fix into main
Member

Summary

Fixes a false-negative in lint-continue-on-error-tracking where trackers embedded mid-sentence (e.g. ... internal#350.) were not found because the regex required the tracker to immediately follow the # comment prefix.

Bug: r"#\s*(?P<slug>mc|internal)#(?P<num>\d+)" anchored the match to # , so internal#350. after prose was skipped.

Fix: r"(?P<slug>mc|internal)#(?P<num>\d+)" — scan the full line, find the tracker anywhere.

Self-fix: adds explicit # internal#350 inline on the lint job's continue-on-error: true in lint-continue-on-error-tracking.yml.

Test plan

  • python3 -m pytest tests/test_lint_continue_on_error_tracking.py -v — 14/14 pass
  • lint-continue-on-error-tracking.yml job: no longer in violation list
  • Regex verified: finds mid-sentence, inline, and standalone trackers

🤖 Generated with Claude Code

## Summary Fixes a false-negative in `lint-continue-on-error-tracking` where trackers embedded mid-sentence (e.g. `... internal#350.`) were not found because the regex required the tracker to immediately follow the `# ` comment prefix. **Bug**: `r"#\s*(?P<slug>mc|internal)#(?P<num>\d+)"` anchored the match to `# `, so `internal#350.` after prose was skipped. **Fix**: `r"(?P<slug>mc|internal)#(?P<num>\d+)"` — scan the full line, find the tracker anywhere. **Self-fix**: adds explicit `# internal#350` inline on the lint job's `continue-on-error: true` in `lint-continue-on-error-tracking.yml`. ## Test plan - [x] `python3 -m pytest tests/test_lint_continue_on_error_tracking.py -v` — 14/14 pass - [x] `lint-continue-on-error-tracking.yml` job: no longer in violation list - [x] Regex verified: finds mid-sentence, inline, and standalone trackers 🤖 Generated with [Claude Code](https://claude.com/claude-code)
core-qa reviewed 2026-05-12 16:04:01 +00:00
core-qa left a comment
Member

[core-security-agent] N/A — CI lint script fix: lint TRACKER_RE false-negative on mid-sentence. No production code changes.

[core-security-agent] N/A — CI lint script fix: lint TRACKER_RE false-negative on mid-sentence. No production code changes.
core-devops force-pushed ci/lint-coe-self-fix from 6366b14469 to de7896fe74 2026-05-12 16:07:18 +00:00 Compare
triage-operator added the tier:low label 2026-05-12 16:21:56 +00:00
core-devops closed this pull request 2026-05-12 16:43:04 +00:00
Some checks are pending
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 7s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 11s
CI / Detect changes (pull_request) Successful in 25s
E2E API Smoke Test / detect-changes (pull_request) Successful in 28s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 28s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 31s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 16s
Required
Details
gate-check-v3 / gate-check (pull_request) Successful in 23s
qa-review / approved (pull_request) Failing after 14s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: 7
security-review / approved (pull_request) Failing after 17s
sop-tier-check / tier-check (pull_request) Successful in 15s
sop-checklist-gate / gate (pull_request) Successful in 18s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 37s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 15s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 8s
Required
Details
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Failing after 1m13s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 9s
Required
Details
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 12s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m13s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 6s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 1m42s
lint-mask-pr-atomicity / lint-mask-pr-atomicity (pull_request) Successful in 1m56s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 1m59s
CI / Python Lint & Test (pull_request) Successful in 7m18s
CI / Platform (Go) (pull_request) Failing after 12m59s
CI / Canvas (Next.js) (pull_request) Successful in 13m0s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / all-required (pull_request) Failing after 4s
Required
Details
audit-force-merge / audit (pull_request) Has been skipped
qa-review / approved (pull_request_target)
Required
security-review / approved (pull_request_target)
Required
reserved-path-review / reserved-path-review (pull_request_target)
Required

Pull request closed

Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#739