Skip to content

Commit bfbe526

Browse files
authored
Merge branch 'main' into fix-46402-trigger-dagrun-dynamic-dag-id-links
2 parents bbc3a3d + d947bc4 commit bfbe526

144 files changed

Lines changed: 517 additions & 19644 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/breeze/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ inputs:
2424
default: "3.10"
2525
uv-version:
2626
description: 'uv version to use'
27-
default: "0.9.8" # Keep this comment to allow automatic replacement of uv version
27+
default: "0.9.9" # Keep this comment to allow automatic replacement of uv version
2828
outputs:
2929
host-python-version:
3030
description: Python version used in host

.github/actions/install-prek/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ inputs:
2424
default: "3.10"
2525
uv-version:
2626
description: 'uv version to use'
27-
default: "0.9.8" # Keep this comment to allow automatic replacement of uv version
27+
default: "0.9.9" # Keep this comment to allow automatic replacement of uv version
2828
prek-version:
2929
description: 'prek version to use'
3030
default: "0.2.13" # Keep this comment to allow automatic replacement of prek version

.github/workflows/basic-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ on: # yamllint disable-line rule:truthy
6666
type: string
6767
uv-version:
6868
description: 'uv version to use'
69-
default: "0.9.8" # Keep this comment to allow automatic replacement of uv version
69+
default: "0.9.9" # Keep this comment to allow automatic replacement of uv version
7070
type: string
7171
platform:
7272
description: 'Platform for the build - linux/amd64 or linux/arm64'
@@ -324,6 +324,7 @@ jobs:
324324
UPGRADE_RICH: "false"
325325
UPGRADE_RUFF: "false"
326326
UPGRADE_MYPY: "false"
327+
UPGRADE_PROTOC: "false"
327328
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
328329
- name: "Run automated upgrade for important versions minus uv (failing if needed)"
329330
run: |
@@ -348,6 +349,7 @@ jobs:
348349
UPGRADE_RICH: "true"
349350
UPGRADE_RUFF: "true"
350351
UPGRADE_MYPY: "true"
352+
UPGRADE_PROTOC: "false"
351353
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
352354

353355
test-airflow-release-commands:

.github/workflows/release_dockerhub_image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
AIRFLOW_VERSION: ${{ github.event.inputs.airflowVersion }}
5959
AMD_ONLY: ${{ github.event.inputs.amdOnly }}
6060
LIMIT_PYTHON_VERSIONS: ${{ github.event.inputs.limitPythonVersions }}
61-
UV_VERSION: "0.9.8" # Keep this comment to allow automatic replacement of uv version
61+
UV_VERSION: "0.9.9" # Keep this comment to allow automatic replacement of uv version
6262
if: contains(fromJSON('[
6363
"ashb",
6464
"eladkal",

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ repos:
555555
^.*RELEASE_NOTES\.rst$|
556556
^scripts/ci/docker-compose/integration-keycloak\.yml$|
557557
^scripts/ci/docker-compose/keycloak/keycloak-entrypoint\.sh$|
558+
^scripts/ci/prek/upgrade_important_versions.py$|
558559
^scripts/ci/prek/vendor_k8s_json_schema\.py$
559560
- id: check-template-context-variable-in-sync
560561
name: Sync template context variable refs

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ARG AIRFLOW_PYTHON_VERSION="3.12.12"
5656
# Also use `force pip` label on your PR to swap all places we use `uv` to `pip`
5757
ARG AIRFLOW_PIP_VERSION=25.3
5858
# ARG AIRFLOW_PIP_VERSION="git+https://github.com/pypa/pip.git@main"
59-
ARG AIRFLOW_UV_VERSION=0.9.8
59+
ARG AIRFLOW_UV_VERSION=0.9.9
6060
ARG AIRFLOW_USE_UV="false"
6161
ARG UV_HTTP_TIMEOUT="300"
6262
ARG AIRFLOW_IMAGE_REPOSITORY="https://github.com/apache/airflow"

Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ COPY --from=scripts common.sh install_packaging_tools.sh install_additional_depe
16531653
# Also use `force pip` label on your PR to swap all places we use `uv` to `pip`
16541654
ARG AIRFLOW_PIP_VERSION=25.3
16551655
# ARG AIRFLOW_PIP_VERSION="git+https://github.com/pypa/pip.git@main"
1656-
ARG AIRFLOW_UV_VERSION=0.9.8
1656+
ARG AIRFLOW_UV_VERSION=0.9.9
16571657
ARG AIRFLOW_PREK_VERSION="0.2.13"
16581658

16591659
# UV_LINK_MODE=copy is needed since we are using cache mounted from the host

airflow-core/src/airflow/jobs/job.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def executors(self):
164164

165165
@cached_property
166166
def heartrate(self) -> float:
167-
return Job._heartrate(self.job_type)
167+
return Job._heartrate(str(self.job_type))
168168

169169
def is_alive(self) -> bool:
170170
"""
@@ -232,7 +232,7 @@ def heartbeat(
232232
self.kill()
233233

234234
# Figure out how long to sleep for
235-
sleep_for = 0
235+
sleep_for: float = 0
236236
if self.latest_heartbeat:
237237
seconds_remaining = (
238238
self.heartrate - (timezone.utcnow() - self.latest_heartbeat).total_seconds()
@@ -247,7 +247,11 @@ def heartbeat(
247247
session.merge(self)
248248
self.latest_heartbeat = timezone.utcnow()
249249
session.commit()
250-
time_since_last_heartbeat = (timezone.utcnow() - previous_heartbeat).total_seconds()
250+
time_since_last_heartbeat: float = (
251+
0
252+
if previous_heartbeat is None
253+
else (timezone.utcnow() - previous_heartbeat).total_seconds()
254+
)
251255
health_check_threshold_value = health_check_threshold(self.job_type, self.heartrate)
252256
if time_since_last_heartbeat > health_check_threshold_value:
253257
self.log.info("Heartbeat recovered after %.2f seconds", time_since_last_heartbeat)
@@ -304,7 +308,7 @@ def complete_execution(self, session: Session = NEW_SESSION):
304308
@provide_session
305309
def most_recent_job(self, session: Session = NEW_SESSION) -> Job | None:
306310
"""Return the most recent job of this type, if any, based on last heartbeat received."""
307-
return most_recent_job(self.job_type, session=session)
311+
return most_recent_job(str(self.job_type), session=session)
308312

309313
@staticmethod
310314
def _heartrate(job_type: str) -> float:

airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def test_runs_should_response_200_date_filters(self, test_client, params, expect
369369
assert response.json() == expected
370370

371371
@pytest.mark.parametrize(
372-
("params, expected, expected_queries_count"),
372+
("params", "expected", "expected_queries_count"),
373373
[
374374
(
375375
{

airflow-core/tests/unit/models/test_dag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ def test_create_dagrun_job_id_is_set(self, testing_dag_bundle):
11881188
)
11891189
assert dr.creating_job_id == job_id
11901190

1191-
@pytest.mark.parametrize(["partition_key"], [[None], ["my-key"], [123]])
1191+
@pytest.mark.parametrize("partition_key", [None, "my-key", 123])
11921192
def test_create_dagrun_partition_key(self, partition_key, dag_maker):
11931193
with dag_maker("test_create_dagrun_partition_key"):
11941194
...

0 commit comments

Comments
 (0)