-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Less aggressive eager upgrade of requirements #8267
Less aggressive eager upgrade of requirements #8267
Conversation
2e46817
to
f52d997
Compare
With this change requirements are only eagerly upgraded when generating requirements when setup.py changes. They are also eagerly upgraded when you run ./breeze generate-requirements locally. Still the cron job will use the eager update mechanism when building the docker image which means that CRON jobs will still detect cases where upgrede of requirements causes failure either at the installation time or during tests.
f52d997
to
e9ea2af
Compare
Codecov Report
@@ Coverage Diff @@
## master #8267 +/- ##
==========================================
- Coverage 88.34% 87.91% -0.43%
==========================================
Files 937 937
Lines 45231 45235 +4
==========================================
- Hits 39959 39769 -190
- Misses 5272 5466 +194
Continue to review full report at Codecov.
|
CURRENT_SETUP_PY_HASH=$(md5sum "${AIRFLOW_SOURCES}/setup.py") | ||
STORED_SETUP_PY_HASH=$(cat "${STORED_SETUP_PY_HASH_FILE}" 2>/dev/null || true) | ||
|
||
if [[ ${STORED_SETUP_PY_HASH} != "${CURRENT_SETUP_PY_HASH}" ]]; then |
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.
if [[ ${STORED_SETUP_PY_HASH} != "${CURRENT_SETUP_PY_HASH}" ]]; then | |
if [[ "${STORED_SETUP_PY_HASH}" != "${CURRENT_SETUP_PY_HASH}" ]]; then |
With this change requirements are only eagerly upgraded when generating requirements when setup.py changes. They are also eagerly upgraded when you run ./breeze generate-requirements locally. Still the cron job will use the eager update mechanism when building the docker image which means that CRON jobs will still detect cases where upgrede of requirements causes failure either at the installation time or during tests. (cherry picked from commit 45c8983)
With this change requirements are only eagerly upgraded when generating requirements when setup.py changes. They are also eagerly upgraded when you run ./breeze generate-requirements locally. Still the cron job will use the eager update mechanism when building the docker image which means that CRON jobs will still detect cases where upgrede of requirements causes failure either at the installation time or during tests. (cherry picked from commit 45c8983)
With this change requirements are only eagerly upgraded when
generating requirements when setup.py changes. They are also
eagerly upgraded when you run ./breeze generate-requirements
locally. Still the cron job will use the eager update mechanism
when building the docker image which means that CRON jobs will
still detect cases where upgrede of requirements causes failure
either at the installation time or during tests.
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, 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 UPDATING.md.
Read the Pull Request Guidelines for more information.