Repository navigation
Repair three flaky Windows tests and the Windows source conformance run - #802
Merged
Merged
Conversation
…he Windows source conformance with the e2e tsconfig
…nded inode numbers
Zaldaryon
approved these changes
Nov 11, 2026
Zaldaryon
left a comment
Collaborator
There was a problem hiding this comment.
The workflow now runs tsx with the E2E tsconfig, the Windows timeout covers the existing three-second rename retry, and the restore test avoids comparing rounded NTFS file IDs. The export test still exercises the combined pack ceiling with 1,997 Mods and four config files. Focused tests passed: 228, with 1 skipped. Windows source conformance run 42904859198 passed on e20c1e3, which contains the workflow change. Required CI checks are green.
Zaldaryon
deleted the
test/config-retry-timeout-and-source-conformance
branch
November 11, 2026 10:24
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.
Summary
Four test-harness repairs found while preparing 1.7.0-rc.2. None of them changes the product.
Config save-failure test. The CI run of the Windows coverage job timed out on "the failed-import marker and saveConfig > stays when that save does not reach the disk": 6185 ms against the default 5000 ms. The test points config.json at a folder, so the atomic write's rename fails. On Windows that is EPERM, and
writeWithRenameRetryretries EPERM, EACCES and EBUSY forRENAME_RETRY_WINDOW_MS(3000 ms). That leaves about 2 s for module import, setup and a loaded runner, which was not enough. The test now gets a 15 s timeout, the same value therenderer-domproject invitest.config.tsalready uses for loaded Windows runners, with a comment giving the reason. Fake timers do not fit: the window is aperformance.nowdeadline around real disk I/O.Windows source conformance.
windows-conformance.ymlrunstests/e2e/windows-install.tswith tsx and has failed sincearchiveValidation.tsstarted importing@domain/worlds/worldson 15 September. The aliases live intests/e2e/tsconfig.json, but tsx read the root tsconfig, which has none, so the module could not be found. The step now runsnpx tsx --tsconfig tests/e2e/tsconfig.json tests/e2e/windows-install.ts, the same project the workflow's typecheck step already uses.I checked the sibling workflow and the scripts.
packaged-windows-conformance.ymlrunspackaged-windows-install.ts, whose imports all load with a bare tsx, so it stays as it is. No other tsx call exists in the workflows or inpackage.json.Config export picker test. The CI run for pull request #790 (run 42913437304, Windows, Node 22) timed out on "opens the picker on a folder past the pack entry ceiling" after 15 s, in a run that took 476 s against about 338 s on another Windows leg. The test listed 2001 configs, so the dialog put 2001 rows in jsdom and rendered them all again after every click: about 0.8 s to open the picker and 0.25 s for each click and for the export, 1.8 s in total on a quiet machine, which a slow runner multiplies past the limit. The ceiling is shared by mods, servers and configs, so the test now supplies 1997 mods as data and lists 4 configs, which leaves room for 3. It still pins the folder count, the unticked start, the disabled export button and the exported subset, now after three ticks, and it now also checks that the remaining box greys out once the pack is full.
Backup restore test. The CI run for pull request #793 (run 42918666923, Windows, Node 26, first attempt) failed on "puts two names for one inode back as two ordinary files" with
Expected "actual" to be strictly unequal to: 12384898976636368, and passed on a rerun. That number is above 2^53. On NTFS a file id is 64 bits and a plainlstatreturns it as a double, so two different files whose ids differ in the lowest bit can read as the same number (12384898976636368 and 12384898976636369 both become 12384898976636368). The twonlinkassertions just above had passed, so the restore had not produced a hard link: the test was comparing rounded numbers. It now proves independence by behaviour, writing to one restored file and checking that the other keeps its bytes, and the fixture check that the two source names share a file reads the ids as bigint.Type
Checklist
dev, notmain.npm run typecheckpasses.npm run lint:cipasses.npm run format:checkpasses.npm run test:coveragepasses, coverage at or above the floor invitest.config.ts.npm run build:unpackpasses.Testing
Full suite on the first commit: 5910 passed, 4 skipped, 303 files. Coverage: 95.07% statements, 91.29% branches, 95.89% functions, 97.02% lines. Typecheck, lint:ci (0 errors) and format:check are clean. One earlier full run had the config export picker test time out under load, the same test the third repair makes lighter; it passed on the next run.
The timeout test cannot be shown failing on dev from Linux. There the rename onto a folder is EISDIR, which is not retried. I simulated the Windows EPERM case instead: the save spent 3104 ms in the retry window and the test took 3418 ms in total, which leaves under 2 s of margin at the old 5 s limit and plenty at 15 s.
The picker test went from 1.7 s to 0.2 s of test time (five runs each, 1.64 to 1.76 s before and 0.196 to 0.208 s after), and the whole file passes in 3.3 s of test time.
The backup restore test passed five runs in a row after the change, and its new check holds on any filesystem because it does not read inode numbers at all.
For the workflow, I loaded
archiveValidationandinnoExtractionwith tsx from the sources. Without--tsconfigboth fail with "Cannot find module '@domain/worlds/worlds'". With--tsconfig tests/e2e/tsconfig.jsonboth load. I did not run the conformance script locally, since it launches the launcher. I ran the workflow on this branch instead: run 42904859198 is green, so the script loads again on the Windows runner. The packaged build is left to CI.Related issues
None.