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-10-stable with v2-10-test(sync_v2_10_test) to release 2.10.4 #44641

Merged
merged 44 commits into from
Dec 10, 2024

Conversation

utkarsharma2
Copy link
Contributor

Time for 2.10.4rc1!

utkarsharma2 and others added 12 commits December 4, 2024 14:51
(cherry picked from commit c4a0461)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
…43591)

* Fix Try Selector in Mapped Tasks also on Index 0

(cherry picked from commit 1c3d555)

* Review Feedback, direct commit

Co-authored-by: Brent Bovenzi <brent.bovenzi@gmail.com>

---------

Co-authored-by: Brent Bovenzi <brent.bovenzi@gmail.com>
…43205) (#43623)

The scripts to update pip and uv version were not complete - they
did not replace a few of our scripts and documentation. This
was especially troublesome for doc replacement, because updating
versions manually led to misalignments of tables in markdown.

Lack of completeness of the upgrade caused #43197 and #43135
manual PRs to bump all references.

Also an earlier upgrade caused the markdown table to be
broken - with UV row table offset by 1.

This PR fixes it:

* all the scripts and docs are updated now
* when markdown is updated, the table structure is not broken

(cherry picked from commit 7ede73c)
…3587) (#43624)

Breeze sometimes creates "internal" virtualenvs in local ".build"
directory when it needs - for example in order to run k8s tests
or for release management commands.

This PR adds capability to switch breeze to use `uv` instead of
`pip` to install depdendencies in those envs.

You can now switch breeze to use uv by `breeze setup config --use-uv`
and switch back to pip by `breeze setup config --no-use-uv`.

(cherry picked from commit a2a0ef0)
…43607) (#43626)

So far `breeze` fully supported only `pipx` installation. For
example it would reinstall itself automatically with pipx if you
attempted to run it from another workspace/checked out repository
of Airflow, and it only provided instructions for pipx.

With this PR:

* the `uv tool` is preferred way to install breeze
* the `pipx` is PSF-governance managed alternative
* breeze will reinstall itself using uv if it has been installed with uv
  before when it is run from a different workspace or different
  airflow repo checked out in another folder

Also documentation is updated to make `uv` the recommended tool and
describing how to install it - with `pipx` provided as an alternative.

Warning is printed in case pre-commit-uv is not installed with the
pre-commit (pre-commit-uv significantly speeds up installation of
the venvs by pre-commit). This warning also provides instructions
how to install it.

(cherry picked from commit ddc5670)
…#43683) (#43687)

After some checks it turned out that reproducibility of produced
packages depends not only on the build backend configured for the
project but also on the build front-end used - because frontend is
the one to modify meta-data in prepared packages - including the build
tool used, it's version and metadata version supported by the front-end.

That's why in order to maintain reproducibility for anyone who builds
the packages, we have to pin not only the build backend in
pyproject.toml (flit-core) but also build fronted used (flit).

Since package preparation is done with breeze, we can do it by
pinning flit (and just in case also flit-core) so that anyone who
builds specific version of the package will use exactly the same flit
as the person who built the original packages.

This way we will avoid reproducibility problems experienced with 1.5.0
release of FAB.

(cherry picked from commit 18ea01c)
) (#43695)

When breeze is installed with both - pipx and uv, we do not know
which version is available first on the path and self-upgrading
breeze might not upgrade the one that is first. Therefore we
detect that situation and fail self upgrade with appropriate
instructions what to do (recommending leaving uv as faster)

(cherry picked from commit ccd6586)
* Disable XCom list ordering by execution_date

* Update airflow/www/views.py

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>

---------

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
(cherry picked from commit c96b618)
…3715)

Subprocess.run raises FileNotFound when uv or pipx are not installed
at all. This PR will handle it.

(cherry picked from commit ed3accb)
github-actions bot and others added 8 commits December 9, 2024 15:34
(cherry picked from commit 0c354e7)

Co-authored-by: darkag <darkag@free.fr>
* Allow "/" to avoid ERROR - Invalid stat name: dag_processing.processes,file_path=/mnt/c

* Add UT

* Reformat
(cherry picked from commit 14b32ea)

Co-authored-by: awdavidson <54780428+awdavidson@users.noreply.github.com>
…44524)

(cherry picked from commit 5474e56)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
This removes the whole section about helm, as it really isn't directly related to the XCom concept at all. I also simplified the section about containers as well - this one is a bit more practical, so I've left it.
(cherry picked from commit 3747c91)

Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
…44457)

* Fix Logs/utils

* Fix test for Logs/utils

* Fix by Review Comment

- Added red color styling to lines based on the `currentLevel`
- Added comments for new regExp

* Refactor Logs/utils test cases
* [v2-10-test] Fix tests badge in README.md (#44505)
(cherry picked from commit a242ff6)

Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>

* Adjust badge to `v2-10-test` branch

* Update README.md

* Fix PYPI README.md

---------

Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
RELEASE_NOTES.rst Outdated Show resolved Hide resolved
RELEASE_NOTES.rst Outdated Show resolved Hide resolved
RELEASE_NOTES.rst Show resolved Hide resolved
RELEASE_NOTES.rst Outdated Show resolved Hide resolved
#43063)

* Double-check TaskInstance state if it differs from Executor.

* Update airflow/jobs/backfill_job_runner.py

* Update airflow/jobs/backfill_job_runner.py

* Update airflow/jobs/backfill_job_runner.py

* Update airflow/jobs/backfill_job_runner.py

* Update airflow/jobs/backfill_job_runner.py

* Update airflow/jobs/backfill_job_runner.py

---------

Co-authored-by: Utkarsh Sharma <utkarsharma2@gmail.com>
(cherry picked from commit 90d6332)
github-actions bot and others added 3 commits December 10, 2024 12:14
* Random doc typos

* Update contributing-docs/testing/unit_tests.rst

* Update contributing-docs/testing/unit_tests.rst

---------

(cherry picked from commit 909ff71)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
(cherry picked from commit b5f033a)
(cherry picked from commit c753ca2)
(cherry picked from commit c9436b4)
…generated mapping within bare tasks (#44751) (#44769)

(cherry picked from commit 99e713e)
* Fixing cli test failure in CI

* review comments

(cherry picked from commit 98e0977)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
(cherry picked from commit c942b55)
@utkarsharma2 utkarsharma2 merged commit c083e45 into v2-10-stable Dec 10, 2024
98 checks passed
""""""""""""""""
- Update XCom docs around containers/helm (#44570) (#44573)

Miscellaneous
Copy link
Member

Choose a reason for hiding this comment

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

I see the changes related to #44184 in this PR but don't see its entry in changelog -- did you purposely remove it as a non-user facing change?

Making sure there isn't a bug in generation of the above changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ya, since it was not a user facing change, I added a label - changelog:skip due which it got skipped from changelog.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good, thanks

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:dev-tools area:Executors-core LocalExecutor & SequentialExecutor area:production-image Production image improvements and fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.