Skip to content

[2465 by Claude Opus 5] Reduce CI latency with isolated full-suite shards and serialized nightly runs - #2466

Merged
integry merged 18 commits into
mainfrom
2465/claude-opus-5-reduce-ci-latency-with-is-20260922-1025-5k9
Sep 23, 2026
Merged

integry merged 18 commits into
mainfrom
2465/claude-opus-5-reduce-ci-latency-with-is-20260922-1025-5k9

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2465

Reduces CI latency with four independent full-suite shards and serialized nightly runs, preserving the required Run Full Test Suite gate, complete coverage verification, partial reruns and mandatory hosted native Electron assertions. The desktop deadline-timer fix already on this branch remains included.

This follow-up implements the owner's decision to pilot rootless Docker isolation on gitfix.dev instead of VM migration. Activation remains pending host pilot evidence; leave PROPR_ROOTLESS_PR_CHECKS unset.

Routing and trust

  • PROPR_ROOTLESS_PR_CHECKS=true selects [self-hosted, Linux, X64, propr-rootless] for compatible same-repository, non-Dependabot Linux x64 PR jobs and existing default-branch manual dispatches. Four independent matrix shards remain; no nested coordinator. Docs, build/lint, mocked visual previews and compatible CLI checks share that pool.
  • Unset/disabled, forks, Dependabot and other event routes remain GitHub-hosted. Set the flag to false or remove it as the off switch; already queued jobs need cancellation/restart. These PR check jobs never request the old generic propr label.
  • PROPR_SELF_HOSTED_PR_ACCESS_VERIFIED is neither set nor required, and neither legacy flag controls routing. The new flag signifies rootless execution, not independently enforced fork exclusion.
  • The owner reports manual approval enabled for all external contributors. Fork workflows require approval and normally route hosted, but editable workflow routing is not strict admission control: an approved fork could request rootless labels directly. Approval must account for workflow edits.
  • Rootless contains processes under dedicated unprivileged host accounts. It is not a VM or a guarantee against kernel exploits or cross-job persistence.

Expected pilot contract

Each worker has a dedicated unprivileged host user and user-scoped rootless Docker daemon. Its runner is a container on that daemon, connected only to its socket. Production /var/run/docker.sock and credentials are never mounted. Docker bind sources must exist with identical contents at the same absolute paths in runner and daemon-host mount namespaces. Runner --network host means its daemon's RootlessKit network namespace, not production host networking, allowing locally published Redis ports to be exercised.

Per-user cgroups must cap runner and sibling containers together (two CPU equivalents, 6 GiB high watermark, 8 GiB maximum per worker). Redis and lint containers retain explicit CPU/memory/PID limits. These are design requirements, not completed host or security validation.

Job setup checks executable prerequisites, requires an explicit local Docker endpoint, rejects conflicting contexts and canonical production socket paths, checks rootless/cgroup-v2/systemd metadata, and isolates Docker client configuration before HOME changes. Read-only lint binds fail on missing source paths. Redis cleanup on self-hosted jobs requires successful daemon preflight; existing ownership checks still apply. Container-visible cgroup reports explicitly cannot verify hidden host ancestor limits. System dependencies belong in the runner image; workflows do not provision host packages or services.

Native Electron, desktop sandbox/session checks, glibc ordinary-user checks and native macOS/Windows/ARM64 checks remain hosted without weakening validation. No GitHub permissions/settings, host services, deployments or runner registrations were changed.

Preserved isolation and coverage

Redis names hash NUL-delimited run/job/instance/attempt values. Every removal checks all ownership labels and deletes by immutable container ID; retry recovery removes only the same owner's older attempts. Regressions preserve the shard/default versus shard-default/empty-instance coexistence case and both stop orders. Cleanup remains job-scoped with no global prune.

The aggregate gate still requires all four shards, docs, exact complete coverage and hosted Electron with PROPR_REQUIRE_NATIVE_ELECTRON=1. Partial reruns retain successful earlier artifacts. Sanitized logs, cancellation behavior and serialized unsharded nightly coverage remain unchanged.

Validation and pending evidence

  • 68 focused routing, rootless prerequisite, Redis ownership, coverage/rerun, sanitization and native Electron setup tests passed.
  • Repository-wide actionlint 1.7.12, ShellCheck 0.11.0 for CI helpers, Bash syntax checks and changed-test ESLint passed.
  • Docker tests use a CLI double; no real rootless daemon or gitfix.dev pilot execution was performed.

Runner documentation records topology, trust, prerequisites, recovery and the pilot evidence procedure. Host user/daemon mappings, bind-path identity, Redis reachability, effective combined resource limits and network isolation evidence remain owner-provided prerequisites to activation. Resulting-head CI, actual runner placement and timings remain pending; earlier hosted baseline runs do not establish this follow-up's success or rootless speedup.

…e targeted tests, actionlint and eslint pass locally, but no shard has run in CI yet, so I don't have real shard timings. Those, and the desktop step time, will come from this PR's own CI runs; I'm not claiming a speedup until then.

Full suite sharding (`scripts/run-test-suite.mjs`)
- Split: each test file and each native workspace (currently just `propr-ui`) is one unit. After sorting, units are dealt out round-robin to the shards. On current main that's 513 units: 129 / 128 / 128 / 128. `propr-ui` lands in shard 1 only.
- Unchanged behavior: files still run one at a time inside a shard, with a fresh data directory per file and Redis flushed between files. With no shard settings, the CLI and nightly run the same set of tests as before.
- Shard settings are checked strictly: you pass `--shard=I/N` or `PROPR_TEST_SHARD_INDEX`/`PROPR_TEST_SHARD_COUNT`. It rejects a missing half, zero, leading zeros, decimals, an index above the count, a count above 64, both sources at once, an empty shard, and sharding combined with explicit file names.
- Proof of completeness: `--list` prints the units for a shard without running anything. `--verify-shard-summaries` checks that every expected shard reported, and that every discovered unit ran exactly once with nothing extra. On current main this reports "Verified 4 shards ran all 513 discovered test units exactly once."
- Timing: it logs each unit's time and writes a per-unit JSON summary (`PROPR_TEST_SUMMARY_FILE`). It also adds a "slowest units" table to the job summary, for balancing later.

PR workflow (`pr-test-on-label.yml`)
- Four shard jobs: they run on GitHub-hosted `ubuntu-latest` with no secrets and `fail-fast: false`. Each starts its own Redis and uploads its own sanitized artifact (`…-<attempt>-shard-N`).
- Docs build once: a new job, "Validate Test Preparation and Docs", runs `.propr/setup.sh` a single time instead of per shard. Shards install only the Chromium that the browser tests need.
- "Run Full Test Suite" is now the aggregate gate: the check name is unchanged, so branch protection doesn't change. It uses `always()` and fails if the shards or docs job fail, are cancelled or are skipped. It also re-checks coverage from the uploaded summaries.
- Drafts and re-runs: drafts still skip it, as before. If you re-run only failed jobs, the gate uses each shard's latest attempt, so shards that passed earlier aren't reported as missing.
- Failure comment: it now lists each shard's failed stage, the failing files, and truncated output for the failed shards.
- Per-PR cancel-in-progress is unchanged.

Nightly (`test-nightly.yml`)
- Scheduled and manual runs on the same branch now share one concurrency group with `cancel-in-progress: false`, so they can't overlap. GitHub keeps only the newest queued run waiting; the active run, including live E2E, is never cancelled. The live tests, timeouts, models and failure issue are unchanged.

Desktop bottleneck (fixed)
- Cause: in run 35712445891, the linux-x64 lifecycle script printed its final results about 57 seconds into the step, but the step ran another ~9m23s. The arm64 job took about the same time.
- Why: `extractRpm` waits on a 10-minute deadline timer that is never cleared, so Node doesn't exit until it fires. Three other deadlines had the same leak with shorter timers.
- Fix: a new `withDeadline` helper clears the timer once the operation finishes. Deadlines, error handling, cleanup and artifact checks are unchanged.
- Tests: two new regression tests fail against the old code and pass now. All 29 lifecycle tests pass.

Tests and checks
- 10 new runner tests cover:
  - whether every unit, including the native workspaces, lands in exactly one shard, in a fixture repo and in the real repo
  - invalid shard settings and the list/verify commands
  - the gate script run for real against success, failure, cancelled and skipped results
  - nightly concurrency
- All 16 runner tests pass.
- actionlint 1.7.7 reports no findings for the two changed workflows. The full run flags only unknown runner labels in other workflows, which already existed.

