Skip to content

Fix Windows CI stalls and backup portability defects - #190

Merged
jimhoyd merged 4 commits into
mainfrom
codex/windows-ci-speed
Sep 20, 2026
Merged

jimhoyd merged 4 commits into
mainfrom
codex/windows-ci-speed

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Cleanup regression tests passed locally; initial full verify passed with 848 tests and one existing TLS-fixture skip.
  • The first Windows26 run exited in 3m24s instead of hanging; its six failures exposed the backup and platform-assertion defects now addressed.
  • All 24 focused backup/restore, CLI, sender, scaffold and recovery-drill regressions passed locally after those fixes.
  • Final npm run verify passed: 848 passing tests and one existing TLS-fixture skip.
  • Hosted Windows workspace suites, including real scaffold integration, passed: Node 22 in 3m50s, Node 24 in 3m50s, Node 26 in 4m09s (run).
  • Node applies --test-timeout to 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.
  • Corrected the admin SQLite-gate subprocess to import a file URL on Windows.

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.

  • Matching runtime documentation and Changeset included.
  • Final full local verification and hosted Windows checks passed.
  • No credentials or customer data.
  • No starter behavior change.

@jimhoyd jimhoyd changed the title Fix Windows SQLite fixture cleanup and stalled CI suites Fix Windows CI stalls and backup portability defects Sep 20, 2026
@jimhoyd
jimhoyd merged commit 174319a into main Sep 20, 2026
19 checks passed
@jimhoyd
jimhoyd deleted the codex/windows-ci-speed branch September 20, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Windows auth SQLite cleanup fails with EBUSY and stalls workspace verification

1 participant