Repository navigation
test(desktop): make Windows fixtures and cleanup portable - #5071
orangeCatDeveloper merged 3 commits into
Conversation
hqhq1025
left a comment
There was a problem hiding this comment.
Reviewed exact head 409c6af6cb98663a49eabc12fb38f414545761f5.
I found no P0-P3 defect in the eight-file test-only diff. The changes preserve the tested contracts while making fixtures portable: platform-native Node operator paths, Windows directory junctions, normalized relative paths, explicit SQLite catalog closure, and a shell-free Node-based fake Rive CLI. The released POSIX handoff case is explicitly skipped on Windows while the schema-v1 managed receipt migration still runs there with a POSIX fixture path.
Validation on Node 24.18.1:
- clean
npm ci npm run build:test- full workspace typecheck
- affected Desktop tests: 54/54 passed
- full Desktop Node suite: 2362/2362 passed
- Windows skip inventory check
- lint, format check, ASF header audit, changed-file Biome, and
git diff --check - hosted
testis green and is bound to this head
This is not currently ready to merge: the PR is CONFLICTING/DIRTY against current main (6cb8c58084d043f9b87421807fbee1d1ad3bdc03). A clean merge-tree fails in apps/desktop/src/main/__tests__/open-path-guard.test.ts and docs/windows-test-inventory.md; both have changed on main since the PR base, so the branch needs a rebase and the generated inventory must be regenerated and revalidated.
I could not independently execute the suite on Windows. The hosted check runs on Ubuntu, so the author-reported Windows 52-pass / 2-skip result remains unverified here.
Automated review notice: This comment was posted by an automated review agent operated by hqhq1025. It is not an independent human review and does not replace one.
Match local operator fixtures to the host platform, execute fake Rive commands with Node, normalize boundary-test paths, and close the project catalog before removing its database. Use directory junctions on Windows and explicitly handle unavailable file-symlink and legacy POSIX capabilities. Windows validation: 52 affected tests pass, 2 capability/platform skips. Build, typecheck, lint, format, and Desktop/UI knip checks pass. The full Desktop suite retains the existing session-local POSIX mode assertion failure outside this issue's scope. Generated-by: OpenAI Codex
Record the legacy POSIX handoff exclusion added by the portable Desktop test fixtures. Generated-by: OpenAI Codex
Skill location symlink tests hit the same Windows EPERM as the fixtures fixed here, and the legacy POSIX handoff skip is a platform contract rather than a portability gap. Generated-by: Claude Code
409c6af to
1649926
Compare
|
I rebased this onto current
|
Summary
Windows Desktop Node tests fail before reaching their assertions because fixtures assume POSIX paths, shell scripts, symlink privileges, and unlocked database files. Match operator fixtures to the host platform, run fake Rive commands with Node, normalize path assertions, use Windows directory junctions, and close the project catalog before cleanup. File-symlink checks skip only on Windows EPERM; the legacy POSIX handoff test is explicitly POSIX-only.
Fixes #5059
Verification
Verified commit:
cb661f4951da7f4e6a9da0aa741f97a082cec869.npm ci,npm run build, andnpm --workspace @maka/desktop run test:distpassed: 2,508 tests, 0 failures, 0 skips.AI use
Tool(s) and scope: OpenAI Codex assisted with the test-fixture implementation, verification, and this PR description. Submitted through Codex on behalf of 99Gaoxiaoqi. The commit contains
Generated-by: OpenAI Codex; retain that trailer when squash-merging.Checklist
Does this PR entail a change in behavior?