Repository navigation
feat: implement issue #2247 — Stale-disposition retry cap does not count a fix-reviews pass that dies before posting any marker (follow-up to the edited-comment deadlock fix) - #2290
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Code Review
This pull request introduces a mechanism to post a start marker (<!-- dev-lead-fix-reviews-start ... -->) before a fix-reviews pass runs. This ensures that passes that fail or die prematurely (before posting a terminal marker) are still counted towards the stale disposition retry cap. The retry logic is updated to count these start markers, grouping them with terminal markers by their read_at timestamp to avoid double-counting. Unit tests are added to verify the new behavior and ensure the start marker is treated as a registered automation marker. I have no feedback to provide as there are no review comments.
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
CodeAnt Nitpicks1 code suggestion1. If separate passes start in the same second, they reuse
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
|
No description provided. |
This comment has been minimized.
This comment has been minimized.
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
|
No description provided. |
|
Fixed in scripts/dev-lead-fix-reviews.sh: updated PASS_STARTED_AT to use millisecond precision (line 89) and updated regex patterns (lines 487, 935) to accept milliseconds, ensuring each pass gets a unique read_at timestamp even when starting in the same second. |
|
No description provided. |
|
Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-10-11T17:35:26Z. |
This comment has been minimized.
This comment has been minimized.
Dev-Lead — fix-reviews (applied)Changes committed and pushed. Requested items addressed:
|
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
No description provided. |
This comment has been minimized.
This comment has been minimized.
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
This is a CodeRabbit rate-limit notice indicating the free OSS review quota has been exhausted. No code changes are needed — it is an operational notice from the bot service. |
|
No description provided. |
|
Quality Gate has passed with all SonarCloud checks successful. The comment lists "1 New issue" but provides no specific file, line number, or issue details. After reviewing all changed files for known SonarQube hotspot patterns (script injection, hardcoded credentials, dynamic code execution), no actionable findings were identified. The PR's code changes appear sound. |
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
Problem
Stale-disposition retry cap does not count a fix-reviews pass that dies before posting any marker (follow-up to the edited-comment deadlock fix)
From the issue: The stale-disposition retry cap added for #2166 (PR #2230) bounds how many
fix-reviewspasses the sweep dispatches for a bot comment that was edited after its disposition. It counts passes by their markers on the PR: any<!-- dev-lead-fix-reviews pr=<n> … intent=fix-reviews status=… -->comment newer than the edit.Risk
Low — changes automation shell logic under scripts/, covered by shellcheck (--severity=warning) and the bats suite.
Test plan
Tests added/updated:
tests/dev-lead/unit/test_dev_lead_retry.bats,tests/dev-lead/unit/test_fix_reviews.batstests/dev-lead/unit/test_maintainer_comment_gate.bats. Verification:bash scripts/dev-lead-lint.sh(shellcheck --severity=warning) ran pre-commit; the bats suite runs in CI.Rollback
Revert this PR. No non-revertible side effects (no tags, migrations, or external state).
Monitoring
This PR's Lint (shellcheck) and bats checks show pass/fail; watch subsequent dev-lead / pr-review runs for behavioral regressions.
Closes #2247