Skip to content

Rename UV_REQUEST_TIMEOUT to UV_HTTP_TIMEOUT and make it more usable#38739

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:improve-uv-timeout-setting
Apr 4, 2024
Merged

Rename UV_REQUEST_TIMEOUT to UV_HTTP_TIMEOUT and make it more usable#38739
potiuk merged 1 commit intoapache:mainfrom
potiuk:improve-uv-timeout-setting

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Apr 4, 2024

The UV_REQUEST_TIMEOUT was only briefly the correct parameter name, (UV 1.6.0). It is still working as a fallback, but the right parameter name is UV_HTTP_TIMEOUT. This PR renames the flag and build args/env variables appropriately - and also fixes a few annoyances connected with this parameter:

  • it was not possible to specify --use-uv/uv-timout for breeze breeze shell and breeze start-airflow commands which could resut in rebuilding the image and you had to rebuild image manually with ci-image build if you wanted to change uv/no-uv

  • the ARG was not properly passed in PROD image and resulted in empty string set as UV_REQUEST_TIMEOUT which resulted with a warning printed by UV and falling back to default 300

  • we have now global constant for default timeout


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

The UV_REQUEST_TIMEOUT was only briefly the correct parameter name,
(UV 1.6.0). It is still working as a fallback, but the right
parameter name is UV_HTTP_TIMEOUT. This PR renames the flag and
build args/env variables appropriately - and also fixes a few
annoyances connected with this parameter:

* it was not possible to specify --use-uv/uv-timout for `breeze`
  `breeze shell` and `breeze start-airflow` commands which could
  resut in rebuilding the image and you had to rebuild image
  manually with `ci-image build` if you wanted to change uv/no-uv

* the ARG was not properly passed in PROD image and resulted in
  empty string set as UV_REQUEST_TIMEOUT which resulted with a
  warning printed by UV and falling back to default 300

* we have now global constant for default timeout
@potiuk potiuk force-pushed the improve-uv-timeout-setting branch from 099cd21 to 1d7e41b Compare April 4, 2024 09:17
@potiuk potiuk merged commit 329c76d into apache:main Apr 4, 2024
@potiuk potiuk deleted the improve-uv-timeout-setting branch April 4, 2024 10:02
@potiuk
Copy link
Member Author

potiuk commented Apr 4, 2024

Images built. breeze checks passed. Looks good to merge.

@potiuk potiuk added this to the Airflow 2.9.0 milestone Apr 4, 2024
potiuk added a commit that referenced this pull request Apr 4, 2024
…38739)

The UV_REQUEST_TIMEOUT was only briefly the correct parameter name,
(UV 1.6.0). It is still working as a fallback, but the right
parameter name is UV_HTTP_TIMEOUT. This PR renames the flag and
build args/env variables appropriately - and also fixes a few
annoyances connected with this parameter:

* it was not possible to specify --use-uv/uv-timout for `breeze`
  `breeze shell` and `breeze start-airflow` commands which could
  resut in rebuilding the image and you had to rebuild image
  manually with `ci-image build` if you wanted to change uv/no-uv

* the ARG was not properly passed in PROD image and resulted in
  empty string set as UV_REQUEST_TIMEOUT which resulted with a
  warning printed by UV and falling back to default 300

* we have now global constant for default timeout

(cherry picked from commit 329c76d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants