Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 8, 2025

Bulk-removing of user and group permissions on MacOS is not a good idea for symlinks for reproducibility, because symlinks on linux cannot have other/group permissions changed but on MacOS they can even if it has no effect. Instead of bulk-change with chmod command we now change the permissions individually on all files except symlinks


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Aug 8, 2025
@potiuk potiuk requested a review from jscheffl August 8, 2025 10:23
@potiuk potiuk marked this pull request as draft August 8, 2025 10:28
@potiuk potiuk force-pushed the fix-macos-reproducibility-issue-for-tarballs branch from 2b5541b to 6795683 Compare August 8, 2025 10:33
@potiuk potiuk marked this pull request as ready for review August 8, 2025 10:33
@potiuk potiuk force-pushed the fix-macos-reproducibility-issue-for-tarballs branch from 6795683 to 6733d7f Compare August 8, 2025 10:53
Bulk-removing of user and group permissions on MacOS is not a good
idea for symlinks for reproducibility, because symlinks on linux
cannot have other/group permissions changed but on MacOS they can
even if it has no effect. Instead of bulk-change with chmod command
we now change the permissions individually on all files except symlinks
@potiuk potiuk force-pushed the fix-macos-reproducibility-issue-for-tarballs branch from 6733d7f to d5b1961 Compare August 8, 2025 11:00
@potiuk
Copy link
Member Author

potiuk commented Aug 8, 2025

That was surprisingly complex to get it right

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!

Copy link
Member

@gopidesupavan gopidesupavan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :)

@potiuk potiuk merged commit 7460176 into apache:main Aug 8, 2025
103 checks passed
@potiuk potiuk deleted the fix-macos-reproducibility-issue-for-tarballs branch August 8, 2025 12:21
github-actions bot pushed a commit that referenced this pull request Aug 8, 2025
Bulk-removing of user and group permissions on MacOS is not a good
idea for symlinks for reproducibility, because symlinks on linux
cannot have other/group permissions changed but on MacOS they can
even if it has no effect. Instead of bulk-change with chmod command
we now change the permissions individually on all files except symlinks
(cherry picked from commit 7460176)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@github-actions
Copy link

github-actions bot commented Aug 8, 2025

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

github-actions bot pushed a commit to astronomer/airflow that referenced this pull request Aug 8, 2025
…he#54264)

Bulk-removing of user and group permissions on MacOS is not a good
idea for symlinks for reproducibility, because symlinks on linux
cannot have other/group permissions changed but on MacOS they can
even if it has no effect. Instead of bulk-change with chmod command
we now change the permissions individually on all files except symlinks
(cherry picked from commit 7460176)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
github-actions bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 8, 2025
…he#54264)

Bulk-removing of user and group permissions on MacOS is not a good
idea for symlinks for reproducibility, because symlinks on linux
cannot have other/group permissions changed but on MacOS they can
even if it has no effect. Instead of bulk-change with chmod command
we now change the permissions individually on all files except symlinks
(cherry picked from commit 7460176)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
potiuk added a commit that referenced this pull request Aug 8, 2025
Bulk-removing of user and group permissions on MacOS is not a good
idea for symlinks for reproducibility, because symlinks on linux
cannot have other/group permissions changed but on MacOS they can
even if it has no effect. Instead of bulk-change with chmod command
we now change the permissions individually on all files except symlinks
(cherry picked from commit 7460176)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
potiuk added a commit that referenced this pull request Aug 8, 2025
…) (#54267)

Bulk-removing of user and group permissions on MacOS is not a good
idea for symlinks for reproducibility, because symlinks on linux
cannot have other/group permissions changed but on MacOS they can
even if it has no effect. Instead of bulk-change with chmod command
we now change the permissions individually on all files except symlinks
(cherry picked from commit 7460176)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@jscheffl
Copy link
Contributor

jscheffl commented Aug 8, 2025

Cool!

@potiuk
Copy link
Member Author

potiuk commented Aug 9, 2025

Cool!

Yeah - but as - kind of surprsing - this was way more involved than I thought - including the fact that in v3-0-testt cherry-pick I had to adjust the implementation for Python 3.9 🤯 :D.

But ... I hope I nailed it for 3.0.5 :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants