-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: local mode deletion of temp files #2644
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
Conversation
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.
Comments inline, otherwise looks good. Thanks for the fix!
b4e5139
to
c3cdfa6
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
c3cdfa6
to
50b52b4
Compare
Changes made and rebased master if someone would like to give a review. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Codecov Report
@@ Coverage Diff @@
## dev #2644 +/- ##
==========================================
- Coverage 89.49% 88.96% -0.53%
==========================================
Files 195 178 -17
Lines 16567 15764 -803
==========================================
- Hits 14826 14025 -801
+ Misses 1741 1739 -2
Continue to review full report at Codecov.
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@shreyapandit We're facing the same issue, have been for a while. My understanding is that this fix is already mostly reviewed. Anything that still needs to be done or can this be merged? |
I am also facing this issue, can this PR be merged or any other work is required? |
This should be good to go, all the comments have been addressed. I can rebase again if needed but it seems alright to me. We are currently manually applying this patch to our installs. |
This would be very useful, and it's a simple fix that seems ready to be merged. |
50b52b4
to
1520cb2
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
1520cb2
to
1a533e8
Compare
Messed up the rebase with a trailing |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
4c3ec7d
to
9426d56
Compare
Some unrelated ones are still failing. Probably ok to merge?
There's a large number of data scientists internally experiencing the issue resolved in this PR when testing out new code. |
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.
@jmahlik Can you resolve the conflicts?
799ff53
to
85db47c
Compare
rebased |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
It seems like the changes keep getting out of sync due to force pushes on dev. Trying merging now to hopefully allow these changes to not stack up. We aren't able to turn off the org setting to allow maintainers to update the branch. If someone wants to just take this code and submit another PR that can be edited by the maintainers, feel free. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
f5e6849
to
34b07c0
Compare
96c01d7
to
c437191
Compare
a601198
to
8adc449
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Issue #, if available:
Description of changes:
Add try except around file cleanup in
sagemaker.local.utils.copy_directory_structure
. This was causing local mode to fail when docker (running as root) writes files to a mounted dir and the user does not have permission to remove the files.The same pattern is followed here.
Testing done:
Add test for failed removal, behaves as expected.
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
unique_name_from_base
to create resource names in integ tests (if appropriate)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.