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

Added exception handling for creating directory in package command #644

Conversation

@Bajger
Copy link
Member Author

Bajger commented Jan 17, 2024

@demarey I don't know how to write unit test for that, since test class uses memory file system. Not sure if I can inject non-writeable directory (e.g. by using permissions?) and if memory store verifies that.

@demarey
Copy link
Contributor

demarey commented Jan 17, 2024

yes, you're right, it is hard to test this. We would need a test on the real file system for this purpose.

@Bajger
Copy link
Member Author

Bajger commented Jan 17, 2024

@demarey CI is failing, do you have idea why? https://github.com/pharo-project/pharo-launcher/actions/runs/7553602942/job/20565517942#step:6:35

GitHub
Lets you manage your pharo images and download new ones - Added exception handling for creating directory in package command · 826b279

@demarey
Copy link
Contributor

demarey commented Jan 17, 2024

yes, because the test report is not accessible in the job when you are in a PR: https://github.com/pharo-project/pharo-launcher/actions/runs/7553602942/job/20565517942#step:6:35
If you take a look before, you can see all tests are passing :)

GitHub
Lets you manage your pharo images and download new ones - Added exception handling for creating directory in package command · 826b279

@demarey
Copy link
Contributor

demarey commented Jan 17, 2024

I will need to see how to solve this issue for PRs

@Bajger
Copy link
Member Author

Bajger commented Jan 17, 2024

Should I merge it? Or wait until test report is accessible for PR?

@demarey
Copy link
Contributor

demarey commented Jan 17, 2024

you can merge it

@Bajger Bajger merged commit b0f2628 into pharo-project:dev Jan 17, 2024
4 of 5 checks passed
@Bajger Bajger deleted the 640-Image-packaging-from-CLI-throws-unhandled-exception-when-path-targets-directory-without-write-permission branch January 17, 2024 11:59
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.

Image packaging from CLI throws unhandled exception when path targets directory without write permission
2 participants