33
33
from airflow_breeze .utils .packages import get_available_packages
34
34
from airflow_breeze .utils .selective_checks import (
35
35
ALL_CI_SELECTIVE_TEST_TYPES ,
36
+ ALL_CI_SELECTIVE_TEST_TYPES_WITHOUT_PROVIDERS ,
36
37
ALL_PROVIDERS_SELECTIVE_TEST_TYPES ,
37
38
SelectiveChecks ,
38
39
)
@@ -1279,46 +1280,45 @@ def test_expected_output_pull_request_v2_7(
1279
1280
pytest .param (
1280
1281
("airflow/models/test.py" ,),
1281
1282
{
1282
- "affected-providers-list-as-string" : ALL_PROVIDERS_AFFECTED ,
1283
1283
"all-python-versions" : "['3.8']" ,
1284
1284
"all-python-versions-list-as-string" : "3.8" ,
1285
1285
"ci-image-build" : "true" ,
1286
1286
"prod-image-build" : "false" ,
1287
1287
"needs-helm-tests" : "false" ,
1288
1288
"run-tests" : "true" ,
1289
1289
"docs-build" : "true" ,
1290
- "docs-list-as-string" : ALL_DOCS_SELECTED_FOR_BUILD ,
1290
+ "docs-list-as-string" : "apache-airflow" ,
1291
1291
"skip-pre-commits" : "check-provider-yaml-valid,identity,lint-helm-chart,mypy-airflow,mypy-dev,mypy-docs,mypy-providers,ts-compile-format-lint-www" ,
1292
1292
"run-kubernetes-tests" : "false" ,
1293
1293
"upgrade-to-newer-dependencies" : "false" ,
1294
- "skip-provider-tests" : "false " ,
1295
- "parallel-test-types-list-as-string" : ALL_CI_SELECTIVE_TEST_TYPES ,
1294
+ "skip-provider-tests" : "true " ,
1295
+ "parallel-test-types-list-as-string" : ALL_CI_SELECTIVE_TEST_TYPES_WITHOUT_PROVIDERS ,
1296
1296
"needs-mypy" : "true" ,
1297
- "mypy-folders" : "['airflow', 'providers' ]" ,
1297
+ "mypy-folders" : "['airflow']" ,
1298
1298
},
1299
- id = "Tests for all providers should run if model file changed" ,
1299
+ id = "Tests for all airflow core types except providers should run if model file changed" ,
1300
1300
),
1301
1301
pytest .param (
1302
1302
("airflow/file.py" ,),
1303
1303
{
1304
- "affected-providers-list-as-string" : ALL_PROVIDERS_AFFECTED ,
1305
1304
"all-python-versions" : "['3.8']" ,
1306
1305
"all-python-versions-list-as-string" : "3.8" ,
1307
1306
"ci-image-build" : "true" ,
1308
1307
"prod-image-build" : "false" ,
1309
1308
"needs-helm-tests" : "false" ,
1310
1309
"run-tests" : "true" ,
1311
1310
"docs-build" : "true" ,
1312
- "docs-list-as-string" : ALL_DOCS_SELECTED_FOR_BUILD ,
1311
+ "docs-list-as-string" : "apache-airflow" ,
1313
1312
"skip-pre-commits" : "check-provider-yaml-valid,identity,lint-helm-chart,mypy-airflow,mypy-dev,mypy-docs,mypy-providers,ts-compile-format-lint-www" ,
1314
1313
"run-kubernetes-tests" : "false" ,
1315
1314
"upgrade-to-newer-dependencies" : "false" ,
1316
- "skip-provider-tests" : "false " ,
1317
- "parallel-test-types-list-as-string" : ALL_CI_SELECTIVE_TEST_TYPES ,
1315
+ "skip-provider-tests" : "true " ,
1316
+ "parallel-test-types-list-as-string" : ALL_CI_SELECTIVE_TEST_TYPES_WITHOUT_PROVIDERS ,
1318
1317
"needs-mypy" : "true" ,
1319
- "mypy-folders" : "['airflow', 'providers' ]" ,
1318
+ "mypy-folders" : "['airflow']" ,
1320
1319
},
1321
- id = "Tests for all providers should run if any other than API/WWW/CLI/Operators file changed." ,
1320
+ id = "Tests for all airflow core types except providers should run if "
1321
+ "any other than API/WWW/CLI/Operators file changed." ,
1322
1322
),
1323
1323
],
1324
1324
)
@@ -1601,9 +1601,9 @@ def test_upgrade_to_newer_dependencies(
1601
1601
pytest .param (
1602
1602
("airflow/test.py" ,),
1603
1603
{
1604
- "docs-list-as-string" : ALL_DOCS_SELECTED_FOR_BUILD ,
1604
+ "docs-list-as-string" : "apache-airflow" ,
1605
1605
},
1606
- id = "Core files changed. All provider docs should also be built" ,
1606
+ id = "Core files changed. Apache-Airflow docs should also be built" ,
1607
1607
),
1608
1608
pytest .param (
1609
1609
("docs/docker-stack/test.rst" ,),
@@ -1613,9 +1613,9 @@ def test_upgrade_to_newer_dependencies(
1613
1613
pytest .param (
1614
1614
("airflow/test.py" , "chart/airflow/values.yaml" ),
1615
1615
{
1616
- "docs-list-as-string" : ALL_DOCS_SELECTED_FOR_BUILD ,
1616
+ "docs-list-as-string" : "apache-airflow helm-chart" ,
1617
1617
},
1618
- id = "Core files and helm chart files changed. All provider docs should be built " ,
1618
+ id = "Core files and helm chart files changed. Apache Airflow and helm chart docs to build " ,
1619
1619
),
1620
1620
pytest .param (
1621
1621
("chart/airflow/values.yaml" ,),
@@ -2033,11 +2033,11 @@ def test_provider_compatibility_checks(labels: tuple[str, ...], expected_outputs
2033
2033
("airflow/models/file.py" ,),
2034
2034
{
2035
2035
"needs-mypy" : "true" ,
2036
- "mypy-folders" : "['airflow', 'providers' ]" ,
2036
+ "mypy-folders" : "['airflow']" ,
2037
2037
},
2038
2038
"main" ,
2039
2039
(),
2040
- id = "Airflow mypy checks on airflow files that can trigger provider tests " ,
2040
+ id = "Airflow mypy checks on airflow files with model changes. " ,
2041
2041
),
2042
2042
pytest .param (
2043
2043
("airflow/providers/a_file.py" ,),
0 commit comments