You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/05/04 18:34:52 UTC

[PR] Move helm-tests/ to chart/tests/ and merge pyproject.toml into chart's [airflow]

potiuk opened a new pull request, #66371:
URL: https://github.com/apache/airflow/pull/66371

   ## Summary
   
   The Helm chart Python tests previously lived as their own workspace
   member at `helm-tests/` with a dedicated `apache-airflow-helm-tests`
   package. The chart sources and tests are inseparable in practice, so
   this collapses them into a single `chart` workspace member: the test
   files move under `chart/tests/`, and `helm-tests/pyproject.toml` is
   merged into `chart/pyproject.toml`. The chart pyproject adopts the
   former helm-tests pytest config, the `mypy` dependency-group, and the
   test-only deps on `apache-airflow-devel-common` and
   `apache-airflow-providers-cncf-kubernetes`.
   
   ### What stays (user/CI-visible names)
   
   Intentionally not renamed in this PR — that would have a much wider
   ripple in CI/release tooling than the directory move itself:
   
   * `breeze testing helm-tests` — command name unchanged.
   * `mypy-helm-tests` — prek hook id unchanged (now lives in
     `chart/.pre-commit-config.yaml`, with the entry pointing at the new
     `chart/tests` folder).
   * `run-helm-tests` — selective-checks output / CI gate variable.
   * `helm-tests.yml` — CI workflow file.
   * The directory `chart/tests/helm_tests/` keeps the Python package
     name `helm_tests` so test imports and `--test-type X` arguments
     don't shift.
   
   ### What changed
   
   * Root `pyproject.toml`: workspace member (`"helm-tests"` → `"chart"`),
     `[tool.uv.sources]`, `apache-airflow-helm-chart = false` constraint
     rows, ruff per-file ignores, mypy include path, dev dependency-group.
   * `.github/CODEOWNERS`: folded the `/helm-tests/` line into the
     existing `/chart/` entry (same owners, just absorbs the test path).
   * `.github/dependabot.yml` and `dev/update_github_branch_config.py`:
     `/helm-tests` → `/chart`.
   * Breeze internals — `global_constants.all_helm_test_packages`,
     `run_tests.TEST_GROUP_TO_TEST_FOLDERS[GroupOfTests.HELM]`,
     `run_tests.find_pytest_arguments` (drop the now-redundant inner
     `tests/` segment), `docker_command_utils` mounts (the
     `helm-tests` mount is gone; `chart/` was already mounted),
     `selective_checks` regexes
     (`HELM_FILES`, `ALL_HELM_TESTS_PYTHON_FILES`, `ALL_SOURCE_FILES`).
   * `scripts/ci/docker-compose/local.yml`: drop the redundant
     `helm-tests` bind mount.
   * `scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py`:
     `_TOP_LEVEL_ALLOWED_FOLDERS` swap and a
     `FOLDER_TO_PROJECT["chart/tests"] = "chart"` override since
     `chart/tests` is not its own uv project — it lives inside the
     `chart` workspace member.
   * `dev/ide_setup/setup_idea.py`: module list.
   * Root `.pre-commit-config.yaml`: two test-file path exclusions.
   * Docs in `contributing-docs/testing/helm_unit_tests.rst` and
     `dev/breeze/doc/ci/04_selective_checks.md`.
   * Existing breeze unit tests in `dev/breeze/tests/test_*.py` updated
     to assert the new paths.
   * Regenerated `uv.lock` (workspace-member rename
     `apache-airflow-helm-tests` → `apache-airflow-helm-chart`).
   
   ### Caveat for local devs
   
   Developers running `breeze` via `uvx --from dev/breeze` (the standard
   ADR-0017 shim) may need a one-time `uv cache clean` (or just
   `touch dev/breeze/pyproject.toml`) after pulling this commit so uvx
   rebuilds breeze from the current source. uvx caches by content hash
   and will otherwise serve a stale breeze that still references the old
   `helm-tests/tests/helm_tests` path. CI runs aren't affected (each job
   gets a fresh uv cache).
   
   ## Test plan
   
   - [X] `prek run --all-files` passes (only the unrelated FAB pnpm
         ENAMETOOLONG issue from this worktree's nested path remains).
   - [X] `Run mypy for helm-tests` (the `mypy-helm-tests` hook on
         `chart/.pre-commit-config.yaml`) passes against `chart/tests/`.
   - [X] `Lint Helm Chart`, `Kubeconform`, `Validate chart annotations`
         and the chart schema/yaml hooks all pass.
   - [X] `uv run --project dev/breeze pytest dev/breeze/tests/test_pytest_args_for_test_types.py
         dev/breeze/tests/test_selective_checks.py` — 194 passed.
   - [ ] CI `Helm tests` job runs against the new path on this PR.
   - [ ] CI `Static checks` job stays green.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.7)
   
   Generated-by: Claude Code (Opus 4.7) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Move helm-tests/ to chart/tests/ and merge pyproject.toml into chart's [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #66371:
URL: https://github.com/apache/airflow/pull/66371#issuecomment-4396616623

   ### Backport failed to create: v3-2-test. View the failure log <a href='https://github.com/apache/airflow/actions/runs/25492429135'> Run details </a>
   
   Note: As of [Merging PRs targeted for Airflow 3.X](https://github.com/apache/airflow/blob/main/dev/README_AIRFLOW3_DEV.md#merging-prs-targeted-for-airflow-3x)
   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](https://apache-airflow.slack.com/archives/C03G9H97MM2) Slack channel.
   
   <table>
       <tr>
           <th>Status</th>
           <th>Branch</th>
           <th>Result</th>
       </tr>
       <tr>
           <td>❌</td>
           <td>v3-2-test</td>
           <td><a href="https://github.com/apache/airflow/commit/82f0fe9ce099ad2f2e964a3043cce5ab21c8900d"><img src='https://img.shields.io/badge/Commit-82f0fe9-red' alt='Commit Link'></a></td>
       </tr>
   </table>
   
   You can attempt to backport this manually by running:
   
   ```bash
   cherry_picker 82f0fe9 v3-2-test
   ```
   
   This should apply the commit to the v3-2-test branch and leave the commit in conflict state marking
   the files that need manual conflict resolution.
   
   After you have resolved the conflicts, you can continue the backport process by running:
   
   ```bash
   cherry_picker --continue
   ```
   
   If you don't have cherry-picker installed, see the [installation guide](https://github.com/apache/airflow/blob/main/dev/README_AIRFLOW3_DEV.md#how-to-backport-pr-with-cherry-picker-cli).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Move helm-tests/ to chart/tests/ and merge pyproject.toml into chart's [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #66371:
URL: https://github.com/apache/airflow/pull/66371


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org