Repository navigation
Conversation
mathiasrw
marked this pull request as draft
October 23, 2026 13:05
mathiasrw
marked this pull request as ready for review
October 23, 2026 13:22
mathiasrw
added this pull request to stack #841
October 23, 2026 13:56
mathiasrw
marked this pull request as draft
October 23, 2026 15:28
mathiasrw
marked this pull request as ready for review
October 23, 2026 15:37
mathiasrw
removed this pull request from stack #841
October 23, 2026 15:57
mathiasrw
added this pull request to stack #849
October 23, 2026 16:12
mathiasrw
removed this pull request from stack #849
October 23, 2026 16:12
mathiasrw
added this pull request to stack #850
October 23, 2026 16:17
mathiasrw
removed this pull request from stack #850
October 23, 2026 16:47
mathiasrw
added this pull request to stack #853
October 23, 2026 16:51
mathiasrw
force-pushed
the
fix/819
branch
3 times, most recently
from
October 23, 2026 17:01
ed35da3 to
2916ff8
Compare
…rse and --halt, and say the created warning shorter
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.
Closes #819
Stacked on #835.
Change
With
--sort modified,createdorsize, each file is looked at withfs.statSync. A file that was deleted between the glob and the sort crashed the run with a stack trace and exit code 1.Now a file that can not be looked at in the sort is sorted last, and the run goes on. When the file is then opened, it is told about as
File not found, like without--sort(exit code 2). The check for the time a file was made skips it too.Tests
test/fix/819.test.jsis new. It makes the sort see a file as deleted, for each of the three sorts, and fails without the fix.yarn test-cipasses.From the review of 23 October.
After the review of 24 October
File not foundwhen it is opened. Any other error, like a folder that turns unreadable, is now an error with its own reason, and the file is left out, so the reason is not hidden as not found.File not foundand the exit code 2. A new test checks another error.--haltsorting the file last changes nothing: the files are all started at once, and the first error stops the run. Sorting it last helps the runs without--halt.Follow-up
--sort createdis now "This file system does not know when files were created. Sorting via modified time instead."test/fix/819.test.jshas more edge cases: the files are made so each sort gives an order that is not the ascii order, and the files to delete would sort first. Two deleted files,--sort-reverse,--halt, and the other error with and without--halt. All 8 tests fail without the fix.