Skip to content

Fix airflow-ctl-tests files not triggering pre-commit integration tests#61023

Merged
dheerajturaga merged 2 commits into
apache:mainfrom
dheerajturaga:bugfix/airflowctl-prek-checks
Jan 25, 2026
Merged

Fix airflow-ctl-tests files not triggering pre-commit integration tests#61023
dheerajturaga merged 2 commits into
apache:mainfrom
dheerajturaga:bugfix/airflowctl-prek-checks

Conversation

@dheerajturaga

Copy link
Copy Markdown
Member

The check-airflowctl-command-coverage pre-commit hook was not being
triggered when files in the airflow-ctl-tests/ directory were modified.
This meant that changes to integration tests could be committed without
verifying that all airflowctl CLI commands had test coverage.

Root cause:
The hook was only defined in airflow-ctl/.pre-commit-config.yaml with
file patterns attempting to match ../airflow-ctl-tests/ paths. However,
prek subproject configs cannot reference files in sibling directories
using relative paths - they can only match files within their own
directory tree.

  The check-airflowctl-command-coverage pre-commit hook was not being
  triggered when files in the airflow-ctl-tests/ directory were modified.
  This meant that changes to integration tests could be committed without
  verifying that all airflowctl CLI commands had test coverage.

  Root cause:
  The hook was only defined in airflow-ctl/.pre-commit-config.yaml with
  file patterns attempting to match ../airflow-ctl-tests/ paths. However,
  prek subproject configs cannot reference files in sibling directories
  using relative paths - they can only match files within their own
  directory tree.

@bugraoz93 bugraoz93 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.

Adding it to airflow-ctl-tests/...yaml makes a lot of sense! Thanks @dheerajturaga!

I still believe No reason to be in root hooks. So how about reverting the change on root and airflow-ctl/...yaml changes that and keeping the addition to airflow-ctl-tests/...yaml? What do you think?

@bugraoz93 bugraoz93 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.

Thanks for the update!

Comment thread airflow-ctl-tests/.pre-commit-config.yaml
@dheerajturaga dheerajturaga merged commit 2a0497b into apache:main Jan 25, 2026
70 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport failed to create: v3-1-test. View the failure log Run details

Status Branch Result
v3-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 2a0497b v3-1-test

This should apply the commit to the v3-1-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:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

suii2210 pushed a commit to suii2210/airflow that referenced this pull request Jan 26, 2026
…ts (apache#61023)

* Fix airflow-ctl-tests files not triggering pre-commit integration tests

  The check-airflowctl-command-coverage pre-commit hook was not being
  triggered when files in the airflow-ctl-tests/ directory were modified.
  This meant that changes to integration tests could be committed without
  verifying that all airflowctl CLI commands had test coverage.

  Root cause:
  The hook was only defined in airflow-ctl/.pre-commit-config.yaml with
  file patterns attempting to match ../airflow-ctl-tests/ paths. However,
  prek subproject configs cannot reference files in sibling directories
  using relative paths - they can only match files within their own
  directory tree.

* Bugra's suggestions
shreyas-dev pushed a commit to shreyas-dev/airflow that referenced this pull request Jan 29, 2026
…ts (apache#61023)

* Fix airflow-ctl-tests files not triggering pre-commit integration tests

  The check-airflowctl-command-coverage pre-commit hook was not being
  triggered when files in the airflow-ctl-tests/ directory were modified.
  This meant that changes to integration tests could be committed without
  verifying that all airflowctl CLI commands had test coverage.

  Root cause:
  The hook was only defined in airflow-ctl/.pre-commit-config.yaml with
  file patterns attempting to match ../airflow-ctl-tests/ paths. However,
  prek subproject configs cannot reference files in sibling directories
  using relative paths - they can only match files within their own
  directory tree.

* Bugra's suggestions
jason810496 pushed a commit to abhijeets25012-tech/airflow that referenced this pull request Feb 3, 2026
…ts (apache#61023)

* Fix airflow-ctl-tests files not triggering pre-commit integration tests

  The check-airflowctl-command-coverage pre-commit hook was not being
  triggered when files in the airflow-ctl-tests/ directory were modified.
  This meant that changes to integration tests could be committed without
  verifying that all airflowctl CLI commands had test coverage.

  Root cause:
  The hook was only defined in airflow-ctl/.pre-commit-config.yaml with
  file patterns attempting to match ../airflow-ctl-tests/ paths. However,
  prek subproject configs cannot reference files in sibling directories
  using relative paths - they can only match files within their own
  directory tree.

* Bugra's suggestions
jhgoebbert pushed a commit to jhgoebbert/airflow_Owen-CH-Leung that referenced this pull request Feb 8, 2026
…ts (apache#61023)

* Fix airflow-ctl-tests files not triggering pre-commit integration tests

  The check-airflowctl-command-coverage pre-commit hook was not being
  triggered when files in the airflow-ctl-tests/ directory were modified.
  This meant that changes to integration tests could be committed without
  verifying that all airflowctl CLI commands had test coverage.

  Root cause:
  The hook was only defined in airflow-ctl/.pre-commit-config.yaml with
  file patterns attempting to match ../airflow-ctl-tests/ paths. However,
  prek subproject configs cannot reference files in sibling directories
  using relative paths - they can only match files within their own
  directory tree.

* Bugra's suggestions
choo121600 pushed a commit to choo121600/airflow that referenced this pull request Feb 22, 2026
…ts (apache#61023)

* Fix airflow-ctl-tests files not triggering pre-commit integration tests

  The check-airflowctl-command-coverage pre-commit hook was not being
  triggered when files in the airflow-ctl-tests/ directory were modified.
  This meant that changes to integration tests could be committed without
  verifying that all airflowctl CLI commands had test coverage.

  Root cause:
  The hook was only defined in airflow-ctl/.pre-commit-config.yaml with
  file patterns attempting to match ../airflow-ctl-tests/ paths. However,
  prek subproject configs cannot reference files in sibling directories
  using relative paths - they can only match files within their own
  directory tree.

* Bugra's suggestions
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Mar 4, 2026
…ts (apache#61023)

* Fix airflow-ctl-tests files not triggering pre-commit integration tests

  The check-airflowctl-command-coverage pre-commit hook was not being
  triggered when files in the airflow-ctl-tests/ directory were modified.
  This meant that changes to integration tests could be committed without
  verifying that all airflowctl CLI commands had test coverage.

  Root cause:
  The hook was only defined in airflow-ctl/.pre-commit-config.yaml with
  file patterns attempting to match ../airflow-ctl-tests/ paths. However,
  prek subproject configs cannot reference files in sibling directories
  using relative paths - they can only match files within their own
  directory tree.

* Bugra's suggestions
Ankurdeewan pushed a commit to Ankurdeewan/airflow that referenced this pull request Mar 15, 2026
…ts (apache#61023)

* Fix airflow-ctl-tests files not triggering pre-commit integration tests

  The check-airflowctl-command-coverage pre-commit hook was not being
  triggered when files in the airflow-ctl-tests/ directory were modified.
  This meant that changes to integration tests could be committed without
  verifying that all airflowctl CLI commands had test coverage.

  Root cause:
  The hook was only defined in airflow-ctl/.pre-commit-config.yaml with
  file patterns attempting to match ../airflow-ctl-tests/ paths. However,
  prek subproject configs cannot reference files in sibling directories
  using relative paths - they can only match files within their own
  directory tree.

* Bugra's suggestions
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.

2 participants