When each change takes effect
- In this PR: the sharded full suite and the desktop fix (the desktop check runs this PR's copy of the script). This PR's CI runs are where the real shard and lifecycle timings will show up.
- After merge: nightly concurrency, since scheduled runs use the default branch.

Nothing was changed on [email protected]: no production services, runner settings, branch protection or deployments.
@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 1/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 1/4
  • Result: failure
  • Commit: ab1ad0caa053 (ab1ad0caa05346193bfa15dea1136492d74ba19c)
  • Details: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:13598
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 8fb25e9

Summary of Changes

Shard 1/4 failed because a test depended on something outside the repo, not because of the sharding code. I fixed the test.

Cause: in test/reasoningLevelSettings.test.ts, two Codex tests ("passes Codex reasoning level through model_reasoning_effort config" and "runs automated Codex executions without persisting resumable sessions") set Codex's config path to ~/.codex. Codex refuses to build its Docker arguments unless that directory exists, so on the CI machine, which has no /home/runner/.codex, both tests failed with "The configured Codex credential directory is unavailable".

These tests already assumed ~/.codex existed before this PR, but that path didn't show up as a failure in the old single-process run. Most likely another test file created the directory earlier in that run; I haven't found which one. Sharding moves files onto separate clean machines, which is what exposed it.

Fix: the Codex test block now uses its own temporary directory, created at the start and deleted when the block finishes, instead of ~/.codex. test/contextAnalysisRuntime.test.ts already does the same thing. No production code changed.

Verification: I ran the file through scripts/run-test-suite.mjs with an empty home directory, which matches CI:

  • Before the fix: 43 passed, 2 failed, the same failure as in CI.
  • After the fix: 45 of 45 passed.

The repo's eslint config skips this file, so linting doesn't cover it. I only reran this one test file, not the whole suite; the next CI run will confirm shard 1.

The Node.js 20 deprecation line in the failure evidence is only a warning about actions/checkout and didn't cause the failure. This change has nothing visual, so there are no previews.


🤖 Implementation Details

  • Model: Claude Opus 5 (high)
  • Requested By: @propr-dev[bot]
  • Time: 3m 21s
  • Tokens: 1,361,027 (1,351,635 in / 9,392 out)
  • Cost: $1.25

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5775066154✓

@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Run Full Test Suite

Please investigate and fix this CI failure.

Failure evidence

.github:26
Process completed with exit code 1.

.github:25
Full test suite shards finished with result 'failure'.

.github:4
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960, actions/download-artifact@018cc2c. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@github-actions

Copy link
Copy Markdown

Full Test Suite Results

Validation failed during: Test shard (shard 1).

  • Dependency install: success
  • Workspace build: success
  • Docs validation: success
  • Shard coverage verification: success
  • Shard 1/4: failed during Test shard in 247.2s
    • test/reasoningLevelSettings.test.ts: exit 1
  • Shard 2/4: passed in 191.6s
  • Shard 3/4: passed in 209.4s
  • Shard 4/4: passed in 215.0s
View shard 1/4 output
...(truncated)

ks synthetic mutations when committed state cannot be reloaded�[33m 310�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m consumes a cancelled add request before switching configuration views�[33m 320�[2mms�[22m�[39m
 �[32m✓�[39m src/serviceWorker.test.ts �[2m(�[22m�[2m21 tests�[22m�[2m)�[22m�[32m 69�[2mms�[22m�[39m
�[90mstdout�[2m | src/hooks/useCurrentUserBootstrap.test.tsx�[2m > �[22m�[2mdesktop current-user bootstrap�[2m > �[22m�[2mmounts an active scope at generation one and enables exactly one stable Manager after current validation
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/hooks/useCurrentUserBootstrap.test.tsx�[2m > �[22m�[2mdesktop current-user bootstrap�[2m > �[22m�[2moverlaps validation with demo-mode loading but keeps Manager disabled until mode resolves in StrictMode
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/hooks/useCurrentUserBootstrap.test.tsx�[2m > �[22m�[2mdesktop current-user bootstrap�[2m > �[22m�[2mconstructs once after activated validation and removes that Manager when revalidation fails
�[22m�[39m[SocketContext] Cleaning up socket connection

 �[32m✓�[39m src/hooks/useCurrentUserBootstrap.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 361�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/setupWizardHooks.persistence.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 67�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useGenerationPolling.test.tsx �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[32m 55�[2mms�[22m�[39m
 �[32m✓�[39m src/api/proprApi.logout.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 204�[2mms�[22m�[39m
 �[32m✓�[39m src/components/VoiceBriefingControl.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[33m 622�[2mms�[22m�[39m
�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Connected to WebSocket server

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Received task update: { id: �[32m'101'�[39m, username: �[32m'alice'�[39m, avatarUrl: �[1mnull�[22m }

 �[32m✓�[39m src/desktop/DesktopExperience.deep-link-presentation.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 805�[2mms�[22m�[39m
   �[33m�[2m✓�[22m�[39m preserves the warm Open account after tunnel presentation with cold delivery after profile loading�[33m 398�[2mms�[22m�[39m
�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Connected to WebSocket server

�[90mstderr�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39mAn update to SocketProvider inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Received task update: { id: �[32m'202'�[39m, username: �[32m'bob'�[39m, avatarUrl: �[1mnull�[22m }

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstderr�[2m | src/components/TaskPlanner/useAutoDraftCreation.test.tsx�[2m > �[22m�[2museAutoDraftCreation�[2m > �[22m�[2mkeeps navigating when persisting the resolved baseBranch fails after auto-creating a draft
�[22m�[39mFailed to persist draft setup snapshot: Error: Transient update failure
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/useAutoDraftCreation.test.tsx:103:39
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:1628:35
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:2783:26
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3319:20
    at new Promise (<anonymous>)
    at runWithCancel (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3314:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3299:20
    at new Promise (<anonymous>)
    at runWithTimeout (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3257:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3876:64

�[90mstderr�[2m | src/components/TaskPlanner/useAutoDraftCreation.test.tsx�[2m > �[22m�[2museAutoDraftCreation�[2m > �[22m�[2msurfaces the persistence warning only for in-place auto-created drafts
�[22m�[39mFailed to persist draft setup snapshot: Error: Transient update failure
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/useAutoDraftCreation.test.tsx:268:39
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:1628:35
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:2783:26
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3319:20
    at new Promise (<anonymous>)
    at runWithCancel (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3314:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3299:20
    at new Promise (<anonymous>)
    at runWithTimeout (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3257:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3876:64

 �[32m✓�[39m src/components/TaskPlanner/useAutoDraftCreation.test.tsx �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[32m 50�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/PlansPage.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 589�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/account-switching.integration.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[33m 4071�[2mms�[22m�[39m
   �[33m�[2m✓�[22m�[39m pairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload�[33m 4069�[2mms�[22m�[39m
�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mcreates one force-new scoped Manager on null-to-A activation
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for scope rotation
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for scope rotation
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for same-origin A-to-B
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for same-origin A-to-B
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreports a replacement Manager as disconnected until its own connect event
�[22m�[39m[SocketContext] Connected to WebSocket server
[SocketContext] Cleaning up socket connection
[SocketContext] Connected to WebSocket server

�[90mstderr�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreports a replacement Manager as disconnected until its own connect event
�[22m�[39m[SocketContext] Connection error: not connected

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreports a replacement Manager as disconnected until its own connect event
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mrotates the Manager when the effective API origin changes
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mrotates the Manager when the effective API origin changes
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdisconnects on deactivate and creates no replacement
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mkeeps the hosted browser cookie socket without a desktop marker
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mclassifies authentication errors against the immutable activation scope
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreconnects the current Manager when authorization changes without invalidating its token
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mnever reconnects a stale same-origin Manager after deferred authorization work resolves
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mnever reconnects a stale same-origin Manager after deferred authorization work resolves
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdrops application events delivered by an old desktop scope
�[22m�[39m[SocketContext] Cleaning up socket connection
[SocketContext] Received task update: { eventType: �[32m'task:update'�[39m }

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdrops application events delivered by an old desktop scope
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdelivers live events without logging their potentially large payload
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches listeners and disconnects on unmount
�[22m�[39m[SocketContext] Cleaning up socket connection

 �[32m✓�[39m src/contexts/SocketProvider.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[32m 133�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.recovery.test.tsx �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[33m 795�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/TaskList.test.tsx�[2m > �[22m�[2mTaskList�[2m > �[22m�[2mshows loading until an initial empty read succeeds and never treats a failure as empty
�[22m�[39mError fetching tasks: Error: Tasks unavailable
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskList.test.tsx:196:50
    at /home/runner/work/propr/propr/node_modules/�[4m@testing-library/react�[24m/dist/act-compat.js:47:24
    at process.env.NODE_ENV.exports.act (/home/runner/work/propr/propr/node_modules/�[4mreact�[24m/cjs/react.development.js:814:22)
    at Proxy.<anonymous> (/home/runner/work/propr/propr/node_modules/�[4m@testing-library/react�[24m/dist/act-compat.js:46:25)
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskList.test.tsx:196:11
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:2783:20

 �[32m✓�[39m src/components/TaskList.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 552�[2mms�[22m�[39m
�[90mstdout�[2m | src/hooks/useDraft.test.tsx�[2m > �[22m�[2museDraft�[2m > �[22m�[2mapplies generation socket snapshots without refetching the draft
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  eventType: �[32m'draft:update'�[39m,
  draftId: �[32m'draft-1'�[39m,
  step: �[32m'context'�[39m,
  status: �[32m'in_progress'�[39m,
  timestamp: �[32m'2026-05-05T00:00:05Z'�[39m,
  draftStatus: �[32m'generating'�[39m,
  generationTrace: { steps: [ �[36m[Object]�[39m, �[36m[Object]�[39m ] }
}

�[90mstdout�[2m | src/hooks/useDraft.test.tsx�[2m > �[22m�[2museDraft�[2m > �[22m�[2mresyncs once when a socket event reports a terminal draft status
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  eventType: �[32m'draft:update'�[39m,
  draftId: �[32m'draft-1'�[39m,
  step: �[32m'llm'�[39m,
  status: �[32m'completed'�[39m,
  timestamp: �[32m'2026-05-05T00:00:10Z'�[39m,
  draftStatus: �[32m'review'�[39m,
  generationTrace: { steps: [ �[36m[Object]�[39m, �[36m[Object]�[39m, �[36m[Object]�[39m ] }
}

�[90mstdout�[2m | src/hooks/useDraft.test.tsx�[2m > �[22m�[2museDraft�[2m > �[22m�[2minstalls the next run ID before accepting its first socket snapshot
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  eventType: �[32m'draft:update'�[39m,
  draftId: �[32m'draft-1'�[39m,
  runId: �[32m'generation-run-2'�[39m,
  step: �[32m'context'�[39m,
  status: �[32m'in_progress'�[39m,
  timestamp: �[32m'2026-05-05T00:00:10Z'�[39m,
  draftStatus: �[32m'generating'�[39m,
  generationTrace: { runId: �[32m'generation-run-2'�[39m, steps: [ �[36m[Object]�[39m ] }
}

�[90mstdout�[2m | src/hooks/useDraft.test.tsx�[2m > �[22m�[2museDraft�[2m > �[22m�[2mapplies terminal draft status from the socket before the follow-up fetch resolves
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  eventType: �[32m'draft:update'�[39m,
  draftId: �[32m'draft-1'�[39m,
  step: �[32m'complete'�[39m,
  status: �[32m'completed'�[39m,
  timestamp: �[32m'2026-05-05T00:00:10Z'�[39m,
  draftStatus: �[32m'review'�[39m,
  generationTrace: { steps: [ �[36m[Object]�[39m, �[36m[Object]�[39m, �[36m[Object]�[39m ] }
}

 �[32m✓�[39m src/hooks/useDraft.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 302�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/DesktopNotificationSettingsSection.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 678�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.connect-prefill.test.tsx �[2m(�[22m�[2m26 tests�[22m�[2m)�[22m�[33m 2267�[2mms�[22m�[39m
   �[32m✓�[39m macos Add Instance Connect prefill �[2m(13)�[22m
     �[33m�[2m✓�[22m�[39m preserves the typed name and requires confirmation before probe, pairing, or persistence�[33m 362�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/nativeCommands.integration.test.tsx �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[32m 285�[2mms�[22m�[39m
 �[32m✓�[39m src/api/proprApi.sharedReads.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 193�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Layout.desktop.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 960�[2mms�[22m�[39m
   �[32m✓�[39m Layout desktop instance selector �[2m(8)�[22m
     �[33m�[2m✓�[22m�[39m keeps version and copyright on web but out of the desktop sidebar�[33m 410�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.discovery.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 629�[2mms�[22m�[39m
   �[32m✓�[39m DesktopExperience production Connect discovery pipeline �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m prefills through main discovery, IPC, preload, and the MacIntel Electron adapter before explicit confirmation�[33m 331�[2mms�[22m�[39m
 �[32m✓�[39m src/voice/voiceCommands.test.ts �[2m(�[22m�[2m46 tests�[22m�[2m)�[22m�[32m 20�[2mms�[22m�[39m
�[90mstdout�[2m | src/components/TaskDetails/useTaskData.test.ts�[2m > �[22m�[2mtask detail history refreshes�[2m > �[22m�[2mturns the fixture baseline of three burst invalidations into one additional history request
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task-1'�[39m, state: �[32m'processing'�[39m }
[useTaskData] Received task update via WebSocket: { taskId: �[32m'task-1'�[39m, state: �[32m'processing'�[39m }
[useTaskData] Received task update via WebSocket: { taskId: �[32m'task-1'�[39m, state: �[32m'processing'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.test.ts�[2m > �[22m�[2mtask detail history refreshes�[2m > �[22m�[2mdoes not replace newer socket logs with a persisted snapshot that finishes later
�[22m�[39m[useTaskData] Received initial live data via WebSocket: 1 events

 �[32m✓�[39m src/components/TaskDetails/useTaskData.test.ts �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[32m 35�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.authentication.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 711�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/MobileBottomNavigation.test.tsx�[2m > �[22m�[2mMobileBottomNavigation�[2m > �[22m�[2mhides Access without member management permission
�[22m�[39mAn update to AgentTankSidebar inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentTankSidebar inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/MobileBottomNavigation.test.tsx�[2m > �[22m�[2mMobileBottomNavigation�[2m > �[22m�[2msigns out from the identity section
�[22m�[39mAn update to AgentTankSidebar inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentTankSidebar inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/MobileBottomNavigation.test.tsx �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[33m 963�[2mms�[22m�[39m
 �[32m✓�[39m src/components/PreviewMedia.test.tsx �[2m(�[22m�[2m17 tests�[22m�[2m)�[22m�[33m 604�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2madds a loginable agent with an isolated managed credential path and requests login
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2mallows a new agent to reuse an existing config directory instead of logging in
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2muses the agent alias in long model labels
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2msaves a model-specific reasoning level for Codex agents
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2mmarks a legacy cross-agent reasoning value as unsupported
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/pages/SettingsPage/AgentConfigModal.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 1206�[2mms�[22m�[39m
   �[32m✓�[39m AgentConfigModal �[2m(7)�[22m
     �[33m�[2m✓�[22m�[39m adds a loginable agent with an isolated managed credential path and requests login�[33m 466�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/SettingsNavigation.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 794�[2mms�[22m�[39m
   �[32m✓�[39m SettingsNavigation �[2m(7)�[22m
     �[33m�[2m✓�[22m�[39m organizes settings into category tabs�[33m 389�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Mcp/McpConnectedAppRow.test.tsx �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[33m 609�[2mms�[22m�[39m
 �[32m✓�[39m src/api/proprApi.status.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 24�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useContextRefresh.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 52�[2mms�[22m�[39m
 �[32m✓�[39m src/App.hostedFlow.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 860�[2mms�[22m�[39m
   �[32m✓�[39m HostedFlowRouteSync �[2m(5)�[22m
     �[33m�[2m✓�[22m�[39m preserves the validated active flow across actual React Router navigation without duplicating query parameters�[33m 533�[2mms�[22m�[39m
 �[32m✓�[39m src/api/voiceApi.test.ts �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[32m 105�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/inboxUtils.test.ts �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 34�[2mms�[22m�[39m
 �[32m✓�[39m src/voice/browserSpeech.test.ts �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 12�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/reviewPromptOverview.test.ts �[2m(�[22m�[2m18 tests�[22m�[2m)�[22m�[32m 25�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AgentLoginModal.test.tsx �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[33m 791�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.oauthUrl.test.tsx �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useHeaderStats.running.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 240�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalHeaderComponents.status.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 298�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop-deep-link.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/AddRepositoryModal.test.tsx�[2m > �[22m�[2mAddRepositoryModal�[2m > �[22m�[2mkeeps branch selection in the scroll-owned form and submits through one form path
�[22m�[39mIn HTML, <button> cannot be a descendant of <button>.
This will cause a hydration error.

  <AddRepositoryModal isOpen={true} newRepo="integry/propr" newAlias="Production" newBaseBranch="release/20..." ...>
    <div className="fixed inse..." onClick={function handleBackdropClick}>
      <div ref={{...}} role="dialog" aria-modal="true" aria-labelledby="_r_9_" tabIndex={-1} className="bg-white r...">
        <div>
        <form onSubmit={function handleSubmit} className="flex min-h...">
          <div data-testid="add-reposi..." className="min-h-0 fl...">
            <div>
            <div>
            <div>
              <label>
              <BaseBranchSelector repoName="integry/propr" value="release/20..." onChange={function Mock} ...>
                <div className="relative" ref={{...}}>
>                 <button
>                   id="_r_d_"
>                   type="button"
>                   onClick={function handleOpen}
>                   disabled={false}
>                   aria-labelledby="_r_e_ _r_h_"
>                   aria-describedby="_r_f_"
>                   aria-haspopup="listbox"
>                   aria-expanded={false}
>                   className="w-full px-3 py-2 text-left bg-white border border-gray-300 rounded-md font-mono text-sm..."
>                 >
                    <span>
                    <div className="flex items...">
>                     <button
>                       type="button"
>                       onClick={function handleClear}
>                       className="p-0.5 hover:bg-gray-200 rounded text-gray-400 hover:text-gray-600"
>                       title="Clear selection"
>                     >
                      ...
              ...
            ...
          ...

<button> cannot contain a nested <button>.
See this log for the ancestor stack trace.

 �[32m✓�[39m src/components/AddRepositoryModal.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 577�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AIModelSelectionSection.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 447�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/VisualPreviewAuthSection.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 462�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/NotificationSettingsSection.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 1345�[2mms�[22m�[39m
 �[32m✓�[39m src/components/SummaryBrowser/index.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 187�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/usePlanRefinement.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 57�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AgentRuntimePackagesSection.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 736�[2mms�[22m�[39m
   �[32m✓�[39m AgentRuntimePackagesSection �[2m(6)�[22m
     �[33m�[2m✓�[22m�[39m offers catalog suggestions and validates a selected package�[33m 381�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useHeaderStats.scope.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[33m 337�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useLiveRefreshScheduler.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 28�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/AccessManagementPage.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 348�[2mms�[22m�[39m
 �[32m✓�[39m src/api/currentUserResponse.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 15�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.hostedOAuthLifecycle.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 300�[2mms�[22m�[39m
�[90mstderr�[2m | src/contexts/NotificationCenterContext.test.tsx�[2m > �[22m�[2mNotificationCenterProvider�[2m > �[22m�[2mignores a previous account preference after identity changes
�[22m�[39mAn update to NotificationCenterProvider inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/contexts/NotificationCenterContext.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 211�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2momits tab and requests for disabled/legacy repositories (false)
�[22m�[39mAn update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2momits tab and requests for disabled/legacy repositories (undefined)
�[22m�[39mAn update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2mclears media on repository change and disabling, ignoring stale requests
�[22m�[39mAn update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/Repositories/RepoMediaPanel.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 542�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanIssuesManager.notificationIntent.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 742�[2mms�[22m�[39m
   �[32m✓�[39m PlanIssuesManager execution intent �[2m(3)�[22m
     �[33m�[2m✓�[22m�[39m cancel closes without starting implementation�[33m 414�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanEditor.notificationIntent.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 661�[2mms�[22m�[39m
   �[32m✓�[39m PlanEditor notification intents �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m never approves from navigation and cancel leaves the plan unchanged�[33m 614�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/windowChromeStyles.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 9�[2mms�[22m�[39m
 �[32m✓�[39m src/components/AgentChat/ModelSelector.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 611�[2mms�[22m�[39m
   �[32m✓�[39m ModelSelector keyboard navigation �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m scrolls to and selects an active option beyond the initial viewport�[33m 426�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useCurrentUserBootstrap.mainProxy.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 81�[2mms�[22m�[39m
 �[32m✓�[39m src/api/apiClient.accounts.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 19�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RepositoryVisualPreviewControl.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 326�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/AuthenticatedAttachmentImage.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 243�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.shortcut-readiness.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 238�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/planIssueDefaultSelection.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/packagedAcceptanceRendererLifecycle.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useHeaderStats.status.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 191�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalHeader.desktop.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[33m 303�[2mms�[22m�[39m
   �[32m✓�[39m GlobalHeader desktop toolbar �[2m(1)�[22m
     �[33m�[2m✓�[22m�[39m keeps counters left, search centered, and app actions on the right without account chrome�[32m 300�[2mms�[22m�[39m
 �[32m✓�[39m src/api/compatibility.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 119�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AgentsListSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 704�[2mms�[22m�[39m
   �[32m✓�[39m AgentsListSection web login �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m folds legacy models within each provider until requested�[33m 437�[2mms�[22m�[39m
 �[32m✓�[39m src/serviceWorkerRegistration.test.ts �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanEditor.responsive.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 51�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/SetupWizardHeaders.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 251�[2mms�[22m�[39m
 �[32m✓�[39m src/App.hostedCompletion.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 226�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/browserAdapters.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 26�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/TaskRows.desktop.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 634�[2mms�[22m�[39m
   �[32m✓�[39m desktop task rows �[2m(5)�[22m
     �[33m�[2m✓�[22m�[39m retains named navigation and independent expansion on macos�[33m 347�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Inbox/NotificationActions.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 181�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/VoiceSettingsSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 306�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/AttachmentUploader.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 67�[2mms�[22m�[39m
 �[32m✓�[39m src/api/notificationApi.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopInstanceSelector.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 266�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/SettingsLayout.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 263�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.accounts.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 525�[2mms�[22m�[39m
   �[33m�[2m✓�[22m�[39m shows both users at one instance and adds an account with a fresh binding�[33m 315�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.desktopAuthentication.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 221�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SummaryBrowserPage.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 99�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopPresentationBoundary.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 248�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/ManagedPreviewStorageSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 220�[2mms�[22m�[39m
 �[32m✓�[39m src/api/goals.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/components/UserAvatar.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 211�[2mms�[22m�[39m
 �[32m✓�[39m src/components/AIActivityMonitor.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 394�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/displayTitles.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/ActionBar.responsive.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 327�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/GlobalSearch.loading.test.tsx�[2m > �[22m�[2mGlobalSearch loading states�[2m > �[22m�[2mrenders a search failure as an error rather than an empty result
�[22m�[39mSearch failed: Error: Search unavailable
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/components/GlobalSearch.loading.test.tsx:49:44
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:1628:35
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:2783:26
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3319:20
    at new Promise (<anonymous>)
    at runWithCancel (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3314:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3299:20
    at new Promise (<anonymous>)
    at runWithTimeout (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3257:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3876:64

 �[32m✓�[39m src/components/Layout.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 250�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalSearch.loading.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[33m 902�[2mms�[22m�[39m
   �[32m✓�[39m GlobalSearch loading states �[2m(2)�[22m
     �[33m�[2m✓�[22m�[39m waits for successful task and plan reads before showing no results�[33m 541�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m renders a search failure as an error rather than an empty result�[33m 355�[2mms�[22m�[39m
 �[32m✓�[39m src/utils/summaryBrowser.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/preloadWindowFrame.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 12�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/DesktopPairingPage.test.tsx�[2m > �[22m�[2mDesktopPairingPage�[2m > �[22m�[2mshows the server-provided client name and requires an explicit approval click
�[22m�[39mIn HTML, <div> cannot be a descendant of <p>.
This will cause a hydration error.

  <MemoryRouter initialEntries={[...]}>
    <Router basename={undefined} location={{pathname:"...", ...}} navigationType="POP" navigator={{index:0, ...}} ...>
      <AuthProvider user={{id:"101", ...}}>
        <DesktopPairingPage>
          <main className="flex min-h...">
            <section className="w-full max...">
              <img>
              <h1>
              <p>
>             <p className="mt-3 text-sm">
                <GitHubAccountIdentity account={{id:"101", ...}}>
                  <span className="inline-fle...">
                    <UserAvatar user={{id:"101", ...}} className="flex h-6 w..." fallbackClassName="bg-slate-1..." ...>
                      <AvatarFallback accessibleName="alice avatar" className="flex h-6 w..." ...>
>                       <div
>                         className="flex h-6 w-6 flex-none items-center justify-center rounded-full border border-sla..."
>                         aria-hidden={true}
>                       >
                    ...
              ...

<p> cannot contain a nested <div>.
See this log for the ancestor stack trace.

 �[32m✓�[39m src/pages/DesktopPairingPage.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 208�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/PackagedAcceptanceLocalSetup.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 298�[2mms�[22m�[39m
 �[32m✓�[39m src/api/agentLoginApi.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/PlanStudioPage.notificationIntent.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 102�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RouteChunkErrorBoundary.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 242�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/ExecutionEventLog.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 231�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/electronAdapters.localSetup.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/api/summaryApi.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/App.invalidConfiguration.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 760�[2mms�[22m�[39m
   �[32m✓�[39m invalid eager API configuration �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m renders a bounded safe connection screen without leaking configured input�[33m 631�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useSystemReadiness.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 50�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/apiDataGuards.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 8�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RepositoryListItem.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 196�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/scopedTaskEvents.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
�[90mstdout�[2m | src/components/TaskDetails/LiveFileChips.test.tsx�[2m > �[22m�[2mLiveFileChips live refreshes�[2m > �[22m�[2mturns the fixture baseline of three burst invalidations into one additional file-changes request
�[22m�[39m[LiveFileChips] Received task update, refreshing file changes: { taskId: �[32m'task-1'�[39m }
[LiveFileChips] Received task update, refreshing file changes: { taskId: �[32m'task-1'�[39m }
[LiveFileChips] Received task update, refreshing file changes: { taskId: �[32m'task-1'�[39m }

 �[32m✓�[39m src/components/TaskDetails/LiveFileChips.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 28�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/setupWizardDraftConfig.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 8�[2mms�[22m�[39m
 �[32m✓�[39m src/api/taskPathEncoding.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 12�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/TaskVisualPreviews.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 242�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/lifecycleStatus.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[33m 301�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useAgentTankSuggestion.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 86�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RepositoryIcon.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 38�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/headerStatsRequestCoordinator.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.window-controls.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[33m 350�[2mms�[22m�[39m
   �[32m✓�[39m DesktopExperience Linux window controls �[2m(1)�[22m
     �[33m�[2m✓�[22m�[39m keeps native window actions outside the inert app and actionable while instance management is open�[33m 344�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/ReferenceChips.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 44�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GitHubAccountIdentity.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 50�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useDesktopLayout.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 28�[2mms�[22m�[39m
 �[32m✓�[39m src/api/previewStorageApi.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/AgentModelSelectorParts.responsive.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 51�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopWindowControls.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 197�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/syntaxHighlighter.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 12�[2mms�[22m�[39m
 �[32m✓�[39m src/components/taskStatusBreakdown.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 19�[2mms�[22m�[39m
 �[32m✓�[39m src/components/ui/SystemAlert.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 170�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Repositories/ModelContextSelector.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 271�[2mms�[22m�[39m
 �[32m✓�[39m src/utils/notificationIntents.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/api/revertApi.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/api/proprApi.instanceCatalog.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 8�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/ExecutionEventUtils.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 4�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Repositories/RepoBrowsePanel.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 28�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/RefinementChat.focus.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 128�[2mms�[22m�[39m

�[2m Test Files �[22m �[1m�[32m154 passed�[39m�[22m�[90m (154)�[39m
�[2m      Tests �[22m �[1m�[32m1193 passed�[39m�[22m�[90m (1193)�[39m
�[2m   Start at �[22m 10:39:46
�[2m   Duration �[22m 86.92s�[2m (environment 52%, tests 26%, import 14%, setup 4%, transform 4%)�[22m

�[2mEnvironment �[22m �[33mjsdom was created 154 times�[39m�[2m · 124.37s total, 52% of tracked time�[22m
�[2m            �[22m �[2mcreate it once per worker with �[22m�[33mpool: 'vmThreads'�[39m�[2m (keeps per-file isolation) or �[22m�[33misolate: false�[39m�[2m (shares it across files)�[22m
�[2m            �[22m �[2mlearn more: https://vitest.dev/guide/improving-performance#test-environments�[22m


> [email protected] posttest
> npm run test:docker-context


> [email protected] test:docker-context
> node --test scripts/docker-context-inputs.test.mjs

TAP version 13
# Subtest: focused UI selectors are forwarded only to Vitest
ok 1 - focused UI selectors are forwarded only to Vitest
  ---
  duration_ms: 0.699731
  type: 'test'
  ...
# Subtest: the UI Docker context contains its complete non-type external source import closure
ok 2 - the UI Docker context contains its complete non-type external source import closure
  ---
  duration_ms: 34.901871
  type: 'test'
  ...
1..2
# tests 2
# suites 0
# pass 2
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 80.591945
[129/129] passed propr-ui (workspace test script) in 87.5s

### Shard 1/4: 128/129 passed in 247.2s

Assigned 129 of 513 discovered units.

| Duration | Status | Unit |
| ---: | --- | --- |
| 87.5s | passed | `propr-ui` (workspace) |
| 11.2s | passed | `apps/desktop/src/saved-accounts.test.ts` |
| 7.1s | passed | `test/buildImages.test.mjs` |
| 5.5s | passed | `packages/api/test/connectAuthCallback.test.ts` |
| 5.4s | passed | `packages/cli/src/commands/initCommands.test.ts` |
| 5.3s | passed | `test/prContinuation.test.ts` |
| 4.3s | passed | `apps/desktop/scripts/electron-frame-semantics.test.mjs` |
| 3.9s | passed | `test/notificationPublicEntrypoint.test.ts` |
| 3.7s | passed | `apps/desktop/scripts/macos-window-chrome.test.mjs` |
| 3.6s | passed | `packages/api/test/authRedirect.test.ts` |
| 3.2s | passed | `test/codexAppServerGoal.test.ts` |
| 2.8s | passed | `test/routingWebSocketIntakeService.test.ts` |
| 2.6s | passed | `packages/api/test/previewMediaProjection.test.ts` |
| 2.6s | passed | `packages/api/test/socketServiceOrdering.test.ts` |
| 2.5s | passed | `apps/desktop/scripts/desktop-icon-assets.test.mjs` |


1/129 test runs failed in shard 1/4 after 247.2s:
- test/reasoningLevelSettings.test.ts: exit 1

View Workflow

@integry

integry commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Update this PR to prefer the existing gitfix.dev self-hosted runner for compatible PR checks. This is a change to the requested execution location, not a request to reduce test coverage.

Verified host facts: Ubuntu 24.04 x64, 12 logical CPUs, 62 GiB RAM, roughly 46 GiB available; one ProPR runner registered and online with labels [self-hosted, Linux, X64, propr]. Other repositories and ProPR services share this host. The ProPR runner currently runs as root. Do not restart services, register runners, change permissions, or touch production data as part of this implementation.

Requirements:

  1. Route compatible Linux x64 test/build/lint/docs PR jobs to gitfix.dev. Audit pr-test-on-label.yml and pr-build-check.yml first. Keep macOS, Windows and native ARM64 jobs on matching hosted runners. For desktop Linux x64, only migrate checks if their ordinary-user, browser sandbox, desktop/session and clean-environment requirements can be met without weakening validation; otherwise leave hosted and document the concrete reason. Keep release/deployment jobs outside this change.
  2. Do not send fork PR code to the shared root-run host. Preserve hosted execution for forks. Do not use pull_request_target to execute PR code, and do not describe a PR-editable routing expression as a security boundary. Document the existing runner's trust constraints and any repository-side restriction needed; do not broaden runner access or change repository permissions.
  3. There is only ONE matching runner worker: changing all four matrix entries to self-hosted would serialize them and lose the speed improvement. Preserve parallel suite execution without assuming additional registered workers. Implement one bounded local shard coordinator job on the self-hosted runner, running the four shards in independent temporary workspaces with independent Redis containers/ports/state and independent outputs; preserve the hosted matrix path for forks if needed. Keep sequential test-file execution inside each shard. Avoid shared mutable node_modules/build trees between concurrently running workspaces. Bound parallelism to four and avoid machine-wide cleanup. Cleanup must work on success, failure and cancellation, and kill only this run's own children/containers.
  4. Fix scripts/ci-redis.sh isolation for shared-host parallelism: its current RUN_KEY uses only GITHUB_RUN_ID and GITHUB_JOB, which are identical across matrix instances/local shards. Include an explicit per-shard/instance discriminator and an appropriate attempt key. start/stop must agree and one shard must never remove another shard's Redis. Preserve existing non-sharded callers and opt-in flushing only for job-owned Redis.
  5. Keep the Run Full Test Suite aggregate check name and fail-closed behavior. Require every shard's success plus coverage completeness, keep sanitized per-shard artifacts and timing evidence, and retain rerun support. Ensure persistent runner workspaces/caches cannot make test preparation checks fail from stale dist files or allow omitted setup to appear successful. Don't run global Docker prune or mutate production package/tool configuration.
  6. Document routing and capacity: which jobs moved, which remain hosted and why, how to increase capacity later, and that self-hosted jobs queue if no matching runner is available (there is no automatic hosted fallback). Retain nightly serialization and the timer fix.
  7. Add focused regression coverage for routing, isolated shard resources/workspaces, propagated failures/cancellation, and complete coverage. Run actionlint, affected tests, and inspect actual CI runner_name and results. Address the already-reported reasoningLevelSettings failure based on evidence; do not remove tests to get green.

Keep this as one queued follow-up after the currently running CI repair, with no overlapping writers. Update the PR description to the final implementation and report real runner placement/timings rather than estimates. Do not merge or deploy.

…de the repo, not because of the sharding code. I fixed the test.

Shard 1/4 failed because a test depended on something outside the repo, not because of the sharding code. I fixed the test.

**Cause:** in `test/reasoningLevelSettings.test.ts`, two Codex tests ("passes Codex reasoning level through model_reasoning_effort config" and "runs automated Codex executions without persisting resumable sessions") set Codex's config path to `~/.codex`. Codex refuses to build its Docker arguments unless that directory exists, so on the CI machine, which has no `/home/runner/.codex`, both tests failed with "The configured Codex credential directory is unavailable".

These tests already assumed `~/.codex` existed before this PR, but that path didn't show up as a failure in the old single-process run. Most likely another test file created the directory earlier in that run; I haven't found which one. Sharding moves files onto separate clean machines, which is what exposed it.

**Fix:** the Codex test block now uses its own temporary directory, created at the start and deleted when the block finishes, instead of `~/.codex`. `test/contextAnalysisRuntime.test.ts` already does the same thing. No production code changed.

**Verification:** I ran the file through `scripts/run-test-suite.mjs` with an empty home directory, which matches CI:
- **Before the fix:** 43 passed, 2 failed, the same failure as in CI.
- **After the fix:** 45 of 45 passed.

The repo's eslint config skips this file, so linting doesn't cover it. I only reran this one test file, not the whole suite; the next CI run will confirm shard 1.

The Node.js 20 deprecation line in the failure evidence is only a warning about `actions/checkout` and didn't cause the failure. This change has nothing visual, so there are no previews.

PR: #2466
Comment by: @propr-dev[bot] (ID: 5775066154)
Model: claude-opus-5
@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit e3b0415

Processed 3 comments:

  • Comment 1 by @propr-dev[bot] (ID: 5775068790✓)
  • Comment 2 by @github-actions[bot] (ID: 5775069621✓)
  • Comment 3 by @integry (ID: 5775105836✓)

Summary of Changes

I've made the requested changes. Trusted PRs now run the full suite as four parallel shards in one job on gitfix.dev, and forks stay on hosted runners. None of the new self-hosted setup has run in CI yet, so I have no runner placement or timings for it. Those will come from this PR's next run; the job summary and a full-test-timing-* artifact record them.

reasoningLevelSettings failure: already fixed by the previous commit. In CI on 8fb25e9, shard 1 passed, including that test, and the whole Full Test Suite run was green.

What changed:

  • Routing: the same condition appears in every routed job, and a test keeps the copies identical:

    • PRs from branches in this repo and manual runs go to gitfix.dev. That covers the full suite and the Validate Changes job.
    • Fork PRs, Dependabot PRs, and runs with the repository variable PROPR_SELF_HOSTED_PR_CHECKS=false stay on hosted runners.
    • There is no automatic fallback: if the runner is busy or offline, those jobs wait in the queue. Setting that variable to false sends new runs back to hosted.
  • One job instead of four: a new script, scripts/run-local-shards.mjs, runs at most four shards at once. Each shard gets:

    • its own copy of the prepared checkout, including installed packages and build output.
    • its own home and temp directories.
    • its own Redis container and port.
    • its own output files.

    Files still run one at a time inside each shard. On cancellation it stops every shard. A cleanup step that always runs kills only this run's processes and Redis containers, and never does a Docker-wide cleanup.

  • scripts/ci-redis.sh: container names now include a per-shard instance and the attempt number, and start/stop always agree on them. One shard can no longer remove another's Redis. Existing callers that don't set an instance behave as before.

  • Coverage I had to protect: on gitfix.dev, two Electron tests skip with "Electron cannot start on this worker (exit 127)", while hosted runners actually run them. For self-hosted runs, a hosted job re-runs those two tests with a new flag that turns the skip into a failure, so nothing is lost.

  • Required check: "Run Full Test Suite" keeps its name and fails closed. It requires the chosen path's jobs to succeed, and it re-checks from the shard artifacts that every test ran exactly once. Rerunning failed jobs still works.

  • Nothing touches the shared host:

    • Jobs use private home and cache directories, not the host's /root.
    • The checkout doesn't keep the token in the persistent workspace.
    • Stale build output is deleted before building and fresh output is required after.
    • Nothing is apt-installed on the host: Playwright's system-package install only runs on hosted runners.
  • Docs and PR description: docs/ci-runners.md covers which jobs moved, which stayed hosted and why, the trust constraints, and how to add capacity. I also rewrote the PR description to match.

Measured so far (current head, all on hosted runners):

What Time
Full Test Suite, 4 hosted shards (whole run) 5m19s (was 17m19s as one job)
Desktop linux-x64 install lifecycle step 57s (was 10m20s)
Nightly full suite on gitfix.dev, unsharded (baseline) 16m44s

Tests: all 46 affected tests pass: 20 new routing/shard tests, 16 existing runner tests and 10 Electron setup tests. reasoningLevelSettings also passes with an empty home directory. actionlint and shellcheck report nothing for the files I changed, and ESLint is clean. A local run copied this checkout into four shard workspaces with the real ci-redis.sh and a stubbed docker. Tests ran inside the copies and used each copy's own packages. The copies took 25–35s here, a cost the CI run will measure on the real host.

Decisions for you:

  • Validate Changes on the same runner: with only one worker, it and the full-suite job run one after the other. On hosted runners, Validate Changes took 218s, so one of the two checks may finish later than it does now. The CI run will show whether that's acceptable, or whether it should go back to hosted.
  • Six short build-check jobs stayed hosted (the CLI, visual-preview and init-JSON jobs, plus the other CLI compatibility workflow). Each takes under 2.5 minutes, and together they'd add about 7 minutes of queue on the one worker. The glibc 2.31 container job stays hosted because it needs a non-root user.
  • Desktop Linux x64 stayed hosted. It needs sudo apt-get, a virtual display and desktop session, and a non-root user for Chromium's sandbox. Electron also can't start on the host.
  • Fork-approval setting: the routing condition isn't a security boundary, since a PR can edit it. What keeps fork code off the host is the repository's setting that requires approval for fork PR workflows from outside collaborators. Please confirm it's on; I changed no permissions or runner settings. Also note that anyone with write access now runs code as root on gitfix.dev.

No previews, since nothing here is visual.


🤖 Implementation Details

  • Model: Claude Opus 5 (high)
  • Requested By: @propr-dev[bot], @github-actions[bot], @integry
  • Time: 22m 49s
  • Tokens: 12,539,131 (12,422,826 in / 116,305 out)
  • Cost: $10.77

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 5775068790✓, 5775069621✓, 5775105836✓

@integry

integry commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

Host-side runner capacity is being provisioned now, per the owner's explicit request: gitfix.dev will have FOUR ProPR runner workers in total (existing worker plus three new workers), each with a separate installation/work directory. All match [self-hosted, Linux, X64, propr].

This supersedes requirement 3 in my preceding comment: KEEP the four GitHub matrix shard jobs, route compatible trusted Linux x64 work to the existing labels, and do NOT implement a nested four-shard local coordinator. One shard per runner worker; four workers total. Preserve hosted routing for forks and native other architectures. The shared-host Redis name/port/state isolation fix is still essential: GITHUB_RUN_ID + GITHUB_JOB is identical across matrix entries; add explicit shard/instance and attempt discrimination.

Each runner service will have CPUQuota=200%, MemoryHigh=6G and MemoryMax=8G, so the four runner process trees have a combined ceiling of eight CPU equivalents and 32 GiB. Docker containers are managed by the Docker daemon outside those service cgroups: apply explicit limits to CI-owned containers as appropriate and do not assume service quotas constrain Docker workloads. Keep cleanup scoped to this job and preserve production services. Do not add more registered workers or change host configuration inside the implementation task.

Review persistent-workspace cleanup, non-root/browser sandbox requirements, resource isolation, and actual job runner_name evidence. No merge or deployment is authorized.

Provisioning complete (2026-09-22 10:50 UTC): GitHub confirms all four workers online and idle, including gitfix-propr-2, gitfix-propr-3 and gitfix-propr-4. All four services are active/enabled with verified CPUQuota=200%, MemoryHigh=6 GiB and MemoryMax=8 GiB and separate work directories. New workers report Connected to GitHub / Listening for Jobs. Production services were not restarted. Host maintenance notes are at /root/propr-runner-setup/README.md. Actual PR job execution still needs the workflow changes; no full CI run on the new workers is claimed yet.

…ll suite as four parallel shards in one job on gitfix.dev, and forks stay on hosted runners. None of the new self-hosted setup has run in CI yet, so I have no runner placement or timings for it. Those will come from this PR's next run; the job summary and a `full-test-timing-*` artifact record them.

I've made the requested changes. Trusted PRs now run the full suite as four parallel shards in one job on gitfix.dev, and forks stay on hosted runners. None of the new self-hosted setup has run in CI yet, so I have no runner placement or timings for it. Those will come from this PR's next run; the job summary and a `full-test-timing-*` artifact record them.

**reasoningLevelSettings failure:** already fixed by the previous commit. In CI on 8fb25e9, shard 1 passed, including that test, and the whole Full Test Suite run was green.

**What changed:**
- **Routing:** the same condition appears in every routed job, and a test keeps the copies identical:
  - PRs from branches in this repo and manual runs go to gitfix.dev. That covers the full suite and the Validate Changes job.
  - Fork PRs, Dependabot PRs, and runs with the repository variable `PROPR_SELF_HOSTED_PR_CHECKS=false` stay on hosted runners.
  - There is no automatic fallback: if the runner is busy or offline, those jobs wait in the queue. Setting that variable to `false` sends new runs back to hosted.
- **One job instead of four:** a new script, `scripts/run-local-shards.mjs`, runs at most four shards at once. Each shard gets:
  - its own copy of the prepared checkout, including installed packages and build output.
  - its own home and temp directories.
  - its own Redis container and port.
  - its own output files.

  Files still run one at a time inside each shard. On cancellation it stops every shard. A cleanup step that always runs kills only this run's processes and Redis containers, and never does a Docker-wide cleanup.
- **`scripts/ci-redis.sh`:** container names now include a per-shard instance and the attempt number, and start/stop always agree on them. One shard can no longer remove another's Redis. Existing callers that don't set an instance behave as before.
- **Coverage I had to protect:** on gitfix.dev, two Electron tests skip with "Electron cannot start on this worker (exit 127)", while hosted runners actually run them. For self-hosted runs, a hosted job re-runs those two tests with a new flag that turns the skip into a failure, so nothing is lost.
- **Required check:** "Run Full Test Suite" keeps its name and fails closed. It requires the chosen path's jobs to succeed, and it re-checks from the shard artifacts that every test ran exactly once. Rerunning failed jobs still works.
- **Nothing touches the shared host:**
  - Jobs use private home and cache directories, not the host's `/root`.
  - The checkout doesn't keep the token in the persistent workspace.
  - Stale build output is deleted before building and fresh output is required after.
  - Nothing is apt-installed on the host: Playwright's system-package install only runs on hosted runners.
- **Docs and PR description:** `docs/ci-runners.md` covers which jobs moved, which stayed hosted and why, the trust constraints, and how to add capacity. I also rewrote the PR description to match.

**Measured so far (current head, all on hosted runners):**

| What | Time |
| --- | --- |
| Full Test Suite, 4 hosted shards (whole run) | 5m19s (was 17m19s as one job) |
| Desktop linux-x64 install lifecycle step | 57s (was 10m20s) |
| Nightly full suite on gitfix.dev, unsharded (baseline) | 16m44s |

**Tests:** all 46 affected tests pass: 20 new routing/shard tests, 16 existing runner tests and 10 Electron setup tests. `reasoningLevelSettings` also passes with an empty home directory. actionlint and shellcheck report nothing for the files I changed, and ESLint is clean. A local run copied this checkout into four shard workspaces with the real `ci-redis.sh` and a stubbed `docker`. Tests ran inside the copies and used each copy's own packages. The copies took 25–35s here, a cost the CI run will measure on the real host.

**Decisions for you:**
- **Validate Changes on the same runner:** with only one worker, it and the full-suite job run one after the other. On hosted runners, Validate Changes took 218s, so one of the two checks may finish later than it does now. The CI run will show whether that's acceptable, or whether it should go back to hosted.
- **Six short build-check jobs stayed hosted** (the CLI, visual-preview and init-JSON jobs, plus the other CLI compatibility workflow). Each takes under 2.5 minutes, and together they'd add about 7 minutes of queue on the one worker. The glibc 2.31 container job stays hosted because it needs a non-root user.
- **Desktop Linux x64 stayed hosted.** It needs `sudo apt-get`, a virtual display and desktop session, and a non-root user for Chromium's sandbox. Electron also can't start on the host.
- **Fork-approval setting:** the routing condition isn't a security boundary, since a PR can edit it. What keeps fork code off the host is the repository's setting that requires approval for fork PR workflows from outside collaborators. Please confirm it's on; I changed no permissions or runner settings. Also note that anyone with write access now runs code as root on gitfix.dev.

No previews, since nothing here is visual.

PR: #2466
Comment by: @propr-dev[bot] (ID: 5775068790)
Comment by: @github-actions[bot] (ID: 5775069621)
Comment by: @integry (ID: 5775105836)
Model: claude-opus-5
@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 4041ad3

Summary of Changes

The full suite is back to four GitHub matrix shard jobs, one per runner worker. For trusted runs they go to the [self-hosted, linux, x64, propr] labels. Forks, Dependabot PRs and PROPR_SELF_HOSTED_PR_CHECKS=false stay on ubuntu-latest. I removed the nested local coordinator (scripts/run-local-shards.mjs) and its job.

Nothing here has run on the new workers yet. That means I have no runner_name values, cgroup readings or shard timings for them, and I'm not claiming any speedup. Locally, the routing and Redis tests (15) and testSuiteRunner.test.mjs (16) pass, and actionlint, shellcheck and eslint are clean.

Routing

  • Shards and docs: the shard matrix and docs use the same routing expression in runs-on, so both routes run the same jobs.
  • Required check: Run Full Test Suite always requires all shards and docs to pass. On the self-hosted route it also requires the hosted native-electron job. It still checks that four shards ran every test exactly once.
  • Validate Changes (pr-build-check.yml) was already routed the same way.
  • Staying hosted: macOS, Windows, ARM64 and desktop Linux x64 jobs are unchanged.

Redis isolation between shards

  • Each shard sets CI_REDIS_INSTANCE=shard-N, and ci-redis.sh adds the run attempt. Containers are named propr-ci-redis-<run>-<job>-shard-N-a<attempt> and labelled with run, job, instance and attempt.
  • Each container gets a Docker-assigned port on 127.0.0.1 and keeps its state file in that worker's own temp directory.
  • A retry removes only the earlier attempt of the same shard. Tests cover four shards sharing a run and job, plus attempt 2.

Docker limits

  • The service quotas don't cover containers, so the CI Redis container now runs with --memory 512m --memory-swap 512m --cpus 1 --pids-limit 64. These can be overridden by environment variable, and bad values are rejected.
  • The actionlint and shellcheck containers run with --network none --memory 1g --memory-swap 1g --cpus 1 --pids-limit 256.
  • Decision for you: at worst, CI can reach 13 CPUs and about 35 GiB, above the 8 CPUs and 32 GiB you described. That's the 8 CPUs and 32 GiB of runner services plus 4 CPUs and 2 GiB for four Redis containers, plus 1 CPU and 1 GiB for one tool container. These are limits, not reserved capacity, and CPU limits slow a container down rather than failing it. I kept Redis at 1 CPU to avoid test timeouts. Lowering it to 0.5 would bring the total to 11 CPUs, which is under the host's 12. The nightly suite's Redis also gets the 512 MB limit now.

Workspace cleanup

  • Each routed job keeps its job files in $RUNNER_TEMP/ci. The short name keeps socket paths under the 108-character limit.
  • Checkout doesn't store the token, and the default clean checkout removes files left by the previous job. The build step fails if old build output is still there.
  • The last step of each routed job, including on failure or cancellation, is git -C "$GITHUB_WORKSPACE" clean -ffdxq. That removes only this job's untracked files from its own workspace and keeps .git.
  • Nothing prunes Docker or removes other containers. Redis stop only removes the container that job started.

Root and browser sandbox

  • The full-suite browser tests launch Chromium with --no-sandbox on hosted runners too, and Playwright's default does the same for the validate browser checks. Running them as root proves the same thing it does on hosted runners.
  • Electron doesn't start on this host, so its tests run in the hosted native-electron job with skipping turned into a failure. Desktop checks stay hosted.

Proof of which worker ran each job

  • A new read-only scripts/ci-runner-evidence.sh writes a table to each routed job's summary. It shows the runner name and environment, the user and uid, the attempt, and the cgroup's cpu.max, memory.high and memory.max. On a correctly set-up worker you should see 200000 100000 and the 6 GiB and 8 GiB memory values.
  • Each shard's stages.json records the runner name, and the failure comment names it too.
  • docs/ci-runners.md has the jobs-API command to check runner_name afterwards.

A trusted push now needs six worker slots (four shards, docs and validate), so two will queue. Each shard gets 2 CPUs on the host against 4 vCPUs on a hosted runner. docs/ci-runners.md also records the four-worker setup, the isolation and cleanup rules, and why the remaining jobs stay hosted. I changed no host configuration and registered no workers; nothing was merged or deployed.


🤖 Implementation Details

  • Model: Claude Opus 5 (high)
  • Requested By: @integry
  • Time: 8m 18s
  • Tokens: 3,499,679 (3,453,602 in / 46,077 out)
  • Cost: $3.61
  • Subscription usage: Session +3%, Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5775136531✓

@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Native Electron (hosted)

Please investigate and fix this CI failure.

  • Check: Full Test Suite Native Electron (hosted)
  • Result: failure
  • Commit: e3b0415a5574 (e3b0415a55745438ead929e8f000d027103b18a6)
  • Details: View CI failure

Failure evidence

.github:19
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

.github:1
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see actions/runner-images#14748"

Comment thread test/ciLocalShards.test.mjs Fixed
@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: CodeQL

Please investigate and fix this CI failure.

Failure evidence

test/ciLocalShards.test.mjs:634 — Incomplete string escaping or encoding
This does not escape backslash characters in the input.

…e per runner worker. For trusted runs they go to the `[self-hosted, linux, x64, propr]` labels. Forks, Dependabot PRs and `PROPR_SELF_HOSTED_PR_CHECKS=false` stay on `ubuntu-latest`. I removed the nested local coordinator (`scripts/run-local-shards.mjs`) and its job.

The full suite is back to four GitHub matrix shard jobs, one per runner worker. For trusted runs they go to the `[self-hosted, linux, x64, propr]` labels. Forks, Dependabot PRs and `PROPR_SELF_HOSTED_PR_CHECKS=false` stay on `ubuntu-latest`. I removed the nested local coordinator (`scripts/run-local-shards.mjs`) and its job.

Nothing here has run on the new workers yet. That means I have no `runner_name` values, cgroup readings or shard timings for them, and I'm not claiming any speedup. Locally, the routing and Redis tests (15) and `testSuiteRunner.test.mjs` (16) pass, and actionlint, shellcheck and eslint are clean.

**Routing**
- **Shards and docs:** the `shard` matrix and `docs` use the same routing expression in `runs-on`, so both routes run the same jobs.
- **Required check:** `Run Full Test Suite` always requires all shards and docs to pass. On the self-hosted route it also requires the hosted `native-electron` job. It still checks that four shards ran every test exactly once.
- **Validate Changes** (`pr-build-check.yml`) was already routed the same way.
- **Staying hosted:** macOS, Windows, ARM64 and desktop Linux x64 jobs are unchanged.

**Redis isolation between shards**
- Each shard sets `CI_REDIS_INSTANCE=shard-N`, and `ci-redis.sh` adds the run attempt. Containers are named `propr-ci-redis-<run>-<job>-shard-N-a<attempt>` and labelled with run, job, instance and attempt.
- Each container gets a Docker-assigned port on `127.0.0.1` and keeps its state file in that worker's own temp directory.
- A retry removes only the earlier attempt of the same shard. Tests cover four shards sharing a run and job, plus attempt 2.

**Docker limits**
- The service quotas don't cover containers, so the CI Redis container now runs with `--memory 512m --memory-swap 512m --cpus 1 --pids-limit 64`. These can be overridden by environment variable, and bad values are rejected.
- The actionlint and shellcheck containers run with `--network none --memory 1g --memory-swap 1g --cpus 1 --pids-limit 256`.
- **Decision for you:** at worst, CI can reach 13 CPUs and about 35 GiB, above the 8 CPUs and 32 GiB you described. That's the 8 CPUs and 32 GiB of runner services plus 4 CPUs and 2 GiB for four Redis containers, plus 1 CPU and 1 GiB for one tool container. These are limits, not reserved capacity, and CPU limits slow a container down rather than failing it. I kept Redis at 1 CPU to avoid test timeouts. Lowering it to 0.5 would bring the total to 11 CPUs, which is under the host's 12. The nightly suite's Redis also gets the 512 MB limit now.

**Workspace cleanup**
- Each routed job keeps its job files in `$RUNNER_TEMP/ci`. The short name keeps socket paths under the 108-character limit.
- Checkout doesn't store the token, and the default clean checkout removes files left by the previous job. The build step fails if old build output is still there.
- The last step of each routed job, including on failure or cancellation, is `git -C "$GITHUB_WORKSPACE" clean -ffdxq`. That removes only this job's untracked files from its own workspace and keeps `.git`.
- Nothing prunes Docker or removes other containers. Redis stop only removes the container that job started.

**Root and browser sandbox**
- The full-suite browser tests launch Chromium with `--no-sandbox` on hosted runners too, and Playwright's default does the same for the `validate` browser checks. Running them as root proves the same thing it does on hosted runners.
- Electron doesn't start on this host, so its tests run in the hosted `native-electron` job with skipping turned into a failure. Desktop checks stay hosted.

**Proof of which worker ran each job**
- A new read-only `scripts/ci-runner-evidence.sh` writes a table to each routed job's summary. It shows the runner name and environment, the user and uid, the attempt, and the cgroup's `cpu.max`, `memory.high` and `memory.max`. On a correctly set-up worker you should see `200000 100000` and the 6 GiB and 8 GiB memory values.
- Each shard's `stages.json` records the runner name, and the failure comment names it too.
- `docs/ci-runners.md` has the jobs-API command to check `runner_name` afterwards.

A trusted push now needs six worker slots (four shards, docs and validate), so two will queue. Each shard gets 2 CPUs on the host against 4 vCPUs on a hosted runner. `docs/ci-runners.md` also records the four-worker setup, the isolation and cleanup rules, and why the remaining jobs stay hosted. I changed no host configuration and registered no workers; nothing was merged or deployed.

PR: #2466
Comment by: @integry (ID: 5775136531)
Model: claude-opus-5
@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 465210e

Processed 3 comments:

  • Comment 1 by @propr-dev[bot] (ID: 5775389012✓)
  • Comment 2 by @github-advanced-security[bot] (ID: 4070965963✓)
  • Comment 3 by @propr-dev[bot] (ID: 5775424274✓)

Summary of Changes

I fixed both failures. The native Electron fix won't be confirmed until the next CI run.

Full Test Suite Native Electron (hosted). The job's log showed that it never reached any test. The workflow sets PROPR_TEST_SHARD_COUNT: '4' for every job so the shards can use it. That count also reached this job, which runs its Electron files unsharded and sets no shard index. run-test-suite.mjs rejects a count without an index, so the step stopped with "Shard index and count must be set together". The required Run Full Test Suite check then failed on that result. I got the same error locally with the count set to 4, and the error goes away when the count is empty.

  • Fix: the step's env in .github/workflows/pr-test-on-label.yml now sets PROPR_TEST_SHARD_COUNT: ''. The script treats an empty value as unset, so the Electron files run as one unsharded suite.
  • New test: a check in test/ciRunnerRouting.test.mjs fails if that override is removed.

CodeQL (incomplete string escaping). The flagged file, test/ciLocalShards.test.mjs, was already deleted in the latest commit together with the local shard coordinator. That clears the alert at line 634. Its replacement, test/ciRunnerRouting.test.mjs, had the same kind of problem: limit.replace('.', '\\.') only escapes the first dot. I added an escapeRegExp helper that escapes every regex special character, backslash included, and used it there. None of the other patterns the test builds from strings can contain special characters.

Checks:

  • ciRunnerRouting.test.mjs and testSuiteRunner.test.mjs pass (31 tests), and eslint reports no problems.
  • actionlint isn't installed here and Docker isn't available to run it, so I didn't run it. I parsed the workflow file instead and confirmed the step's environment now has the empty count.

The Node.js 20 deprecation and Ubuntu 26 messages in the failure evidence are only warnings, so I left them alone.


🤖 Implementation Details

  • Model: Claude Opus 5 (high)
  • Requested By: @propr-dev[bot], @github-advanced-security[bot]
  • Time: 2m 13s
  • Tokens: 668,988 (664,337 in / 4,651 out)
  • Cost: $0.87
  • Subscription usage: Session +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 5775389012✓, 4070965963✓, 5775424274✓

@github-actions

Copy link
Copy Markdown

Full Test Suite Results

Validation failed during: Shard coverage verification, Hosted native Electron units.

  • Dependency install: success
  • Workspace build: success
  • Docs validation: skipped
  • Shard coverage verification: failure
  • Hosted native Electron units: failure
  • Shard 1/4: passed
  • Shard 2/4: passed
  • Shard 3/4: passed in 458.6s
    • packages/api/test/mcpBrowser.test.ts: exit 1
    • packages/cli/src/commands/initStack.test.ts: exit 1
    • test/cliAgentValidation.test.ts: exit 1
  • Shard 4/4: passed in 458.4s

View Workflow

@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Native Electron (hosted)

Please investigate and fix this CI failure.

  • Check: Full Test Suite Native Electron (hosted)
  • Result: failure
  • Commit: 4041ad3b0674 (4041ad3b0674efcb4c643e6d3cdbb10937eff5db)
  • Details: View CI failure

Failure evidence

.github:19
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

.github:1
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see actions/runner-images#14748"

…firmed until the next CI run.

I fixed both failures. The native Electron fix won't be confirmed until the next CI run.

**Full Test Suite Native Electron (hosted).** The job's log showed that it never reached any test. The workflow sets `PROPR_TEST_SHARD_COUNT: '4'` for every job so the shards can use it. That count also reached this job, which runs its Electron files unsharded and sets no shard index. `run-test-suite.mjs` rejects a count without an index, so the step stopped with "Shard index and count must be set together". The required `Run Full Test Suite` check then failed on that result. I got the same error locally with the count set to 4, and the error goes away when the count is empty.

- **Fix:** the step's `env` in `.github/workflows/pr-test-on-label.yml` now sets `PROPR_TEST_SHARD_COUNT: ''`. The script treats an empty value as unset, so the Electron files run as one unsharded suite.
- **New test:** a check in `test/ciRunnerRouting.test.mjs` fails if that override is removed.

**CodeQL (incomplete string escaping).** The flagged file, `test/ciLocalShards.test.mjs`, was already deleted in the latest commit together with the local shard coordinator. That clears the alert at line 634. Its replacement, `test/ciRunnerRouting.test.mjs`, had the same kind of problem: `limit.replace('.', '\\.')` only escapes the first dot. I added an `escapeRegExp` helper that escapes every regex special character, backslash included, and used it there. None of the other patterns the test builds from strings can contain special characters.

**Checks:**
- `ciRunnerRouting.test.mjs` and `testSuiteRunner.test.mjs` pass (31 tests), and eslint reports no problems.
- actionlint isn't installed here and Docker isn't available to run it, so I didn't run it. I parsed the workflow file instead and confirmed the step's environment now has the empty count.

The Node.js 20 deprecation and Ubuntu 26 messages in the failure evidence are only warnings, so I left them alone.

PR: #2466
Comment by: @propr-dev[bot] (ID: 5775389012)
Comment by: @github-advanced-security[bot] (ID: 4070965963)
Comment by: @propr-dev[bot] (ID: 5775424274)
Model: claude-opus-5
@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 2e029a0

Processed 2 comments:

  • Comment 1 by @github-actions[bot] (ID: 5775496485✓)
  • Comment 2 by @propr-dev[bot] (ID: 5775505701✓)

Summary of Changes

The three shard 3/4 failures in the first comment were real problems on the self-hosted runner, and I fixed them. The native Electron failure in the second comment was already fixed by the latest commit on this branch (465210e).

What the two comments were about

  • Run 35719798303 ran the old single-job, four-local-shards setup. It was cancelled partway, so "Shard coverage verification: failure" only reflects the cancellation.
  • Three files still failed on the self-hosted runner. Two of those causes would also have hit the new four-job setup, which hasn't reached its tests on this host yet.
  • Native Electron (hosted) failed on 4041ad3 because the job inherited PROPR_TEST_SHARD_COUNT=4 without a shard index. 465210e clears that; its CI run was still queued when I checked. The Node 20 and Ubuntu 26 lines in that evidence are only warnings.

Fixes

  • initStack.test.ts failed with "public instance identity is unavailable". The CLI refuses to create its private directory when a parent directory is group- or world-writable and not sticky. Some directory in the runner's install tree on gitfix.dev is like that. I reproduced the exact error locally with a group-writable parent. The check is correct, and I'm not allowed to change runner permissions, so each self-hosted job now gets its own TMPDIR:

    • It's a private mktemp -d /tmp/propr-ci.XXXXXX directory, with the same parent directories tests see on hosted runners.
    • The job's last step removes it, only if the path matches /tmp/propr-ci.*.
    • HOME and the caches stay under $RUNNER_TEMP/ci.
    • The change is in all three self-hosted jobs: the shards, docs, and Validate Changes.
  • mcpBrowser.test.ts failed with Chromium's "Socket path too long". That was the old setup's long temp path (121 bytes, over the limit). The previous commit's layout had already brought it to 92 bytes. With the new TMPDIR it's about 55 bytes.

  • cliAgentValidation.test.ts was a timing flake. It relied on the test noticing one fake child's exit (at 40ms) before a second one's (at 90ms). On a loaded host both had already exited by the time it looked. The test now takes a snapshot when validation finishes and checks two things:

    • every child process is gone, whether it exited on SIGTERM or was killed after the 100ms grace.
    • each child that exited normally saw the temporary directory still in place.

    At twice as many busy processes as CPUs, the old version failed about 1 in 3 runs and the new one passed 10 of 10. I also broke the product code in two ways (finishing before the children closed, and deleting the temp directory on cancel), and the new test fails for each.

I also updated docs/ci-runners.md and the checks in test/ciRunnerRouting.test.mjs.

Checks run: the routing and test-suite-runner tests (31), plus cliAgentValidation and initStack (17), all pass. I ran the new workflow setup and cleanup scripts locally: the temp directory is created with mode 0700, initStack passes against it, and cleanup removes it. Both workflow files parse and eslint is clean. actionlint and shellcheck aren't installed here, so I didn't run them.

Still unconfirmed: none of this has run on the gitfix.dev workers yet. If a worker dies before its last step, its /tmp/propr-ci.* directory stays until the host's normal tmp cleanup. There's nothing visual to preview.

Separately, the Gmail, Google Calendar, Google Drive and ProPR connectors need to be authorised in your claude.ai connector settings before I can use them. I didn't need them for this change.


🤖 Implementation Details

  • Model: Claude Opus 5 (high)
  • Requested By: @github-actions[bot], @propr-dev[bot]
  • Time: 11m 48s
  • Tokens: 2,989,065 (2,960,177 in / 28,888 out)
  • Cost: $2.80

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 5775496485✓, 5775505701✓

@github-actions

Copy link
Copy Markdown

Full Test Suite Results

Validation failed during: Shard coverage verification, Hosted native Electron units.

  • Dependency install: not run
  • Workspace build: not run
  • Docs validation: not run
  • Shard coverage verification: failure
  • Hosted native Electron units: failure
  • Shard 1/4: passed on Ubuntu-2404-noble-amd64-base-propr
  • Shard 2/4: passed on gitfix-propr-4
  • Shard 3/4: passed on gitfix-propr-3
  • Shard 4/4: no output uploaded (failed early, cancelled or skipped)

View Workflow

@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 1/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 1/4
  • Result: failure
  • Commit: 465210e67982 (465210e679820c93be4d9113d0cbd57e3d0e2c4d)
  • Details: View CI failure

Failure evidence

.github:16
Process completed with exit code 1.

.github:12034
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 3/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 3/4
  • Result: failure
  • Commit: 465210e67982 (465210e679820c93be4d9113d0cbd57e3d0e2c4d)
  • Details: View CI failure

Failure evidence

.github:16
Process completed with exit code 1.

.github:16204
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

… problems on the self-hosted runner, and I fixed them. The native Electron failure in the second comment was already fixed by the latest commit on this branch (`465210e`).

The three shard 3/4 failures in the first comment were real problems on the self-hosted runner, and I fixed them. The native Electron failure in the second comment was already fixed by the latest commit on this branch (`465210e`).

**What the two comments were about**
- **Run 35719798303** ran the old single-job, four-local-shards setup. It was cancelled partway, so "Shard coverage verification: failure" only reflects the cancellation.
- **Three files still failed on the self-hosted runner.** Two of those causes would also have hit the new four-job setup, which hasn't reached its tests on this host yet.
- **Native Electron (hosted)** failed on `4041ad3` because the job inherited `PROPR_TEST_SHARD_COUNT=4` without a shard index. `465210e` clears that; its CI run was still queued when I checked. The Node 20 and Ubuntu 26 lines in that evidence are only warnings.

**Fixes**
- **`initStack.test.ts` failed with "public instance identity is unavailable".** The CLI refuses to create its private directory when a parent directory is group- or world-writable and not sticky. Some directory in the runner's install tree on gitfix.dev is like that. I reproduced the exact error locally with a group-writable parent. The check is correct, and I'm not allowed to change runner permissions, so each self-hosted job now gets its own `TMPDIR`:
  - It's a private `mktemp -d /tmp/propr-ci.XXXXXX` directory, with the same parent directories tests see on hosted runners.
  - The job's last step removes it, only if the path matches `/tmp/propr-ci.*`.
  - `HOME` and the caches stay under `$RUNNER_TEMP/ci`.
  - The change is in all three self-hosted jobs: the shards, docs, and Validate Changes.
- **`mcpBrowser.test.ts` failed with Chromium's "Socket path too long".** That was the old setup's long temp path (121 bytes, over the limit). The previous commit's layout had already brought it to 92 bytes. With the new `TMPDIR` it's about 55 bytes.
- **`cliAgentValidation.test.ts` was a timing flake.** It relied on the test noticing one fake child's exit (at 40ms) before a second one's (at 90ms). On a loaded host both had already exited by the time it looked. The test now takes a snapshot when validation finishes and checks two things:
  - every child process is gone, whether it exited on SIGTERM or was killed after the 100ms grace.
  - each child that exited normally saw the temporary directory still in place.

  At twice as many busy processes as CPUs, the old version failed about 1 in 3 runs and the new one passed 10 of 10. I also broke the product code in two ways (finishing before the children closed, and deleting the temp directory on cancel), and the new test fails for each.

I also updated `docs/ci-runners.md` and the checks in `test/ciRunnerRouting.test.mjs`.

**Checks run:** the routing and test-suite-runner tests (31), plus `cliAgentValidation` and `initStack` (17), all pass. I ran the new workflow setup and cleanup scripts locally: the temp directory is created with mode 0700, `initStack` passes against it, and cleanup removes it. Both workflow files parse and eslint is clean. actionlint and shellcheck aren't installed here, so I didn't run them.

**Still unconfirmed:** none of this has run on the gitfix.dev workers yet. If a worker dies before its last step, its `/tmp/propr-ci.*` directory stays until the host's normal tmp cleanup. There's nothing visual to preview.

Separately, the Gmail, Google Calendar, Google Drive and ProPR connectors need to be authorised in your claude.ai connector settings before I can use them. I didn't need them for this change.

PR: #2466
Comment by: @github-actions[bot] (ID: 5775496485)
Comment by: @propr-dev[bot] (ID: 5775505701)
Model: claude-opus-5
@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 8f15563

Processed 3 comments:

  • Comment 1 by @github-actions[bot] (ID: 5775529377✓)
  • Comment 2 by @propr-dev[bot] (ID: 5775603120✓)
  • Comment 3 by @propr-dev[bot] (ID: 5775647174✓)

Summary of Changes

The shard 1/4 and shard 3/4 failures were already fixed by the last commit on the branch (2e029a0). Comment 1 was a stale, misleading report, and I fixed how the workflow reports in that situation. None of this has run in CI yet; the next run is the real check.

Comments 2 and 3 (shard 1/4 and shard 3/4, commit 465210e)

  • Both shards failed with the same error: "the public instance identity is unavailable or invalid". Shard 1 failed in test/connectCliIntegration.test.ts and shard 3 in initStack.test.ts.
  • Cause: on commit 465210e, the log shows TMPDIR was inside the runner's install folder (/root/actions-runner-propr-4/_work/_temp/ci/tmp). Both tests create their folders under TMPDIR. The CLI rightly refuses to use a folder whose parent can be written to by other users, and one parent in that path allows that.
  • Already fixed: 2e029a0 gives each self-hosted job its own private TMPDIR under /tmp. I reproduced the failure locally: with a group-writable parent, connectCliIntegration fails 0/2 with the same error; with the new TMPDIR layout it passes 2/2. I didn't need to change anything for these two.

Comment 1 (run 35720594998, commit 4041ad3)

  • What happened: pushing 465210e cancelled this run while the shards were still testing.
  • Why it posted anyway: the "Run Full Test Suite" and comment jobs are set to run even after a cancellation. So the run still posted a report, and it said "passed" for shards that were actually cancelled. The report only looked for failed steps, and a cancelled step is recorded as "cancelled", not "failure".
  • Hosted Electron failure: this was the known problem on 4041ad3, and it passed on 465210e.

Changes in .github/workflows/pr-test-on-label.yml

  • The comment job now only posts if the run wasn't cancelled.
  • The required "Run Full Test Suite" gate still runs and fails on cancelled runs. If it were skipped instead, branch protection would treat it as passing when someone cancels the latest run.
  • In the report, a shard with a cancelled step (for example after a timeout) now shows as "cancelled during …". It is listed in the "Validation failed during" line and its output is attached. It no longer shows as "passed".

Tests and docs

  • I added a test to test/ciRunnerRouting.test.mjs. It checks both job conditions and runs the real report script against fake shard results (passed, cancelled, failed, missing).
  • The new test fails against the previous workflow and passes now.
  • npm run test:unit passes (391 tests), eslint is clean and the workflow file parses.
  • I added a short paragraph to docs/ci-runners.md.

There's nothing visual to preview. The Gmail, Google Calendar, Google Drive and ProPR connectors still need to be authorised in your claude.ai connector settings; I didn't need them for this.


🤖 Implementation Details

  • Model: Claude Opus 5 (high)
  • Requested By: @github-actions[bot], @propr-dev[bot]
  • Time: 5m 23s
  • Tokens: 1,546,778 (1,531,922 in / 14,856 out)
  • Cost: $1.53

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 5775529377✓, 5775603120✓, 5775647174✓

@github-actions

Copy link
Copy Markdown

Full Test Suite Results

Validation failed during: Test shard (shard 1), Test shard (shard 3).

  • Dependency install: success
  • Workspace build: success
  • Docs validation: success
  • Shard coverage verification: success
  • Hosted native Electron units: success
  • Shard 1/4: failed during Test shard in 251.6s on gitfix-propr-4
    • test/connectCliIntegration.test.ts: exit 1
  • Shard 2/4: passed in 267.4s on gitfix-propr-2
    • packages/cli/src/commands/initCommands.test.ts: exit 1
    • test/publicInstanceIdentity.test.ts: exit 1
  • Shard 3/4: failed during Test shard in 444.9s on Ubuntu-2404-noble-amd64-base-propr
    • packages/cli/src/commands/initStack.test.ts: exit 1
    • propr-ui (workspace): timed out after 180000ms; process group terminated
  • Shard 4/4: passed in 257.0s on gitfix-propr-3
View shard 1/4 output
...(truncated)

   type: 'test'
          ...
# [webhook] Signature mismatch
        # Subtest: rejects request with invalid signature
        ok 2 - rejects request with invalid signature
          ---
          duration_ms: 3.216177
          type: 'test'
          ...
# [webhook] Signature mismatch
        # Subtest: rejects request with malformed signature of different length
        ok 3 - rejects request with malformed signature of different length
          ---
          duration_ms: 2.916854
          type: 'test'
          ...
# [webhook] Rejecting multi-valued x-hub-signature-256 header
        # Subtest: rejects request with multi-valued x-hub-signature-256 header
        ok 4 - rejects request with multi-valued x-hub-signature-256 header
          ---
          duration_ms: 2.491141
          type: 'test'
          ...
# [webhook] Signature mismatch
        # Subtest: does not store delivery ID when signature is invalid
        ok 5 - does not store delivery ID when signature is invalid
          ---
          duration_ms: 2.30775
          type: 'test'
          ...
        1..5
    ok 6 - Signature verification
      ---
      duration_ms: 14.450372
      type: 'suite'
      ...
# [webhook] Missing x-github-event header
    # Subtest: Missing x-github-event header
        # Subtest: rejects request with no x-github-event header
        ok 1 - rejects request with no x-github-event header
          ---
          duration_ms: 2.435721
          type: 'test'
          ...
        1..1
    ok 7 - Missing x-github-event header
      ---
      duration_ms: 2.593092
      type: 'suite'
      ...
# [webhook] GH_WEBHOOK_SECRET is not configured — rejecting request. Set GH_WEBHOOK_SECRET in the environment to accept webhooks. This is a security requirement: all webhook deliveries are rejected until a secret is provisioned.
    # Subtest: Webhook secret not configured (fail closed)
        # Subtest: rejects request when webhookSecret is undefined
        ok 1 - rejects request when webhookSecret is undefined
          ---
          duration_ms: 3.915383
          type: 'test'
          ...
        1..1
    ok 8 - Webhook secret not configured (fail closed)
      ---
      duration_ms: 4.073465
      type: 'suite'
      ...
# [webhook] Ignoring unsupported event type: unknown_event_type
    # Subtest: Unsupported event type
        # Subtest: ignores request with unsupported x-github-event value with 200
        ok 1 - ignores request with unsupported x-github-event value with 200
          ---
          duration_ms: 6.706706
          type: 'test'
          ...
        1..1
    ok 9 - Unsupported event type
      ---
      duration_ms: 6.868368
      type: 'suite'
      ...
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: delivery-for-forwarding
    # Subtest: Preview routing: delivery ID passed to processor
        # Subtest: processor receives the delivery ID for downstream forwarding
        ok 1 - processor receives the delivery ID for downstream forwarding
          ---
          duration_ms: 6.925199
          type: 'test'
          ...
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: delivery-original
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: fwd-delivery-original
        # Subtest: forwarded delivery with fwd- prefix is accepted as a distinct delivery
        ok 2 - forwarded delivery with fwd- prefix is accepted as a distinct delivery
          ---
          duration_ms: 5.230195
          type: 'test'
          ...
        1..2
    ok 10 - Preview routing: delivery ID passed to processor
      ---
      duration_ms: 12.466055
      type: 'suite'
      ...
    # Subtest: Redis adapter shape (server.ts integration path)
        # Subtest: adapter reshapes NX/EX options correctly
        ok 1 - adapter reshapes NX/EX options correctly
          ---
          duration_ms: 1.892196
          type: 'test'
          ...
        # Subtest: adapter passes through plain set without options
        ok 2 - adapter passes through plain set without options
          ---
          duration_ms: 0.920938
          type: 'test'
          ...
        # Subtest: adapter returns null when NX key already exists
        ok 3 - adapter returns null when NX key already exists
          ---
          duration_ms: 0.885058
          type: 'test'
          ...
        1..3
    ok 11 - Redis adapter shape (server.ts integration path)
      ---
      duration_ms: 3.883183
      type: 'suite'
      ...
    1..11
ok 1 - Webhook Replay Protection
  ---
  duration_ms: 102.107494
  type: 'suite'
  ...
# [2026-09-22 13:26:46.221 +0200] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..1
# tests 22
# suites 12
# pass 22
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2394.838638
[126/129] passed test/webhookReplayProtection.test.ts in 2.5s

[127/129] test/worker.integration.test.ts
TAP version 13
# Subtest: Worker Integration - Concurrent Model Execution
    # Subtest: concurrent jobs with different models create unique worktrees
    ok 1 - concurrent jobs with different models create unique worktrees
      ---
      duration_ms: 10.004535
      type: 'test'
      ...
    # Subtest: delay function prevents exact simultaneous execution
    ok 2 - delay function prevents exact simultaneous execution
      ---
      duration_ms: 280.883198
      type: 'test'
      ...
    # Subtest: worktree cleanup after concurrent execution
    ok 3 - worktree cleanup after concurrent execution
      ---
      duration_ms: 5.693169
      type: 'test'
      ...
    # Subtest: file system isolation between concurrent workers
    ok 4 - file system isolation between concurrent workers
      ---
      duration_ms: 4.859211
      type: 'test'
      ...
    # Subtest: error handling in concurrent execution
    ok 5 - error handling in concurrent execution
      ---
      duration_ms: 59.215681
      type: 'test'
      ...
    1..5
ok 1 - Worker Integration - Concurrent Model Execution
  ---
  duration_ms: 362.225506
  type: 'suite'
  ...
1..1
# tests 5
# suites 1
# pass 5
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 636.710319
[127/129] passed test/worker.integration.test.ts in 0.8s

[128/129] test/workerStateManager.test.ts
TAP version 13
# (node:9698) ExperimentalWarning: Module mocking is an experimental feature and might change at any time
# (Use `node --trace-warnings ...` to show where the warning was created)
# Subtest: createTaskState creates state with correct structure
ok 1 - createTaskState creates state with correct structure
  ---
  duration_ms: 2.874434
  type: 'test'
  ...
# Subtest: createTaskState stores state in Redis with TTL
ok 2 - createTaskState stores state in Redis with TTL
  ---
  duration_ms: 0.281293
  type: 'test'
  ...
# Subtest: createTaskState uses default TTL when not specified
ok 3 - createTaskState uses default TTL when not specified
  ---
  duration_ms: 0.226862
  type: 'test'
  ...
# Subtest: createTaskState inserts task into database
ok 4 - createTaskState inserts task into database
  ---
  duration_ms: 0.244502
  type: 'test'
  ...
# Subtest: createTaskState generates correlation ID when not provided
ok 5 - createTaskState generates correlation ID when not provided
  ---
  duration_ms: 0.254492
  type: 'test'
  ...
# Subtest: createTaskState publishes real-time event
ok 6 - createTaskState publishes real-time event
  ---
  duration_ms: 0.242052
  type: 'test'
  ...
# Subtest: createTaskState handles missing optional issueRef fields
ok 7 - createTaskState handles missing optional issueRef fields
  ---
  duration_ms: 0.230652
  type: 'test'
  ...
# Subtest: createTaskState sets correct initial history entry
ok 8 - createTaskState sets correct initial history entry
  ---
  duration_ms: 0.252202
  type: 'test'
  ...
# Subtest: createTaskState handles database error gracefully
ok 9 - createTaskState handles database error gracefully
  ---
  duration_ms: 0.462704
  type: 'test'
  ...
# Subtest: createTaskState generates unique task keys
ok 10 - createTaskState generates unique task keys
  ---
  duration_ms: 0.625475
  type: 'test'
  ...
# Subtest: createTaskState stores valid JSON in Redis
ok 11 - createTaskState stores valid JSON in Redis
  ---
  duration_ms: 0.338083
  type: 'test'
  ...
# Subtest: createTaskState uses correct repository format in database
ok 12 - createTaskState uses correct repository format in database
  ---
  duration_ms: 0.216832
  type: 'test'
  ...
# Subtest: createTaskStateIfAbsent preserves a state that became processing before the atomic create
ok 13 - createTaskStateIfAbsent preserves a state that became processing before the atomic create
  ---
  duration_ms: 0.798306
  type: 'test'
  ...
# Subtest: updateTaskState throws when task not found
ok 14 - updateTaskState throws when task not found
  ---
  duration_ms: 0.561215
  type: 'test'
  ...
# Subtest: updateTaskState transitions state and appends to history
ok 15 - updateTaskState transitions state and appends to history
  ---
  duration_ms: 0.598346
  type: 'test'
  ...
# Subtest: updateTaskState publishes real-time event
ok 16 - updateTaskState publishes real-time event
  ---
  duration_ms: 0.313012
  type: 'test'
  ...
# Subtest: updateTaskState increments attempts on retry
ok 17 - updateTaskState increments attempts on retry
  ---
  duration_ms: 0.298582
  type: 'test'
  ...
# Subtest: updateTaskState does not increment attempts when not a retry
ok 18 - updateTaskState does not increment attempts when not a retry
  ---
  duration_ms: 0.280603
  type: 'test'
  ...
# Subtest: updateTaskState stores error metadata
ok 19 - updateTaskState stores error metadata
  ---
  duration_ms: 0.309782
  type: 'test'
  ...
# Subtest: updateTaskState uses default error category when not specified
ok 20 - updateTaskState uses default error category when not specified
  ---
  duration_ms: 0.283842
  type: 'test'
  ...
# Subtest: updateTaskState stores worktreeInfo metadata
ok 21 - updateTaskState stores worktreeInfo metadata
  ---
  duration_ms: 0.325293
  type: 'test'
  ...
# Subtest: updateTaskState stores claudeResult metadata
ok 22 - updateTaskState stores claudeResult metadata
  ---
  duration_ms: 0.389663
  type: 'test'
  ...
# Subtest: updateTaskState stores prResult metadata
ok 23 - updateTaskState stores prResult metadata
  ---
  duration_ms: 0.482084
  type: 'test'
  ...
# Subtest: updateTaskState persists to Redis with TTL renewal
ok 24 - updateTaskState persists to Redis with TTL renewal
  ---
  duration_ms: 0.376883
  type: 'test'
  ...
# Subtest: updateTaskState inserts history record into database
ok 25 - updateTaskState inserts history record into database
  ---
  duration_ms: 0.343323
  type: 'test'
  ...
# Subtest: updateTaskState uses default reason when not provided
ok 26 - updateTaskState uses default reason when not provided
  ---
  duration_ms: 0.279713
  type: 'test'
  ...
# Subtest: updateTaskState stores historyMetadata in history entry
ok 27 - updateTaskState stores historyMetadata in history entry
  ---
  duration_ms: 0.296862
  type: 'test'
  ...
# Subtest: updateTaskState handles database error gracefully
ok 28 - updateTaskState handles database error gracefully
  ---
  duration_ms: 0.340723
  type: 'test'
  ...
# Subtest: updateTaskState includes commitHash in database metadata
ok 29 - updateTaskState includes commitHash in database metadata
  ---
  duration_ms: 0.314293
  type: 'test'
  ...
# Subtest: markTaskFailed sets state to FAILED
ok 30 - markTaskFailed sets state to FAILED
  ---
  duration_ms: 0.383984
  type: 'test'
  ...
# Subtest: markTaskFailed stores error message in lastError
ok 31 - markTaskFailed stores error message in lastError
  ---
  duration_ms: 0.365563
  type: 'test'
  ...
# Subtest: markTaskFailed defaults errorCategory to unknown when not specified
ok 32 - markTaskFailed defaults errorCategory to unknown when not specified
  ---
  duration_ms: 0.329313
  type: 'test'
  ...
# Subtest: markTaskFailed uses provided errorCategory from metadata
ok 33 - markTaskFailed uses provided errorCategory from metadata
  ---
  duration_ms: 0.312912
  type: 'test'
  ...
# Subtest: markTaskFailed sets appropriate failure reason
ok 34 - markTaskFailed sets appropriate failure reason
  ---
  duration_ms: 0.321002
  type: 'test'
  ...
# Subtest: markTaskFailed appends failure to history
ok 35 - markTaskFailed appends failure to history
  ---
  duration_ms: 0.308242
  type: 'test'
  ...
# Subtest: markTaskFailed preserves additional metadata
ok 36 - markTaskFailed preserves additional metadata
  ---
  duration_ms: 0.303233
  type: 'test'
  ...
# Subtest: markTaskFailed publishes real-time event
ok 37 - markTaskFailed publishes real-time event
  ---
  duration_ms: 0.287393
  type: 'test'
  ...
# Subtest: markTaskFailed persists failure to Redis
ok 38 - markTaskFailed persists failure to Redis
  ---
  duration_ms: 0.305482
  type: 'test'
  ...
# Subtest: markTaskFailed inserts failure record into database
ok 39 - markTaskFailed inserts failure record into database
  ---
  duration_ms: 0.371543
  type: 'test'
  ...
# Subtest: markTaskFailed throws when task not found
ok 40 - markTaskFailed throws when task not found
  ---
  duration_ms: 0.190911
  type: 'test'
  ...
# Subtest: markTaskFailed handles different error categories
ok 41 - markTaskFailed handles different error categories
  ---
  duration_ms: 0.882037
  type: 'test'
  ...
# Subtest: markTaskFailed updates timestamp in lastError
ok 42 - markTaskFailed updates timestamp in lastError
  ---
  duration_ms: 0.283153
  type: 'test'
  ...
# Subtest: getResumableTask returns null when task not found
ok 43 - getResumableTask returns null when task not found
  ---
  duration_ms: 0.186241
  type: 'test'
  ...
# Subtest: getResumableTask returns null for COMPLETED state
ok 44 - getResumableTask returns null for COMPLETED state
  ---
  duration_ms: 0.235382
  type: 'test'
  ...
# Subtest: getResumableTask returns null for PENDING state
ok 45 - getResumableTask returns null for PENDING state
  ---
  duration_ms: 0.260362
  type: 'test'
  ...
# Subtest: getResumableTask returns null for FAILED state
ok 46 - getResumableTask returns null for FAILED state
  ---
  duration_ms: 0.257962
  type: 'test'
  ...
# Subtest: getResumableTask returns null for CANCELLED state
ok 47 - getResumableTask returns null for CANCELLED state
  ---
  duration_ms: 0.253803
  type: 'test'
  ...
# Subtest: getResumableTask returns task in PROCESSING state for recovery
ok 48 - getResumableTask returns task in PROCESSING state for recovery
  ---
  duration_ms: 0.262202
  type: 'test'
  ...
# Subtest: getResumableTask returns task in CLAUDE_EXECUTION state
ok 49 - getResumableTask returns task in CLAUDE_EXECUTION state
  ---
  duration_ms: 0.291393
  type: 'test'
  ...
# Subtest: getResumableTask returns task in POST_PROCESSING state
ok 50 - getResumableTask returns task in POST_PROCESSING state
  ---
  duration_ms: 0.297963
  type: 'test'
  ...
# Subtest: getResumableTask marks task as stale if updated more than 30 minutes ago
ok 51 - getResumableTask marks task as stale if updated more than 30 minutes ago
  ---
  duration_ms: 0.302322
  type: 'test'
  ...
# Subtest: getResumableTask returns isStale=false for recently updated tasks
ok 52 - getResumableTask returns isStale=false for recently updated tasks
  ---
  duration_ms: 0.253943
  type: 'test'
  ...
# Subtest: getResumableTask logs warning for stale tasks
ok 53 - getResumableTask logs warning for stale tasks
  ---
  duration_ms: 0.235662
  type: 'test'
  ...
# Subtest: getResumableTask returns correct staleDuration for stale tasks
ok 54 - getResumableTask returns correct staleDuration for stale tasks
  ---
  duration_ms: 0.353213
  type: 'test'
  ...
# Subtest: getResumableTask does not return staleDuration for non-stale tasks
ok 55 - getResumableTask does not return staleDuration for non-stale tasks
  ---
  duration_ms: 0.249562
  type: 'test'
  ...
# Subtest: getResumableTask preserves all task state data
ok 56 - getResumableTask preserves all task state data
  ---
  duration_ms: 0.315793
  type: 'test'
  ...
# Subtest: getResumableTask handles task at exactly 30 minute threshold
ok 57 - getResumableTask handles task at exactly 30 minute threshold
  ---
  duration_ms: 0.251872
  type: 'test'
  ...
# Subtest: getResumableTask does not log warning for non-stale tasks
ok 58 - getResumableTask does not log warning for non-stale tasks
  ---
  duration_ms: 0.237562
  type: 'test'
  ...
# Subtest: cleanupOldTasks removes tasks older than maxAge
ok 59 - cleanupOldTasks removes tasks older than maxAge
  ---
  duration_ms: 0.431623
  type: 'test'
  ...
# Subtest: cleanupOldTasks skips tasks within maxAge
ok 60 - cleanupOldTasks skips tasks within maxAge
  ---
  duration_ms: 0.328522
  type: 'test'
  ...
# Subtest: cleanupOldTasks skips PROCESSING state tasks even if old
ok 61 - cleanupOldTasks skips PROCESSING state tasks even if old
  ---
  duration_ms: 0.208481
  type: 'test'
  ...
# Subtest: cleanupOldTasks skips PENDING state tasks even if old
ok 62 - cleanupOldTasks skips PENDING state tasks even if old
  ---
  duration_ms: 0.222902
  type: 'test'
  ...
# Subtest: cleanupOldTasks skips CLAUDE_EXECUTION state tasks even if old
ok 63 - cleanupOldTasks skips CLAUDE_EXECUTION state tasks even if old
  ---
  duration_ms: 0.235912
  type: 'test'
  ...
# Subtest: cleanupOldTasks skips POST_PROCESSING state tasks even if old
ok 64 - cleanupOldTasks skips POST_PROCESSING state tasks even if old
  ---
  duration_ms: 0.275372
  type: 'test'
  ...
# Subtest: cleanupOldTasks removes old FAILED tasks
ok 65 - cleanupOldTasks removes old FAILED tasks
  ---
  duration_ms: 0.276632
  type: 'test'
  ...
# Subtest: cleanupOldTasks removes old CANCELLED tasks
ok 66 - cleanupOldTasks removes old CANCELLED tasks
  ---
  duration_ms: 0.232452
  type: 'test'
  ...
# Subtest: cleanupOldTasks handles corrupted JSON gracefully
ok 67 - cleanupOldTasks handles corrupted JSON gracefully
  ---
  duration_ms: 0.225782
  type: 'test'
  ...
# Subtest: cleanupOldTasks uses custom maxAge parameter
ok 68 - cleanupOldTasks uses custom maxAge parameter
  ---
  duration_ms: 0.245213
  type: 'test'
  ...
# Subtest: cleanupOldTasks skips task when maxAge is longer than task age
ok 69 - cleanupOldTasks skips task when maxAge is longer than task age
  ---
  duration_ms: 0.230522
  type: 'test'
  ...
# Subtest: cleanupOldTasks handles multiple tasks with mixed states and ages
ok 70 - cleanupOldTasks handles multiple tasks with mixed states and ages
  ---
  duration_ms: 0.363173
  type: 'test'
  ...
# Subtest: cleanupOldTasks returns 0 when no keys exist
ok 71 - cleanupOldTasks returns 0 when no keys exist
  ---
  duration_ms: 0.177682
  type: 'test'
  ...
# Subtest: cleanupOldTasks skips keys with null values
ok 72 - cleanupOldTasks skips keys with null values
  ---
  duration_ms: 0.191141
  type: 'test'
  ...
# Subtest: cleanupOldTasks logs debug message for each cleaned task
ok 73 - cleanupOldTasks logs debug message for each cleaned task
  ---
  duration_ms: 0.273312
  type: 'test'
  ...
# Subtest: cleanupOldTasks logs info message with summary
ok 74 - cleanupOldTasks logs info message with summary
  ---
  duration_ms: 0.279802
  type: 'test'
  ...
# Subtest: cleanupOldTasks uses key prefix pattern for searching
ok 75 - cleanupOldTasks uses key prefix pattern for searching
  ---
  duration_ms: 0.164611
  type: 'test'
  ...
# Subtest: cleanupOldTasks handles Redis errors during delete gracefully
ok 76 - cleanupOldTasks handles Redis errors during delete gracefully
  ---
  duration_ms: 0.282793
  type: 'test'
  ...
# Subtest: cleanupOldTasks determines age based on updatedAt not createdAt
ok 77 - cleanupOldTasks determines age based on updatedAt not createdAt
  ---
  duration_ms: 0.226242
  type: 'test'
  ...
# Subtest: cleanupOldTasks handles task at exactly maxAge boundary
ok 78 - cleanupOldTasks handles task at exactly maxAge boundary
  ---
  duration_ms: 0.238712
  type: 'test'
  ...
# Subtest: updateTaskStateIfCurrent atomically updates a matching task snapshot
ok 79 - updateTaskStateIfCurrent atomically updates a matching task snapshot
  ---
  duration_ms: 0.535495
  type: 'test'
  ...
# Subtest: updateTaskStateIfCurrent does not publish a lost compare-and-set race
ok 80 - updateTaskStateIfCurrent does not publish a lost compare-and-set race
  ---
  duration_ms: 0.271662
  type: 'test'
  ...
# Subtest: stale metadata updates retry without resurrecting a finalized task
ok 81 - stale metadata updates retry without resurrecting a finalized task
  ---
  duration_ms: 27.08708
  type: 'test'
  ...
# Subtest: ordinary state writers cannot move a terminal task back to processing
ok 82 - ordinary state writers cannot move a terminal task back to processing
  ---
  duration_ms: 0.277003
  type: 'test'
  ...
# Subtest: a retry writer that loses to cancellation cannot resurrect the task
ok 83 - a retry writer that loses to cancellation cannot resurrect the task
  ---
  duration_ms: 5.240094
  type: 'test'
  ...
1..83
# tests 83
# suites 0
# pass 83
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 423.145802
[128/129] passed test/workerStateManager.test.ts in 0.6s

[129/129] test/workRefHelpers.test.ts
TAP version 13
# Subtest: buildTaskWorkRef — task execution flow
    # Subtest: produces correct workRef for a standard issue task
    ok 1 - produces correct workRef for a standard issue task
      ---
      duration_ms: 1.472133
      type: 'test'
      ...
    # Subtest: includes prNumber when provided (PR follow-up)
    ok 2 - includes prNumber when provided (PR follow-up)
      ---
      duration_ms: 1.14518
      type: 'test'
      ...
    # Subtest: handles undefined taskId gracefully
    ok 3 - handles undefined taskId gracefully
      ---
      duration_ms: 0.388583
      type: 'test'
      ...
    1..3
ok 1 - buildTaskWorkRef — task execution flow
  ---
  duration_ms: 5.367905
  type: 'suite'
  ...
# Subtest: buildAnalysisWorkRef — plan flow
    # Subtest: plan-generation produces plan workRef with planDraftId
    ok 1 - plan-generation produces plan workRef with planDraftId
      ---
      duration_ms: 0.267642
      type: 'test'
      ...
    # Subtest: plan-refinement produces plan workRef with planDraftId
    ok 2 - plan-refinement produces plan workRef with planDraftId
      ---
      duration_ms: 0.139881
      type: 'test'
      ...
    # Subtest: plan without taskId still has workType plan and undefined planDraftId
    ok 3 - plan without taskId still has workType plan and undefined planDraftId
      ---
      duration_ms: 0.134851
      type: 'test'
      ...
    # Subtest: plan ignores taskNumber and prNumber
    ok 4 - plan ignores taskNumber and prNumber
      ---
      duration_ms: 0.212332
      type: 'test'
      ...
    1..4
ok 2 - buildAnalysisWorkRef — plan flow
  ---
  duration_ms: 1.303091
  type: 'suite'
  ...
# Subtest: buildAnalysisWorkRef — repository flow
    # Subtest: repo-chat without taskId produces repository workRef
    ok 1 - repo-chat without taskId produces repository workRef
      ---
      duration_ms: 0.232702
      type: 'test'
      ...
    # Subtest: repo-improvements without taskId produces repository workRef
    ok 2 - repo-improvements without taskId produces repository workRef
      ---
      duration_ms: 0.197462
      type: 'test'
      ...
    # Subtest: summarization without taskId produces repository workRef
    ok 3 - summarization without taskId produces repository workRef
      ---
      duration_ms: 0.295072
      type: 'test'
      ...
    # Subtest: undefined executionType with taskId produces task workRef
    ok 4 - undefined executionType with taskId produces task workRef
      ---
      duration_ms: 0.136621
      type: 'test'
      ...
    # Subtest: undefined executionType without taskId produces repository workRef
    ok 5 - undefined executionType without taskId produces repository workRef
      ---
      duration_ms: 0.109681
      type: 'test'
      ...
    1..5
ok 3 - buildAnalysisWorkRef — repository flow
  ---
  duration_ms: 1.26741
  type: 'suite'
  ...
# Subtest: buildAnalysisWorkRef — task with taskNumber/prNumber
    # Subtest: carries taskNumber when provided
    ok 1 - carries taskNumber when provided
      ---
      duration_ms: 0.166462
      type: 'test'
      ...
    # Subtest: carries both taskNumber and prNumber when provided
    ok 2 - carries both taskNumber and prNumber when provided
      ---
      duration_ms: 0.124261
      type: 'test'
      ...
    1..2
ok 4 - buildAnalysisWorkRef — task with taskNumber/prNumber
  ---
  duration_ms: 0.398673
  type: 'suite'
  ...
# Subtest: PR follow-up workRef — insert row mapping
    # Subtest: maps prNumber to pr_number DB column
    ok 1 - maps prNumber to pr_number DB column
      ---
      duration_ms: 0.191691
      type: 'test'
      ...
    # Subtest: pr_number is null for non-PR tasks
    ok 2 - pr_number is null for non-PR tasks
      ---
      duration_ms: 0.112011
      type: 'test'
      ...
    1..2
ok 5 - PR follow-up workRef — insert row mapping
  ---
  duration_ms: 0.492774
  type: 'suite'
  ...
# Subtest: buildAnalysisWorkRef — edge cases
    # Subtest: all undefined inputs produce repository workRef with undefined fields
    ok 1 - all undefined inputs produce repository workRef with undefined fields
      ---
      duration_ms: 0.162622
      type: 'test'
      ...
    # Subtest: non-plan executionType with taskId produces task workRef
    ok 2 - non-plan executionType with taskId produces task workRef
      ---
      duration_ms: 0.095201
      type: 'test'
      ...
    # Subtest: taskNumber without taskId produces task workRef (issue-scoped analysis)
    ok 3 - taskNumber without taskId produces task workRef (issue-scoped analysis)
      ---
      duration_ms: 0.100541
      type: 'test'
      ...
    # Subtest: taskNumber without taskId for PR follow-up carries prNumber
    ok 4 - taskNumber without taskId for PR follow-up carries prNumber
      ---
      duration_ms: 0.105461
      type: 'test'
      ...
    1..4
ok 6 - buildAnalysisWorkRef — edge cases
  ---
  duration_ms: 0.609515
  type: 'suite'
  ...
# [2026-09-22 13:26:49.244 +0200] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/root/actions-runner-propr-4/_work/_temp/ci/tmp/propr-test-suite-tVMqgs/129-workRefHelpers.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-09-22 13:26:49.249 +0200] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..6
# tests 20
# suites 6
# pass 20
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 1834.097108
[129/129] passed test/workRefHelpers.test.ts in 2.0s

### Shard 1/4: 128/129 passed in 251.6s

Assigned 129 of 515 discovered units.

| Duration | Status | Unit |
| ---: | --- | --- |
| 19.9s | passed | `apps/desktop/src/saved-accounts.test.ts` |
| 15.4s | passed | `test/antigravityAgent.test.ts` |
| 9.8s | passed | `test/notificationSchema.test.ts` |
| 9.1s | passed | `packages/api/test/webPushDispatcher.test.ts` |
| 6.9s | passed | `apps/desktop/scripts/macos-window-chrome.test.mjs` |
| 5.9s | passed | `packages/api/test/connectAuthCallback.test.ts` |
| 5.3s | passed | `packages/core/test/antigravityConfig.test.ts` |
| 5.2s | passed | `apps/desktop/scripts/electron-frame-semantics.test.mjs` |
| 3.9s | passed | `apps/desktop/scripts/desktop-icon-assets.test.mjs` |
| 3.9s | passed | `test/partialExecution.test.ts` |
| 3.6s | passed | `packages/api/test/agentStreamProjection.test.ts` |
| 3.5s | passed | `test/systemTaskAuth.test.ts` |
| 3.3s | passed | `packages/api/test/socketResourceAuthorization.test.ts` |
| 3.3s | passed | `packages/api/test/mcpConnectIntegration.test.ts` |
| 3.2s | passed | `test/demoMode.test.ts` |


1/129 test runs failed in shard 1/4 after 251.6s:
- test/connectCliIntegration.test.ts: exit 1

View shard 3/4 output
...(truncated)

9m Layout desktop instance selector �[2m(8)�[22m
     �[33m�[2m✓�[22m�[39m keeps version and copyright on web but out of the desktop sidebar�[33m 385�[2mms�[22m�[39m
 �[32m✓�[39m src/api/proprApi.sharedReads.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 187�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.discovery.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 691�[2mms�[22m�[39m
   �[32m✓�[39m DesktopExperience production Connect discovery pipeline �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m prefills through main discovery, IPC, preload, and the MacIntel Electron adapter before explicit confirmation�[33m 397�[2mms�[22m�[39m
 �[32m✓�[39m src/voice/voiceCommands.test.ts �[2m(�[22m�[2m46 tests�[22m�[2m)�[22m�[32m 17�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/PreviewLightbox.test.tsx �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[33m 566�[2mms�[22m�[39m
�[90mstdout�[2m | src/components/TaskDetails/useTaskData.test.ts�[2m > �[22m�[2mtask detail history refreshes�[2m > �[22m�[2mturns the fixture baseline of three burst invalidations into one additional history request
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task-1'�[39m, state: �[32m'processing'�[39m }
[useTaskData] Received task update via WebSocket: { taskId: �[32m'task-1'�[39m, state: �[32m'processing'�[39m }
[useTaskData] Received task update via WebSocket: { taskId: �[32m'task-1'�[39m, state: �[32m'processing'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.test.ts�[2m > �[22m�[2mtask detail history refreshes�[2m > �[22m�[2mdoes not replace newer socket logs with a persisted snapshot that finishes later
�[22m�[39m[useTaskData] Received initial live data via WebSocket: 1 events

 �[32m✓�[39m src/components/TaskDetails/useTaskData.test.ts �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[32m 47�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.authentication.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 523�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/MobileBottomNavigation.test.tsx�[2m > �[22m�[2mMobileBottomNavigation�[2m > �[22m�[2mhides Access without member management permission
�[22m�[39mAn update to AgentTankSidebar inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentTankSidebar inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/MobileBottomNavigation.test.tsx�[2m > �[22m�[2mMobileBottomNavigation�[2m > �[22m�[2msigns out from the identity section
�[22m�[39mAn update to AgentTankSidebar inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentTankSidebar inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/MobileBottomNavigation.test.tsx �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[33m 783�[2mms�[22m�[39m
 �[32m✓�[39m src/components/PreviewMedia.test.tsx �[2m(�[22m�[2m17 tests�[22m�[2m)�[22m�[33m 492�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2madds a loginable agent with an isolated managed credential path and requests login
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2mallows a new agent to reuse an existing config directory instead of logging in
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2muses the agent alias in long model labels
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2msaves a model-specific reasoning level for Codex agents
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2mmarks a legacy cross-agent reasoning value as unsupported
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/pages/SettingsPage/AgentConfigModal.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 1118�[2mms�[22m�[39m
   �[32m✓�[39m AgentConfigModal �[2m(7)�[22m
     �[33m�[2m✓�[22m�[39m adds a loginable agent with an isolated managed credential path and requests login�[33m 403�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/SettingsNavigation.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 509�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Mcp/McpConnectedAppRow.test.tsx �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[33m 445�[2mms�[22m�[39m
 �[32m✓�[39m src/App.hostedFlow.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 598�[2mms�[22m�[39m
   �[32m✓�[39m HostedFlowRouteSync �[2m(5)�[22m
     �[33m�[2m✓�[22m�[39m preserves the validated active flow across actual React Router navigation without duplicating query parameters�[33m 389�[2mms�[22m�[39m
 �[32m✓�[39m src/api/proprApi.status.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useContextRefresh.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 42�[2mms�[22m�[39m
 �[32m✓�[39m src/api/voiceApi.test.ts �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[32m 90�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/inboxUtils.test.ts �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 17�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AgentLoginModal.test.tsx �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[33m 683�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/reviewPromptOverview.test.ts �[2m(�[22m�[2m18 tests�[22m�[2m)�[22m�[32m 23�[2mms�[22m�[39m
 �[32m✓�[39m src/voice/browserSpeech.test.ts �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 14�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useHeaderStats.running.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 242�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.oauthUrl.test.tsx �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalHeaderComponents.status.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 236�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/AddRepositoryModal.test.tsx�[2m > �[22m�[2mAddRepositoryModal�[2m > �[22m�[2mkeeps branch selection in the scroll-owned form and submits through one form path
�[22m�[39mIn HTML, <button> cannot be a descendant of <button>.
This will cause a hydration error.

  <AddRepositoryModal isOpen={true} newRepo="integry/propr" newAlias="Production" newBaseBranch="release/20..." ...>
    <div className="fixed inse..." onClick={function handleBackdropClick}>
      <div ref={{...}} role="dialog" aria-modal="true" aria-labelledby="_r_9_" tabIndex={-1} className="bg-white r...">
        <div>
        <form onSubmit={function handleSubmit} className="flex min-h...">
          <div data-testid="add-reposi..." className="min-h-0 fl...">
            <div>
            <div>
            <div>
              <label>
              <BaseBranchSelector repoName="integry/propr" value="release/20..." onChange={function Mock} ...>
                <div className="relative" ref={{...}}>
>                 <button
>                   id="_r_d_"
>                   type="button"
>                   onClick={function handleOpen}
>                   disabled={false}
>                   aria-labelledby="_r_e_ _r_h_"
>                   aria-describedby="_r_f_"
>                   aria-haspopup="listbox"
>                   aria-expanded={false}
>                   className="w-full px-3 py-2 text-left bg-white border border-gray-300 rounded-md font-mono text-sm..."
>                 >
                    <span>
                    <div className="flex items...">
>                     <button
>                       type="button"
>                       onClick={function handleClear}
>                       className="p-0.5 hover:bg-gray-200 rounded text-gray-400 hover:text-gray-600"
>                       title="Clear selection"
>                     >
                      ...
              ...
            ...
          ...

<button> cannot contain a nested <button>.
See this log for the ancestor stack trace.

 �[32m✓�[39m src/components/AddRepositoryModal.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 438�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop-deep-link.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AIModelSelectionSection.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 314�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/NotificationSettingsSection.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 945�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/VisualPreviewAuthSection.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 306�[2mms�[22m�[39m
 �[32m✓�[39m src/components/SummaryBrowser/index.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 153�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AgentRuntimePackagesSection.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 606�[2mms�[22m�[39m
   �[32m✓�[39m AgentRuntimePackagesSection �[2m(6)�[22m
     �[33m�[2m✓�[22m�[39m offers catalog suggestions and validates a selected package�[33m 337�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/usePlanRefinement.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 62�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useHeaderStats.scope.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[33m 336�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useLiveRefreshScheduler.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 37�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/AccessManagementPage.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 252�[2mms�[22m�[39m
 �[32m✓�[39m src/api/currentUserResponse.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 15�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.hostedOAuthLifecycle.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 235�[2mms�[22m�[39m
�[90mstderr�[2m | src/contexts/NotificationCenterContext.test.tsx�[2m > �[22m�[2mNotificationCenterProvider�[2m > �[22m�[2mignores a previous account preference after identity changes
�[22m�[39mAn update to NotificationCenterProvider inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/contexts/NotificationCenterContext.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 143�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2momits tab and requests for disabled/legacy repositories (false)
�[22m�[39mAn update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2momits tab and requests for disabled/legacy repositories (undefined)
�[22m�[39mAn update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2mclears media on repository change and disabling, ignoring stale requests
�[22m�[39mAn update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/Repositories/RepoMediaPanel.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 407�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanIssuesManager.notificationIntent.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 564�[2mms�[22m�[39m
   �[32m✓�[39m PlanIssuesManager execution intent �[2m(3)�[22m
     �[33m�[2m✓�[22m�[39m cancel closes without starting implementation�[33m 346�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanEditor.notificationIntent.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 541�[2mms�[22m�[39m
   �[32m✓�[39m PlanEditor notification intents �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m never approves from navigation and cancel leaves the plan unchanged�[33m 490�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/windowChromeStyles.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 4�[2mms�[22m�[39m
 �[32m✓�[39m src/components/AgentChat/ModelSelector.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 443�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useCurrentUserBootstrap.mainProxy.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 78�[2mms�[22m�[39m
 �[32m✓�[39m src/api/apiClient.accounts.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RepositoryVisualPreviewControl.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 247�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/AuthenticatedAttachmentImage.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 148�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.shortcut-readiness.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 203�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/packagedAcceptanceRendererLifecycle.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/TaskVisualPreviews.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 290�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/planIssueDefaultSelection.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 4�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useHeaderStats.status.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 176�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AgentsListSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 502�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalHeader.desktop.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 184�[2mms�[22m�[39m
 �[32m✓�[39m src/api/compatibility.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 90�[2mms�[22m�[39m
 �[32m✓�[39m src/serviceWorkerRegistration.test.ts �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanEditor.responsive.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 84�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/SetupWizardHeaders.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 377�[2mms�[22m�[39m
 �[32m✓�[39m src/App.hostedCompletion.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 212�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/browserAdapters.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 19�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/TaskRows.desktop.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 508�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Inbox/NotificationActions.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 175�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/VoiceSettingsSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 254�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/AttachmentUploader.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 78�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopInstanceSelector.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 188�[2mms�[22m�[39m
 �[32m✓�[39m src/api/notificationApi.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.accounts.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 460�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/SettingsLayout.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 184�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.desktopAuthentication.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 194�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SummaryBrowserPage.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 76�[2mms�[22m�[39m
[129/129] FAILED propr-ui (workspace test script) in 180.1s

### Shard 3/4: 127/129 passed in 444.9s

Assigned 129 of 515 discovered units.

| Duration | Status | Unit |
| ---: | --- | --- |
| 180.1s | failed | `propr-ui` (workspace) |
| 59.8s | passed | `apps/desktop/src/credential-service.test.ts` |
| 9.7s | passed | `packages/api/test/mcpBrowser.test.ts` |
| 9.5s | passed | `test/prContinuation.test.ts` |
| 6.9s | passed | `test/notificationPublicEntrypoint.test.ts` |
| 6.0s | passed | `packages/api/test/mcpIntegration.test.ts` |
| 5.3s | passed | `packages/api/test/plannerAbortHandlers.test.ts` |
| 5.2s | passed | `packages/api/test/mcpReviewerConcurrency.test.ts` |
| 5.0s | passed | `packages/core/test/managedPreviewStorage.test.ts` |
| 4.8s | passed | `packages/core/test/pushSubscriptionExpiration.test.ts` |
| 4.6s | passed | `packages/api/test/notificationProjectionRepositoryFilter.test.ts` |
| 4.5s | passed | `test/reasoningLevelSettings.test.ts` |
| 4.3s | passed | `packages/api/test/demoMode.test.ts` |
| 3.5s | passed | `test/processSystemTaskJob.test.ts` |
| 3.5s | passed | `packages/api/test/sessionCookie.test.ts` |


2/129 test runs failed in shard 3/4 after 444.9s:
- packages/cli/src/commands/initStack.test.ts: exit 1
- propr-ui (workspace test script): timed out after 180000ms; process group terminated

View Workflow

…the last commit on the branch (`2e029a0`). Comment 1 was a stale, misleading report, and I fixed how the workflow reports in that situation. None of this has run in CI yet; the next run is the real check.

The shard 1/4 and shard 3/4 failures were already fixed by the last commit on the branch (`2e029a0`). Comment 1 was a stale, misleading report, and I fixed how the workflow reports in that situation. None of this has run in CI yet; the next run is the real check.

**Comments 2 and 3 (shard 1/4 and shard 3/4, commit `465210e`)**
- Both shards failed with the same error: "the public instance identity is unavailable or invalid". Shard 1 failed in `test/connectCliIntegration.test.ts` and shard 3 in `initStack.test.ts`.
- **Cause:** on commit `465210e`, the log shows `TMPDIR` was inside the runner's install folder (`/root/actions-runner-propr-4/_work/_temp/ci/tmp`). Both tests create their folders under `TMPDIR`. The CLI rightly refuses to use a folder whose parent can be written to by other users, and one parent in that path allows that.
- **Already fixed:** `2e029a0` gives each self-hosted job its own private `TMPDIR` under `/tmp`. I reproduced the failure locally: with a group-writable parent, `connectCliIntegration` fails 0/2 with the same error; with the new `TMPDIR` layout it passes 2/2. I didn't need to change anything for these two.

**Comment 1 (run 35720594998, commit `4041ad3`)**
- **What happened:** pushing `465210e` cancelled this run while the shards were still testing.
- **Why it posted anyway:** the "Run Full Test Suite" and comment jobs are set to run even after a cancellation. So the run still posted a report, and it said "passed" for shards that were actually cancelled. The report only looked for failed steps, and a cancelled step is recorded as "cancelled", not "failure".
- **Hosted Electron failure:** this was the known problem on `4041ad3`, and it passed on `465210e`.

**Changes in `.github/workflows/pr-test-on-label.yml`**
- The comment job now only posts if the run wasn't cancelled.
- The required "Run Full Test Suite" gate still runs and fails on cancelled runs. If it were skipped instead, branch protection would treat it as passing when someone cancels the latest run.
- In the report, a shard with a cancelled step (for example after a timeout) now shows as "cancelled during …". It is listed in the "Validation failed during" line and its output is attached. It no longer shows as "passed".

**Tests and docs**
- I added a test to `test/ciRunnerRouting.test.mjs`. It checks both job conditions and runs the real report script against fake shard results (passed, cancelled, failed, missing).
- The new test fails against the previous workflow and passes now.
- `npm run test:unit` passes (391 tests), eslint is clean and the workflow file parses.
- I added a short paragraph to `docs/ci-runners.md`.

There's nothing visual to preview. The Gmail, Google Calendar, Google Drive and ProPR connectors still need to be authorised in your claude.ai connector settings; I didn't need them for this.

PR: #2466
Comment by: @github-actions[bot] (ID: 5775529377)
Comment by: @propr-dev[bot] (ID: 5775603120)
Comment by: @propr-dev[bot] (ID: 5775647174)
Model: claude-opus-5
@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit fbf6ebd

Summary of Changes

This report was for an older commit. Four of the five failures were already fixed on the branch, and I fixed the fifth, the propr-ui timeout. It hasn't run in CI yet, so the next run will confirm it.

The report is from run 35720830688 on 465210e, before the branch's last two commits (2e029a0, 8f15563).

Already fixed on the branch:

  • The four file failures (connectCliIntegration, initStack, and shard 2's initCommands and publicInstanceIdentity) all failed with the same error: "the public instance identity is unavailable or invalid". The log shows TMPDIR was inside the runner's install folder, where one parent directory can be written to by other users, so the CLI refused it. 2e029a0 moved each self-hosted job's TMPDIR to its own private folder under /tmp.
  • Shard 2 showed as "passed" while listing failures. That shard was actually cancelled when 2e029a0 was pushed. The report used to label cancelled shards as "passed"; 8f15563 fixed that.

New problem, fixed now: propr-ui hit the 180 s limit on shard 3.

  • Cause: it wasn't stuck. It was finishing about one test file per second and had done 106 of 154 files when it was stopped. The worker's CPU cap (cpu.max 200000 100000) allows 2 CPUs, even though it shows 12. Vitest works out its own worker count from that cap and ended up with a single worker. The whole 154-file suite then counted as one unit against the 180 s per-unit timeout. On hosted runners it takes 87.6 s.
  • Fix, in scripts/run-test-suite.mjs: each Vitest/Jest workspace now runs as four parts, propr-ui#1/4 to #4/4, each started with npm test --workspace=propr-ui -- --shard=N/4. Each CI shard gets exactly one part, so the slowest shard is no longer carrying the whole UI suite. The check that every unit ran exactly once covers the parts too.
  • Measured here: the four parts ran 39, 39, 38 and 38 files, all 154, and all passed in 25–32 s each. With the single worker the capped runner ends up with, one part took 60 s. That should keep each part well under 180 s on the runner.

Tests: I updated test/testSuiteRunner.test.mjs and added a test for the part command and how parts spread across shards. Four of its tests fail with the old runner and all pass now. npm run test:unit passes (392 tests) and eslint is clean. I also added a short note to docs/ci-runners.md.

The PR description still says each native workspace is one unit; that line is now out of date. There's nothing visual here, so I made no previews.

The Gmail, Google Calendar, Google Drive and ProPR connectors still need to be authorised in your claude.ai connector settings. I didn't need them for this.


🤖 Implementation Details

  • Model: Claude Opus 5 (high)
  • Requested By: @github-actions[bot]
  • Time: 9m 9s
  • Tokens: 3,288,958 (3,269,529 in / 19,429 out)
  • Cost: $3.01

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5775679313✓

…ble Linux checks. Preserved isolation, cleanup, coverage verification, partial reruns, and mandatory hosted Electron coverage. Updated the runner docs and [PR description](#2466).

Fixed F7 and restored gated four-worker routing for compatible Linux checks. Preserved isolation, cleanup, coverage verification, partial reruns, and mandatory hosted Electron coverage. Updated the runner docs and [PR description](#2466).

Validation: 66 focused tests passed; actionlint, ShellCheck, ESLint, and Bash syntax checks passed.

**Activation remains blocked:** runner-policy APIs returned 403, so independent fork exclusion could not be verified. Administrator prerequisites are documented. Exact resulting-head CI and gitfix.dev runner/timing evidence remain pending; earlier hosted results are explicitly labelled as baseline only.

PR: #2466
Comment by: @integry (ID: 5784324225)
Model: gpt-6-astra
@integry

integry commented Sep 22, 2026

Copy link
Copy Markdown
Owner

The owner has chosen rootless Docker isolation on gitfix.dev instead of VM migration for now, and reports enabling approval for all external contributors. I am provisioning/validating the host-side workers separately. Update this PR for that explicit decision; do not provision host services or change GitHub permissions from the implementation task.

Add a clearly named opt-in PROPR_ROOTLESS_PR_CHECKS=true for compatible same-repository, non-Dependabot Linux x64 PR jobs, using labels [self-hosted, Linux, X64, propr-rootless]. Default/disabled and fork routes remain GitHub-hosted. Preserve the four independent shard jobs, required aggregate gate, mandatory hosted Electron checks, Redis collision/ownership fixes, bounded Docker resources, and all coverage. Never select the old generic propr label for PR jobs. This new flag signifies rootless execution, NOT independently enforced fork exclusion; do not set or require PROPR_SELF_HOSTED_PR_ACCESS_VERIFIED to falsely assert that guarantee. Preserve an operational off switch, and document the actual approval-based trust model: fork workflows require manual approval and their ordinary route is hosted, but editable workflow routing is not strict admission control. Rootless contains processes under dedicated unprivileged accounts; it is not a VM or a guarantee against kernel exploits or cross-job persistence.

Expected pilot topology: each worker has a dedicated unprivileged host user and user-scoped rootless Docker daemon; runner executes in a container on that daemon and connects only to that daemon's socket. CI paths used as Docker bind sources must exist at the same absolute path inside runner and daemon's host mount namespace. Runner will share its own daemon's rootless network namespace (--network host inside RootlessKit, not production host networking), so locally published Redis ports can be exercised. Per-user cgroup limits cap the runner and sibling Docker workloads together. Production /var/run/docker.sock and credentials are never mounted. Resource and network evidence will be provided after host validation; no activation or completed security checks should be claimed merely from this design description.

Inspect workflow assumptions about root/non-root, docker socket/context, executable dependencies and paths. Avoid installing system packages into the production host. Ensure cleanup is scoped to this job and rootless daemon. Keep existing hosted jobs where sandbox/native-platform requirements are not available. Add focused routing regression tests, update docs/PR description to this final policy, validate actionlint/tests, and leave the opt-in unset until I provide host pilot evidence. Do not merge/deploy or create overlapping writers.

@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 05c1bb2

Summary of Changes

Updated PR #2466 and its description.

  • Added rootless opt-in routing, Docker prerequisite checks, and scoped cleanup.
  • Preserved four shards, required gate, hosted Electron checks, Redis ownership fixes, and coverage.
  • Documented approval-based trust and pilot limitations.
  • Passed 68 focused tests, actionlint, ShellCheck, Bash syntax checks, and ESLint.

Opt-in was not enabled. Host configuration and GitHub permissions were untouched; pilot evidence and resulting-head CI remain pending.


🤖 Implementation Details

  • Model: GPT-6 Astra (high)
  • Requested By: @integry
  • Time: 9m 38s
  • Tokens: 1,395,190 (1,381,259 in / 13,931 out)
  • Cost: $2.73
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5784802882✓

Updated [PR #2466](#2466) and its description.

- Added rootless opt-in routing, Docker prerequisite checks, and scoped cleanup.
- Preserved four shards, required gate, hosted Electron checks, Redis ownership fixes, and coverage.
- Documented approval-based trust and pilot limitations.
- Passed 68 focused tests, actionlint, ShellCheck, Bash syntax checks, and ESLint.

Opt-in was not enabled. Host configuration and GitHub permissions were untouched; pilot evidence and resulting-head CI remain pending.

PR: #2466
Comment by: @integry (ID: 5784802882)
Model: gpt-6-astra
@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Windows Connect Discovery (ordinary user, Node 22)

Please investigate and fix this CI failure.

  • Check: Windows Connect Discovery (ordinary user, Node 22)
  • Result: failure
  • Commit: 05c1bb2e16ad (05c1bb2e16ad7ee4b83996ac63112cd95fa73741)
  • Details: View CI failure

Failure evidence

.github:74
Process completed with exit code 1.

@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

❌ Failed to apply follow-up changes requested by @propr-dev[bot]

An error occurred while processing your request:

Agent execution failed: Selected model is at capacity. Please try a different model.

Comment ID: 5784971127✓
Please check the logs for more details.

@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Run Full Test Suite

Please investigate and fix this CI failure.

Failure evidence

.github:29
Process completed with exit code 1.

.github:28
Shard coverage verification finished with result 'failure'.

.github:27
Full test suite shards finished with result 'cancelled'.

@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @propr-dev[bot]

Analysis Summary

All four shards were cancelled; the required gate correctly failed because coverage was incomplete. No code change is justified by the available evidence.

All 56 targeted CI regression tests passed. A rerun was already underway, but GitHub API access subsequently returned 401 Bad credentials, preventing confirmation of its outcome or investigation of the cancellation cause.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: GPT-6 Astra (high)
  • Time: 3m 17s
  • Tokens: 288,335 (286,234 in / 2,101 out)
  • Cost: $1.07

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5784980660✓

@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 2/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 2/4
  • Result: failure
  • Commit: 05c1bb2e16ad (05c1bb2e16ad7ee4b83996ac63112cd95fa73741)
  • Details: View CI failure

Failure evidence

.github:57
Process completed with exit code 125.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 99d8b3d

Summary of Changes

Fixed the Redis startup port collision that caused exit 125. Startup now retries conflicting ports with distinct candidates, preserving ownership checks, resource limits, and shard coverage. The Node.js warning was unrelated.

Validation: all 59 focused tests passed, plus ShellCheck and Bash syntax checks. Live rootless verification remains for CI; Docker is unavailable locally.


🤖 Implementation Details

  • Model: GPT-6 Astra (high)
  • Requested By: @propr-dev[bot]
  • Time: 4m 43s
  • Tokens: 425,077 (419,724 in / 5,353 out)
  • Cost: $1.24

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5785062677✓

@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 4/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 4/4
  • Result: failure
  • Commit: 05c1bb2e16ad (05c1bb2e16ad7ee4b83996ac63112cd95fa73741)
  • Details: View CI failure

Failure evidence

.github:21
Process completed with exit code 1.

.github:12140
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@integry

integry commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Host validation update for the active rootless CI follow-up: all four gitfix-rootless-1..4 workers are registered. The shard 2 Redis bind failure on attempt 2 of run 35790294556 is a host configuration issue I am correcting: RootlessKit was forwarding each daemon's independently allocated port onto the same host loopback port. I am disabling outer port forwarding (PORT_DRIVER=none); the runner uses the daemon's network namespace and can still reach published Redis ports there. Please do not weaken isolation or change Redis port allocation to fix that host issue.

The shard 4 test/connectCliIntegration.test.ts failures remain to investigate from its logs. Windows ordinary-user discovery failed on a hosted runner independently. Preserve the rootless preflight and scope any repository fixes to demonstrated failures.

…. Startup now retries conflicting ports with distinct candidates, preserving ownership checks, resource limits, and shard coverage. The Node.js warning was unrelated.

Fixed the Redis startup port collision that caused exit 125. Startup now retries conflicting ports with distinct candidates, preserving ownership checks, resource limits, and shard coverage. The Node.js warning was unrelated.

Validation: all 59 focused tests passed, plus ShellCheck and Bash syntax checks. Live rootless verification remains for CI; Docker is unavailable locally.

PR: #2466
Comment by: @propr-dev[bot] (ID: 5785062677)
Model: gpt-6-astra
@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 6358dde

Processed 2 comments:

  • Comment 1 by @propr-dev[bot] (ID: 5785093826✓)
  • Comment 2 by @integry (ID: 5785109680✓)

Summary of Changes

Fixed the shard 4 test failure: inherited empty DOCKER_CONTEXT caused premature INTERNAL_FAILURE. The fake-Docker fixture now isolates runner transport settings, with a regression test.

Validation: CLI build passed, all 24 focused tests passed, and all three integration tests passed under the reproduced rootless environment.

Rootless preflight and Redis isolation remain unchanged. No visual changes.


🤖 Implementation Details

  • Model: GPT-6 Astra (high)
  • Requested By: @propr-dev[bot], @integry
  • Time: 5m 5s
  • Tokens: 922,569 (918,233 in / 4,336 out)
  • Cost: $1.68
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 5785093826✓, 5785109680✓

…TEXT` caused premature `INTERNAL_FAILURE`. The fake-Docker fixture now isolates runner transport settings, with a regression test.

Fixed the shard 4 test failure: inherited empty `DOCKER_CONTEXT` caused premature `INTERNAL_FAILURE`. The fake-Docker fixture now isolates runner transport settings, with a regression test.

Validation: CLI build passed, all 24 focused tests passed, and all three integration tests passed under the reproduced rootless environment.

Rootless preflight and Redis isolation remain unchanged. No visual changes.

PR: #2466
Comment by: @propr-dev[bot] (ID: 5785093826)
Comment by: @integry (ID: 5785109680)
Model: gpt-6-astra
@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 2/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 2/4
  • Result: failure
  • Commit: 6358dde9cfdc (6358dde9cfdc5940881ac4e4d44a1d98a51696cc)
  • Details: View CI failure

Failure evidence

.github:21
Process completed with exit code 1.

.github:14591
Process completed with exit code 1.

propr-ui/src/api/proprApi.logout.test.ts:89 — src/api/proprApi.logout.test.ts > logout > logs out hosted UI through the exact resolved tunnel with credentials and manual redirect
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ src/api/proprApi.logout.test.ts:89:3

@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 1/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 1/4
  • Result: failure
  • Commit: 6358dde9cfdc (6358dde9cfdc5940881ac4e4d44a1d98a51696cc)
  • Details: View CI failure

Failure evidence

.github:21
Process completed with exit code 1.

.github:20442
Process completed with exit code 1.

propr-ui/src/App.hostedFlow.test.tsx:178 — src/App.hostedFlow.test.tsx > HostedFlowRouteSync > retains the validated active flow when the catch-all dashboard link uses router navigation
TestingLibraryElementError: Found multiple elements by: [data-testid="location"]

Here are the matching elements:

Ignored nodes: comments, script, style

/tasks?status=open

Ignored nodes: comments, script, style

/login?logged_out=true

Ignored nodes: comments, script, style

/missing

Ignored nodes: comments, script, style

/missing?flow=5e7280c4-a744-4e5b-838a-dd0333f4c532

(If this is intentional, then use the *AllBy* variant of the query (like queryAllByText, getAllByText, or findAllByText)).

Ignored nodes: comments, script, style

Settings
/tasks?status=open
tasks
/login?logged_out=true
/plans?status=open&sort=updated#details
login
/missing

Page not foun…

@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit a345f39

Summary of Changes

Fixed the logout test’s cold-import timeout by preloading the API module during suite setup, then resetting it to preserve per-test isolation.

Validation passed:

  • All 341 tests across the failed CI job’s 39 UI files.
  • All nine logout tests with an injected 5.5-second import delay.
  • ESLint and diff checks.

Assertions and test timeouts remain unchanged. No visual changes.


🤖 Implementation Details

  • Model: GPT-6 Astra (high)
  • Requested By: @propr-dev[bot]
  • Time: 4m 36s
  • Tokens: 775,955 (771,604 in / 4,351 out)
  • Cost: $1.36
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5785368865✓

@propr-dev

propr-dev Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 4/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 4/4
  • Result: failure
  • Commit: 6358dde9cfdc (6358dde9cfdc5940881ac4e4d44a1d98a51696cc)
  • Details: View CI failure

Failure evidence

.github:21
Process completed with exit code 1.

.github:12367
Process completed with exit code 1.

propr-ui/src/App.invalidConfiguration.test.tsx:37 — src/App.invalidConfiguration.test.tsx > invalid eager API configuration > renders a bounded safe connection screen without leaking configured input
TestingLibraryElementError: Found multiple elements with the role "heading" and name "Invalid ProPR configuration"

Here are the matching elements:

Ignored nodes: comments, script, style

Invalid ProPR configuration

Ignored nodes: comments, script, style

Invalid ProPR configuration

(If this is intentional, then use the *AllBy* variant of the query (like queryAllByText, getAllByText, or findAllByText)).

Ignored nodes: comments, script, style

Hosted UI

Invalid ProPR configuration

ProPR cannot use the configured connection. Re-enter or rediscover the instance, then try again.

Run propr tunnel setup from Pr…

@integry

integry commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Additional evidence for the active CI repair at 6358dde: build/lint and CLI compatibility are now green; the remaining failures are UI shards (App.hostedFlow.test.tsx and App.invalidConfiguration.test.tsx retain prior DOM; proprApi.logout.test.ts times out on its first dynamic import). Please address these together through the shared test setup where appropriate, preserving assertions and all shard coverage.

Host capacity detail relevant to the timeout: each rootless worker has an aggregate cgroup CPU quota of 2 CPUs and MemoryHigh=6GiB/MemoryMax=8GiB, but can see the host's 12 logical CPUs. Check whether Vitest defaults oversubscribe that quota before increasing timeouts. The shared setup currently only imports jest-dom; verify explicit RTL cleanup and module-reset interactions rather than changing single-element queries to accept duplicates.

All four daemons now run with RootlessKit port-driver=none, and simultaneous same-port Redis services on separate daemons passed. Production Docker remains unchanged. The full suite's shard 3 is still running; include its eventual result before calling the repair complete.

…he API module during suite setup, then resetting it to preserve per-test isolation.

Fixed the logout test’s cold-import timeout by preloading the API module during suite setup, then resetting it to preserve per-test isolation.

Validation passed:

- All 341 tests across the failed CI job’s 39 UI files.
- All nine logout tests with an injected 5.5-second import delay.
- ESLint and diff checks.

Assertions and test timeouts remain unchanged. No visual changes.

PR: #2466
Comment by: @propr-dev[bot] (ID: 5785368865)
Model: gpt-6-astra
@propr-dev

propr-dev Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit b2d9442

Processed 3 comments:

  • Comment 1 by @propr-dev[bot] (ID: 5785370917✓)
  • Comment 2 by @propr-dev[bot] (ID: 5785374953✓)
  • Comment 3 by @integry (ID: 5785417815✓)

Summary of Changes

Added explicit shared RTL cleanup and capped Vitest at two CI workers. Assertions, timeouts, and shard coverage remain unchanged.

Validation passed: all four UI shards—1,193 tests—under a two-CPU limit, plus 18 targeted tests with automatic cleanup disabled, 17 shard-runner tests, and lint.

Original CI shard 3 finished cancelled, so full CI confirmation still requires a rerun.


🤖 Implementation Details

  • Model: GPT-6 Astra (high)
  • Requested By: @propr-dev[bot], @integry
  • Time: 6m 56s
  • Tokens: 1,333,663 (1,327,518 in / 6,145 out)
  • Cost: $2.16

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 5785370917✓, 5785374953✓, 5785417815✓

…CI workers. Assertions, timeouts, and shard coverage remain unchanged.

Added explicit shared RTL cleanup and capped Vitest at two CI workers. Assertions, timeouts, and shard coverage remain unchanged.

Validation passed: all four UI shards—1,193 tests—under a two-CPU limit, plus 18 targeted tests with automatic cleanup disabled, 17 shard-runner tests, and lint.

Original CI [shard 3](https://github.com/integry/propr/actions/runs/35792207892/job/106963523123) finished **cancelled**, so full CI confirmation still requires a rerun.

PR: #2466
Comment by: @propr-dev[bot] (ID: 5785370917)
Comment by: @propr-dev[bot] (ID: 5785374953)
Comment by: @integry (ID: 5785417815)
Model: gpt-6-astra
@integry

integry commented Sep 23, 2026

Copy link
Copy Markdown
Owner

/review astra opus

@propr-dev

propr-dev Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 2 reviews:

View Task Details

@propr-dev

propr-dev Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — astra

Overall Evaluation

The PR combines deterministic sharding, isolated Redis instances, serialized nightly runs, and the desktop deadline fix. The visible implementation is strong, but a material review gap prevents calling it merge-ready: the changed apps/desktop/scripts/electron-native-test-setup.mjs implementation is omitted, and its supplied contents stop mid-function.

✅ Shard accounting — Deterministic assignment is backed by missing/duplicate-unit verification and a stable aggregate check requiring shards, docs, and hosted Electron.

✅ Deadline cleanup — withDeadline clears timers after fulfillment or rejection. The fresh-subprocess regression checks natural process exit, directly addressing the reported latency.

✅ Redis ownership — Cleanup validates ownership labels and removes immutable container IDs, protecting other shards and newer attempts.

The authoritative status reports 33 passed checks, nine neutral/skipped, and no failures or pending checks.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Capture current-head latency evidence

docs/ci-runners.md clearly identifies its timings as an earlier baseline. Adding exact-head queue times, shard durations, and total workflow duration would establish the achieved improvement. This is an optional measurement follow-up; passing check statuses establish success but do not quantify latency reduction.

Score

The visible changes have substantial regression coverage and no verified merge blocker. The omitted Electron helper leaves the newly changed required-execution behavior incompletely reviewable, warranting minor review follow-up before merge.

Score: 7/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 6m 35s
  • Tokens: 87,086 (74,900 in / 12,186 out)
  • Cost: $1.25

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — opus

Overall Evaluation

This PR delivers the requested CI latency work — deterministic four-way sharding of the full suite in pr-test-on-label.yml, a serialized nightly concurrency group, and the extractRpm deadline-timer leak fix — and additionally lands a large (but dormant) self-hosted "rootless" runner routing layer, Redis ownership hardening, and a batch of test-isolation fixes. The sharding design is the strongest part: it is complete-partition by construction, emits per-shard summaries, and the required Run Full Test Suite check name is preserved as an aggregate gate that fails closed on missing/duplicate/interrupted/out-of-set units and on skipped or cancelled dependencies. All 33 current-head checks pass, including all four shards and the aggregate gate.

I traced the shard partition, the summary/verification round trip (including partial-rerun attempt selection), the ci-redis.sh ownership/label/retry logic against its Docker CLI double, the failure-comment size budgeting, and the withDeadline conversions and their callers. I did not find a merge blocker.

✅ Fail-closed coverage proof, not just parallelism — verifyShardSummaries in scripts/run-test-suite.mjs checks shard presence, duplicate ownership, unit membership against fresh discovery, and interruption, and selectLatestShardAttempts correctly picks the newest attempt per shard so a partial rerun still proves complete coverage. test/testSuiteRunner.test.mjs exercises missing shards, dropped results, duplicates, stale units, and stale/new attempt ordering.

✅ The deadline fix matches the issue's exact requirement — withDeadline clears the timer via .finally() on both resolve and reject paths, and apps/desktop/scripts/test-native-artifact-lifecycle.test.mjs proves prompt natural exit by spawning a fresh Node subprocess with timeout: 600000 and asserting close with code 0, rather than merely asserting the async function resolves.

✅ Nightly serialization has the right semantics — concurrency: { group: nightly-test-suite, cancel-in-progress: false } never cancels an in-flight live E2E run, and test/testSuiteRunner.test.mjs asserts both the group and the non-cancelling flag plus the absence of PROPR_TEST_SHARD_ in the nightly workflow.

Ready to merge within scope; the items below are optional follow-ups.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Assert unit status in coverage verification

verifyShardSummaries proves each discovered unit ran exactly once but never inspects result.status. Today a failed unit is caught only indirectly, through the shard job's Fail Job step and needs.shard.result in the Enforce shard and docs results step. Adding an explicit status !== 'passed' error inside verifyShardSummaries would make the required gate self-sufficient rather than dependent on two independent mechanisms staying in sync, and would guard against a future refactor that changes continue-on-error/Fail Job wiring. Optional because the current two mechanisms do close the gap.

S2: 🟢 Scope maxWorkers: 2 to the constrained route

propr-ui/vite.config.ts sets maxWorkers: process.env.CI ? 2 : undefined, but the justification in the comment ("rootless CI workers ... share a two-CPU cgroup quota") applies only to the self-hosted route, which is dormant. On GitHub-hosted runners this unconditionally reduces vitest parallelism, which works against the PR's own latency objective. Gating on a self-hosted-specific variable (or on the evidence script's observed cpu.max) would keep the hosted path at full parallelism. Optional because each shard now runs only one quarter of the workspace files, bounding the impact.

S3: 🟢 The SIGTERM drain assertion was weakened

test/cliAgentValidation.test.ts previously asserted exit|<kind>| for all four child kinds; it now asserts only exits.length > 0 plus that every recorded exit observed root=true. The new snapshot-at-settlement approach is a genuine improvement for the "does not settle early" invariant, but a regression in which three of four children are escalated to SIGKILL instead of draining on SIGTERM would now pass. Consider asserting the drained set when the run is not under load, or recording escalation explicitly. Optional because this is test-side robustness tuning, not a product behavior change.

S4: 🟢 traversableTemporaryRoot() can return /

In packages/api/test/instanceWebPushConfiguration.test.ts, the upward walk assigns candidate = dirname(current) for any non-world-searchable ancestor, so a configuration where a high ancestor is 0700 but tmpdir() itself is searchable yields /, and the test then creates propr-vapid-* directories directly in the filesystem root. It is root-only and cleaned via t.after, but on a persistent self-hosted host a hard failure would litter /. Bounding the walk to a known-safe root (for example /tmp) would be safer. Optional because the branch is unreachable on the current non-root hosted runners.

S5: 🟢 --with-deps invariant is enforced only on workflow YAML

test/ciRunnerRouting.test.mjs asserts routed job blocks never contain --with-deps, and scripts/ci-install-chromium.sh correctly restricts it to RUNNER_ENVIRONMENT == github-hosted. However, the docs job on the rootless route runs ./.propr/setup.sh, whose Playwright invocation is outside the checked YAML. If that script installs system packages, the documented "never apt-install onto the shared host" guarantee would be bypassed on the self-hosted route. Auditing .propr/setup.sh to route through ci-install-chromium.sh (or asserting on the script body) would close the loop. Optional because the rootless route is inactive until PROPR_ROOTLESS_PR_CHECKS=true.

S6: 🟢 Dead error message in shard-summary verification

In runSuite, parseShardConfig({ index: '1', count: env.PROPR_TEST_SHARD_COUNT }) throws "Shard index and count must be set together" when PROPR_TEST_SHARD_COUNT is unset, so the following if (!expectedCount) throw new Error('PROPR_TEST_SHARD_COUNT is required to verify shard summaries') is unreachable and the operator sees a misleading message. Reading the variable directly before delegating to parseShardConfig would restore the intended diagnostic. Optional: the failure is still loud and fail-closed.

S7: 🟢 Consider splitting the dormant rootless infrastructure

Roughly half of this diff (scripts/ci-rootless-preflight.sh, scripts/ci-runner-evidence.sh, docs/ci-runners.md, the repeated runs-on: ${{ fromJSON(...) }} expressions and per-job isolate/cleanup steps across three workflows) is inert until a repository variable is set, and docs/ci-runners.md itself states that host pilot evidence is still pending. Landing it separately from the sharding/nightly/deadline work would shrink the reviewable surface and keep the repeated seven-line routing expression from being duplicated across six jobs before it is validated. Optional because the routing genuinely defaults to ubuntu-latest and the duplication is covered by a single-source consistency assertion in test/ciRunnerRouting.test.mjs.

S8: 🟢 ci-runner-evidence.sh can report a cgroup path outside the hierarchy

The ancestor walk terminates on CGROUP_DIR != /sys/fs/cgroup, but a CGROUP_PATH of / produces /sys/fs/cgroup/ (trailing slash), which never string-equals the terminator, so the loop can step to /sys/fs and LIMITING_CGROUP is then reported as /sys/fs with all limits unavailable. The script is read-only diagnostic output, so this only degrades the evidence table rather than affecting any job. Normalizing the trailing slash before the loop would fix it.

Score

The PR meets its stated objective with a well-tested, fail-closed sharding design and a correct, properly regression-tested fix for the extractRpm timer leak; current head is fully green and I found no PR-introduced correctness or safety regression. The score is held just below the top of the range by the substantial dormant self-hosted routing surface that ships unvalidated alongside the in-scope work.

Score: 8/10


🤖 Review Details

  • Model: Claude Opus 5
  • Time: 6m 19s
  • Tokens: 135,153 (102,895 in / 32,258 out)
  • Cost: $1.45

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry
integry merged commit 89326fe into main Sep 23, 2026
42 checks passed
@integry
integry deleted the 2465/claude-opus-5-reduce-ci-latency-with-is-20260922-1025-5k9 branch September 23, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce CI latency with isolated full-suite shards and serialized nightly runs

2 participants