Thanks to visit codestin.com
Credit goes to github.com

Skip to content

airflowignore incorrectly includes dags #62716

@devgonvarun

Description

@devgonvarun

Apache Airflow version

3.1.7

If "Other Airflow 3 version" selected, which one?

No response

What happened?

airflow ignore with negation incorrectly includes ignored dags from top folders.

How to reproduce

Consider an airflowignore like the following

*
!abc/
!abc/def/
!abc/def/xyz/
!abc/def/xyz/*

this should have the following behaviour:

  1. Ignore everything in the present path.
  2. Unignore abc/ path but not its contents.
  3. Unignore abc/def/ path but not its contents.
  4. Unignore abc/def/xyz/ path but not its contents.
  5. Unignore the contents of abc/def/xyz/ path.

However, the above airflowignore also unignores the direct contents of abc/ and the abc/def folders incorrectly.

What you think should happen instead?

Only contents of abc/def/xyz/ should be unignored, no other files from the top folders should be unignored.

Operating System

Debian GNU/Linux 12 (bookworm)

Deployment

Official Apache Airflow Helm Chart

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions