Repository navigation
[2942 by Claude Opus 5.5] Nightly test health - #2953
propr-dev[bot] wants to merge 14 commits into
Conversation
…ot from the code, so they will continue until someone signs that account back in. I can't sign it in from here. What I fixed is the reporting: a failed login now shows up as a login problem, and the E2E suite stops early instead of timing out. What's failing. Every plan generation in the live E2E suite fails within seconds, so the greenfield, brownfield, sequential and model-matrix plan suites all end up with "0 issues" or hit the 600 s timeout. The history points to the Claude account on the nightly E2E server losing its login: - The last passing nightly was 2026-10-07. - On 10-08, the first plan succeeded, then Claude model tasks failed with `Failed to authenticate: OAuth session expired and could not be refreshed`, and every plan after that failed. - Earlier commit `8e641eac3` reached the same conclusion and asked for the account to be signed back in. I can't see the live server's logs from here, so this is inferred from that history, not confirmed in its logs. Why the cause was hidden. The server reduces planner errors to a short safe message. Its check for login failures doesn't recognise "Failed to authenticate" or "OAuth", so the expired login was reported as the generic "Plan generation failed. Detailed diagnostics are available in server logs." The test retried each plan three times, and each retry failed the same way. Changes: - `packages/api/routes/plannerHelpers/utils.ts`: the login-failure check now also matches `authenticate`/`authenticated`, `OAuth`, `unauthorised`/`unauthorized`, `credentials` and `session expired`. Expired provider logins now produce "Plan generation could not authenticate with a required service." Unrelated text such as `author` doesn't match, and raw error details are still never exposed. - `test/e2e/helpers.ts`: when the planner reports that login failure, `createAndGeneratePlan` stops immediately with an error saying to sign the planner's provider account back in, instead of retrying until the timeout. Other failures (timeouts, rate limits, generic errors) still retry as before. - I added tests to `packages/api/test/plannerBackgroundLifecycle.test.ts` and `test/e2eTaskCompletion.test.ts`. Both files pass (21 and 13 tests). The planner test file doesn't exit on its own in this workspace, so I ran it with `--test-force-exit`. I didn't run the live E2E suite. What you need to do: sign the Claude account on the E2E server back in. The plan suites will keep failing until that's done. Once this change is deployed there, those failures will read as a login problem and finish quickly instead of timing out. There are no visual previews because nothing in the UI changed.
|
CI failed: Full Test Suite Shard 1/4 Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
Full Test Suite ResultsValidation failed during: Test shard (shard 1).
View shard 1/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
|
✅ Applied the requested follow-up changes in commit 8583967 Summary of ChangesI fixed the shard 1/4 failure. The cause wasn't this PR's changes: it came from main, from the hosted fleet merge (#1714) that this branch's commit sits on top of. What failed: one test in Fix:
Checked locally: the route coverage test and the response conformance test both pass (22 pass, 0 fail) when run with the same flags the CI unit-test command uses, and There are no visual changes, so I didn't make previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
Fresh frozen-source evidence changes the remaining nightly diagnosis. Run https://github.com/integry/propr/actions/runs/38082250981 (fd4960f), E2E job114301399014, now completed failure. Independently downloaded sanitized artifact11683595458 and verified transport SHA256 ac1e4252c1797e01a8ac269d159fbb7354a94edfe00884503888bb371cb3b449. Actual TAP:37 tests,36 pass,0 fail,1 cancelled. Only the brownfield plan suite failed:600000ms parent timeout cancelled create/generate/finalize. Greenfield, sequential processing, and the full selected4/38 model matrix passed. All4 parallel and4 single-model implementation tasks reached completed (Claude, Codex and two Antigravity routes), with execution history and log assertions passing. Provider authentication is functioning in this run; do not present the current failure as an unrepaired login. The frozen helper polls120 times with5-second sleeps plus network calls, then finalizes/polls issues, while the parent brownfield suite allows only600000ms. The cancelled brownfield async operation continued retrying during sequential/model-matrix suites: a4b53b5b, fe0bc4c7 and bb55ea3a all logged not-ready/retry messages after parent cancellation. Backend plan-generation records for these exact drafts report success, with the first taking621117ms; successful LLM execution alone does not prove finalized plan/issues. Please extend the existing nightly-health follow-up to address the actual bounded timeout/cancellation defect. Coordinate an explicit planning/retry/finalization deadline with its enclosing suite and120-minute CI job budget; stop polling/retries/new plan creation when the test is cancelled, await cleanup safely, and preserve the requirement that a brownfield plan genuinely reaches review/finalization and produces issues. Add meaningful deterministic regression coverage for slow successful generation near the old boundary and cancellation that prevents additional retries or cross-suite work. Do not turn timeouts into passes/skips or weaken task-completion assertions. Update the PR description to distinguish historical authentication diagnostics from this new current failure. Keep the existing writer/follow-up route; no parallel implementation task is needed. |
…hanges: it came from main, from the hosted fleet merge (#1714) that this branch's commit sits on top of. I fixed the shard 1/4 failure. The cause wasn't this PR's changes: it came from main, from the hosted fleet merge (#1714) that this branch's commit sits on top of. **What failed:** one test in `packages/api/test/openapiRouteCoverage.test.ts` checks that every route registered directly on the app is listed in the OpenAPI route table. The hosted fleet merge added three routes without listing them, and the test stopped at the first one: `GET /api/internal/hosted/bootstrap is registered directly; list it in openapi/directRoutes.ts`. **Fix:** - **`packages/api/openapi/directRoutes.ts`:** listed `/api/internal/hosted/bootstrap`, `/status` and `/queue` as `public`, with a comment explaining why. They are checked against `PROPR_FLEET_CONTROL_SECRET` rather than a user login, and they only exist when that secret is set. The two existing `/api/internal/agent-runs` routes are listed the same way. - **`packages/api/openapi/buildSpec.ts`:** the spec generator then refused to run because no group in the API docs covered `/api/internal/hosted`. I put it in the System group ("Health, compatibility and status"). - **Regenerated `docs/static/openapi/propr-api.yaml`:** three new entries, total route count 258 → 261. **Checked locally:** the route coverage test and the response conformance test both pass (22 pass, 0 fail) when run with the same flags the CI unit-test command uses, and `npm run gen:openapi:check` reports the spec and client types are up to date. Run without those flags, the conformance test fails, so a bare `npx tsx --test` run will show a failure. I did not re-run the full shard. There are no visual changes, so I didn't make previews. PR: #2953 Comment by: @propr-dev[bot] (ID: 6102411979) Model: Claude Opus 5.5
|
✅ Applied the requested follow-up changes in commit a1407ed Processed 3 comments:
Summary of ChangesI fixed the brownfield timeout so a slow but successful plan can finish, and a cancelled test now stops its plan work. But I couldn't update the PR description: GitHub refused the edit with "Resource not accessible by integration" (403) through The new unit tests pass, along with the existing Comment 1 (shard 1/4 CI failure): this was already fixed. That run tested Comment 3 (brownfield timeout):
PR description text for the Summary section:
There are no visual previews because nothing in the UI changed. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
…n can finish, and a cancelled test now stops its plan work. But I couldn't update the PR description: GitHub refused the edit with "Resource not accessible by integration" (403) through `gh pr edit`, the REST API and the GitHub connector. Someone with write access to PR #2953 needs to replace the Summary section; the text is at the end of this message. I fixed the brownfield timeout so a slow but successful plan can finish, and a cancelled test now stops its plan work. But I couldn't update the PR description: GitHub refused the edit with "Resource not accessible by integration" (403) through `gh pr edit`, the REST API and the GitHub connector. Someone with write access to PR #2953 needs to replace the Summary section; the text is at the end of this message. The new unit tests pass, along with the existing `test/e2eTaskCompletion.test.ts` (24 pass, 0 fail). The live E2E suite has not been run against the server. **Comment 1 (shard 1/4 CI failure):** this was already fixed. That run tested `5f0c682`, and the commit after it (`858396720`) added the missing `/api/internal/hosted/*` entries to the OpenAPI route table, which is what the test was failing on. **Comment 3 (brownfield timeout):** - **Cause:** the old helper could spend more than 600 s just waiting for generation, then still had to finalize and wait for issues, all inside a 600 s suite timeout. The 621 s generation could not fit. When the suite was cancelled, the helper ignored the test's cancellation signal and kept polling and retrying while the sequential and model-matrix suites ran. - **Deadlines:** plan creation now lives in `test/e2e/planGeneration.ts` and runs against an explicit deadline. Generation gets up to 15 min, waiting for issues after finalization up to 2 min. A retry starts only if at least 5 min remain. Each plan test has a 22 min budget and a 23 min test timeout, so the helper fails with its own clear error before the suite cancels it. Greenfield, brownfield and sequential use this; the model matrix's plan-creation step has its own 25 min cap. - **Cancellation:** every wait, poll, finalize call and new attempt checks the cancellation signal. A cancelled test stops at once and creates no more plans; plans it already created stay on the cleanup list. Cleanup now waits up to 60 s for any running plan work to stop before deleting those plans. - **No weakened checks:** a missed deadline fails the test with a descriptive error rather than returning zero issues. The test still needs a real plan that reaches review, is finalized and produces issues. The task-completion assertions are unchanged. - **120-minute job budget:** the first step of the nightly job (`test-nightly.yml`) now sets a deadline of job start + 110 min, and every plan deadline is capped by it. That leaves time to upload diagnostics; the full test suite already uses about 41 min of the job. - **Trade-off:** the worst-case durations of the plan suites go up (each plan test from 10 to 23 min; the sequential suite from 15 to 38 min). The job deadline stops plan creation from overrunning the job. It does not limit the model tasks' own 30-minute polling. - **Tests:** `test/e2ePlanGeneration.test.ts` uses a simulated clock and a fake planner. It covers: - a 621 s generation that reaches review and produces its issues. - a generation that never finishes, which fails at its deadline without creating another plan. - retries being limited by the remaining time. - cancellation during polling, after which there are no further calls, retries or new plans. - cleanup waiting for cancelled work. - **Checks:** shrinking the generation window back to 10 min makes the slow-generation tests fail, and so does ignoring the cancellation signal while polling. The type checker reports no errors in the changed test files. **PR description text for the Summary section:** > ### Current failure: brownfield plan suite timeout (run 38082250981, `fd4960f9`) > > Provider login works in this run. 36 of 37 tests passed, including greenfield, sequential processing and all 8 selected model-matrix tasks. Only the brownfield plan test failed: the suite's 600 s timeout cancelled it while a generation that later succeeded after 621 s was still running. The old helper ignored the cancellation and kept polling and retrying (plans `a4b53b5b`, `fe0bc4c7`, `bb55ea3a`) during the sequential and model-matrix suites. > > **Fix:** plan creation runs against an explicit deadline: 15 min for generation, 2 min for issues after finalization, a retry only if 5 min remain, and a 22 min budget per plan test inside a 23 min test timeout. Every wait and new attempt stops when the test is cancelled, and cleanup waits for running plan work before deleting plans. The nightly job sets a deadline of job start + 110 min that caps all plan deadlines. A missed deadline fails the test; the requirement for a finalized plan with issues is unchanged. > > ### Historical: provider authentication diagnostics (runs from 2026-10-08, e.g. 38016752734) > > In those earlier runs the Claude login on the E2E server had expired, and the planner reported it as a generic failure. This branch makes that show up as a login problem and stops the E2E helper from retrying it. It is not the cause of the current failure. There are no visual previews because nothing in the UI changed. PR: #2953 Comment by: @propr-dev[bot] (ID: 6102413089) Comment by: @github-actions[bot] (ID: 6102413453) Comment by: @integry (ID: 6102430990) Model: Claude Opus 5.5
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryNo test failed in this run, so I made no code changes. The run was cancelled from outside before any tests started. The failure was in the final "Run Full Test Suite" job, which just reported what the earlier jobs did.
The fix is to re-run "Full Test Suite" on the latest commit No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
|
Independent inspection of exact a1407ed: the new11 deterministic plan-generation tests pass locally, but two required boundaries remain incomplete. I reproduced both with synthetic injected APIs against the unchanged helper (no live backend or credentials).
This is a follow-up on the same implementation route. Do not launch a parallel writer. Current proof is diagnostic pr2953-a1407ed-boundary-repro.log: late-response result accepted at131000>130000; pending-after-abort=true until API released. The helper source remains untouched in the isolated review checkout. |
|
✅ Applied the requested follow-up changes in commit 0a06c7f Processed 2 comments:
Summary of ChangesI fixed both gaps the reviewer reported. Plan creation now enforces its deadline across every API call, and cancelling a test interrupts a request that is still waiting for the server. The new tests pass; the live E2E suite has not been run against the server. Comment 1 (CI failure): nothing failed in the code. Every job in run 38089018098 was cancelled about 10 s after it started, before any test ran. Build & Lint, CodeQL and CLI Node Compatibility on the same commit were cancelled too. The "Shard coverage verification" failure only says that no shard summaries were uploaded. A fresh run is needed. Comment 2, point 1 (success after the deadline):
Comment 2, point 2 (cancellation during a pending request):
New tests in
Checks: with the original helper put back, the first four new tests fail and the pending-request test hangs until the run is killed. That matches what you reproduced. There's nothing visual in this change, so I made no previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…enforces its deadline across every API call, and cancelling a test interrupts a request that is still waiting for the server. The new tests pass; the live E2E suite has not been run against the server. I fixed both gaps the reviewer reported. Plan creation now enforces its deadline across every API call, and cancelling a test interrupts a request that is still waiting for the server. The new tests pass; the live E2E suite has not been run against the server. **Comment 1 (CI failure):** nothing failed in the code. Every job in run 38089018098 was cancelled about 10 s after it started, before any test ran. Build & Lint, CodeQL and CLI Node Compatibility on the same commit were cancelled too. The "Shard coverage verification" failure only says that no shard summaries were uploaded. A fresh run is needed. **Comment 2, point 1 (success after the deadline):** - Every API call in `test/e2e/planGeneration.ts` now goes through one wrapper. It refuses to start a request once the test is cancelled or the deadline has passed. It also checks again when the response arrives, before anything else happens. - In your scenario (`getPlan` answers "review" at 131000 against a 130000 deadline), the helper now fails with `PlanDeadlineError`. It never calls finalize or lists issues. A late answer to finalize or to the issue listing is rejected the same way, so a plan is never reported as a success after its deadline. **Comment 2, point 2 (cancellation during a pending request):** - Each plan attempt has one cancel signal. It fires when the test is cancelled or when a real timer reaches the deadline. - That signal is passed to every request. I added an optional last parameter for signal and timeout to `createPlan`, `getPlan`, `generatePlan`, `finalizePlan` and `listPlanIssues` in `packages/cli/src/api/plans.ts`, and existing callers are unaffected. The CLI client already aborts the current request and skips retries when the signal fires. - Each request's timeout is the smaller of 30 s and the time left, so a single attempt can no longer run past the deadline. - The helper stops waiting as soon as the signal fires, even if the request itself ignores it. - A plan whose creation answer arrives after cancellation is still added to the cleanup list. - Every request is registered with the suite's cleanup tracker through a new `tracker` option, which `test/e2e.test.ts` now passes. Cleanup therefore waits for requests the helper has stopped waiting for before it deletes any plans. **New tests in `test/e2ePlanGeneration.test.ts` (18 pass, 0 fail):** - Three deadline cases, where the status poll, finalize or issue listing answers at 131000 after a slow request. Each fails, and nothing is requested afterwards. - Every request gets the cancel signal, and its timeout shrinks as the deadline nears (30000, then 20000). - A `generatePlan` that hangs: the helper rejects immediately after cancellation and cleanup keeps waiting until the request finishes. Nothing follows it: no status poll, retry or finalize. - A `createPlan` that answers after cancellation: the plan is still recorded for cleanup. - The real `ApiClient` with a fake network: a read that hangs at the deadline is aborted and not retried, and no more requests are made. **Checks:** with the original helper put back, the first four new tests fail and the pending-request test hangs until the run is killed. That matches what you reproduced. `test/e2eTaskCompletion.test.ts` and the CLI client tests still pass, and the type checker reports no errors in the changed files. The checks you asked to keep are unchanged: a real finalization producing issues, and the task-completion assertions. There's nothing visual in this change, so I made no previews. PR: #2953 Comment by: @propr-dev[bot] (ID: 6102532141) Comment by: @integry (ID: 6102545402) Model: Claude Opus 5.5
|
/review codex-astra |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex-astraOverall EvaluationThe PR addresses slow plan generation with larger, explicit budgets and cancellation-aware API calls. It needs a localized correction to the newly generated authentication contract before merge. ✅ Request boundaries enforced — Requests receive the operation signal and bounded timeouts; checkpoints reject responses arriving after cancellation or expiry. ✅ Focused regression coverage — Added tests cover slow generation, late responses, pending-request cancellation, and cleanup tracking. This review used static analysis only; no commands were run. Current checks show 0 failures and 21 pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Represent Fleet authentication accurately
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Accept review without observing generationThe extracted helper preserves the existing S2: 🟢 Bound the remaining nightly workThe new job deadline bounds plan creation, but subsequent implementation polling can continue beyond it. Consider propagating the remaining job budget through those phases to strengthen diagnostic-upload guarantees. This is optional because the added workflow comment specifically promises a bound on plan creation, and the other phases’ timeout behavior predates this change. ScoreThe deadline and cancellation changes address the earlier reported boundaries, with focused regression tests. The newly published Fleet authentication contract needs correction; pending checks alone do not lower the score. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/fix F1 |
|
✅ Applied the requested follow-up changes in commit 8413598
Summary of ChangesI fixed F1. The generated API spec now says all three hosted Fleet routes ( What changed
Verification
Separate issue, not changed: the two There's no visual change, so I made no previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
…d Fleet routes (`/api/internal/hosted/bootstrap`, `/status` and `/queue`) need the `x-propr-fleet-secret` header. Before, it said they needed no authentication. I fixed F1. The generated API spec now says all three hosted Fleet routes (`/api/internal/hosted/bootstrap`, `/status` and `/queue`) need the `x-propr-fleet-secret` header. Before, it said they needed no authentication. **What changed** - **New auth kind:** `packages/api/openapi/types.ts` has a new `fleetSecret` option, alongside the existing ones like `webhook`. - **New security scheme:** `packages/api/openapi/buildSpec.ts` maps that option to a header API-key scheme named `fleetSecret`. Its description says the routes exist only when `PROPR_FLEET_CONTROL_SECRET` is configured. - **Route registrations:** `packages/api/openapi/directRoutes.ts` now marks the three hosted routes as `fleetSecret` instead of `public`. I shortened the source comment, since the spec now states the requirement itself. - **Regenerated spec:** in `docs/static/openapi/propr-api.yaml`, each hosted route has `security: - fleetSecret: []` and `x-propr-auth: fleetSecret`, and the new scheme appears under `components.securitySchemes`. - **Regression test:** a new case in `packages/api/test/openapiRouteCoverage.test.ts` checks the scheme's type, location and header name. It also checks that `hostedFleetRoutes.ts` reads that exact header. Finally, it checks that exactly these three routes exist and each requires the scheme. **Verification** - `npm run gen:openapi:check` reports the spec and client types are up to date and valid. - `openapiRouteCoverage`, `openapiResponseConformance` and `openapiReferencePage` all pass (26/26). This includes the coverage test that failed shard 1/4 in the earlier CI run. - A type check of `packages/api` printed no errors. **Separate issue, not changed:** the two `/api/internal/agent-runs/:runId/mcp-grants` routes are also listed as `public`, even though a comment says callers must sign requests with `SYSTEM_TASK_SECRET`. That was already the case before this PR, so I left it alone. It could be fixed the same way in a separate change. There's no visual change, so I made no previews. PR: #2953 Comment by: @integry (ID: 6102695306) Model: Claude Opus 5.5
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI made no code changes because this failure doesn't come from the code. Something outside the branch cancelled the CI run. Evidence from run 38089965439 (commit
This is the same external-cancel pattern seen several times today on this PR and others. The real failure earlier on this PR was The way to get a real result is to re-run the Full Test Suite on the latest head, There was nothing visual to preview. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
|
Additional evidence for the existing CI-failure follow-up: please investigate the cancellation feedback cycle before rerunning CI. Do not start a separate implementation route or weaken required checks. Read-only repository options show both autoFollowupOnFailedCi=true and cancelCiDuringFollowup=true, with pr-test-on-label.yml explicitly selected for cancellation. Run 38089965439 at 0a06c7f had native Electron and docs passing before its shards were cancelled; its aggregate Run Full Test Suite failed on cancelled shards and produced comment 6102702504. Processing that comment started task pr-comments-batch-integry-propr-2953-1791670364619 while new-head run 38090559848 at 8413598 was active. That run was also cancelled, and aggregate failure generated comment 6102735018. This is evidence of cancellation-induced follow-ups, not a demonstrated test assertion failure at either head. The workflow aggregate uses always() and deliberately fails closed for missing shard coverage, including cancelled shards. ciFailureFollowup.ts ignores a directly cancelled check, but receives this aggregate as failure. Please trace the actual cancellation/suspension provenance and prevent a deliberately cancelled workflow from recursively generating implementation follow-ups. Preserve genuine assertion failures, timeouts, required merge gates, and operator workflow selections. Add focused regression coverage for cancellation-induced aggregate failure versus a genuine failure. Keep the corrected planning deadline/cancellation behavior and Fleet secret documentation intact. Once the final head is idle, restore/run its validations and report actual results; a cancelled run is not a pass. |
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI checked this failure, and no test failed: the run was cancelled before any tests ran, so I made no code changes. What happened in run 38094028469 (commit
This is the same cancellation loop this PR is meant to stop. The ProPR deployment that posted this follow-up runs Next step: rerun the Full Test Suite on the current head ( No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryNo test failed on commit What happened in run 38096433790:
This matches the cancellation pattern already discussed on this PR: ProPR is set to cancel PR validation while a follow-up is running. A cancel that hits workflows in separate groups all at once comes from ProPR or another automation, not from the branch. Local check of the commit: that commit only split up
Re-running CI on this commit, with no follow-up active at the time, should produce a real result. No previews, since nothing visual changed. I added this run to my saved notes on cancelled CI runs. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
🔍 AI Code Review — claude:claude-opus-5-5Overall EvaluationThe PR fixes the recurring nightly E2E failure from issue #2942. Plan creation in the live E2E suite is now bounded by explicit deadlines and test cancellation, with the generation window raised above the observed 621s brownfield run. The PR also adds three changes beyond that objective:
I traced all changed paths and found no merge blockers. Every check on the current head passed. The PR is ready to merge. The suggestions below cover scope, drift protection and a few edge behaviors. ✅ Cancellation reaches every await — In ✅ Cancellation provenance fails open — In
Any unreadable, paginated-past-limit or ambiguous evidence returns ✅ Spec is pinned to the handler — The new OpenAPI test reads Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S5: 🟢 Matrix loop fails on one slow planIn Two possible fixes:
This is optional because I could not confirm how the code after the loop treats a partial S6: 🟢 Job deadline covers only plan creation
S7: 🟢 Guard workflow string coupling with a test
A small test that parses the workflow, as S8: 🟢 Recovery repeats provenance lookupsSuppression deliberately records no dedupe claim. As a result, every Ultrafix periodic recovery pass re-runs the full provenance chain for each still-failing aggregate on the head. That is a job fetch, an attempt fetch, a jobs listing and annotation pages each time. A short-lived negative cache keyed by check run ID would cut the GitHub API use without changing correctness. S9: 🟢 Add a 401 response for
|
|
New validation evidence for issue #2942: manual nightly run https://github.com/integry/propr/actions/runs/38094451314 at dc481f7 finished with 792/793 non-live test units passing. Live E2E did not run because Please investigate and fix this genuine nightly blocker. Sanitized original artifact is Preserve every authority/cleanup regression assertion and fail-closed behavior. Do not skip the test, broadly raise timeouts, weaken assertions, or enable live E2E after a failed non-live suite. Improve or split the fixture/unit if evidence supports that; retain complete canonical coverage and add meaningful validation of the observed cause. Keep production configuration, credentials, frozen fd4960f preview and publication unchanged. Report the diagnosed cause and focused results. Existing Ultrafix current-head review has finished, so there is no known overlapping writer. |
|
✅ Applied the requested follow-up changes in commit 0a39855 Summary of ChangesI fixed the nightly blocker by making the fake Docker much cheaper per call and splitting the test into three runner units. No assertion was weakened, skipped or given a longer timeout. All 23 tests pass locally (the 22 originals plus one new check), and the three units take about 28s in total, down from 107s for the old single file. Diagnosed causeThe timeout came from the self-hosted runner being heavily loaded, made much worse by how many short-lived processes this test starts. It was not an assertion regression.
Changes
The harness scripts, workflows, timeouts, production configuration, credentials, the frozen fd4960f preview and publication are unchanged. Live E2E still runs only after the non-live suite passes. Focused results
The runner's
The split adds two units, so the full suite now has 795 instead of 793. The full nightly hasn't been re-run on these changes yet. I also saved a memory note on how to tell nightly contention from a real regression, including downloading only the test-output artifact. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…cheaper per call and splitting the test into three runner units. No assertion was weakened, skipped or given a longer timeout. All 23 tests pass locally (the 22 originals plus one new check), and the three units take about 28s in total, down from 107s for the old single file. I fixed the nightly blocker by making the fake Docker much cheaper per call and splitting the test into three runner units. No assertion was weakened, skipped or given a longer timeout. All 23 tests pass locally (the 22 originals plus one new check), and the three units take about 28s in total, down from 107s for the old single file. ## Diagnosed cause The timeout came from the self-hosted runner being heavily loaded, made much worse by how many short-lived processes this test starts. It was not an assertion regression. - **The whole run was slower.** I compared run 38094451314 with three earlier green nightlies (38082250981, 38035895093, 38016752734). Those ran this unit in a steady 70.6–71.2s and the whole suite in about 2430s. The failing run took 3832.1s overall (+58%), and the slowdown came in bursts. The units right after this one also slowed: `issueJobCompletion` went from 2.2s to 31.0s (14×) and `issueJobDispatcher.handleDispatch` from 2.4s to 21.2s (8.8×). The case that took 93.8s normally takes 8.3s. - **Why this unit was hit hardest.** Each harness run makes up to about 140 Docker calls. The harness parses most of them with its own `node -e`, and the fake Docker started a new Node process for every call (about 43ms each, against 22ms for a bare `node -e 0`). So a run was a long serial chain of process starts, and a slow host stretched it out. Fixture waits were not a factor: the harness's 60s `/health` poll returns on its first attempt with the fake curl. - **Reproduced locally.** I ran that case under synthetic CPU load (36 busy loops on 12 CPUs). The old fixture took **164s** for that one case. ## Changes - **`fake-docker.mjs`** works the same way but now runs inside the test process. The `docker` stand-in is a small bash script that sends its arguments and `FAKE_DOCKER_*` settings to it over a local port, then replays its output and exit code. That removes a Node start per call. If it can't reach the in-process handler, the call fails with exit 125 instead of passing. - **New shared helper `harness.mjs`** holds the setup code that used to sit at the top of the test file. The test bodies were moved without changes into three units: - `integrationImageHarness.test.mjs`: private temporary authority and root helper cases, plus the new check. - `integrationImageHarnessUnsafeTargets.test.mjs`: unsafe roots, stack names, same-named containers and pre-existing networks. - `integrationImageHarnessNetworkOwnership.test.mjs`: the recorded-network ownership cases. - **New check:** with only `bash` reachable on PATH, the Docker stand-in still returns the right output, errors and exit codes, preserves arguments containing spaces or empty strings, and records every call. It also fails when nothing is listening. The harness scripts, workflows, timeouts, production configuration, credentials, the frozen fd4960f preview and publication are unchanged. Live E2E still runs only after the non-live suite passes. ## Focused results - **Coverage:** the 22 original test titles are identical, now spread across the three files. - **Speed:** | Case or unit | Old fixture | New fixture | |---|---|---| | Case that took 93.8s at night, idle | 11.2s | 2.8s | | Same case under load | 164s | 41.6s | | All three units under load | — | 155s, 85s, 155s (all passing) | | Through `run-test-suite.mjs`, idle | — | 17.6s, 13.6s, 7.7s | The runner's `--list` shows the three files as separate units. - **The tests still catch real bugs.** I temporarily broke the harness twice and restored it byte-for-byte afterwards: - Removing networks by name without the ownership check fails the same two tests in both the old and the new fixture. - Giving the cleanup container network access fails 10 tests. - ESLint is clean on the new and changed files. The split adds two units, so the full suite now has 795 instead of 793. The full nightly hasn't been re-run on these changes yet. I also saved a memory note on how to tell nightly contention from a real regression, including downloading only the test-output artifact. PR: #2953 Comment by: @integry (ID: 6103792067) Model: Claude Opus 5.5
|
/review claude-opus-5-5 |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — claude-opus-5-5Overall EvaluationThis PR fixes several separate causes of nightly and PR-validation noise behind issue #2942:
I traced each changed path and found no merge blockers. Readiness depends on the pending current-head checks, and the harness fix has not yet been proven on a contended nightly runner. ✅ Plan requests are bounded at every stage — ✅ Cancellation filtering fails closed —
Any read error is caught in ✅ The fake Docker transport preserves its contract — Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S12: 🟢 Job deadline bounds only plan creation
The latest nightly full suite took about 64 minutes, and the per-suite timeouts are now larger: about 24 minutes each for greenfield and brownfield, 38 for sequential and 60 for the matrix. A slow run can therefore still reach the 120-minute job timeout. The upload step's S13: 🟢 Confirm no other consumer runs
|
|
CI failed: Run E2E Test Suite Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit c0e93ec Summary of ChangesI fixed the CI failure by changing only Cause. The full job log has two failures in
This PR never touches Fix. I added a one-time setup step ( Verification.
No visual preview, since this only changes a test. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ostedFlow.test.tsx`. No assertion changed, and no test got a longer timeout. I fixed the CI failure by changing only `propr-ui/src/App.hostedFlow.test.tsx`. No assertion changed, and no test got a longer timeout. **Cause.** The full job log has two failures in `App.hostedFlow.test.tsx`, and the second is a knock-on effect of the first: - **First failure:** the first test failed with `Test timed out in 5000ms` (line 37). Each test resets the module cache and then imports `./App`. The first import pays the one-time cost of compiling App and everything it imports, and on the busy CI machine that took longer than the 5-second test limit. - **Second failure:** the timed-out test's code kept running after it was cancelled, so its page content appeared after the cleanup step. That left two `location` elements on the page when the next test ran, which is the "Found multiple elements" error in the request. This PR never touches `propr-ui`, and the same file passed in the PR's sharded CI. It's a load-dependent timing problem in an existing test, not something the PR's changes caused. **Fix.** I added a one-time setup step (`beforeAll`) that imports `./App` once with a 60-second limit. Each test still resets modules and imports its own fresh copy of `./App`, so the tests stay isolated. But the compiled code is already cached, so the per-test import is quick and stays well inside 5 seconds. **Verification.** - Locally, the first test dropped from 1745 ms to 74 ms. The one-time compile now happens in the setup step. - All 5 tests in the file pass. - `eslint` and `tsc --noEmit` run clean on `propr-ui`. No visual preview, since this only changes a test. PR: #2953 Comment by: @propr-dev[bot] (ID: 6104587090) Model: Claude Opus 5.5
|
/review Please independently review exact c0e93ec and its single test-file delta after the actual nightly failure. Original nightly38100904672:794/795units passed; App.hostedFlow first test5000ms timeout then staleDOM caused multiple location elements; liveE2Eskipped. New beforeAll warms the App transform graph with a separate60000ms setup limit; all per-test5000ms limits, resets, routing/security assertions must remain unchanged. Check whether this addresses cold imports and late rendering without hiding production issues. Original planning/cancellation fixes must remain intact. Fresh cold-cache two-CPU UI shard validation is being prepared; no full-nightly pass yet. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — claude:claude-opus-5-5Overall EvaluationThis cycle changes one file, Vitest's The delta leaves the test's routing and security logic alone:
The production code is untouched, so this cannot hide a production defect. A genuinely slow or broken production render would still fail the unchanged 5 000 ms per-test limit. The earlier work also remains intact:
Limitations: I could not see the full test file body, and I did not run anything. CI shards are still pending, and no full nightly has passed at this head. Merge readiness is therefore conditional on the cold-cache UI shard validation and the pending checks. ✅ Warm-up isolated from per-test budgets — The warm-up's 60 000 ms limit is passed only to ✅ Module isolation preserved — ✅ Earlier fixes untouched — The target-conclusion checks ( Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S17: 🟢 Guard against late renders from timed-out testsThe warm-up removes the most likely cause of the first-test timeout. It does not remove the mechanism behind the secondary "multiple location elements" failure. If any test exceeds 5 000 ms again, its pending Two options would contain this:
Either keeps a single timeout from cascading into misleading failures. This is optional because the primary trigger is now addressed. S18: 🟢 Confirm the eager import has no observable side effectsThe The effects run outside the module registry, so S19: 🟢 Record cold-cache validation evidenceThe rationale depends on the transform cache surviving ScoreNo verified blockers: the delta is a narrowly scoped test-harness change that preserves per-test limits, resets and assertions, and leaves the earlier planning and cancellation fixes intact. Readiness is conditional on the pending shards and the cold-cache UI validation, since no full nightly has passed yet. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
CI failed: Run E2E Test Suite Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 69af8fd Summary of ChangesI fixed the failure. The nightly run hit a test bug in What failed: In nightly run 38105782983, 794 of 795 test units passed. The one failure was test 8, "a terminated dispatch owner releases exclusion so concurrent retries resume its existing issue". Its child process crashed with Cause: The test started the child with
Fix: I changed only that test file. The test now writes the child script to Checks: The file passes 8/8 through There's no visual change, so I didn't create previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…kages/core/test/taskSubmissionService.test.ts`, not a problem in this PR's code. I fixed the failure. The nightly run hit a test bug in `packages/core/test/taskSubmissionService.test.ts`, not a problem in this PR's code. **What failed:** In nightly run 38105782983, 794 of 795 test units passed. The one failure was test 8, "a terminated dispatch owner releases exclusion so concurrent retries resume its existing issue". Its child process crashed with `ERR_INPUT_TYPE_NOT_ALLOWED` before sending its "claimed" message, so the test's 10s wait for that message gave up (`AbortError`). `App.hostedFlow.test.tsx`, the target of the previous fix, passed in this run. **Cause:** The test started the child with `node --import tsx --input-type=module -e <script>`. The code the child imports loads the logger, and outside production the logger writes through a pino-pretty background worker. That worker inherits `--input-type`, Node refuses to start it, and the error kills the whole child. It only fails some of the time because it races the child's "claimed" message. I reproduced the exact error locally with the old form; the file-based form stays alive. `packages/api/test/mcpPublishPlan.test.ts` already hit this problem and solved it the same way, with a comment explaining it. **Fix:** I changed only that test file. The test now writes the child script to `owner.mjs` in its temp directory and runs it with `node --import tsx <file>`, using resolved import paths. The child's behaviour, the 10s handshake limit, the 20s test timeout and all assertions are unchanged. This branch doesn't otherwise touch this test or `taskSubmissionService`. **Checks:** The file passes 8/8 through `scripts/run-test-suite.mjs`, four runs in a row, and ESLint reports nothing for it. I haven't run the full nightly. There's no visual change, so I didn't create previews. PR: #2953 Comment by: @propr-dev[bot] (ID: 6105040974) Model: Claude Opus 5.5
|
/review codex Please independently review exact head 69af8fd, especially the single-file delta from c0e93ec in packages/core/test/taskSubmissionService.test.ts. Verify that the file-based child removes the inherited --input-type worker failure without weakening the live-owner exclusion, terminated-owner recovery, existing-issue identity, concurrent retry, exactly-once dispatch, deadlines, or cleanup assertions. Check temp-file ESM import resolution and supported Node behavior. This is read-only review; do not implement, merge, publish, or deploy. Operator inspection confirms this delta changes only that test file; production source and lockfile are unchanged. One independent local run at this exact worktree using Node v22.23.0 and reused unchanged locked dependencies passed 8/8, zero skips/failures. This is scoped evidence; the original Node v22.23.2 nightly remains failed (794/795; live E2E skipped). A fresh complete nightly remains required. Keep the original failure evidence and avoid describing this focused pass as full nightly qualification. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codexOverall EvaluationThe file-based child is a sound, localized fix for the inherited ✅ Worker-compatible launch — ✅ Temporary-file import resolution — ✅ Narrow assertion-preserving delta — The supplied delta changes child-script construction and invocation, retaining its database configuration, dispatch callback, IPC notification, and 10-second notification deadline. It does not edit the surrounding ownership, retry, dispatch, or cleanup assertions. This was a static review only; I ran no commands and modified no files. The complete task-submission test was not supplied, so I cannot independently certify the adequacy of its surrounding live-owner exclusion, terminated-owner recovery, existing-issue identity, concurrent retry, exactly-once dispatch, and cleanup assertions—only that this delta does not change them. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S20: 🟢 Complete nightly qualificationRetain the original Node v22.23.2 nightly failure as evidence: 794/795 units passed and live E2E was skipped. The reported exact-head Node v22.23.0 result—8/8 passing with unchanged locked dependencies—is useful focused evidence, but does not establish full-suite or live-E2E health. A fresh complete nightly would close that verification gap; this is validation follow-up, not a requested code change. S21: 🟢 Inspect full ownership regressionWhen repository inspection is available, confirm that the temporary ScoreThe localized fix is technically sound on static inspection, and the authoritative current checks show no failures, with 11 pending. The incomplete nightly qualification and unavailable surrounding test body leave a material verification gap. Score: 7/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
CI failed: Full Test Suite Shard 4/4 Please investigate and fix this CI failure.
Failure evidence
|
|
❌ Failed to apply follow-up changes requested by @propr-dev[bot] An error occurred while processing your request: Comment ID: 6105305325✓ |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
|
❌ Failed to apply follow-up changes requested by @propr-dev[bot] An error occurred while processing your request: Comment ID: 6105315418✓ |
Nightly brownfield planning could outlive its 10-minute parent test and keep retrying during later suites. Planning now uses an explicit operation budget, checks deadlines before requests and after responses, forwards cancellation and request timeouts, and tracks late-created plans for cleanup. The nightly job reserves time for diagnostics within its overall timeout.
Cancelling PR validation during a follow-up could also make the fail-closed aggregate report failure and recursively launch another follow-up. Cancellation filtering now requires run-attempt provenance, matching target conclusions, no genuine sibling failure, recognized failed gate steps, and cancellation-dependent failure annotations. Missing or ambiguous evidence keeps normal failure reporting. Required workflow gates and operator cancellation selections are unchanged.
The OpenAPI inventory includes the three hosted Fleet routes with the required
x-propr-fleet-secretheader scheme; generated documentation matches runtime enforcement.Validation:
3f67634: independently reviewed the helper extraction that resolves zero-warning lint failures. Zero-warning lint passes; 208 focused planning, CLI-client, cancellation and recovery tests pass. Actual GitHub cancellation metadata, annotations and failed steps replay correctly while independent shell/assertion failures and timeouts remain reportable.b9bf790(PR head3f67634integrated with mainf19dccd); complete coverage was independently verified against that actual checkout. Core, CLI, shared, E2E, test-runner and nightly-workflow paths are byte-identical to standalone3f67634. The integrated browser run passed 310 Chromium tests; the integrated UI has additional main-branch changes. This is integration proof, not standalone whole-tree equality.dc481f7, 309 Chromium browser tests passed, as did UI types/lint/build, docs types/build, API build/lint and OpenAPI/client contract checks. Its build job failed only the two core lint warnings addressed by3f67634.3f67634; these are component diagnostics, not physical-device acceptance.dc481f7passed on x64 and ARM64. Both original artifact transports and all six DEB/RPM/ZIP hashes and actual ELF architectures were independently verified. Packaged x64 fixtures passed 12 journeys and 60 screenshot/accessibility checks. These are unsigned PR validation packages, not human installed-app acceptance or release promotion.3f67634, 8/10, no merge blockers (comment 6103742012). Earlier GPT-6 Astra review atdc481f7also scored 8/10.dc481f7finished with 792/793 non-live units passing:test/integrationImageHarness.test.mjsexceeded its 180-second unit timeout. Live E2E was skipped. This new failure requires diagnosis; the successful packaging-only nightly bundle is not live acceptance or release promotion.Closes #2942.