Repository navigation
fix: run the test suite and the schema generator on Windows - #14
Merged
Merged
Conversation
- config: build the expected audit log path with path.join instead of a hard-coded POSIX separator. - log: unset LOXILB_LOG_PATH with delete. On Windows, and on Linux since Bun 1.4.0, assigning undefined stores the string "undefined", which resolveLogPath then returns. - log: skip the EACCES case on win32, where chmod 0o000 does not block reads. Signed-off-by: KP <kp@attlab.org>
new URL(import.meta.url).pathname yields "/C:/..." on Windows, so the generator looked for swagger_new.yml under "\C:\..." and exited. The pathname also keeps percent-escapes, so a checkout path containing a space failed as well. fileURLToPath returns a decoded native path on every platform; regenerating from the unchanged spec reproduces the committed schemas byte for byte. Signed-off-by: KP <kp@attlab.org>
Signed-off-by: KP <kp@attlab.org>
kp-attlab
requested review from
NLX-SeokHwanKong,
backguynn,
inhogog2 and
loxilb-devel
as code owners
November 5, 2026 03:44
loxilb-devel
approved these changes
Nov 16, 2026
10 of 12 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.
Description
Makes
bun testpass andscripts/generate-schemas.tsrun on Windows, so contributors there can pass the checks in CONTRIBUTING.md and regenerate the schemas asdocs/developer-guide.mddescribes.tests/config.test.ts: the expected audit log path is built withpath.joininstead of a hard-coded POSIX separator.tests/log.test.ts:LOXILB_LOG_PATHis unset withdelete. On Windows, and on Linux since Bun 1.4.0, assigningundefinedstores the string"undefined", whichresolveLogPaththen returns. The EACCES case is skipped on win32, wherechmod 0o000does not block reads.scripts/generate-schemas.ts: the project root comes fromfileURLToPath(import.meta.url).new URL(import.meta.url).pathnamegives/C:/...on Windows, so the generator looked forswagger_new.ymlunder\C:\...and exited. The pathname also keeps percent-escapes, so a checkout path containing a space failed as well.Type of change
How has this been tested?
bun run lint,bun run typecheckandbun testpassWindows 11, Bun 1.4.4:
main: 4 tests fail (the audit log path, the twoLOXILB_LOG_PATHcases and EACCES), and the generator exits withswagger_new.yml not found at \C:\....Linux, Bun 1.4.4:
main: the twoLOXILB_LOG_PATHcases fail.Linux, Bun 1.3.6 (the CI version): 556 pass, 0 fail. Line coverage 61.42% (floor 60%), no schema drift,
linux-x64build and smoke test pass,scripts/release-hygiene.sh(full history, with gitleaks) passes.Dependency Audit still fails on the unchanged
bun.lock, as noted in #7.Checklist
git commit -s).github/CODEOWNERS) has been requested for reviewRelated issues
Follows #7.