Skip to content

Commit 37c0179

Browse files
committed
Move airflow sources to airflow-core package
1 parent c52ad7e commit 37c0179

File tree

3,004 files changed

+3224
-3930
lines changed

Some content is hidden

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

3,004 files changed

+3224
-3930
lines changed

.dockerignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
**
2828

2929
# Allow only these directories
30-
!airflow
30+
!airflow-core
3131
!common
3232
!dags
3333
!dev
@@ -79,15 +79,16 @@
7979
# This goes after the allowed directories
8080

8181
# Git version is dynamically generated
82-
airflow/git_version
82+
airflow-core/src/airflow/git_version
8383

8484
# Exclude node/pmpme caches..
8585
**/.pnpm-store
8686
**/node_modules
8787
# Exclude link to docs
88-
airflow/ui/static/docs
88+
airflow-core/src/airflow/ui/static/docs
8989

9090
# Legacy www exclusions (just to exclude things in case you switch to old branches and generate assets)
91+
# THey should not be in airflow-core as "www" never was there.
9192
airflow/www/static/docs
9293
airflow/www/static/dist
9394
airflow/www/node_modules
@@ -123,7 +124,7 @@ docs/**/_api/**
123124
**/*.egg
124125

125126
# But ensure UI dist files are included
126-
!airflow/ui/dist
127+
!airflow-core/src/airflow/ui/dist
127128
!providers/fab/src/airflow/providers/fab/www/dist
128129

129130
# Exclude temporary vi files

.github/ISSUE_TEMPLATE/airflow_bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body:
77
attributes:
88
# yamllint disable rule:line-length
99
value: "
10-
<img src='https://raw.githubusercontent.com/apache/airflow/main/docs/apache-airflow/img/logos/airflow_64x64_emoji_transparent.png' align='left' width='80' height='80'>
10+
<img src='https://raw.githubusercontent.com/apache/airflow/main/airflow-core/docs/img/logos/airflow_64x64_emoji_transparent.png' align='left' width='80' height='80'>
1111
Thank you for finding the time to report the problem!
1212
1313
We really appreciate the community's efforts to improve Airflow.

.github/ISSUE_TEMPLATE/airflow_doc_issue_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body:
77
attributes:
88
# yamllint disable rule:line-length
99
value: "
10-
<img src='https://raw.githubusercontent.com/apache/airflow/main/docs/apache-airflow/img/logos/airflow_64x64_emoji_transparent.png' align='left' width='80' height='80'>
10+
<img src='https://raw.githubusercontent.com/apache/airflow/main/airflow-core/docs/img/logos/airflow_64x64_emoji_transparent.png' align='left' width='80' height='80'>
1111
Thank you for finding the time to report the problem!
1212
1313
We really appreciate the community's efforts to improve Airflow.

.github/ISSUE_TEMPLATE/airflow_helmchart_bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body:
77
attributes:
88
# yamllint disable rule:line-length
99
value: "
10-
<img src='https://raw.githubusercontent.com/apache/airflow/main/docs/apache-airflow/img/logos/airflow_64x64_emoji_transparent.png' align='left' width='120' height='120'>
10+
<img src='https://raw.githubusercontent.com/apache/airflow/main/airflow-core/docs/img/logos/airflow_64x64_emoji_transparent.png' align='left' width='120' height='120'>
1111
Thank you for finding the time to report the problem!
1212
1313
We really appreciate the community's efforts to improve Airflow.

.github/ISSUE_TEMPLATE/airflow_providers_bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body:
77
attributes:
88
# yamllint disable rule:line-length
99
value: "
10-
<img src='https://raw.githubusercontent.com/apache/airflow/main/docs/apache-airflow/img/logos/airflow_64x64_emoji_transparent.png' align='left' width='80' height='80'>
10+
<img src='https://raw.githubusercontent.com/apache/airflow/main/airflow-core/docs/img/logos/airflow_64x64_emoji_transparent.png' align='left' width='80' height='80'>
1111
Thank you for finding the time to report a problem!
1212
1313
We really appreciate the community's efforts to improve Airflow.

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body:
77
attributes:
88
# yamllint disable rule:line-length
99
value: "
10-
<img src='https://raw.githubusercontent.com/apache/airflow/main/docs/apache-airflow/img/logos/airflow_64x64_emoji_transparent.png' align='left' width='80' height='80'>
10+
<img src='https://raw.githubusercontent.com/apache/airflow/main/airflow-core/docs/img/logos/airflow_64x64_emoji_transparent.png' align='left' width='80' height='80'>
1111
Thank you for finding the time to propose new feature!
1212
1313
We really appreciate the community efforts to improve Airflow.

