Skip to content

Trigger unit tests on shared/*.py changes#64999

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:add-shared-py-to-source-files
Apr 12, 2026
Merged

Trigger unit tests on shared/*.py changes#64999
potiuk merged 1 commit into
apache:mainfrom
potiuk:add-shared-py-to-source-files

Conversation

@potiuk

@potiuk potiuk commented Apr 10, 2026

Copy link
Copy Markdown
Member

Add shared/*.py pattern to ALL_SOURCE_FILES in selective checks so that changes that only touch the shared libraries (e.g. shared/timezones, shared/logging) trigger the unit test suite.

Previously, such changes were missed by selective checks because the shared/ folder was not part of any source-file pattern. As a result, unit tests were skipped for changes that affect symlinked code consumed by airflow-core, task-sdk, and providers.

Includes a new test case Shared library python changes trigger unit tests covering this behavior.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Opus 4.6 (1M context)

Generated-by: Claude Opus 4.6 (1M context) following the guidelines

Add shared/*.py pattern to ALL_SOURCE_FILES so changes that only
touch the shared libraries (e.g., shared/timezones, shared/logging)
trigger the unit test suite. Previously such changes were missed by
selective checks because the shared/ folder was not part of the
source files patterns, leading to skipped tests for changes that
affect symlinked code in airflow-core, task-sdk, and providers.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Breeze selective checks so that changes to Python files under shared/ are treated as source changes and therefore trigger the unit test suite, addressing missed CI coverage for symlinked shared libraries consumed by core/SDK/providers.

Changes:

  • Add ^shared/.*\.py$ to ALL_SOURCE_FILES matching in selective checks.
  • Add a regression test ensuring a shared/timezones Python change triggers run-unit-tests (and ci-image-build).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
dev/breeze/src/airflow_breeze/utils/selective_checks.py Extends ALL_SOURCE_FILES to include Python files under shared/, enabling unit tests for shared-library code changes.
dev/breeze/tests/test_selective_checks.py Adds a targeted test case asserting shared-library Python changes trigger unit tests.

@potiuk potiuk merged commit f13b713 into apache:main Apr 12, 2026
146 checks passed
@potiuk potiuk deleted the add-shared-py-to-source-files branch April 12, 2026 15:56
github-actions Bot pushed a commit that referenced this pull request Apr 12, 2026
…4999)

Add shared/*.py pattern to ALL_SOURCE_FILES so changes that only
touch the shared libraries (e.g., shared/timezones, shared/logging)
trigger the unit test suite. Previously such changes were missed by
selective checks because the shared/ folder was not part of the
source files patterns, leading to skipped tests for changes that
affect symlinked code in airflow-core, task-sdk, and providers.
(cherry picked from commit f13b713)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-2-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-2-test PR Link

potiuk added a commit that referenced this pull request Apr 12, 2026
…4999) (#65094)

Add shared/*.py pattern to ALL_SOURCE_FILES so changes that only
touch the shared libraries (e.g., shared/timezones, shared/logging)
trigger the unit test suite. Previously such changes were missed by
selective checks because the shared/ folder was not part of the
source files patterns, leading to skipped tests for changes that
affect symlinked code in airflow-core, task-sdk, and providers.
(cherry picked from commit f13b713)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Apr 15, 2026
…4999) (#65094)

Add shared/*.py pattern to ALL_SOURCE_FILES so changes that only
touch the shared libraries (e.g., shared/timezones, shared/logging)
trigger the unit test suite. Previously such changes were missed by
selective checks because the shared/ folder was not part of the
source files patterns, leading to skipped tests for changes that
affect symlinked code in airflow-core, task-sdk, and providers.
(cherry picked from commit f13b713)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Apr 15, 2026
…4999) (#65094)

Add shared/*.py pattern to ALL_SOURCE_FILES so changes that only
touch the shared libraries (e.g., shared/timezones, shared/logging)
trigger the unit test suite. Previously such changes were missed by
selective checks because the shared/ folder was not part of the
source files patterns, leading to skipped tests for changes that
affect symlinked code in airflow-core, task-sdk, and providers.
(cherry picked from commit f13b713)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Apr 15, 2026
…4999) (#65094)

Add shared/*.py pattern to ALL_SOURCE_FILES so changes that only
touch the shared libraries (e.g., shared/timezones, shared/logging)
trigger the unit test suite. Previously such changes were missed by
selective checks because the shared/ folder was not part of the
source files patterns, leading to skipped tests for changes that
affect symlinked code in airflow-core, task-sdk, and providers.
(cherry picked from commit f13b713)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Apr 15, 2026
…4999) (#65094)

Add shared/*.py pattern to ALL_SOURCE_FILES so changes that only
touch the shared libraries (e.g., shared/timezones, shared/logging)
trigger the unit test suite. Previously such changes were missed by
selective checks because the shared/ folder was not part of the
source files patterns, leading to skipped tests for changes that
affect symlinked code in airflow-core, task-sdk, and providers.
(cherry picked from commit f13b713)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants