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

Ignore symlinks when fixing permissions during artifacts tests #1721

Merged
merged 1 commit into from
Mar 14, 2020

Conversation

staticfloat
Copy link
Member

When doing Artifact tests, we need to be resilient to strange umasks
that we have inherited from our environment, screwing up git tree hash
calculations. To do this, we have a walkdir() -> chmod() wrapper
function that started setting permissions on what it thought were files
(due to the fixed follow_symlink == false behavior in
JuliaLang/julia#35006) but were actually
directories. This caused chmod() to apply 0o664 permissions to
directories, which were then inaccessible to rm() as it tried to
delete them.

This fixes #1716

When doing Artifact tests, we need to be resilient to strange umasks
that we have inherited from our environment, screwing up git tree hash
calculations.  To do this, we have a `walkdir()` -> `chmod()` wrapper
function that started setting permissions on what it thought were files
(due to the fixed `follow_symlink == false` behavior in
JuliaLang/julia#35006) but were actually
directories.  This caused `chmod()` to apply `0o664` permissions to
directories, which were then inaccessible to `rm()` as it tried to
delete them.

This fixes #1716
@staticfloat staticfloat merged commit 7366c8c into master Mar 14, 2020
@staticfloat staticfloat deleted the sf/symlink_chasing_for_fun_and_profit branch March 14, 2020 22:40
fredrikekre pushed a commit that referenced this pull request Apr 17, 2020
When doing Artifact tests, we need to be resilient to strange umasks
that we have inherited from our environment, screwing up git tree hash
calculations.  To do this, we have a `walkdir()` -> `chmod()` wrapper
function that started setting permissions on what it thought were files
(due to the fixed `follow_symlink == false` behavior in
JuliaLang/julia#35006) but were actually
directories.  This caused `chmod()` to apply `0o664` permissions to
directories, which were then inaccessible to `rm()` as it tried to
delete them.

This fixes #1716

(cherry picked from commit 7366c8c, PR #1721)
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.

Artifact error on CI
2 participants