.github/actions/breeze/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ runs:
4545
shell: bash
4646
run: breeze ci free-space
4747
env:
48-
AIRFLOW_SOURCES_ROOT: "${{ github.workspace }}"
48+
AIRFLOW_ROOT_PATH: "${{ github.workspace }}"
4949
- name: "Get Python version"
5050
shell: bash
5151
run: >
@@ -56,4 +56,4 @@ runs:
5656
shell: bash
5757
run: breeze setup config --no-cheatsheet --no-asciiart
5858
env:
59-
AIRFLOW_SOURCES_ROOT: "${{ github.workspace }}"
59+
AIRFLOW_ROOT_PATH: "${{ github.workspace }}"

.github/boring-cyborg.yml

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,11 @@ labelPRBasedOnFilePath:
298298
- providers/zendesk/**
299299

300300
area:API:
301-
- airflow/api/**/*
302-
- airflow/api_fastapi/**/*
301+
- airflow-core/src/airflow/api/**/*
302+
- airflow-core/src/airflow/api_fastapi/**/*
303303
- clients/**/*
304-
- docs/apache-airflow/stable-rest-api-ref.rst
305-
- tests/api_fastapi/**/*
304+
- airflow-core/docs/stable-rest-api-ref.rst
305+
- airflow-core/tests/unit/api_fastapi/**/*
306306

307307
area:dev-tools:
308308
- scripts/**/*
@@ -328,95 +328,95 @@ labelPRBasedOnFilePath:
328328
- docs/helm-chart/**
329329

330330
area:UI:
331-
- docs/apache-airflow/ui.rst
332-
- airflow/ui/**/*
331+
- airflow-core/docs/ui.rst
332+
- airflow-core/src/airflow/ui/**/*
333333

334334
area:CLI:
335-
- airflow/cli/**/*.py
336-
- tests/cli/**/*.py
337-
- docs/apache-airflow/cli-and-env-variables-ref.rst
338-
- docs/apache-airflow/howto/usage-cli.rst
335+
- airflow-core/src/airflow/cli/**/*.py
336+
- airflow-core/tests/unit/cli/**/*.py
337+
- airflow-core/docs/cli-and-env-variables-ref.rst
338+
- airflow-core/docs/howto/usage-cli.rst
339339

340340
area:Lineage:
341-
- airflow/lineage/**/*
342-
- tests/lineage/**/*
343-
- docs/apache-airflow/administration-and-deployment/lineage.rst
341+
- airflow-core/src/airflow/lineage/**/*
342+
- airflow-core/tests/unit/lineage/**/*
343+
- airflow-core/docs/administration-and-deployment/lineage.rst
344344

345345
area:Logging:
346-
- airflow/utils/log/**/*
347-
- docs/apache-airflow/administration-and-deployment/logging-monitoring/logging-*.rst
348-
- tests/utils/log/**/*
346+
- airflow-core/src/airflow/utils/log/**/*
347+
- airflow-core/docs/administration-and-deployment/logging-monitoring/logging-*.rst
348+
- airflow-core/tests/unit/utils/log/**/*
349349
- providers/**/log/*
350350

351351
area:Plugins:
352-
- airflow/cli/commands/local_commands/plugins_command.py
353-
- airflow/plugins_manager.py
354-
- tests/cli/commands/local_commands/test_plugins_command.py
355-
- tests/plugins/**/*
356-
- docs/apache-airflow/administration-and-deployment/plugins.rst
352+
- airflow-core/src/airflow/cli/commands/local_commands/plugins_command.py
353+
- airflow-core/src/airflow/plugins_manager.py
354+
- airflow-core/tests/unit/cli/commands/local_commands/test_plugins_command.py
355+
- airflow-core/tests/unit/plugins/**/*
356+
- airflow-core/docs/administration-and-deployment/plugins.rst
357357

358358
area:Scheduler:
359-
- airflow/jobs/scheduler_job_runner.py
360-
- docs/apache-airflow/administration-and-deployment/scheduler.rst
361-
- tests/jobs/test_scheduler_job.py
359+
- airflow-core/src/airflow/jobs/scheduler_job_runner.py
360+
- airflow-core/docs/administration-and-deployment/scheduler.rst
361+
- airflow-core/tests/unit/jobs/test_scheduler_job.py
362362

363363
area:DAG-processing:
364-
- airflow/dag_processing/**/*
365-
- airflow/jobs/dag_processor_job_runner.py
366-
- docs/apache-airflow/administration-and-deployment/dagfile-processing.rst
367-
- tests/dag_processing/**/*
364+
- airflow-core/src/airflow/dag_processing/**/*
365+
- airflow-core/src/airflow/jobs/dag_processor_job_runner.py
366+
- airflow-core/docs/administration-and-deployment/dagfile-processing.rst
367+
- airflow-core/tests/unit/dag_processing/**/*
368368

