Read the example package by a path the host accepts, not a URL pathname - #394
Open
kevin9327 wants to merge 1 commit into
Open
Read the example package by a path the host accepts, not a URL pathname#394kevin9327 wants to merge 1 commit into
kevin9327 wants to merge 1 commit into
Conversation
kevin9327
requested review from
MikeRyanDev,
davidmckayv,
guidovizoso and
tylerslaton
as code owners
September 5, 2026 22:13
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Two tests read the fintech example through
new URL(...).pathname, which is not a path on Windows:A
file:URL's pathname keeps its leading separator and its URL escaping, so on Windows that is/C:/Users/...rather thanC:\Users\..., and the read fails:fileURLToPathis the conversion that handles the drive letter, the separators and any escapedcharacter. The other nine
import.meta.urlsites in the repository are already fine: they hand theURLstraight toreadFileSync, which does the conversion itself. Only these two took.pathname.CI runs on Linux, where the pathname happens to be a usable path, so neither failure is visible
there. A contributor on Windows sees them on the first
bun test.Where it runs
Boundary and audit
Changelog
same fixture by a path the host accepts.
Proof
On Windows 11,
bun test app/testsbefore and after:The three extra passes are the file that could not be collected at all, since the read is at module
scope. And the server test that hits the same conversion:
bun run typecheckpasses in all four workspaces, andbunx biome checkis clean on both files.The rest of
server/testsstill needs a Postgres this machine does not have, so those failures areunrelated and unchanged.