Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Dec 29, 2023

Sometimes our contributors check out Airflow repository on filesystems that are not POSIX compliant and do not have support for executable bits (for example when you check-out the repository in Windows and attempt to map it to a Linux VM). Breeze and building CI images will not work in this case, but the error that you see might be misleading.

This PR performs additional environment check and informs you that you should not do it, if executable bits are missing from entrypoints.


^ 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 newsfragments.

Sometimes our contributors check out Airflow repository on filesystems
that are not POSIX compliant and do not have support for executable bits
(for example when you check-out the repository in Windows and attempt to
map it to a Linux VM). Breeze and building CI images will not
work in this case, but the error that you see might be misleading.

This PR performs additional environment check and informs you that
you should not do it, if executable bits are missing from entrypoints.
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

Small wording recommondation only, else approved.

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
@potiuk potiuk merged commit 5551e14 into apache:main Dec 29, 2023
@potiuk potiuk deleted the check-executable-permissions-at-breeze-startup branch December 29, 2023 11:47
potiuk added a commit that referenced this pull request Dec 30, 2023
* Check executable permission for entrypoints at breeze start

Sometimes our contributors check out Airflow repository on filesystems
that are not POSIX compliant and do not have support for executable bits
(for example when you check-out the repository in Windows and attempt to
map it to a Linux VM). Breeze and building CI images will not
work in this case, but the error that you see might be misleading.

This PR performs additional environment check and informs you that
you should not do it, if executable bits are missing from entrypoints.

* Update dev/breeze/src/airflow_breeze/utils/docker_command_utils.py

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>

---------

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
(cherry picked from commit 5551e14)
@potiuk potiuk added this to the Airflow 2.8.1 milestone Dec 30, 2023
@potiuk potiuk added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants