Repository navigation
test(applications): import capture fixtures through file URLs - #3050
Conversation
The capture-lifetime acceptance test executes its authored fixtures with `import(process.argv[1])` and passed a filesystem path. ESM import() takes a URL specifier, so on Windows the drive letter parses as a `c:` scheme and Node rejects the import with ERR_UNSUPPORTED_ESM_URL_SCHEME before the fixture runs. Pass the fixture as a file URL from pathToFileURL instead.
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. |
[Medium impact] Test fixture imports and documentation updates across the codebase. The supplied comparison should not merge until port normalization and Webpack loader-alias tracking are fixed. SummaryUpdates capture fixtures to use encoded file URLs and adds a test directory containing spaces and
Reviews (2) · Last reviewed commit: "test(applications): execute ESM fixtures..." · Reviewed by Greptile |
Refresh the Windows fixture fix on current main and exercise spaces and hash characters in the existing test-owned application directory. Preserve real module execution, CLI/MCP comparisons and the existing timeout. Co-authored-by: Kaoru0822 <[email protected]>
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Comments Outside DiffThese findings could not be posted inline.
|
Summary
The capture-lifetime acceptance fixture passed a raw filesystem path to Node's ESM
import(). Windows drive paths are URL schemes to the loader;#in a POSIX path becomes a fragment. Convert the selected path once withpathToFileURL(...).hrefat the fixture execution boundary.The existing public CLI/MCP case now uses a test-owned child directory containing spaces and
#, so Linux also catches regression. Both authored modules still execute independently of REA analysis, and all captured-value, comparison and provenance assertions remain. The original 20s timeout is unchanged. Only one test file changes; no runtime or caching policy changes.Refreshed on main
5b16f2431, including #3049 and the latest literal byte-limit implementation. The complete post-merge main file passed all 34 cases before this change. With only the legal special-character child directory added, the original raw-path import fails withERR_MODULE_NOT_FOUNDat the real Node ESM loader (one selected case); this is the negative control, not a semantic failure.Validation
check:ci(eight tasks and 1439 architecture guards) and normal pre-push passed.5b16f2431fails the selected fixture at the actual ESM loader withERR_UNSUPPORTED_ESM_URL_SCHEME. Candidate011be9c3dpasses the complete file: 34 passed, zero skips, including test(applications): pass Evidence requests to the CLI through files #3049 transport integration. Reports and source-identity receipt were downloaded and checked. Diagnostic commit43303502ediffers only inci.yml; the gate restores and verifies clean candidate source. Baseline failed command 4.89s versus full completed file 56.51s are different workloads, not a speed comparison. Hosted CPU/peak memory and isolated cold-MCP Windows timing were not measured. The full file retains one shared stateless MCP connection; the changed capture case took 3.10s in that context.011be9c3dwithout findings; no unresolved threads. No test/timeout/runner-condition retry was needed for this head. The initial synchronize run was superseded by the reopened-event run; source was unchanged.Original contributor: @GuilhermeFusari. The user delegated follow-up implementation, technical review, ready-for-review update and merge. Assistant technical review is reported; a separate human reread is not claimed.