-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Improve checkpoint reliability and cleanup of temp files #1367
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2694e9a
improve cleanup reliability
nicktrn 9fb9c6f
Merge branch 'main' into checkpoint-cleanup
nicktrn dcd1743
improve logging
nicktrn 25276f0
bye-bye execa
nicktrn fd95693
fix for trailing newlines
nicktrn adb3d44
prettier errors
nicktrn 0cc518f
trim args and log output by default
nicktrn e9415f5
fix archive cleanup
nicktrn 43430b3
prevent potential memleak
nicktrn 34e4a64
more cleanup debug logs
nicktrn 3967f96
ignore abort during cleanup
nicktrn 3f6c52f
rename checkpoint dir env var and move to helper
nicktrn 69a5e5b
add global never throw override
nicktrn e124d3d
add tmp cleaner
nicktrn 2221283
Merge remote-tracking branch 'origin/main' into checkpoint-cleanup
nicktrn 6ecf4ac
also clean up checkpoint dir by default
nicktrn 9437c7e
Merge remote-tracking branch 'origin/main' into checkpoint-cleanup
nicktrn 6b75ba8
split by any whitespace, not just tabs
nicktrn c900253
only create tmp cleaner if paths to clean
nicktrn 57c1f5f
Merge remote-tracking branch 'origin/main' into checkpoint-cleanup
nicktrn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
improve logging
- Loading branch information
commit dcd1743d5abfd7de01daf339696a6251d063bcb6
There are no files selected for viewing
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
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.
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.
Fix incorrect variable usage in error handling in
Exec.xmethod.In the
Exec.xmethod, you are checkingresult.aborted,result.killed, andresult.exitCode, butresultis the promise returned byx(). You should instead referenceoutput, which is the resolved result of the promise.Apply this diff to correct the variable usage:
78 if (result.aborted) { 79 this.logger.error(`aborted: ${commandWithFirstArg}`, metadata); 80 throw new TinyResult(result); 81 } 82 83 if (result.killed) { 84 this.logger.error(`killed: ${commandWithFirstArg}`, metadata); 85 throw new TinyResult(result); 86 } 87 88 if (result.exitCode !== 0) { 89 this.logger.error(`non-zero exit: ${commandWithFirstArg}`, metadata); 90 throw new TinyResult(result); 91 }Should be:
78 if (output.aborted) { 79 this.logger.error(`aborted: ${commandWithFirstArg}`, metadata); 80 throw new TinyResult(output); 81 } 82 83 if (output.killed) { 84 this.logger.error(`killed: ${commandWithFirstArg}`, metadata); 85 throw new TinyResult(output); 86 } 87 88 if (output.exitCode !== 0) { 89 this.logger.error(`non-zero exit: ${commandWithFirstArg}`, metadata); 90 throw new TinyResult(output); 91 }📝 Committable suggestion