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

Remove overlooked kubernetes/pod_generator_deprecated.py file #46377

Closed
wants to merge 65 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
9ac5417
Remove pod_generator_deprecated
insomnes Feb 3, 2025
56c5a55
Remove delted deprecated k8s modules from tests files check
insomnes Feb 3, 2025
eec0612
AIP 65 Add task instance version name (#46433)
pierrejeambrun Feb 4, 2025
1c62282
Add search bar for pools page (#46437)
shubhamraj-git Feb 4, 2025
f789e81
Use LoggingMixin for DagProcessorManager (#46408)
jedcunningham Feb 4, 2025
55d0583
Make building PROD image using sources requirements (#46440)
potiuk Feb 4, 2025
7366c04
Limiting retryhttp to not use 1.3.0 to fix CI mypy checks (#46446)
amoghrajesh Feb 5, 2025
18fd692
AIP-72: Move Secrets Masker to task SDK (#46375)
amoghrajesh Feb 5, 2025
97f3873
AIP-72: Deleting duplicate test class: TestDagParamRuntime (#46450)
amoghrajesh Feb 5, 2025
b21c131
Implement worker deletion and proper scrf handling (#46452)
majorosdonat Feb 5, 2025
92f56c4
Bugfix/edge worker restarts on version mismatch (#46453)
majorosdonat Feb 5, 2025
f87bbe0
Add DB exeption handler to Execution API (#46388)
pierrejeambrun Feb 5, 2025
f056a72
AIP-72: Port tests in TestDagDecorator to task sdk (#46456)
amoghrajesh Feb 5, 2025
d688cc2
Bump vitest from 2.1.1 to 2.1.9 in /airflow/ui (#46447)
dependabot[bot] Feb 5, 2025
4cb009f
Enforce to forbid extra fields under execution_api (#44986)
jx2lee Feb 5, 2025
3cb240e
Add triggerer info and extra links section to task instance details t…
tirkarthi Feb 5, 2025
b1cea10
Fix case in releasing images where chicken-egg-providers are empty (#…
potiuk Feb 5, 2025
532a7bf
Undoing the retryhttp limitation (<1.3.0) (#46470)
amoghrajesh Feb 5, 2025
1654ddc
Enable to add inline ssh key in GitHook (#46181)
jx2lee Feb 5, 2025
adc7d98
Add hotkey shortcut for search component. (#46463)
tirkarthi Feb 5, 2025
e5423e2
tests: Add more information to check in OL system test (#46379)
kacpermuda Feb 5, 2025
a9543cd
Update Kubernetes version used in the system test `example_emr_eks` (…
vincbeck Feb 5, 2025
9f91d77
Invalidate task instance query on marking dagrun state to refetch tas…
tirkarthi Feb 5, 2025
88c0828
fix: typo Update variable.rst (#46427)
suyesh-amatya Feb 5, 2025
cce99c7
Fixed generated SQL MSSQL dialect when all columns are also primary k…
dabla Feb 5, 2025
5ce77f7
Also allow passing buffer instead of path for retrieve_file and store…
dabla Feb 5, 2025
733245d
Implemented cursor for ElasticsearchSQLHook so it can be used through…
dabla Feb 5, 2025
64e9838
#46316 Issue: Update start.rst (#46335)
SaumilPatel03 Feb 5, 2025
fc39821
provider migrate cloudant (#46405)
o-nikolas Feb 5, 2025
81da6c5
Bump vitest from 2.1.8 to 2.1.9 in /airflow/auth/managers/simple/ui (…
dependabot[bot] Feb 5, 2025
c76d2b2
AIP-65: Add DagVersion to TaskInstanceHistory RESTAPI Response (#46489)
ephraimbuddy Feb 5, 2025
be59774
snowflake: pass through the ocsp_fail_open setting (#46476)
jcrobak Feb 5, 2025
805eccf
fix: spark operator label (#45353)
chenkovsky Feb 5, 2025
a2bc9c0
Adding `run_after` field in task SDK datamodels (#46492)
amoghrajesh Feb 6, 2025
447899c
Timetable that runs on multiple cron expressions (#46451)
uranusjr Feb 6, 2025
b43da7c
Update `create_emr_on_eks_cluster` method to try when "cluster is not…
vincbeck Feb 6, 2025
78c43ce
Add DELETE operation in SFTPOperator (#46233)
Dawnpool Feb 6, 2025
8b4e914
Chart: be consisent with denoting templated params (#46481)
jedcunningham Feb 6, 2025
c83fadd
Fix k8s flaky test - test_integration_run_dag_with_scheduler_failure …
jason810496 Feb 6, 2025
73a2007
AIP-83: Restore Uniqueness Constraint on Logical Date, Make It Nullab…
vatsrahul1001 Feb 6, 2025
59ae985
Handle null logical date in CLI commands (#46407)
uranusjr Feb 6, 2025
bb026cd
Add `lock` to `BaseDagBundle` and use it in `GitDagBundle` (#46501)
jedcunningham Feb 6, 2025
4c97f55
docs: clarify Gunicorn's role in webserver worker refresh (#46371)
0BVer Feb 6, 2025
d299e40
Allow passing empty labels in the spark kubernetes driver config (#45…
logarithm Feb 6, 2025
fc6ac43
SnowflakeSqlApiOperator snowflake_conn_id add to template_fields (#46…
bbossy Feb 6, 2025
814a9b7
Replace Airflow email config by connection extras in SMTP provider (#…
hussein-awala Feb 6, 2025
4833d38
Integrate the SimpleAuthManager UI in dev mode (#46511)
pierrejeambrun Feb 6, 2025
5595cc6
AIP-84 Remove unecessary datamodels config and from_attributes (#46328)
pierrejeambrun Feb 6, 2025
4b54423
Fix scheduler ServiceAccount automount for multi-executor (#46486)
jedcunningham Feb 6, 2025
b1d1cd4
Add update XCom endpoint in RestAPI (#46457)
shubhamraj-git Feb 6, 2025
69ce43e
Fix missing logical_date in DagRun for DMS operator tests (#46521)
sunank200 Feb 6, 2025
17f3799
Update AWS auth manager to use Fastapi instead of Flask (#46381)
vincbeck Feb 6, 2025
e3c0edb
Rename apiServer to _apiServer to preserve it in beta until v3 releas…
andrii-korotkov-verkada Feb 6, 2025
4d67778
Remove `ds`/`ts` etc from Template/run context when no logical date i…
ashb Feb 6, 2025
9d909e6
Fix task sdk client dry-run mode (#46524)
feluelle Feb 6, 2025
b1e7a7e
Move microsoft winrm to new provider structure (#46469)
dabla Feb 6, 2025
a02c2ed
Adding extra links for EC2 (#46340)
ellisms Feb 6, 2025
6f295d3
Add state filter to task page. (#46465)
tirkarthi Feb 6, 2025
76ca340
Move CNCF Kubernetes to new provider structure (#46436)
jason810496 Feb 6, 2025
b58f1a4
Add dynamic task mapping into TaskSDK runtime (#46032)
ashb Feb 6, 2025
e07108d
Fix bug in query invalidation and remove custom predicate logic (#46485)
bbovenzi Feb 6, 2025
3cb1976
Move Apache Flink to new provider structure (#46132)
jason810496 Feb 6, 2025
a619687
Revert "Revert "Added job_clusters as a templated parameter to Create…
kunaljubce Feb 6, 2025
bbff2a0
Move apache.impala provider to a new structure (#46532)
potiuk Feb 6, 2025
f20ecd5
Moving yandex provider to new provider structure (#46525)
kunaljubce Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 6 additions & 25 deletions .github/boring-cyborg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ labelPRBasedOnFilePath:
- providers/apache/druid/**

provider:apache-flink:
- providers/src/airflow/providers/apache/flink/**/*
- docs/apache-airflow-providers-apache-flink/**/*
- providers/tests/apache/flink/**/*
- providers/apache/flink/**

provider:apache-hdfs:
- providers/src/airflow/providers/apache/hdfs/**/*
Expand All @@ -59,9 +57,7 @@ labelPRBasedOnFilePath:
- providers/apache/iceberg/**

provider:apache-impala:
- providers/src/airflow/providers/apache/impala/**/*
- docs/apache-airflow-providers-apache-impala/**/*
- providers/tests/apache/impala/**/*
- providers/apache/impala/**

provider:apache-kafka:
- providers/apache/kafka/**
Expand Down Expand Up @@ -99,19 +95,10 @@ labelPRBasedOnFilePath:
- providers/celery/**

provider:cloudant:
- providers/src/airflow/providers/cloudant/**/*
- docs/apache-airflow-providers-cloudant/**/*
- providers/tests/cloudant/**/*
- providers/cloudant/**

provider:cncf-kubernetes:
- airflow/example_dags/example_kubernetes_executor.py
- airflow/example_dags/example_local_kubernetes_executor.py
- providers/src/airflow/providers/cncf/kubernetes/**/*
- providers/celery/src/airflow/providers/celery/executors/celery_kubernetes_executor.py
- docs/apache-airflow-providers-cncf-kubernetes/**/*
- kubernetes_tests/**/*
- providers/tests/cncf/kubernetes/**/*
- providers/tests/system/cncf/kubernetes/**/*
- providers/cncf/kubernetes/**

provider:cohere:
- providers/cohere/**
Expand Down Expand Up @@ -207,10 +194,7 @@ labelPRBasedOnFilePath:
- providers/microsoft/psrp/**

provider:microsoft-winrm:
- providers/src/airflow/providers/microsoft/winrm/**/*
- docs/apache-airflow-providers-microsoft-winrm/**/*
- providers/tests/microsoft/winrm/**/*
- providers/tests/system/microsoft/winrm/**/*
- providers/microsoft/winrm/**

provider:mongo:
- providers/mongo/**
Expand Down Expand Up @@ -320,10 +304,7 @@ labelPRBasedOnFilePath:
- providers/weaviate/**

provider:yandex:
- providers/src/airflow/providers/yandex/**/*
- docs/apache-airflow-providers-yandex/**/*
- providers/tests/yandex/**/*
- providers/tests/system/yandex/**/*
- providers/yandex/**

provider:ydb:
- providers/ydb/**
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_dockerhub_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ jobs:
${SKIP_LATEST}
${LIMIT_PLATFORM}
--limit-python ${PYTHON_VERSION}
--chicken-egg-providers ${CHICKEN_EGG_PROVIDERS}
--chicken-egg-providers "${CHICKEN_EGG_PROVIDERS}"
- name: >
Release slim images: ${{ github.event.inputs.airflowVersion }}, ${{ matrix.python-version }}
env:
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,11 @@ repos:
^providers/google/src/airflow/providers/google/cloud/operators/dataproc.py$|
^providers/google/src/airflow/providers/google/cloud/operators/mlengine.py$|
^providers/src/airflow/providers/microsoft/azure/hooks/cosmos.py$|
^providers/src/airflow/providers/microsoft/winrm/hooks/winrm.py$|
^providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/hooks/winrm.py$|
^airflow/www/fab_security/manager.py$|
^docs/.*commits.rst$|
^docs/apache-airflow-providers-apache-cassandra/connections/cassandra.rst$|
^providers/src/airflow/providers/microsoft/winrm/operators/winrm.py$|
^providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/operators/winrm.py$|
^providers/opsgenie/src/airflow/providers/opsgenie/hooks/opsgenie.py$|
^providers/redis/src/airflow/providers/redis/provider.yaml$|
^airflow/serialization/serialized_objects.py$|
Expand All @@ -665,7 +665,7 @@ repos:
^providers/fab/docs/auth-manager/webserver-authentication.rst$|
^providers/google/docs/operators/cloud/kubernetes_engine.rst$|
^docs/apache-airflow-providers-microsoft-azure/connections/azure_cosmos.rst$|
^docs/apache-airflow-providers-cncf-kubernetes/operators.rst$|
^providers/cncf/kubernetes/docs/operators.rst$|
^docs/conf.py$|
^docs/exts/removemarktransform.py$|
^newsfragments/41761.significant.rst$|
Expand Down Expand Up @@ -1223,12 +1223,12 @@ repos:
^airflow/serialization/serde.py$ |
^airflow/utils/file.py$ |
^airflow/utils/helpers.py$ |
^airflow/utils/log/secrets_masker.py$ |
^providers/ |
^tests/ |
^providers/tests/ |
^providers/.*/tests/ |
^task_sdk/src/airflow/sdk/definitions/dag.py$ |
^task_sdk/src/airflow/sdk/execution_time/secrets_masker.py$ |
^task_sdk/src/airflow/sdk/definitions/_internal/node.py$ |
^dev/.*\.py$ |
^scripts/.*\.py$ |
Expand Down
11 changes: 3 additions & 8 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -930,17 +930,12 @@ function check_boto_upgrade() {
echo
echo "${COLOR_BLUE}Upgrading boto3, botocore to latest version to run Amazon tests with them${COLOR_RESET}"
echo
# shellcheck disable=SC2086
${PACKAGING_TOOL_CMD} uninstall ${EXTRA_UNINSTALL_FLAGS} aiobotocore s3fs yandexcloud opensearch-py || true
# We need to include few dependencies to pass pip check with other dependencies:
# * oss2 as dependency as otherwise jmespath will be bumped (sync with alibaba provider)
# * cryptography is kept for snowflake-connector-python limitation (sync with snowflake provider)
set -x
# shellcheck disable=SC2086
${PACKAGING_TOOL_CMD} install ${EXTRA_INSTALL_FLAGS} --upgrade boto3 botocore \
"oss2>=2.14.0" "cryptography<43.0.0" "opensearch-py"
${PACKAGING_TOOL_CMD} uninstall ${EXTRA_UNINSTALL_FLAGS} aiobotocore s3fs || true
# shellcheck disable=SC2086
${PACKAGING_TOOL_CMD} install ${EXTRA_INSTALL_FLAGS} --upgrade boto3 botocore
set +x
pip check
}

function check_downgrade_sqlalchemy() {
Expand Down
2 changes: 1 addition & 1 deletion airflow/api_connexion/schemas/connection_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ConnectionSchema(ConnectionCollectionItemSchema):
def serialize_extra(obj: Connection):
if obj.extra is None:
return
from airflow.utils.log.secrets_masker import redact
from airflow.sdk.execution_time.secrets_masker import redact

try:
extra = json.loads(obj.extra)
Expand Down
1 change: 1 addition & 0 deletions airflow/api_fastapi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def create_app(apps: str = "all") -> FastAPI:

if "execution" in apps_list or "all" in apps_list:
task_exec_api_app = create_task_execution_api_app(app)
init_error_handlers(task_exec_api_app)
app.mount("/execution", task_exec_api_app)

init_config(app)
Expand Down
2 changes: 1 addition & 1 deletion airflow/api_fastapi/core_api/datamodels/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from pydantic import Field, field_validator

from airflow.api_fastapi.core_api.base import BaseModel, StrictBaseModel
from airflow.utils.log.secrets_masker import redact
from airflow.sdk.execution_time.secrets_masker import redact


class DagScheduleAssetReference(StrictBaseModel):
Expand Down
2 changes: 1 addition & 1 deletion airflow/api_fastapi/core_api/datamodels/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from pydantic_core.core_schema import ValidationInfo

from airflow.api_fastapi.core_api.base import BaseModel, StrictBaseModel
from airflow.utils.log.secrets_masker import redact
from airflow.sdk.execution_time.secrets_masker import redact


# Response Models
Expand Down
4 changes: 0 additions & 4 deletions airflow/api_fastapi/core_api/datamodels/dag_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@

from __future__ import annotations

from pydantic import ConfigDict

from airflow.api_fastapi.core_api.base import BaseModel


class DagTagResponse(BaseModel):
"""DAG Tag serializer for responses."""

model_config = ConfigDict(populate_by_name=True, from_attributes=True)

name: str
dag_id: str

Expand Down
4 changes: 1 addition & 3 deletions airflow/api_fastapi/core_api/datamodels/event_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@

from datetime import datetime

from pydantic import ConfigDict, Field
from pydantic import Field

from airflow.api_fastapi.core_api.base import BaseModel


class EventLogResponse(BaseModel):
"""Event Log Response."""

model_config = ConfigDict(populate_by_name=True, from_attributes=True)

id: int = Field(alias="event_log_id")
dttm: datetime = Field(alias="when")
dag_id: str | None
Expand Down
4 changes: 1 addition & 3 deletions airflow/api_fastapi/core_api/datamodels/import_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@

from datetime import datetime

from pydantic import ConfigDict, Field
from pydantic import Field

from airflow.api_fastapi.core_api.base import BaseModel


class ImportErrorResponse(BaseModel):
"""Import Error Response."""

model_config = ConfigDict(populate_by_name=True, from_attributes=True)

id: int = Field(alias="import_error_id")
timestamp: datetime
filename: str
Expand Down
4 changes: 1 addition & 3 deletions airflow/api_fastapi/core_api/datamodels/pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from typing import Annotated, Callable

from pydantic import BeforeValidator, ConfigDict, Field
from pydantic import BeforeValidator, Field

from airflow.api_fastapi.core_api.base import BaseModel, StrictBaseModel

Expand Down Expand Up @@ -63,8 +63,6 @@ class PoolCollectionResponse(BaseModel):
class PoolPatchBody(StrictBaseModel):
"""Pool serializer for patch bodies."""

model_config = ConfigDict(populate_by_name=True, from_attributes=True)

name: str | None = Field(default=None, alias="pool")
slots: int | None = None
description: str | None = None
Expand Down
6 changes: 1 addition & 5 deletions airflow/api_fastapi/core_api/datamodels/task_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
AliasPath,
AwareDatetime,
BeforeValidator,
ConfigDict,
Field,
NonNegativeInt,
StringConstraints,
Expand All @@ -42,8 +41,6 @@
class TaskInstanceResponse(BaseModel):
"""TaskInstance serializer for responses."""

model_config = ConfigDict(populate_by_name=True, from_attributes=True)

id: str
task_id: str
dag_id: str
Expand Down Expand Up @@ -126,8 +123,6 @@ class TaskInstancesBatchBody(StrictBaseModel):
class TaskInstanceHistoryResponse(BaseModel):
"""TaskInstanceHistory serializer for responses."""

model_config = ConfigDict(populate_by_name=True, from_attributes=True)

task_id: str
dag_id: str

Expand All @@ -154,6 +149,7 @@ class TaskInstanceHistoryResponse(BaseModel):
pid: int | None
executor: str | None
executor_config: Annotated[str, BeforeValidator(str)]
dag_version: DagVersionResponse | None


class TaskInstanceHistoryCollectionResponse(BaseModel):
Expand Down
6 changes: 2 additions & 4 deletions airflow/api_fastapi/core_api/datamodels/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@

import json

from pydantic import ConfigDict, Field, model_validator
from pydantic import Field, model_validator

from airflow.api_fastapi.core_api.base import BaseModel, StrictBaseModel
from airflow.models.base import ID_LEN
from airflow.sdk.execution_time.secrets_masker import redact
from airflow.typing_compat import Self
from airflow.utils.log.secrets_masker import redact


class VariableResponse(BaseModel):
"""Variable serializer for responses."""

model_config = ConfigDict(populate_by_name=True, from_attributes=True)

key: str
val: str = Field(alias="value")
description: str | None
Expand Down
7 changes: 7 additions & 0 deletions airflow/api_fastapi/core_api/datamodels/xcom.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,10 @@ class XComCreateBody(StrictBaseModel):
key: str
value: Any
map_index: int = -1


class XComUpdateBody(StrictBaseModel):
"""Payload serializer for updating an XCom entry."""

value: Any
map_index: int = -1
Loading