-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skipping the file if it was not found (the CI is fixed) #779
Skipping the file if it was not found (the CI is fixed) #779
Conversation
…777) Sometimes there are spontaneous issues when working with unc-paths, so retries have been added for them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DenisRumyantsev As far as I understand these changes should fix CI, but looks the issue still persists.
@EzzhevNikita I have already tried to provide similar changes related to the same issue via this PR, but it broke the CI for Linux and macOS, so I had to revert it and made a new PR, the current one. For fixing the CI for Windows, there was created another separate issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and please take a look at the suggestion
Co-authored-by: Alexander Smolyakov <[email protected]>
A part of the code was taken out from the `find` function to the new `_getStats` function. A new field `skipMissingFiles` was added into the `findOptions` parameter. When it is true, the `find` function skips files that were not found during the `_getStats` function execution. Also, the `mocktests` timeout increased from 15 to 30 seconds.
Description: occasionally the
find
function fails with the errorFailed find: ENOENT: no such file or directory
. The reason is that thefs.lstatSync
method applies to a file that already was deleted. So we should check a file presence and skip it if it does not exist.Changelog:
node/task.ts
— thefind
function — a part of the code where the error occurs was taken out to the separate_getStats
function. A new fieldskipMissingFiles
was added into thefindOptions
parameter. When it is true, thefind
function skips files that are not found during the_getStats
function execution.Related issue