Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions dev/breeze/src/airflow_breeze/utils/selective_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ def __hash__(self):
r"^task-sdk/src/airflow/sdk/coordinators/java/.*",
],
FileGroupForCi.GO_SDK_E2E_FILES: [
r"^go-sdk/.*",
# `.md` excluded — doc-only edits do not affect the Go build or e2e tests.
r"^go-sdk/(?!.*\.md$).*",
r"^airflow-e2e-tests/tests/airflow_e2e_tests/go_sdk_tests/.*",
r"^airflow-e2e-tests/docker/go\.yml$",
r"^task-sdk/src/airflow/sdk/coordinators/_subprocess\.py$",
Expand Down Expand Up @@ -418,7 +419,9 @@ def __hash__(self):
r"^task-sdk-integration-tests/.*\.py$",
],
FileGroupForCi.GO_SDK_FILES: [
r"^go-sdk/.*\.go$",
# `.md` excluded — doc-only edits do not affect the Go build or tests, but
# everything else (go.mod, go.sum, build config) must trigger the unit tests.
r"^go-sdk/(?!.*\.md$).*",
],
FileGroupForCi.JAVA_SDK_FILES: [
r"^java-sdk/",
Expand Down
27 changes: 27 additions & 0 deletions dev/breeze/tests/test_selective_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,33 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
},
id="Run go unit and e2e tests for go-sdk source change",
),
pytest.param(
("go-sdk/go.mod",),
{
"run-go-sdk-tests": "true",
"run-go-sdk-e2e-tests": "true",
"prod-image-build": "true",
},
id="Run go unit and e2e tests for go-sdk dependency change",
),
pytest.param(
("go-sdk/README.md",),
{
"run-go-sdk-tests": "false",
"run-go-sdk-e2e-tests": "false",
"prod-image-build": "false",
},
id="Skip go unit and e2e tests for go-sdk README-only change",
),
pytest.param(
("go-sdk/adr/0001-bundle-packing-options.md",),
{
"run-go-sdk-tests": "false",
"run-go-sdk-e2e-tests": "false",
"prod-image-build": "false",
},
id="Skip go unit and e2e tests for go-sdk ADR-only change",
),
pytest.param(
("airflow-e2e-tests/docker/go.yml",),
{
Expand Down