Repository navigation
[Epic] 0.9.2 release fixes: PR status, title slot and epic progress - #3624
Conversation
…-PR is stuck or waits to be merged, instead of "#N starts next" (#3610) Root cause. The old check in `pullRequestStatusEpicFacts.ts` read the queue's `cursor` column. That column is legacy: new queues are created with it at 0, and the queue's real progress lives in the per-issue rows. So the old code treated the first issue, already merged, as the queue head. It then reported "starts next" whenever any later issue was pending, in every queue mode. Parallel queues had their own version of the bug: any pending issue counted. That is the #3563 picture. Fix (status computation only; how the queue dispatches is unchanged): - `pullRequestStatusEpicFacts.ts` now reads the queue through `getEpicExecutionQueue` and asks the queue's own scheduler which issue starts now. An issue counts only if the dispatcher has already claimed it, or its prerequisites are satisfied and a slot is free. A sub-PR that isn't merged holds its slot and keeps the issues that depend on it waiting. - An issue that is already merged in the plan, before the queue has moved past it, counts as done. Under the "terminal" advance setting, closed counts too. - The facts now record which issue starts next (`nextIssue`), and the "starts next" line names that issue rather than just the first pending one. - `pullRequestStatus.ts` keeps its documented order of checks. With the queue check corrected, the sub-PR "needs you" and "waits to be merged" checks now apply. The title slot uses the same state, so it shows `⚠️ `. - In `docs/docs/features/pr-status.md` I reworded the vague "about to start its next issue" in the `working` row to say what that means. Tests (`packages/core/test/pullRequestStatusEpicSync.test.ts`). The test queue table was simpler than the real one, so I gave it per-issue rows and set `cursor` to 0, as real queues are created. New tests cover: - the two #3563 situations (sub-PR at `⚠️ `, and sub-PR ready and waiting for merge, each with a pending issue behind it) in sequential and graph queues. - the same in a parallel queue, where the pending issue can't be dispatched. - a graph issue whose prerequisite is merged still starting next, until the parallel limit is 1. - a parallel issue starting next whether or not the dispatcher has claimed it. - a chain starting the next issue after a merged head the queue hasn't moved past yet. With the original source swapped back in, 16 tests in this file fail: all the new ones except the two "starts next" positive checks, plus existing ones that now use the realistic `cursor` of 0. With the fix, all of them pass. One behaviour to know about: in parallel and graph queues, an issue the dispatcher has claimed but that hasn't started running still shows as "starts next". The sequential queue already behaved this way. No previews were made: the change is only to the status text and title on PRs, with no UI. Acceptance criteria - AC1: met — `pullRequestStatusEpicFacts.ts` (`nextQueuedIssue`); tests "sequential/graph: a sub-PR that needs a person…" and "parallel: a sub-PR that needs a person shows⚠️ …" in `packages/core/test/pullRequestStatusEpicSync.test.ts` - AC2: met — `pullRequestStatusEpicFacts.ts`; tests "sequential/graph: a ready sub-PR waiting for a human merge…", the parallel test's ready step, and "a ready sub-PR waiting to be merged shows⚠️ …" in `pullRequestStatusEpicSync.test.ts` - AC3: met — `nextQueuedIssue` uses `epicQueueSchedule` (prerequisites, slot limit, claims); tests "a graph issue whose prerequisites are merged and that has a free slot starts next…", "a parallel issue that is pending and unclaimed starts next…", "a chain starts the issue after a head that merged…" - AC4: met — the new tests check that the title settles to `⚠️ 1/3 [Epic] Scheduler primitives` (`settledTitle` in `pullRequestStatusEpicSync.test.ts`) - AC5: met — the #3563 regression tests in `pullRequestStatusEpicSync.test.ts` fail when run against the original `pullRequestStatus.ts` and `pullRequestStatusEpicFacts.ts` and pass with the fix Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Epic progress: 0.9.2 release fixes: PR status, title slot and epic progress7 out of 7 PRs merged ✅
Merged child PRs: #3610, #3612, #3614, #3631, #3651, #3653, #3661 ✅ This epic PR has been merged into main. This comment is updated automatically by ProPR as child PRs open, change and merge. |
… score and a consistent cycle count (#3614) * I fixed all three problems from #3593 and added regression tests for each. The affected suites pass: 482 tests in the root ultrafix suites and 193 in core status/webhook, with no failures. Typecheck and the zero-warning lint pass for the root, `packages/core` and `packages/shared`. 1. `Last score` is now the real score. The loop usually stops right after a fix step, and a fix step has no score, so the notice always said `unknown`. - The loop state now remembers the score of each review that reports one (`lastReviewScore`). - When the loop stops, that score is used if the final step had none. It goes into the stop notice, the stored final score and the status line's `at 6/10`. - The notice now prints `Last score: 6/10`. It says `unknown` only when no review in the loop produced a score. - The CI-timeout stop notice uses the same score. It shares one header builder with the regular stop notice, in the new `src/jobs/ultrafixStopNotice.ts`. 2. One cycle count everywhere. Cycle counting is defined once in `packages/shared/src/ultrafixCycle.ts`: cycle N holds the Nth review and the Nth fix. - While the loop runs, the status line shows the cycle of the step running or due next. This is the same number as before. - When the loop stops, it records the cycle it stopped in. Normally that is the last completed step's cycle. For a fix that hit a blocker, or a review held back by CI, it is the cycle that step would have had. - The stop notice now says `Stopped in cycle 5 of 10.`. The status line after the stop uses the same number: `Ultrafix stopped after 5 cycles at 6/10`, where #3588 said "after 4". - Older loop states without the stored cycle fall back to the old number. - I moved `getActionCounts` into the same shared file, mainly to keep `ultrafixOrchestrationService.ts` under the 400-line lint limit. It is still re-exported from the old place. 3. The leftover `ultrafix` label is removed on merge or close. This happens in the status sync's merged/closed branch, the same place that removes the status block and the title slot. The new code is `removeLeftoverUltrafixLabel` in `pullRequestStatusFacts.ts`. - It is best-effort: if the removal fails, it is logged and the next status update tries again. - It runs on any closed PR that has the label, not only ones ProPR created. Tests added: - In `test/ultrafixContinuationEntryPoint.test.ts`: - a loop that stops after its final fix reports `6/10` and cycle 2 of 2. - a #3588-style stop during a review reports the cycle the status line showed. - a loop that ends before any review scored still says `unknown`. - In `packages/core/test/pullRequestStatusSync.test.ts`, one test checks that the running and stopped status lines agree, and one checks the label removal (merged, closed, and a failed first try). - I updated the existing CI-timeout wording test in `test/ultrafixCiWait.test.ts` for the new format. When to stop and how many cycles to run are unchanged. The only extra Redis write is the score stored on the state write that already happens after each review. I made no preview images because the changes are text in GitHub comments and the PR status line. * feat(ai): I fixed the Shard 4/4 failure with a one-line change to the test. The failure was a timing flake in `test/agentCapacityAliasOccupancy.test.ts` and has nothing to do with this PR's ultrafix changes: the test and the capacity code it checks weren't touched. I fixed the Shard 4/4 failure with a one-line change to the test. The failure was a timing flake in `test/agentCapacityAliasOccupancy.test.ts` and has nothing to do with this PR's ultrafix changes: the test and the capacity code it checks weren't touched. **What failed:** The subtest "a newer admission generation is not deferred by a live older-generation holder" stopped with `Missing expected rejection: an old-generation job is still deferred`. **Cause:** - The test keeps an old-generation holder alive on a short lease. The lease lasts 600 ms and is renewed every 200 ms. - Partway through, the test calls `checkJobAgentCapacity` for the first time. That call loads `@propr/core` on demand. - Loading `@propr/core` takes about 2.8 s and runs in chunks that pause everything else. Locally each pause was up to 124 ms, with the machine otherwise idle. - On a busy CI machine those pauses can delay the renewals until the lease runs out. The old-generation check then sees a free slot and doesn't refuse, which is what the test expected it to do. - The failed subtest took 2.07 s, which matches the module loading inside the test. **Fix:** The test now runs `await import('@propr/core')` before the short lease starts, with a comment explaining why. The later call then finds the module already loaded and no longer stalls. The test still checks the same things. **Verification:** I built Redis 7.2.7 from source and ran the suite 3 times through `scripts/run-test-suite.mjs` with `PROPR_REQUIRE_REDIS_INTEGRATION=1`, the setting CI uses. It passed each time, 5 of 5 tests. I couldn't recreate the CI load locally, so the original failure wasn't reproduced here. The cause above comes from the CI log and the pause timing I measured. The "Run Full Test Suite" failure is only the summary of the failed shard, so it needs no separate fix. There are no preview images because nothing visible changed. PR: #3614 Comment by: @propr-dev[bot] (ID: 6935539877) Comment by: @propr-dev[bot] (ID: 6935560493) Comment by: @github-actions[bot] (ID: 6935562083) Model: Claude Opus 5.5 --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…the progress comment, the ready comment and the title agree (#3612) * Epic progress now counts plan issues only. The progress comment, the ready comment, the final-merge comment, the status line and the title all use one computation, so they show the same N and M. All the affected test files pass, and lint and typecheck pass on the changed source files. The count (`computeEpicMergeProgress`, now in `packages/core/src/webhook/epicProgressCount.ts`) - M is the plan issues that weren't closed without a merge. N is how many of them are merged into the epic branch. - An issue counts as merged if its status is merged, its linked PR merged, or a PR from a branch named after it (`3594/…` or `3594-…`) merged. - A PR without a plan issue changes neither number but is still listed under "Merged child PRs". Two PRs for one issue count it once. A branch from another epic (`3589-epic-…`) isn't counted as a PR for the issue its name starts with. - An issue closed as not planned (status closed) drops out of M, as closed issues already did. - An epic with no plan still counts its PRs, and its comments say "pull requests" instead of "issues". Behaviour changes to be aware of - An open human PR into the epic branch no longer holds back the "ready for final merge" comment. - To match branches to issues, the PR list now records the source branch for merged and closed PRs too, not only open ones. Comments - The progress comment now reads `N of M issues merged` instead of "N out of M PRs merged". - The ready comment shows the same line and says `All N issues have been merged…`. The final-merge comment uses the same wording. - Once the epic PR is merged, the progress comment drops the bar and percentage. It shows ✅ if every issue merged; otherwise it says how many issues weren't merged before the epic PR merged. This removes the "⏳ 75%" next to "merged" seen on #3456. Epic body - The issue list and `Fixes #` lines leave out issues whose plan status is closed, and issues GitHub reports as closed `not_planned` or `duplicate`. - This takes effect the next time the body is rewritten, which happens when a child PR merges; closing an issue alone doesn't trigger it. That logic moved to the new `packages/core/src/webhook/epicPRBody.ts`. Both changed files had gone past the 400-line lint limit, which is why this and the count module were split out. Tests (regression tests as the issue asked) - `test/epicMergeProgress.test.ts` (71 pass), `test/epicMergeProgressHandler.test.ts` (53 pass) and `packages/core/test/pullRequestStatusEpicSync.test.ts` (35 pass). - New tests cover: - an extra human PR, both merged and open, in the count, the ready comment and the status line - two PRs for one issue, including the case where the merged one isn't the linked one - an issue closed as not planned, in the count and in the body's `Fixes` lines - the merged epic's final progress comment and final report - Existing assertions were updated to the new wording. In the status sync tests, open PRs from non-plan branches used to raise the total (for example "1 of 14"); those now expect "1 of 3". I also updated `docs/docs/features/work-splitting.md`, `docs/docs/features/pr-status.md` and added a Fixed entry to `CHANGELOG.md`. No preview was made: the change is GitHub comment and title text, not app UI. * feat(ai): I fixed F1 and F2. The affected suites pass, and every new regression test fails when run against the code before the fix. I fixed F1 and F2. The affected suites pass, and every new regression test fails when run against the code before the fix. **F1: a closed issue whose work merged now stays in the epic body** - I moved the "this issue's work is merged" rule into one shared function, `epicIssuesWithMergedWork` in `epicProgressCount.ts`. An issue counts as merged if its status is merged, its linked PR merged, or a PR from a branch named after it merged. The progress count uses it too, so the count and the body can't disagree. - The body filter `epicBodyIssueNumbers` now drops a closed issue only when it has no merged work. Issues GitHub closed as not planned or as duplicates are still dropped. - A new `loadEpicBodyIssueNumbers` reads the PRs into the epic branch so the filter can see that merged work. Both places that write the body, creating the epic PR and rewriting its body after a merge, now use it. It only reads the PR list when a plan issue is closed. - New tests in `test/epicMergeProgressHandler.test.ts` cover the case from the finding, for both creating and rewriting the body: issue #101's linked PR #202 is closed without merging, then an alternate PR #203 from `101/…` merges. #101 keeps its list entry and its `Fixes` line, and an issue closed with no merged work is still left out. I also added a count test for the same case. **F2: a planned epic no longer falls back to counting PRs** - `computeEpicMergeProgress` now counts PRs only when no plan was passed at all. A plan whose issues were all filtered out, for example because they shipped through an earlier epic, gives 0 of 0 issues instead of counting a human PR as 1 of 1. - Both callers already passed nothing for "no plan" and a list for "plan", so neither needed changing. - New tests: - **Count:** an empty plan list gives 0 of 0, with no switch to "pull requests". - **Progress comment:** a successor epic whose plan issues all shipped through the previous epic, with a human PR merged afterwards. Both the open-epic and merged-epic paths count 0 of 0, and no comment says "pull requests". - **Status line:** the same successor case, in `pullRequestStatusEpicSync.test.ts`. The status line and title no longer show "1 of 1 issues merged". **Checks** | Suite | Passed | Failed | |---|---|---| | `test/epicMergeProgress.test.ts` | 75 | 0 | | `test/epicMergeProgressHandler.test.ts` | 55 | 0 | | `test/epicMergeProgressRetry.test.ts` | 21 | 0 | | `test/taskIntentWithdrawal.test.ts` | 169 | 0 | | `test/intentWithdrawalWebhook.test.ts` | 36 | 0 | | `packages/core/test/pullRequestStatusEpicSync.test.ts` | 37 | 0 | | `packages/core/test/pullRequestStatusEpic.test.ts` | 24 | 0 | | `packages/core/test/pullRequestStatusEpicChildReads.test.ts` | 6 | 0 | | `packages/core/test/epicQueueBlockedHead.test.ts` | 14 | 0 | - Typecheck for `packages/core` and lint with zero warnings allowed on the three changed source files are both clean. - The lint config doesn't cover these test files: ESLint skips them with "file ignored" warnings rather than linting them. - The docs and CHANGELOG already say issues "closed without a merge" are left out, which matches the corrected behaviour, so I didn't change them. - No preview: nothing in the app's UI changed. I found nothing else outside F1 and F2 that needed fixing. PR: #3612 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 * feat(ai): I fixed F3. When GitHub's list of PRs into the epic branch doesn't yet include the PR that just merged, the epic body now looks that PR up on its own before deciding which closed issues to drop. A closed issue whose alternate PR merged keeps its list entry and its `Fixes` line, so the body matches the progress count again. I fixed F3. When GitHub's list of PRs into the epic branch doesn't yet include the PR that just merged, the epic body now looks that PR up on its own before deciding which closed issues to drop. A closed issue whose alternate PR merged keeps its list entry and its `Fixes` line, so the body matches the progress count again. **The fix** - I added `withTriggeringChildEvidence` in `packages/core/src/webhook/epicMergeProgress.ts`. If the merging PR is missing from the list, or its row lacks the merge or the branch name, it reads that PR with the same `readMergedChild` call the progress update uses. A PR that turns out to have merged into a different branch isn't added. - `loadEpicBodyIssueNumbers` in `packages/core/src/webhook/epicPRBody.ts` now uses it, which covers both callers: creating the epic PR and rewriting its body. - If the read can't confirm the merge, the body is built from the list as before rather than failing. The progress update still throws and retries in that case, as it did before. **Tests** (`test/epicMergeProgressHandler.test.ts`) - There are two new tests, one for creation and one for rewriting. In both, #101 is closed, its linked PR #202 was abandoned, and #203 from `101/codex-second` merges while the list doesn't include it yet. Each test checks that #203 was read on its own and that the body keeps `- #101`, `Fixes #101` and `Fixes #100` but still leaves out #102. - With the fix taken out, both new tests fail. With it, the handler suite passes 57/57. - `test/epicMergeProgress.test.ts` (75/75) and `packages/core/test/pullRequestStatusEpicSync.test.ts` (37/37) also pass. ESLint with zero warnings passes on the two changed source files, and `tsc --noEmit` passes for `packages/core`. **Found separately, not changed:** the title a new epic PR starts with is worked out from the plan and the merging PR's number only, without its branch. In the same scenario it could start at a lower count, for example `0/1` instead of `1/2`. The code comment says the status sync corrects the title afterwards, so the wrong count should only last until that sync runs. This behaviour already existed on `main` and is outside F3, so I left it alone. No preview was made, because the change only affects text written to GitHub. PR: #3612 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 * feat(ai): I fixed F4. A merged PR from an issue branch that only begins like an epic branch, such as `101-epic-progress-count-plan`, now counts toward its plan issue, and the epic body keeps that issue's list entry and `Fixes #101` line. I fixed F4. A merged PR from an issue branch that only begins like an epic branch, such as `101-epic-progress-count-plan`, now counts toward its plan issue, and the epic body keeps that issue's list entry and `Fixes #101` line. **Fix** (`packages/core/src/webhook/epicProgressCount.ts`) - `epicChildBranchIssue` now uses the repository's real `EPIC_BRANCH_PATTERN` from `services/epicPRService.ts` (`{id}-epic-{word}-{word}-{rand}`). The prefix-only `EPIC_HEAD_PATTERN` (`/^\d+-epic-/`) is gone. - Only actual epic branches, like `101-epic-other-plan-abc`, are now kept from being matched to an issue. **Other code with the same assumption** - Both places that turn a branch name into a plan issue go through `epicChildBranchIssue`, so both are fixed: - the count and body path, through `epicIssuesWithMergedWork`, which `computeEpicMergeProgress` and `loadEpicBodyIssueNumbers` both use. - the status-line child-to-issue mapping in `pullRequestStatusEpicFacts.ts`. - That status-line file already checked for other epic branches with `EPIC_BRANCH_PATTERN`, so the two checks now agree. - No other prefix-only epic check exists in the PR's changes. - Recovering the merge evidence of a PR that GitHub's list doesn't show yet sends the branch through the same function, so that path is fixed too. **Regression tests** - `test/epicMergeProgress.test.ts`: `epicChildBranchIssue('101-epic-progress-count-plan')` returns 101, while an actual epic branch returns null. A closed #101 whose alternate PR #203 merged from that branch counts 2 of 2 with nothing excluded. - `test/epicMergeProgressHandler.test.ts`: the two existing tests for an alternate PR's body now also run with the `101-epic-progress-count-plan` branch. One covers PRs already in GitHub's list and one covers a merge the list doesn't show yet, each for both creating and rewriting the body. All of them check for `- #101: Issue` and `Fixes #101`. **Verification** - Test results: - `test/epicMergeProgress.test.ts`: 76 of 76 pass. - `test/epicMergeProgressHandler.test.ts`: 61 of 61 pass. - `packages/core/test/pullRequestStatusEpicSync.test.ts`: 37 of 37 pass. - With the old regex put back temporarily, all 5 new cases fail: 1 in the count tests and 4 in the body tests. - Core `tsc --noEmit` and core ESLint (`--max-warnings 0`) on the changed source file both pass. - The root ESLint config skips these test files, so they weren't linted. I made no visual preview, since this changes GitHub comment and body text, not the app's UI. PR: #3612 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 * feat(ai): I fixed F5. A later epic on the same branch now drops an issue that a previous epic already shipped, even when the PR that shipped it is an alternate PR from the issue's branch and the issue's linked PR is still open. In that case the later epic used to show "0 of 1 issues merged" for work that had already shipped, and could never become ready. I fixed F5. A later epic on the same branch now drops an issue that a previous epic already shipped, even when the PR that shipped it is an alternate PR from the issue's branch and the issue's linked PR is still open. In that case the later epic used to show "0 of 1 issues merged" for work that had already shipped, and could never become ready. **Change** - **New helper:** `epicIssuesShippedBefore` in `packages/core/src/webhook/epicProgressCount.ts`. It lists the plan issues that a previous epic already shipped. It matches a shipped PR to an issue the same way the progress count does: either the PR is the issue's linked PR, or it comes from a branch named for the issue (`101/…` or `101-…`). - **Both progress paths now use it** instead of checking only `issue.pr_number`: - the progress comments, via `reportablePlanIssues` in `epicMergeProgress.ts` - the status line and title, via `loadEpicStatusFacts` in `pullRequestStatusEpicFacts.ts` - **Lint:** adding this to `updateEpicMergeProgress` pushed it over the complexity limit, so the lookup now happens inside `reportablePlanIssues` instead. **Tests** - **New regressions:** each sets up the case from the finding. Issue #101's linked PR is still open, and an alternate PR from its branch merged before the previous epic. A human PR and a PR for a second issue merge after it. The new tests check: - in `test/epicMergeProgress.test.ts`, with the trigger being a child PR merge and with the epic itself merged: the count is 1 of 1, and the ready comment (or, once the epic merged, the final-merge comment) is posted. - in `packages/core/test/pullRequestStatusEpicSync.test.ts`: the status line reads `✅ 1 of 1 issues merged` and the title shows `1/1`. - **Negative check:** all three new tests fail when run against the source files from before this change. - **Suites:** `test/epicMergeProgress.test.ts` (78 pass), `test/epicMergeProgressHandler.test.ts` (61 pass) and `pullRequestStatusEpicSync.test.ts` (38 pass) all pass. ESLint with zero warnings and `tsc --noEmit` pass in `packages/core`. **Also found, not changed:** - **Plural on the status line:** it reads "1 of 1 issues merged" where the progress comment would say "issue". The comment uses `progressNoun` to pick the word, but the status line always prints "issues". That is outside F5, so the new test accepts either form. - **Epic body:** the issue list and `Fixes` lines don't drop issues that a previous epic shipped, by either kind of PR. They never checked for this, so it isn't the defect F5 describes. No preview was made: the change only affects GitHub comment, status-line and title text. PR: #3612 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…ou" on a freshly pushed head before its checks exist (#3631) * A freshly pushed head with no check runs yet is no longer shown as `✅ Ready` or `⚠️ Needs you`. It stays `🔨 Waiting for CI` until its checks are reported and complete, or until a bounded wait runs out. I ran the relevant suites with these changes: 227 core status/readiness tests and 367 root tests (`checkRunHandler`, `epicMergeProgressHandler`, `taskIntentWithdrawal`) all pass. Typecheck and lint are clean. I also checked the new regression tests the other way round: they fail on the old status code, and the re-read test fails if the extra rescheduling is removed. The rule (for the PR description). A head counts as having checks once GitHub lists at least one check run or commit status for it, non-blocking ones included. A head with none waits, counted from the first time ProPR saw it without checks: - 10 minutes if any head in the repository has reported checks in the last 30 days. - 2 minutes if not. This is the same no-CI grace auto-merge already uses, and the same first-seen record, so the status and auto-merge agree. After the wait the head is treated as having no CI, so a repository without CI still becomes ready. A pull request in a repository whose CI skips some changes (path filters) will show "Waiting for CI" for up to 10 minutes before it can turn ready. There is no new setting and no extra GitHub request per update; the records live in Redis, with an in-process fallback. What changed: - Old review scores: a score given for an older head (review scores already store their head) no longer gives `⚠️ review below goal` while the new head's checks are pending or absent. A score for the current head, or one saved without a head, still counts while checks are pending, as before. - Once checks finish: if the latest score is still from an older head and below goal, the pull request shows `⚠️ ` with that score until it is reviewed again. - Re-reading when the wait ends: in a repository without CI no webhook arrives, so the status sync now schedules its own re-read for that moment. - Files: - `pullRequestStatusCheckWait.ts`: new; holds the wait logic. - `pullRequestStatus.ts`: the status rules above. - `pullRequestStatusFacts.ts`: records whether checks were reported, the wait, and the score's head. - `pullRequestStatusSync.ts`: the re-read. - `checkRunHelpers.ts`: gains a small `clearPRHeadObservation` helper. - Existing tests: the head with no checks in "the block a pull request was created with…" now shows Waiting for CI first, then Ready. The checks deep-equal assertions now include the new `reported` field. No visual preview, since the change only affects the PR body and title text. Acceptance criteria - AC1: met — `pullRequestStatus.ts` (`checksOutstanding`), `pullRequestStatusCheckWait.ts`; tests "#3420: a fix pushed on a ✅ pull request stays 🔨…" (stays 🔨 past the 2-minute grace, no `✅`) in `test/pullRequestStatusTitle.test.ts`, and "a head whose checks have not appeared yet waits for CI…" in `test/pullRequestStatus.test.ts` - AC2: met — 2-minute no-CI grace, or a 10-minute wait in a repository that has reported checks, with a scheduled re-read when it ends; tests "a repository with no CI becomes ✅…" and "a head without checks in a repository that reports them is ready once the bounded wait is over" (`pullRequestStatusTitle.test.ts`), "a head without checks is re-read when its wait ends…" and "the wait for a head's checks…" (`pullRequestStatusSync.test.ts`) - AC3: met — `confirmedAttentionReason` ignores a below-goal score from an older head while checks are outstanding; tests "#3573: after a fix push the pre-fix⚠️ and score do not come back…" and "a review score of an older head is not held against a new head…" - AC4: met — the #3420 test (push, no checks, pending, complete) asserts renames `[✅➇, 🔨, ✅➇]`; the #3573 test (two fix rounds, with checks absent then pending) asserts exactly one rename per real state change; both fail on the old code * feat(ai): I fixed the Validate Changes failure. The step that failed was "Core Package Lint", which allows zero warnings, and `packages/core/src/services/pullRequestStatus/pullRequestStatusSync.ts` had two: I fixed the Validate Changes failure. The step that failed was "Core Package Lint", which allows zero warnings, and `packages/core/src/services/pullRequestStatus/pullRequestStatusSync.ts` had two: - **Complexity 21, limit 20**, in the `syncUnderBodyLock` callback. `DesiredStatus.checksAwaitedForMs` is now a required `number | null`, and the early "closed or merged" return sets it to `null`. That removes the `?? null` fallback from the callback, which brings it to the limit. - **406 lines, limit 400.** I put the `DesiredStatus` interface back on one line and moved its field comment into the doc comment above it. I also merged the extra return field onto the line before it and made the `earliest` helper a one-line arrow function. The behaviour is unchanged; this only restructures the code. ESLint now passes with zero warnings on `src/services/pullRequestStatus/` and `checkRunHelpers.ts`, and the `packages/core` typecheck is clean. The three status test files (`pullRequestStatus`, `pullRequestStatusSync`, `pullRequestStatusTitle`) pass, 127 of 127. There's no visual preview because nothing a user sees changes. PR: #3631 Comment by: @propr-dev[bot] (ID: 6936016486) Model: Claude Opus 5.5 * feat(ai): I fixed both findings, F1 and F2, and every `pullRequestStatus*` test suite in `packages/core` passes. Typecheck and zero-warning lint are clean. I also ran the three new tests against the old code, and all three fail there. I fixed both findings, F1 and F2, and every `pullRequestStatus*` test suite in `packages/core` passes. Typecheck and zero-warning lint are clean. I also ran the three new tests against the old code, and all three fail there. **F1: read-only waits never expired** (`pullRequestStatusCheckWait.ts`) - When a read-only store (the MCP reads) had no record of a head, its first-seen time was never saved. Every read started the full wait again, so the PR could stay `working` indefinitely. - Now this process remembers that time in its own memory. Redis is still never written, so later reads count down and the head becomes ready after the bound. This was the only place that skipped saving it, so the now-unused `record` flag is gone. - New test: repeated read-only reads count down from the first read, wait no longer once the bound has passed, and start afresh for a new head. It also checks that nothing is written to Redis. **F2: a failed re-read at the deadline dropped the wait** (`pullRequestStatusSync.ts`) - Each scheduled entry now carries an `awaitsChecks` flag, set from the last successful read that returned a wait for checks. - If a read fails while that flag is set, it is retried with the existing bounded refresh schedule. Until now only a base push or a startup backfill got that treatment. - Related case I also fixed: at the deadline the checks read itself can fail, which publishes "checks could not be read" instead of ending the wait. That case now keeps the flag and is retried the same way. - The flag is cleared only by a read that actually ends the wait, or when the bounded retries run out. A failed PATCH after a successful read keeps it set. - New tests (two cases): the deadline pull read fails once, or the deadline checks read fails once. In both, the status still goes from `Waiting for CI` to `Ready` with no further webhook. To keep `pullRequestStatusSync.ts` under the 400-line lint limit, I put two object literals on one line each and made `SyncOutcome` extend `Pick<DesiredStatus, 'checksAwaitedForMs'>`. No visual preview, since this only changes status timing and retries. PR: #3631 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 * feat(ai): I fixed F3. When a check read is incomplete but still lists checks, the loader now records that the repository reports checks. A new head with no checks then waits the documented 10 minutes instead of the 2-minute grace. I fixed F3. When a check read is incomplete but still lists checks, the loader now records that the repository reports checks. A new head with no checks then waits the documented 10 minutes instead of the 2-minute grace. **The fix:** in `loadPullRequestStatusFacts` (`packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts:393`), the value passed to `headChecksWaitMs` is now: - `true` whenever any check was listed, even if the read was cut off by the 300-item budget or one endpoint rejected. - `false` only for a complete read that found nothing. - `null` otherwise. The status of the original head does not change. `headChecksWaitMs` sets no wait for both `true` and `null`, and the incomplete read still keeps that head from being called ready. The only new effect is the record that the repository reports checks. **Sibling check:** `headChecksWaitMs` has no other caller, and nothing else reads `checks.reported`, so no other place had the same problem. **Regression:** a new test in `packages/core/test/pullRequestStatusSync.test.ts` runs twice, once per case in the finding: 1. a head with 301 check runs (over the read limit), and 2. a head whose commit-status read rejects while its check runs come back. Each time a fix then pushes a new head with no checks and a complete, empty read. The test asserts that the wait is the 10-minute bound. It also clears this process's memory and checks that the remaining wait is still read from Redis, as another process would see it. **Verification:** both new tests pass, and both fail when I put the old line back. All 213 tests in `packages/core/test/pullRequestStatus*.test.ts` pass, and typecheck and zero-warning lint on the changed source are clean. I found no other issues while checking this. PR: #3631 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 * feat(ai): I fixed the lint failure, and core lint now passes on both this branch and the merge CI actually tests. I fixed the lint failure, and core lint now passes on both this branch and the merge CI actually tests. **Why it didn't show up locally:** this PR's base is the epic branch `3589-epic-0-9-y3w`, not `main`. CI lints the PR merged into that branch. The epic branch has since added a `removeLeftoverUltrafixLabel` call (and its import) to `packages/core/src/services/pullRequestStatus/pullRequestStatusSync.ts`. That is what pushes the file from 400 to 401 code lines after the merge. Running `npx eslint --max-warnings 0 .` on the branch alone passes. To reproduce the failure, I built the merge result in `/tmp`, and it showed the same `580:1 … (401)` warning. **Fix:** I moved the check that a pull request is unchanged between two reads into a new module, `pullRequestStatusSubject.ts`. It holds `sameStatusSubject` and its private `mergeability` helper, unchanged; `pullRequestStatusSync.ts` now imports `sameStatusSubject` from there. Behaviour is the same. **Checks:** - **Core lint:** passes on this branch and on the merge with the epic branch. - **Typecheck:** passes on this branch. I didn't run it on the merge result, because that would need the epic branch's newer `@propr/shared` built first. - **Tests:** all 7 `packages/core/test/pullRequestStatus*.test.ts` files pass (213 tests, 0 failures) on this branch. I didn't run them on the merge result. PR: #3631 Comment by: @integry (ID: 6940298187) Model: Claude Opus 5.5 --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
… head, an open blocker or the lowest score decides, not the review posted last (#3651) What changed - Grouping the round (`packages/core/src/services/reviewScoreStore.ts`): a new `latestReviewRound()` helper takes every score row the newest review job wrote for the same head and Ultrafix cycle. It returns the lowest score and the total blocker count. A later review of a newer head is a different job, so it replaces the round as before. - Status (`pullRequestStatusFacts.ts`, `pullRequestStatus.ts`, `pullRequestStatusBlock.ts`): - The shown score is the round's lowest. - Below the goal, the reason is still `review_below_goal`. - I added one thing the issue didn't ask for: a round that meets the goal but has a blocker from any reviewer now gets a new reason, `review_blockers`, shown as "review has open blockers". Without it such a PR would show `ready`. - The title takes the same `detail.reviewScore` as the body line, so the digit and the line always agree. - Readiness gate (`pullRequestReadinessGates.ts`): `summarizeReview` uses the same helper, so the readiness API agrees with the status. - Ultrafix's own goal check (`src/jobs/reviewScorePersistence.ts`, `src/jobs/reviewCommentGatherer.ts`): a multi-model job now reaches the goal only if every reviewer meets it with no blockers. For a known result set the loop's score is the lowest reviewer's; a member with no score leaves the set unscored. Behaviour change in Ultrafix: a cycle where one model scores 9 and another 7 with goal 8 used to pass if the 9 was posted last. It now fails. I updated two expectations in `test/reviewScorePersistence.test.ts` that had pinned the old "newest review decides" rule. Tests - New regression tests cover both posting orders: - `packages/core/test/pullRequestStatusTitle.test.ts` runs the real sync against SQLite and checks both the body line and the title. - Also `packages/core/test/pullRequestReadiness.test.ts` and `test/reviewCommentGatherer.test.ts`. - With the grouping switched back to "last row only", 4 of the new title tests fail. - All the suites I ran pass, including the status, sync, epic, readiness, persistence, gatherer and the Ultrafix suites. `tsc` and the zero-warning ESLint gates are clean on the changed files. There are no previews: the change is only in the PR status text and title, not in a screen the project renders. Acceptance criteria - AC1: met — `latestReviewRound` in `packages/core/src/services/reviewScoreStore.ts` and `reviewBelowGoal` in `pullRequestStatus.ts`; test "a round scored 6 with a blocker and 8 needs you at 6…" (both orders) in `packages/core/test/pullRequestStatusTitle.test.ts`, plus `packages/core/test/pullRequestReadiness.test.ts` - AC2: met — test "a round scored 8 and 9 with no blocker is ready at 8…" (both orders) in `packages/core/test/pullRequestStatusTitle.test.ts`; readiness `goal_reached` at score 8 in `packages/core/test/pullRequestReadiness.test.ts` - AC3: met — test "a later single review of a newer head replaces the round" in `packages/core/test/pullRequestStatusTitle.test.ts`, plus the newer-head case in `packages/core/test/pullRequestReadiness.test.ts` - AC4: met — the title slot (`pullRequestStatusTitle.ts`, `detail.reviewScore`) and the body line read the same round score; every new title test asserts both the line and the title digit - AC5: met — every new case runs once per posting order: the `for (const order …)` loops in `pullRequestStatusTitle.test.ts` and `test/reviewCommentGatherer.test.ts`, and both reviews orders in `pullRequestReadiness.test.ts` Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
…e as ❶–❿ (solid circled digits) instead of the thin circled digits (#3661) Summary New and updated PR titles now write the review score as solid circled digits ❶–❿ (U+2776–U+277F), for example `⚠️ ❻ [3475 by …]` and `✅❽ …`. Titles with either older style (①–⑩ or ➀–➉) are still recognised, and get the new digit on their next update. All the tests I ran pass, apart from the one API test file noted below that can't exit cleanly. Code (`packages/shared/src/prTitleStatusSlot.ts`) - `CIRCLED_ONE` is now `0x2776`. - `PR_TITLE_STATUS_SLOT_PATTERN` now accepts all three ranges: `[\u2460-\u2469\u2776-\u277F\u2780-\u2789]`. Non-ASCII characters stay escaped for the desktop renderer, and the comments say why each older range is still read. - Every other reader already goes through this shared pattern or `stripStatusSlot`: the UI's task and PR list title cleaning, the dashboard work titles, and core's PR status titles. So none of them needed their own change. Only their comments showing example slots were updated. Docs (`docs/docs/features/pr-status.md`): the examples use the new digits, and the page says titles with either older style are rewritten and never show two scores. Tests - The shared tests check that scores 1–10 map to U+2776–U+277F, one score character each. - For every score in all three ranges, beside⚠️ , ⚠ and ✅, titles are read, stripped and rewritten with the new digit. - A score beside 🔨, a score with no emoji, and two stacked score characters are not treated as a slot. Epic titles such as `✅ 7/7` and `◕ 6/7` come out unchanged. - The issue's `◕ 5/7` example is wrong: 5 of 7 is under three quarters, which the existing rules show as `◑`. The test uses `◑ 5/7` and `◕ 6/7` instead. - The three UI test files that strip the slot now include titles with the older digits. - Tests that expected the old digit in written titles now expect the new one. Results - Shared: 109 passed. - UI (vitest, 3 files): 52 passed. - Core: `pullRequestStatusTitle` 26 passed. - Root: `prTaskTitleHelpers` 34, `autoMergeOperations` 5 and `checkRunHandler` 146 passed. - API: all 18 tests in `mcpMergePreconditions` passed, but the run doesn't exit by itself and was stopped by the timeout after the last test. The old digits now appear only in the shared reader pattern, its tests, the UI tests for older titles, and the docs sentence that explains them. `CHANGELOG.md` still shows `✅⑧` in an old entry; I left that history as it was. Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…nd count fixes (#3653) * I've fixed all nine items. The status, digest, epic and title test suites pass, the affected root tests pass, and typecheck and lint (zero warnings) are clean. There are no preview images, since all the changes are text written into GitHub PR bodies. Status line (`pullRequestStatusBlock.ts`, `pullRequestStatusFacts.ts`) 1. Skipped checks no longer count as passed. They show separately only when there are any: `checks: 35 passed, 12 skipped`. 2. The time always includes the date: `updated Nov 16 13:59 UTC`. The issue asked for the date only when it isn't today, but the line is written "now" and can be read days later, so it always has to carry it. Old blocks without a date still count as the same status, so they aren't rewritten just for that. 3. Below goal now reads `⚠️ Needs you · review 6/10, goal 8`, with the separate score dropped. Sub-PR summaries in epics read the same way. 4. A running loop reads `🔨 Ultrafix cycle 3 of 10`. While its follow-up fix runs it still reads `Follow-up in progress · Ultrafix cycle 3 of 10`. 5. Cancelled checks: - A cancelled run that a newer run of the same check replaced, or whose name still contains `${{`, is left out of the counts entirely. That covers the #3580 case. - Decision for you: a cancelled run that nothing replaced shows as `cancelled: e2e · checks: …, 1 cancelled` and is never called failed, but the PR still reads "Needs you". I did this to respect the issue's note not to change state decisions, and because nothing will re-run it. Saying no would let such a PR read Ready, but ProPR's auto-merge would still refuse it, because that check logic is shared and unchanged. - A failed check name containing `${{` counts towards the `+N` but is never listed. 6. Edits are now batched: when only check counts or failed/cancelled names change, the body is edited at most once per 30 seconds, and the latest counts are written when the window ends. Any other change (state, reason, score, cycle, a title rename) is still written at once. This is in the new `pullRequestStatusEditPacing.ts`. The last edit time is kept in Redis when available, so all ProPR processes share the limit. Review digest (`reviewDigestMarkdown.ts`) 7. The Validation evidence section is left out when no validation command is configured or ran. 8. Acceptance-criteria evidence now renders its own inline code as normal code spans. The rest is plain text with Markdown characters escaped, so it can't create links, @mentions, bare URLs or HTML. Docs 9. `pr-status.md` now says what is guaranteed (ProPR's own merges, task titles, notifications). It also says a merge done on GitHub while the title has the emoji keeps it in GitHub's default merge message, and how to avoid that. I updated its examples and described the check counts and edit batching. I also added a `CHANGELOG.md` `[Unreleased]` → Fixed entry. The existing Unreleased entries didn't quote any of the old wording, so nothing there needed rewriting. Tests: the new `packages/core/test/pullRequestStatusText.test.ts` covers each wording change, the skipped and cancelled counting, and what the edit batching holds back. Two sync tests show a burst of check completions producing one edit per window, with a state change still written at once. I updated the existing expectations for the new wording. * feat(ai): I fixed F1 and F2. The status, readiness, epic and digest suites pass (259 tests), and typecheck and lint (zero warnings) are clean. I also put back the old code briefly and checked that each new test fails without its fix. I fixed F1 and F2. The status, readiness, epic and digest suites pass (259 tests), and typecheck and lint (zero warnings) are clean. I also put back the old code briefly and checked that each new test fails without its fix. **F1: same-named checks hid cancellations** (`pullRequestStatusFacts.ts`, `cancelledCheckRuns`) - A matching name alone no longer hides a cancelled run. It is only left out if a newer run of the same check replaced it: - **A re-run job:** same name, same check suite, newer run. - **A newer run of the same workflow:** same name, a different check suite that belongs to the same GitHub Actions workflow, newer run. - "Newer" means a higher check run id, or a later start time if there is no id. With neither, it isn't treated as a replacement. - To link a check suite to its workflow, I added one extra GitHub read (`GET /repos/{owner}/{repo}/actions/runs?head_sha=…`). It only runs when a replacement could be in a different suite. If that read fails, or the suite isn't in the results, the cancellation still counts and the PR still reads "Needs you". - Runs named `${{` are still always left out, so the #3580 case is unchanged. - New tests cover: - a re-run in the same suite, which makes no extra read - a newer run of the same workflow - two workflows that each have a `test` job, one passed and one cancelled, which now reads `⚠️ Needs you · cancelled: test` - the unproven cases: the workflow read fails, the suite isn't listed, the passing run is older, or the runs carry no id - I updated the earlier duplicate-name test to give its runs an id and a suite. **F2: bare `www.` addresses became links** (`reviewDigestMarkdown.ts`) - Outside code spans, the dot after `www` (any case) is now escaped. GitHub then shows the address as plain text, not a link. - The new test renders the evidence with the GitHub-flavoured Markdown parser `micromark-extension-gfm`. It checks that there are no links, that the text reads exactly as written, and that `` `www.example.com` `` in backticks stays code. It covers `www.`, `WWW.`, an address in brackets or with emphasis, an email address and an `https://` URL. - **Dependency note:** the test imports `micromark` and `micromark-extension-gfm`. They come from the root `node_modules` (`packages/shared` depends on the GFM extension) and are not declared in `packages/core`. I did this to avoid changing the lockfile. I also updated the `CHANGELOG.md` entry to describe what counts as a replacement now. **Found separately, not fixed:** the evidence parser removes a trailing `*`, so `*www.example.com*` is stored as `*www.example.com`. This was already the behaviour before this PR. I changed my test input so it doesn't end in `*`. PR: #3653 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 * feat(ai): I fixed the Shard 2/4 failure. It was one stale expectation in an old test, not a bug in the branch's code. I fixed the Shard 2/4 failure. It was one stale expectation in an old test, not a bug in the branch's code. **Cause:** `packages/core/test/acceptanceCriteriaPrompt.test.ts` (test 3, added for #3499) still expected the old digest output. That output wrapped the agent's whole evidence text in one code span: - `` `` `src/pad.ts`, `test/pad.test.ts` `` `` - `` `left for later` `` Item 8 of this PR deliberately changed that. Evidence now keeps only its own inline code as code spans, and the rest is escaped plain text. So the code now correctly produces: - `` `src/pad.ts`, `test/pad.test.ts` `` - `left for later` That test was the only failure in the shard's log; every other file passed. **Fix:** I updated the two expected lines to the new output and renamed the test to "criteria are code spans and evidence keeps only its own code spans". Nothing outside that test file changed. **Checks:** Through `scripts/run-test-suite.mjs`, the fixed test passes, and so do the other suites that use the digest or acceptance criteria: core `reviewDigest`, shared `acceptanceCriteria`, `reviewDigestPublication`, `reviewPromptBuilder`, `prReviewRunnerBudget` and `prCommentLinkedIssueRepository`. There are no preview images, since this is a test-only change. PR: #3653 Comment by: @propr-dev[bot] (ID: 6942944529) Model: Claude Opus 5.5 * feat(ai): I fixed F4: a cancelled check replaced by a newer run of the same workflow is now left out of the counts even when the older workflow run is on a later page of GitHub's results. Before, that PR could show "Needs you" despite the successful re-run. I fixed F4: a cancelled check replaced by a newer run of the same workflow is now left out of the counts even when the older workflow run is on a later page of GitHub's results. Before, that PR could show "Needs you" despite the successful re-run. **What changed** (`packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts`) - `cancelledCheckRuns` now collects the check suites it actually needs to compare: each cancelled run's suite, and the suite of each newer same-name run in a different suite. It passes that set to the lookup. - `loadSuiteWorkflows` now reads the workflow-run list page by page (100 per page). It stops when: - every needed suite is resolved, or - the list runs out (all of `total_count` read, or a short page), or - it hits a 10-page limit. GitHub returns at most 1,000 results for a `head_sha` query, so 10 pages is everything it will list. - The safe fallbacks still hold. A suite that never appears still counts as cancelled. A runner from a different workflow does not hide the cancellation. A failed read anywhere still leaves the cancellation in place, and the partial results are thrown away. No read is made when no replacement in another suite is possible. **Tests** (`packages/core/test/pullRequestStatusText.test.ts`) - The mock GitHub endpoint now honours `page` and `per_page`. - A new test puts the cancelled run's older suite on page two and checks that: - the PR reads as Ready, after exactly two reads. - a page-two suite from a different workflow still leaves the run cancelled. - a suite that never appears is read to the end of the list (two pages) and stays cancelled. - when both suites are on page one, no second page is read. - With the old single-page code put back, the new test fails; with the fix it passes. **Verification:** the status, epic and epic-creation suites pass (240 tests). `epicPRCreationStatus.test.ts` needs `--experimental-test-module-mocks` to run. `tsc --noEmit` and zero-warning ESLint on core `src` are clean. The same unpaged call to `GET …/actions/runs` also appears in `src/jobs/followupCiSuspensionRuns.ts`. That file isn't changed by this PR, so I didn't review or change it. There are no previews, since nothing visual changed. PR: #3653 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
✅ Epic ready for final merge: 0.9.2 release fixes: PR status, title slot and epic progressAll 7 child PRs have been merged into this epic branch. This epic PR is ready for final review and merge. Posted automatically by ProPR |
|
/merge |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryI fixed the one merge conflict, in What the conflict was: both branches added a different import on the same line of the import block.
How I resolved it: I kept both imports, one after the other. Each side's import is used by its own code elsewhere in the file, and that code had already merged without trouble. Dropping either import would break those calls, so nothing needed choosing between the two. Why: the two changes don't overlap in what they do, so keeping both preserves the PR's stop-notice work and brings in 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - src/jobs/ultrafixLoopContinuationHelpers.ts PR: #3624 Model: Claude Opus 5.5
|
CI failed: Full Test Suite Shard 4/4 Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 60b38af Summary of ChangesShard 4/4 had one real failing test, Cause: the merge from main put two changes together:
So the merged notice named two different cycles: "Stopped in cycle 2 of 5" and then "The loop stopped at cycle 1 of 5". #3593 asks for one cycle number that matches everywhere. Cycle 2 is the right one: the refused step is the fix of cycle 2, as the test's own comment says. Changes:
Checks:
There's no visual preview because this only changes the text of a PR comment. Review digestRisk-tiered paths
Validation evidence
Diff size: 2 files changed, +5/−3 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/ultrafix goal=8 max=4 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 4) First action:
|
…eRecovery.test.ts`. The other 271 units passed. I fixed it, and it now passes locally. Shard 4/4 had one real failing test, `test/ultrafixCiFailureRecovery.test.ts`. The other 271 units passed. I fixed it, and it now passes locally. **Cause:** the merge from main put two changes together: - This epic (#3593) changed every Ultrafix stop notice to write the score as `Last score: 5/10.` and to give the stop cycle as `Stopped in cycle N of M.`, using the same cycle count as the status line. - Main's disk-pressure work (#3642) added a test that still expected the old `Last score: 5.`. Its stop explanation also had its own sentence, `The loop stopped at cycle ${state.cycleCount} of …`, based on the old count. So the merged notice named two different cycles: "Stopped in cycle 2 of 5" and then "The loop stopped at cycle 1 of 5". #3593 asks for one cycle number that matches everywhere. Cycle 2 is the right one: the refused step is the fix of cycle 2, as the test's own comment says. **Changes:** - `src/jobs/ultrafixDiskPressureWait.ts`: removed the repeated cycle sentence from the disk-pressure explanation, since the notice's opening line already gives the cycle. It still says "Nothing was changed on this pull request by the refused step." - `test/ultrafixCiFailureRecovery.test.ts`: the test now expects `Last score: 5/10.` and `Stopped in cycle 2 of 5.`, and checks that the notice names only one cycle. **Checks:** - `test/ultrafixCiFailureRecovery.test.ts` passes 61 of 61. - The 7 related suites (Ultrafix CI wait and continuation, PR status, PR status sync, MCP command progress) all pass. - ESLint with zero warnings is clean on the changed source file, and `tsc --noEmit` is clean. There's no visual preview because this only changes the text of a PR comment. PR: #3624 Comment by: @propr-dev[bot] (ID: 6946227171) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR needs a localized correction before merge: cancelled matrix workflows can incorrectly produce a Ready status. Otherwise, the changes substantially address the supplied objectives. ✅ Scheduler-aware epic status — ✅ Consistent review rounds — Status, readiness gates and Ultrafix use the lowest score and blockers across reviewers, with posting-order regression tests.
This is a static review; no commands were run. Several supplied issue bodies explicitly contain truncation notices, so unseen requirements were not assessed. The supplied current-head status reports no failures and five pending checks. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Require evidence before discarding cancelled workflows
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Align status documentation with implementation
ScoreThe implementation has substantial targeted regression coverage, but the cancellation filter can publish an incorrect Ready status. Current checks have no reported failures, with five still pending. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 7b2fd94
Summary of ChangesI've fixed F1. A check that was cancelled before its matrix expanded, and that nothing ran again, now keeps an otherwise-ready PR at The cause was in What changed:
Tests (
Docs: I updated the cancelled-checks paragraph in I found nothing else outside F1. I made no visual previews because the change only affects the status text in the PR body. Review digestRisk-tiered paths
Validation evidence
Diff size: 3 files changed, +42/−17 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
… expanded, and that nothing ran again, now keeps an otherwise-ready PR at `needs_attention` instead of letting it show as Ready. The status tests pass (239 of 239), and the new regression test fails on the old code.
I've fixed F1. A check that was cancelled before its matrix expanded, and that nothing ran again, now keeps an otherwise-ready PR at `needs_attention` instead of letting it show as Ready. The status tests pass (239 of 239), and the new regression test fails on the old code.
**The cause** was in `cancelledCheckRuns` (`packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts`). Any cancelled check whose name still contained `${{` was dropped completely, before the code ever looked for a replacement. Meanwhile `reported: true` still cleared the wait for checks, so the PR could reach `ready`.
**What changed:**
- These checks now go through the same replacement test as any other cancelled check. One thing differs: once the matrix expands, the jobs have different names from the template-named check, so the code can't match them by name. Instead, a newer check from a later run of the same workflow counts as the replacement. As before, the workflow listing has to show which workflow each run belongs to.
- With no replacement shown, the check counts as cancelled. The renderer already hides names containing `${{`, so the line reads `⚠️ Needs you · checks cancelled · checks: 1 passed, 1 cancelled` and never shows the raw template.
- The cancellation stays in all of these cases, since none of them proves the check was replaced:
- the runs have no id or suite to order or group them by.
- the only newer check belongs to a different workflow.
- the same-workflow check started earlier.
- the workflow listing can't be read.
**Tests** (`packages/core/test/pullRequestStatusText.test.ts`):
- The old test expected these checks to be dropped unconditionally, and it had another pending check that hid the false-ready outcome. I rewrote it so a newer run of the same workflow supplies the replacement.
- The new regression test is an otherwise-ready PR whose only cancelled check is template-named and has no replacement. It must be `needs_attention` with the line above, and it also covers each case in the list above.
**Docs:** I updated the cancelled-checks paragraph in `docs/docs/features/pr-status.md`, which still described the old behaviour. The type check and lint passed with no errors or warnings.
I found nothing else outside F1. I made no visual previews because the change only affects the status text in the PR body.
PR: #3624
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR addresses epic queue status, review-round aggregation, CI startup waits, progress counts, and status wording. It is merge-ready within the supplied scope, conditional on the two pending checks completing successfully. ✅ Scheduler-backed epic status — ✅ Consistent review verdicts — Status, readiness, and Ultrafix now use the lowest score and preserve blockers across a multi-model review round, with posting-order regression coverage.
This was a static review; no commands or tests were run. The supplied check status reports 24 passed, zero failed, two pending, and 15 neutral/skipped. Linked issue bodies contain truncation notices, so assessment of their omitted requirements is limited; the supplied diff and explicit AC1–AC5 were reviewed as provided. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Align documentation with implemented behavior
S3: 🟢 Correct the cancellation changelog
ScoreThe changed paths have substantial regression coverage and no verified merge blocker. Validation remains static for this review, with two current-head checks still pending. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
✅ Epic merged: 0.9.2 release fixes: PR status, title slot and epic progressEpic PR #3624 has been merged into main. 7 out of 7 PRs merged into main through this epic PR. All planned epic work is now merged. Posted automatically by ProPR |
0.9.2 release fixes: PR status, title slot and epic progress
This Epic PR aggregates all changes for the plan: 0.9.2 release fixes: PR status, title slot and epic progress
Issues in this Epic
Auto-close
When this PR is merged, the following issues will be automatically closed:
Fixes #3589
Fixes #3590
Fixes #3591
Fixes #3592
Fixes #3593
Fixes #3594
Created automatically by ProPR