369369
area:Executors-core:
370-
- airflow/executors/**/*
371-
- docs/apache-airflow/core-concepts/executor/**/*
372-
- tests/executors/**/*
370+
- airflow-core/src/airflow/executors/**/*
371+
- airflow-core/docs/core-concepts/executor/**/*
372+
- airflow-core/tests/unit/executors/**/*
373373

374374
area:Secrets:
375-
- airflow/secrets/**/*
376-
- tests/secrets/**/*
375+
- airflow-core/src/airflow/secrets/**/*
376+
- airflow-core/tests/unit/secrets/**/*
377377
- providers/**/secrets/*
378-
- docs/apache-airflow/security/secrets/**/*
378+
- airflow-core/docs/security/secrets/**/*
379379

380380
area:Triggerer:
381-
- airflow/cli/commands/local_commands/triggerer_command.py
382-
- airflow/jobs/triggerer_job_runner.py
383-
- airflow/models/trigger.py
381+
- airflow-core/src/airflow/cli/commands/local_commands/triggerer_command.py
382+
- airflow-core/src/airflow/jobs/triggerer_job_runner.py
383+
- airflow-core/src/airflow/models/trigger.py
384384
- providers/standard/src/airflow/providers/standard/triggers/**/*
385-
- tests/cli/commands/local_commands/test_triggerer_command.py
386-
- tests/jobs/test_triggerer_job.py
387-
- tests/models/test_trigger.py
385+
- airflow-core/tests/unit/cli/commands/local_commands/test_triggerer_command.py
386+
- airflow-core/tests/unit/jobs/test_triggerer_job.py
387+
- airflow-core/tests/unit/models/test_trigger.py
388388
- providers/standard/tests/unit/standard/triggers/**/*
389389

390390
area:Serialization:
391-
- airflow/serialization/**/*
392-
- airflow/models/serialized_dag.py
393-
- tests/serialization/**/*
394-
- tests/models/test_serialized_dag.py
395-
- docs/apache-airflow/administration-and-deployment/dag-serialization.rst
391+
- airflow-core/src/airflow/serialization/**/*
392+
- airflow-core/src/airflow/models/serialized_dag.py
393+
- airflow-core/tests/unit/serialization/**/*
394+
- airflow-core/tests/unit/models/test_serialized_dag.py
395+
- airflow-core/docs/administration-and-deployment/dag-serialization.rst
396396

397397
area:core-operators:
398-
- airflow/operators/**/*
399-
- airflow/hooks/**/*
400-
- airflow/sensors/**/*
401-
- tests/operators/**/*
402-
- tests/hooks/**/*
403-
- tests/sensors/**/*
404-
- docs/apache-airflow/operators-and-hooks-ref.rst
405-
- docs/apache-airflow/howto/operator/*
398+
- airflow-core/src/airflow/operators/**/*
399+
- airflow-core/src/airflow/hooks/**/*
400+
- airflow-core/src/airflow/sensors/**/*
401+
- airflow-core/tests/unit/operators/**/*
402+
- airflow-core/tests/unit/hooks/**/*
403+
- airflow-core/tests/unit/sensors/**/*
404+
- airflow-core/docs/operators-and-hooks-ref.rst
405+
- airflow-core/docs/howto/operator/*
406406

407407
area:production-image:
408408
- Dockerfile
409409
- docs/docker-stack/**/*
410410
- docker_tests/**/*
411411

412412
area:system-tests:
413-
- tests/system/**/*
413+
- airflow-core/tests/system/**/*
414414

415415
area:task-sdk:
416416
- task-sdk/**/*
417417

