Repository navigation
Fix Windows CI stalls and backup portability defects - #190
Merged
Merged
Conversation
4 tasks done
This was referenced Sep 20, 2026
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.
Problem and change
Windows workspace verification attempted to delete open SQLite fixtures, then left workers alive until the job timeout. Raising the old combined job limit to 25 minutes did not resolve the stall. Unwind auth/admin test resources in reverse acquisition order, attempt every cleanup even when a closer fails, and bound test files at five minutes. Keep the test helpers within each package so published-peer suites remain self-contained.
Once the suite could finish, Windows exposed a real backup/restore defect: flushing a read-only handle fails with EPERM. Open the temporary snapshot read/write before flushing. Retain POSIX directory flushing; document Windows's lack of the equivalent directory-entry crash-durability guarantee. Keep existing outside-project, integrity, no-overwrite and file-flush failure checks. Record an auth patch Changeset.
Normalize scaffold paths in assertions and apply POSIX mode assertions only where supported. Windows privacy continues to require operator-managed ACLs. Run Windows workspace validation on Node 22/24/26 before merging.
Fixes #189.
Verification
npm run verifypassed: 848 passing tests and one existing TLS-fixture skip.--test-timeoutto whole files as well as individual tests. The large auth-core file exceeded an initially chosen two-minute cap on Windows22 while actively passing tests; the final file cap is five minutes within the unchanged ten-minute workspace job limit.Compatibility and security
No auth policy, public API, licensing, publishing or branch-protection changes. Backup/restore now works with Windows file flush permissions. File-flush errors still fail; Windows directory-entry durability limits are explicit in docs/AUTH-BACKUP.md. Cleanup errors still fail tests. No tests are disabled to hide the Windows cleanup/backup defects.