Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
A new configuration parameter "CORE_IGNORE_FILE_SYNTAX" is added to allow patterns in .airflowignore files to be interpreted as either regular expressions (the default) or glob expressions as found in .gitignore files. This allows users to use patterns they will be familiar with from tools such as git, helm and docker. Glob expressions support wildcard matches ("*", "?") within a directory as well as character classes ("[0-9]"). In addition, zero or more directories can be matched using "**". Patterns can be negated by prefixing a "!" at the beginning of the pattern. The "fnmatch" library in core Python does not produce patterns that are fully compliant with the kind of patterns that users will be used to from gitignore or dockerignore files, so the globs are parsed using the pathspec package from PyPI. To aid with debugging ignorefile patterns a more helpful error message is emitted in the logs for invalid patterns, which are now skipped rather than causing a hard-to-read scheduler stack trace. closes: #21392
- Loading branch information
Showing
16 changed files
with
335 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.*_invalid.* # Skip invalid files | ||
subdir3 # Skip the nested subdir3 directory | ||
# *badrule # This rule is an invalid regex. It would be warned about and skipped. |
Oops, something went wrong.