Repository navigation
fix: stop shell profiles from corrupting installer and Docker tests - #146897
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
@clawsweeper review The PR body now includes passing Linux affected-suite, repeated stress, build, CLI, and exact-head CI evidence. Please review the current head; the broader full-suite run remains in progress. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 5:45 AM ET / 09:45 UTC. ClawSweeper reviewWhat this changesThe PR isolates installer and Docker test shells from inherited startup files, adds shared regression coverage, and registers watchdog fixture signal handlers before reporting readiness. Merge readiness✅ Ready for maintainer review Keep open as useful, maintainer-owned work. No actionable introduced defect was found, and the linked CI passed on the reviewed head. Current main still lacks the complete isolation fix. Priority: P2 Review scores
Verification
How this fits togetherInstaller and Docker script tests launch Bash processes with controlled fixtures and inspect their output, exit status, and cleanup. Inherited shell hooks can alter those fixtures and make otherwise correct script behavior fail validation. flowchart TD
A[Test fixture and environment] --> B[Shell test launcher]
B --> C[Disable profiles and inherited hooks]
C --> D[Installer or Docker shell snippet]
D --> E[Output and process cleanup]
E --> F[Regression assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +61. Total +61 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep shell initialization policy in the test launchers so fixtures control their environment without changing production installer or cleanup behavior. Do we have a high-confidence way to reproduce the issue? Yes: current-main installer CLI tests inherit BASH_ENV, while Docker snippets use login shells; the added hook fixtures directly exercise those launch paths. This review verified source, not a local failing execution. Is this the best way to solve the issue? Yes: fixing the test launch boundary preserves fixture environments and existing behavioral assertions, while the readiness-order repair removes the watchdog fixture race without weakening cancellation checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a8a9114fb787. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* refs/heads/temp/pr-146883: (159 commits) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) ...
* refs/heads/temp/pr-146833: (43 commits) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) ...
…ssion-list-roster-batch-20260913 * commit 'f513c0f345f7f2514c49ccfbc00adc3f78b9a755': (46 commits) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) fix: share Doctor lifecycle coordination with SQLite workers (#146714) fix: retain native session model provenance (#146801) fix: settle embedded transcript repairs before session cleanup (#146842) feat(macos): improve agent navigation and chat layout (#146531) ...
What Problem This Solves
Fixes installer and Docker helper tests that fail when Bash startup or logout files run inside fixture shells, including 16 failures found during maintainer-requested main-branch stress testing.
User Impact
No user-visible runtime change. Installer, heartbeat cleanup, and watchdog tests now exercise their intended fixtures consistently across shell nesting levels.
Why This Change Was Made
Run shell snippets without login/profile initialization and clear inherited startup hooks after fixture environment overrides. Share the Docker invocation policy across its snippet callers and register watchdog fixture signal traps before reporting readiness. Production installers and process cleanup behavior are unchanged.
Evidence
SHLVL=0on macOS: 693 passed, two Linux-only cases skipped. This includes all 13 previously failing nvm cases and the Docker heartbeat/watchdog cases.SHLVL=0andSHLVL=1(two macOS-only skips per pass); all 20 alternating-shell-level stress rounds passed. Build and CLI smoke passed. The independent full-suite run remains in progress and is not green: it exposed two unchanged managed-media cap failures and eight backup-fixture failures. The backup failures reproduce underumask 0002and are being handled separately. Aggregate JSON capture also rejects the inline UI browser project, which requires a separate invocation. These results are retained; no full-suite pass is claimed.