Skip to content
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

fix: ignore errors from when sessionDir can't be deleted #508

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

mshanemc
Copy link
Contributor

@mshanemc mshanemc commented Jul 6, 2023

sometimes testkit session.clean fails (because file activity is still happening). Some of the nuts have try/catch around that, which we can now remove.

There's a nodejs bug about lstat quirks on windows. nodejs/node#45253

I've been running this on windows to try to solve
https://github.com/forcedotcom/sfdx-core/actions/runs/5477437565/jobs/9976954011#step:13:202

I've got it isolated, and using the debugger/debug console, it'll hang on fs.rm when the retry options are present, even if the timeout/max are set to a really low limit. An EPERM just causes it to get stuck.

It's possible that on windows, logger is leaving the log file open until the worker_thread finisihes, which causes lstat problems (EPERM) during the rm retries. We'll test that potential issue separately.

the goal of this PR is to decouple testkit's cleanup issues from "did my NUT pass/fail" to reduce flap.

@mshanemc mshanemc merged commit ea28f73 into main Jul 6, 2023
15 checks passed
@mshanemc mshanemc deleted the sm/ignore-clean-fails branch July 6, 2023 22:25
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.

2 participants