Skip to content

test: isolate default product version reads from HTTP - #2810

Open
Chris0Jeky wants to merge 3 commits into
mainfrom
issue-2775/unit-health-isolation
Open

test: isolate default product version reads from HTTP#2810
Chris0Jeky wants to merge 3 commits into
mainfrom
issue-2775/unit-health-isolation

Conversation

@Chris0Jeky

Copy link
Copy Markdown
Owner

Unit tests that read the product version now use an offline default fixture instead of the live version-health request. The dedicated versionApi transport spec explicitly un-mocks the module, preserving its request, payload and error contract assertions. A new regression proves the default composable path makes zero Axios calls.

Validation at 21e1ef2: typecheck, production build, scoped lint and focused isolation tests passed. npx vitest --run --maxWorkers=2 completed without a backend: 381 files passed, 6,153 tests passed, 3 skipped, exit 0 in 151.80s. No worker-startup timeout occurred in that completed run.

The passing full run still emits 55 ECONNREFUSED strings from tests; its error output omits request URLs, so those messages are not attributed to /health/live and a globally network-silent suite is not claimed. The directly tested version path is isolated. An earlier full attempt was interrupted after mistaking console errors for test failures; the completed run establishes that those messages do not prevent completion. Logs/exit receipts are in the worktree's ignored frontend/taskdeck-web/test-results/issue-2775 directory and will be preserved outside the worktree before cleanup.

Independent Terra source review at this frozen head found no CRITICAL/HIGH blockers. Hosted exact-head CI remains required. STATUS/MASTERPLAN are updated by the coordinator; OUTSTANDING_TASKS.md is unchanged by this test-only slice.

Closes #2775

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-08T23:03:29.146950Z 3c364d1 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Independent Terra source review completed against head 21e1ef2 and base db102dc. No CRITICAL/HIGH blocker.

The shared fixture replaces only versionApi.getProductVersion. The dedicated transport contract explicitly un-mocks the real module and retains HTTP/base-url/payload/error assertions; local composable and shell stubs remain available. The new regression proves the default version path does not call HTTP.

The reviewer ran no heavy tests. Author execution separately completed typecheck/build and the full unit suite at the same unchanged head: 381 files, 6,153 passed, 3 skipped, exit 0. The 55 ECONNREFUSED strings in the passing full log are console output, not failed assertions; their request origins remain unattributed, and no global network-silence claim is made.

@Chris0Jeky Chris0Jeky moved this from Pending to Review in Taskdeck Execution Sep 8, 2026
@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Session wrap-up: source at 21e1ef2 is pushed and this PR remains open for its outstanding gate. Required local evidence is preserved under C:\Users\Public\codex-shell-home\taskdeck-wave-20260908\issue-2775. The coordinator is removing the disposable issue worktree normally after verifying a clean source tree and upstream equality; generated bin/obj, dist and dependency caches are disposable. No active writer remains in this lane.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Current-base refresh f05e6a8 preserves the original version-health isolation change and current main 1777e3c. Luna xhigh passed four focused files / 94 tests including the default fixture, real transport and AppShell seams; typecheck and diff checks pass. No conflicts or additional source edits. Original full-suite proof and independent review remain recorded; Terra is checking the base interaction and fresh hosted CI is required.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Terra base-interaction reconciliation is clear. The current AppShell delta gates keyboard shortcuts on feature flags; the global version fixture only isolates transitive version reads, and the transport spec still un-mocks the real API. Passing integrated AppShell/default-fixture/transport tests exercise that seam. No new blocker or extra review round.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Verification checkout removed normally after clean source/upstream verification. Its only ignored directory was the disposable dependency install. Review diff and cleanup inventory remain at C:/Taskdeck-wave/evidence/2810; original and verification source refs are pushed.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Final current-base Terra reconciliation is clear. The refresh is a two-parent merge of the prior reviewed head and main f935ebc; its only added paths are the five representation-contract files, byte-identical to main, with no conflict-resolution edits. The added contract remains unregistered/unmapped with no runtime writer and no direct interaction with this reviewed seam was found. Original source/fix reviews remain applicable; fresh hosted CI at the refreshed head is the remaining gate. Closeout: PR #2814 and C:/Taskdeck-wave/evidence/HANDOFF.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Review

Development

Successfully merging this pull request may close these issues.

Frontend unit suite makes a real /health/live call, so the broad vitest command cannot pass from a cold checkout

1 participant