Repository navigation
fix(test): isolate diagnostic servers from live Codex restart - #7018
Conversation
Inject a non-operating restart service through the common diagnostic fixture startup path. Cover refusal behavior and authenticated HTTP dependency forwarding, and include both helpers in the Windows mirror. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Thanks @luvs01! Reviewed: the diagnostic fixture now injects a frozen restart service, so authenticated diagnostic requests can no longer reach host process inspection or desktop restart. Production code is untouched. Maintainer integration into |
Summary
Diagnostic servers started by
native-main-owner-child.tscurrently inherit the live Codex restart service. An authenticated diagnostic request can therefore reach host process inspection, catalog synchronization, or desktop restart code despite the fixture's temporary home and synthetic provider state.Inject a complete, frozen restart service through the common startup path used by the primary and extra fixture servers. State reads return
unknownwith zero running processes; restart requests explicitly refuse. Production restart behavior is unchanged. Add source-wiring, direct refusal, and authenticated two-listener forwarding regressions, and document that scratch diagnostic mirrors must copy both helper files.This independent four-file change is based on
devat6da2774369aa32552e318e333902499683d053bc. It carries the changes fromf93a609fce77936d073ff9131abd500a3f9b817a,ae6ea87562286a38217861b6e3a9092ab3f91d00, and1dcb4bd2469d93f213f237aa2f4db9ca3bd1ad6ewithout unrelated branch changes.Verification
Candidate commit:
fcdb41dbed5b82dda2d9d5a68215e6322a984f84; tree:dcc6a2696d7a8bb6887504f33cb132e5bc19c7ff.Local checks passed with Bun 1.4.2:
bun run typecheckbun run structure:checkbun run privacy:scanbun scripts/file-size-ratchet.tsgit diff --cached --check 6da2774369aa32552e318e333902499683d053bcThe privacy, structure, and size checks included the new helper through a temporary Git index. The official changed-run preflight resolved
devto the same base and found exactly these four files; this was a selection preflight, not a test execution.Existing hosted CI checked out
cc2d6a8cf683c247c3fde7f5bb5f426dfdfe155e, whose entire tree matches this candidate. Its four Linux and nine Windows test shards and aggregate completed successfully. The batch totals were 45,616 passed / 137 skipped / 0 failed on Linux and 45,043 passed / 755 skipped / 0 failed on Windows. In those logs,codex-restart-route.test.tspassed all 12 cases and the subprocess consumernative-main-owner-lifetime.test.tspassed all 10 cases on each platform. These are existing same-tree results, not checks run against a newly published upstream head.Local focused tests,
test:changed, and the full suite were not repeated: the unchanged complete tree already has the above passing coverage, and concurrent worktrees share the test runner. Import-graph selection alone would not establish coverage of the spawned child, so its explicit CI case results were inspected. Published-head CI is recorded below; independent review remains pending, so keep this proposal in Draft.Earlier local reports of three lifetime timeouts remain historical failed results; paired raw logs were unavailable for independent attribution. The later Linux and Windows passes do not retroactively classify those failures. Coverage combines direct refusal with sentinel HTTP forwarding; it does not exercise the diagnostic child's refusing service end to end over HTTP. Installed applications, real accounts/services, and the Windows diagnostic controller executable were not run. Rust contract checks are not evidence for that executable.
Current upstream CI completed successfully for head
fcdb41dbed5b82dda2d9d5a68215e6322a984f84(checked 2026-10-13 at 05:02 UTC). All 13 test-shard logs identify checkout9bca369bf72de4da086261b4e80a4793b4c19500, with parents6da2774369aa32552e318e333902499683d053bcand this head, and treedcc6a2696d7a8bb6887504f33cb132e5bc19c7ff, exactly matching the candidate.Actual test rows confirm
codex-restart-route.test.tspassed all 12 cases andnative-main-owner-lifetime.test.tspassed all 10 cases on each of Linux and Windows: 44 passing executions, with no skips or failures in these two files. These are the newly published upstream head's CI results, rather than reused historical checks. The 10 conditionally skipped jobs are not counted as executed successes; the separate privacy job was skipped because privacy ran within the successfulgatesjob.The PR remains Draft. CodeRabbit reports
Review skipped: draft pull request, so its green status is not a completed review. Independent review and applicable maintainer approval remain separate. These fixture results do not establish installed native application/service or Windows diagnostic-controller E2E, and do not retroactively reclassify earlier local timeout results.Checklist
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>