418418
area:db-migrations:
419-
- airflow/migrations/versions/*
419+
- airflow-core/src/airflow/migrations/versions/*
420420

421421
area:providers:
422422
- providers/**/*
@@ -443,7 +443,7 @@ firstPRWelcomeComment: >
443443
444444
- In case of a new feature add useful documentation (in docstrings or in `docs/` directory).
445445
Adding a new operator? Check this short
446-
[guide](https://github.com/apache/airflow/blob/main/docs/apache-airflow/howto/custom-operator.rst)
446+
[guide](https://github.com/apache/airflow/blob/main/airflow-core/docs/howto/custom-operator.rst)
447447
Consider adding an example DAG that shows how users should use it.
448448
449449
- Consider using [Breeze environment](https://github.com/apache/airflow/blob/main/dev/breeze/doc/README.rst)

.github/workflows/basic-tests.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,41 +109,42 @@ jobs:
109109
with:
110110
node-version: 21
111111
cache: 'pnpm'
112-
cache-dependency-path: 'airflow/**/pnpm-lock.yaml'
112+
cache-dependency-path: 'airflow-core/src/airflow/**/pnpm-lock.yaml'
113113
- name: "Restore eslint cache (ui)"
114114
uses: apache/infrastructure-actions/stash/restore@1c35b5ccf8fba5d4c3fdf25a045ca91aa0cbc468
115115
with:
116-
path: airflow/ui/node_modules/
117-
key: cache-ui-node-modules-v1-${{ runner.os }}-${{ hashFiles('airflow/ui/**/pnpm-lock.yaml') }}
116+
path: airflow-core/src/airflow/ui/node_modules/
117+
# yamllint disable-line rule:line-length
118+
key: cache-ui-node-modules-v1-${{ runner.os }}-${{ hashFiles('airflow-core/src/airflow/ui/**/pnpm-lock.yaml') }}
118119
id: restore-eslint-cache-ui
119-
- run: cd airflow/ui && pnpm install --frozen-lockfile
120-
- run: cd airflow/ui && pnpm test
120+
- run: cd airflow-core/src/airflow/ui && pnpm install --frozen-lockfile
121+
- run: cd airflow-core/src/airflow/ui && pnpm test
121122
env:
122123
FORCE_COLOR: 2
123124
- name: "Save eslint cache (ui)"
124125
uses: apache/infrastructure-actions/stash/save@1c35b5ccf8fba5d4c3fdf25a045ca91aa0cbc468
125126
with:
126-
path: airflow/ui/node_modules/
127+
path: airflow-core/src/airflow/ui/node_modules/
127128
key: cache-ui-node-modules-v1-${{ runner.os }}-${{ hashFiles('airflow/ui/**/pnpm-lock.yaml') }}
128129
if-no-files-found: 'error'
129130
retention-days: '2'
130131
if: steps.restore-eslint-cache-ui.outputs.stash-hit != 'true'
131132
- name: "Restore eslint cache (simple auth manager UI)"
132133
uses: apache/infrastructure-actions/stash/restore@1c35b5ccf8fba5d4c3fdf25a045ca91aa0cbc468
133134
with:
134-
path: airflow/api_fastapi/auth/managers/simple/ui/node_modules/
135+
path: airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/node_modules/
135136
key: >
136137
cache-simple-am-ui-node-modules-v1-
137138
${{ runner.os }}-${{ hashFiles('airflow/api_fastapi/auth/managers/simple/ui/**/pnpm-lock.yaml') }}
138139
id: restore-eslint-cache-simple-am-ui
139-
- run: cd airflow/api_fastapi/auth/managers/simple/ui && pnpm install --frozen-lockfile
140-
- run: cd airflow/api_fastapi/auth/managers/simple/ui && pnpm test
140+
- run: cd airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui && pnpm install --frozen-lockfile
141+
- run: cd airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui && pnpm test
141142
env:
142143
FORCE_COLOR: 2
143144
- name: "Save eslint cache (ui)"
144145
uses: apache/infrastructure-actions/stash/save@1c35b5ccf8fba5d4c3fdf25a045ca91aa0cbc468
145146
with:
146-
path: airflow/api_fastapi/auth/managers/simple/ui/node_modules/
147+
path: airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/node_modules/
147148
key: >
148149
cache-simple-am-ui-node-modules-v1-
149150
${{ runner.os }}-${{ hashFiles('airflow/api_fastapi/auth/managers/simple/ui/**/pnpm-lock.yaml') }}

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ secrets.py
99
airflow.db
1010

1111
# Airflow temporary artifacts
12+
airflow-core/src/airflow/git_version
13+
airflow-core/src/airflow/ui/coverage/
14+
# and legacy ones
1215
airflow/git_version
1316
airflow/ui/coverage/
1417
logs/
@@ -170,6 +173,9 @@ pnpm-debug.log*
170173
.vscode/*
171174
!.vscode/extensions.json
172175
/.vite/
176+
# Exclude the ui .vite dir
177+
airflow-core/src/airflow/ui/.vite/
178+
# And the legacy old files just in case
173179
airflow/ui/.vite/
174180
.pnpm-store
175181
*.tsbuildinfo
@@ -198,7 +204,7 @@ dmypy.json
198204
/.inputrc
199205
log.txt*
200206

201-
# Provider-related ignores
207+
# Legascy Provider-related ignores
202208
/airflow/providers/__init__.py
203209

204210
# Docker context files

0 commit comments

Comments
 (0)