Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/apache/airflow into kalyan/…
Browse files Browse the repository at this point in the history
…provider_moving/google
  • Loading branch information
rawwar committed Feb 2, 2025
2 parents 3b6347a + c5c6276 commit 9cf5f28
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 19 deletions.
1 change: 1 addition & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ github:
- cmarteepants
- bugraoz93
- briana-okyere
- gyli

notifications:
jobs: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/install-pre-commit/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ inputs:
default: "3.9"
uv-version:
description: 'uv version to use'
default: "0.5.24" # Keep this comment to allow automatic replacement of uv version
default: "0.5.26" # Keep this comment to allow automatic replacement of uv version
pre-commit-version:
description: 'pre-commit version to use'
default: "4.1.0" # Keep this comment to allow automatic replacement of pre-commit version
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ARG PYTHON_BASE_IMAGE="python:3.9-slim-bookworm"
# Also use `force pip` label on your PR to swap all places we use `uv` to `pip`
ARG AIRFLOW_PIP_VERSION=25.0
# ARG AIRFLOW_PIP_VERSION="git+https://github.com/pypa/pip.git@main"
ARG AIRFLOW_UV_VERSION=0.5.24
ARG AIRFLOW_UV_VERSION=0.5.26
ARG AIRFLOW_USE_UV="false"
ARG UV_HTTP_TIMEOUT="300"
ARG AIRFLOW_IMAGE_REPOSITORY="https://github.com/apache/airflow"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ COPY --from=scripts common.sh install_packaging_tools.sh install_additional_depe
# Also use `force pip` label on your PR to swap all places we use `uv` to `pip`
ARG AIRFLOW_PIP_VERSION=25.0
# ARG AIRFLOW_PIP_VERSION="git+https://github.com/pypa/pip.git@main"
ARG AIRFLOW_UV_VERSION=0.5.24
ARG AIRFLOW_UV_VERSION=0.5.26
# TODO(potiuk): automate with upgrade check (possibly)
ARG AIRFLOW_PRE_COMMIT_VERSION="4.1.0"
ARG AIRFLOW_PRE_COMMIT_UV_VERSION="4.1.4"
Expand Down
3 changes: 1 addition & 2 deletions airflow/api_fastapi/core_api/datamodels/ui/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from __future__ import annotations

from datetime import datetime
from uuid import UUID

from pydantic import BaseModel, Field

Expand Down Expand Up @@ -51,7 +50,7 @@ class GridDAGRunwithTIs(BaseModel):
run_type: DagRunType
data_interval_start: datetime | None
data_interval_end: datetime | None
version_number: UUID | None
version_number: int | None
note: str | None
task_instances: list[GridTaskInstanceSummary]

Expand Down
3 changes: 1 addition & 2 deletions airflow/api_fastapi/core_api/openapi/v1-generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8786,8 +8786,7 @@ components:
title: Data Interval End
version_number:
anyOf:
- type: string
format: uuid
- type: integer
- type: 'null'
title: Version Number
note:
Expand Down
11 changes: 7 additions & 4 deletions airflow/api_fastapi/core_api/routes/ui/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

from fastapi import Depends, HTTPException, Request, status
from sqlalchemy import select
from sqlalchemy.orm import joinedload

from airflow import DAG
from airflow.api_fastapi.common.db.common import SessionDep, paginated_select
Expand Down Expand Up @@ -93,7 +94,9 @@ def grid_data(
base_query = (
select(DagRun)
.join(DagRun.dag_run_note, isouter=True)
.join(DagRun.dag_version, isouter=True)
.select_from(DagRun)
.options(joinedload(DagRun.dag_version))
.where(DagRun.dag_id == dag.dag_id)
)

Expand Down Expand Up @@ -212,11 +215,11 @@ def grid_data(
run_type=dag_run.run_type,
data_interval_start=dag_run.data_interval_start,
data_interval_end=dag_run.data_interval_end,
version_number=dag_run.dag_version_id,
version_number=dag_run.dag_version.version_number if dag_run.dag_version else None,
note=dag_run.note,
task_instances=task_instance_summaries[dag_run.run_id]
if dag_run.run_id in task_instance_summaries
else [],
task_instances=(
task_instance_summaries[dag_run.run_id] if dag_run.run_id in task_instance_summaries else []
),
)
for dag_run in dag_runs
]
Expand Down
3 changes: 1 addition & 2 deletions airflow/ui/openapi-gen/requests/schemas.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3401,8 +3401,7 @@ export const $GridDAGRunwithTIs = {
version_number: {
anyOf: [
{
type: "string",
format: "uuid",
type: "integer",
},
{
type: "null",
Expand Down
2 changes: 1 addition & 1 deletion airflow/ui/openapi-gen/requests/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ export type GridDAGRunwithTIs = {
run_type: DagRunType;
data_interval_start: string | null;
data_interval_end: string | null;
version_number: string | null;
version_number: number | null;
note: string | null;
task_instances: Array<GridTaskInstanceSummary>;
};
Expand Down
2 changes: 1 addition & 1 deletion dev/breeze/doc/ci/02_images.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ can be used for CI images:
| `ADDITIONAL_DEV_APT_DEPS` | | Additional apt dev dependencies installed in the first part of the image |
| `ADDITIONAL_DEV_APT_ENV` | | Additional env variables defined when installing dev deps |
| `AIRFLOW_PIP_VERSION` | `25.0` | `pip` version used. |
| `AIRFLOW_UV_VERSION` | `0.5.24` | `uv` version used. |
| `AIRFLOW_UV_VERSION` | `0.5.26` | `uv` version used. |
| `AIRFLOW_PRE_COMMIT_VERSION` | `4.1.0` | `pre-commit` version used. |
| `AIRFLOW_PRE_COMMIT_UV_VERSION` | `4.1.4` | `pre-commit-uv` version used. |
| `AIRFLOW_USE_UV` | `true` | Whether to use UV for installation. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class VersionedFile(NamedTuple):


AIRFLOW_PIP_VERSION = "25.0"
AIRFLOW_UV_VERSION = "0.5.24"
AIRFLOW_UV_VERSION = "0.5.26"
AIRFLOW_USE_UV = False
# TODO: automate these as well
WHEEL_VERSION = "0.44.0"
Expand Down
2 changes: 1 addition & 1 deletion dev/breeze/src/airflow_breeze/global_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
ALLOWED_INSTALL_MYSQL_CLIENT_TYPES = ["mariadb", "mysql"]

PIP_VERSION = "25.0"
UV_VERSION = "0.5.24"
UV_VERSION = "0.5.26"

DEFAULT_UV_HTTP_TIMEOUT = 300
DEFAULT_WSL2_HTTP_TIMEOUT = 900
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/install_breeze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cd "$( dirname "${BASH_SOURCE[0]}" )/../../"
PYTHON_ARG=""

PIP_VERSION="25.0"
UV_VERSION="0.5.24"
UV_VERSION="0.5.26"
if [[ ${PYTHON_VERSION=} != "" ]]; then
PYTHON_ARG="--python=$(which python"${PYTHON_VERSION}") "
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/tools/setup_breeze
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COLOR_YELLOW=$'\e[33m'
COLOR_BLUE=$'\e[34m'
COLOR_RESET=$'\e[0m'

UV_VERSION="0.5.24"
UV_VERSION="0.5.26"

function manual_instructions() {
echo
Expand Down

0 comments on commit 9cf5f28

Please sign in to comment.