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

Sync v2-9-stable with v2-9-test to release 2.9.2 #40050

Merged
merged 70 commits into from
Jun 6, 2024
Merged

Conversation

utkarsharma2
Copy link
Contributor

@utkarsharma2 utkarsharma2 commented Jun 4, 2024

Time for 2.9.2rc1!

potiuk and others added 18 commits June 4, 2024 11:54
(cherry picked from commit 1608231)
It's json, not python, so we need lowercase bools.

(cherry picked from commit 6150179)
Previously it would show the message as coming from context logger module and not the actual call site.

(cherry picked from commit acc2338)
When using the TaskHandlerWithCustomFormatter to add a prefix to logs, it was previously adding the prefix multiple times. This happened because it was being called multiple times from logging_mixin.py, and worsened because even when the handler's formatter was a TimezoneAware formatter (to include UTC offset), it was still adding an additional prefix. Because of this, I felt that any solution outside of the TaskHandlerWithCustomFormatter itself would either require a restructuring of the handlers' structure or slow down execution for all other handlers. And so, the solution I settled on was to add to TaskHandlerWithCustomFormatter's initial 'if' statement a simple 'or self.prefix_jinja_template is not None', so that it returns if the prefix had already been set. This is similar to what is done by the ElasticSearch es_task_handler.py.

Note: also fixed the documentation's example for the handler, as the previous one was incorrect and didn't work.
(cherry picked from commit 61d1c95)
* Fix static file caching is disabled in Airflow Webserver.

In Airflow 2.3.0, it's Flask version is bumped up to 2.0.x
Flask 2.0.x has some breaking changes. one of them is about `SEND_FILE_MAX_AGE_DEFAULT`.
It affect static file's Expires value on HTTP response header.
and the default value is changed from 12 hours to None on that version.

in order to enable static file caching in airflow webserver.
it needs explicitly configration of `SEND_FILE_MAX_AGE_DEFAULT` in Flask.

* Fix typo

* Fix code's formatting with ruff

(cherry picked from commit d396533)
…rn matching (#39370)

closes #39368

By reusing the get_validators function, we can incorporate pattern search to include allow/block lists.

(cherry picked from commit 0c4ffb8)
* Add note about Trigger reload

* fix

(cherry picked from commit 0f9ad98)
* Provide extra tip on labeling DynamicTaskMapping

(cherry picked from commit 4d5591a)
jscheffl and others added 2 commits June 5, 2024 19:13
Mini scheduler issues are rare and hard to debug. Chances are the problem won't be reproducible after enabling debug logging.

(cherry picked from commit 38e003c)
@ephraimbuddy ephraimbuddy force-pushed the v2-9-test branch 2 times, most recently from 48320cb to bb937f6 Compare June 5, 2024 18:59
alejandro-rivera and others added 11 commits June 5, 2024 20:47
…he `idle in transaction` state (#39935)

(cherry picked from commit b5bb039)
With dynamic project depdencies, the requirements for airlfow are
calculated dymamically from hatch_build.py, however cache invalidation
key for k8s tests only included pyproject.toml so when colorlog has
been bumped in @39453, main build continued to use cache from old
colorlog.

This PR adds also hatch_build.py to cache id calculation

(cherry picked from commit f5c86ed)
This was the same parameter but inconsistently named across the
CI/Selective checks. This PR fixes the inconsistency and changes it
to `docker-cache` across the board.

(cherry picked from commit d11a943)
* Replace to broad exceptions into the Dev

* Add changes according to the review

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>

* RuntimeError -> SystemExit if detect it run in __main__

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>

---------

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
(cherry picked from commit cc901cd)
* Add "use self-hosted runners" to CI setup

In anticipation of switching commiter PRs to use public runners, we
are adding the feature of applying the "use self-hosted runner" to
a PR to make it use self-hosted runners.

* Update dev/breeze/doc/ci/04_selective_checks.md

Co-authored-by: Pankaj Koti <pankajkoti699@gmail.com>

* Update dev/breeze/doc/ci/04_selective_checks.md

Co-authored-by: Pankaj Koti <pankajkoti699@gmail.com>

* Update dev/breeze/doc/ci/04_selective_checks.md

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>

* Update dev/breeze/doc/ci/04_selective_checks.md

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>

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

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>

---------

Co-authored-by: Pankaj Koti <pankajkoti699@gmail.com>
Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
(cherry picked from commit d2f11f0)
The new requests-kerberos has a slightly different approach for
parsing urls and extracting hostname from url causes a problem with
"mock cannot be compared to int" when mock is returned as URL.

This PR fixes it by hard-coding returned URL in the mock that is
being returned in this case.

(cherry picked from commit 32fd29d)
(cherry picked from commit 483d408)
potiuk and others added 3 commits June 5, 2024 21:35
The 0.291.0 version of yandex provider introduced mypy typing
that conflicts with the way yandex provider uses it and should be fixed
See yandex-cloud/python-sdk#106

(cherry picked from commit 53e6739)
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.

Code from the 3 PRs/fixes from my side look good.

@Lee-W
Copy link
Member

Lee-W commented Jun 6, 2024

Looks like we'll need 79042cf to pass the mypy check

Copy link
Member

@hussein-awala hussein-awala left a comment

Choose a reason for hiding this comment

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

Looks good, LGTM

@utkarsharma2 utkarsharma2 merged commit f56f134 into v2-9-stable Jun 6, 2024
111 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:API Airflow's REST/HTTP API area:CLI area:core-operators Operators, Sensors and hooks within Core Airflow area:db-migrations PRs with DB migration area:dev-tools area:lineage area:production-image Production image improvements and fixes area:Scheduler including HA (high availability) scheduler area:Triggerer
Projects
None yet
Development

Successfully merging this pull request may close these issues.