This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new ba7a45e8982 Fix the RAT licence check excludes and move it to Apache
RAT 0.18 (#73064)
ba7a45e8982 is described below
commit ba7a45e89828516928eb123914138363debcb3e3
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Sep 13 15:53:02 2026 +0630
Fix the RAT licence check excludes and move it to Apache RAT 0.18 (#73064)
* Make the RAT licence check ignore IntelliJ module files again
The exclude entry for these was written as a regex, .*\.iml, but RAT matches
exclude patterns as globs against the full path. That form needs two dots to
match, so airflow-core.iml and its 76 siblings never matched it and the
check
reported 77 unapproved licences for anyone who had opened the repo in
IntelliJ. The files are gitignored and so never reach a source tarball,
which
is why the release-time check stayed green and the breakage only ever showed
up locally.
Use the same **/ form the rest of the file already uses for patterns that
have to match at any depth.
Generated-by: Claude Opus 5
Claude-Session: https://claude.ai/code/session_012zrnHJHPchB83FtwrYRf5q
* Rebuild the Apache RAT image on RAT 0.18
The image reference has stayed on RAT 0.17 since 0.18 was adopted everywhere
else, because the 0.18 image was never built: the release docs, the release
validator and this script were all moved to 0.18, but no 0.18 tag was ever
pushed, so the prek hook kept pulling the 0.17 image. Dating the image
afresh
gives the 0.18 build a tag of its own rather than overwriting a published
one.
Generated-by: Claude Opus 5
Claude-Session: https://claude.ai/code/session_012zrnHJHPchB83FtwrYRf5q
* Run the licence check on Apache RAT 0.18
This was the one reference left behind when RAT 0.18 was adopted, so the
check has been running 0.17 while the release docs and the release validator
told everyone else to use 0.18. Point it at the freshly built 0.18 image,
pinned by index digest as before so both architectures resolve.
Generated-by: Claude Opus 5
Claude-Session: https://claude.ai/code/session_012zrnHJHPchB83FtwrYRf5q
---------
Co-authored-by: Rahul Vats <[email protected]>
---
.rat-excludes | 2 +-
scripts/ci/dockerfiles/apache-rat/build_and_push.sh | 2 +-
scripts/ci/prek/check_license.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.rat-excludes b/.rat-excludes
index b84b09160e6..4dd747ada12 100644
--- a/.rat-excludes
+++ b/.rat-excludes
@@ -137,7 +137,7 @@ tests/*
scripts/*
images/*
dev/*
-.*\.iml
+**/*.iml
out/*
airflow-build-dockerfile*
diff --git a/scripts/ci/dockerfiles/apache-rat/build_and_push.sh
b/scripts/ci/dockerfiles/apache-rat/build_and_push.sh
index 1ed6600ab88..27837002d19 100755
--- a/scripts/ci/dockerfiles/apache-rat/build_and_push.sh
+++ b/scripts/ci/dockerfiles/apache-rat/build_and_push.sh
@@ -22,7 +22,7 @@ readonly GITHUB_REPOSITORY
APACHERAT_VERSION="0.18"
readonly APACHERAT_VERSION
-AIRFLOW_APACHERAT_VERSION="2025.10.24"
+AIRFLOW_APACHERAT_VERSION="2026.09.13"
readonly AIRFLOW_APACHERAT_VERSION
COMMIT_SHA=$(git rev-parse HEAD)
diff --git a/scripts/ci/prek/check_license.py b/scripts/ci/prek/check_license.py
index bb50dca43ab..1eb3470f682 100755
--- a/scripts/ci/prek/check_license.py
+++ b/scripts/ci/prek/check_license.py
@@ -37,7 +37,7 @@ cmd = [
"--user",
f"{os.getuid()}:{os.getgid()}",
"--rm",
-
"ghcr.io/apache/airflow-apache-rat:0.17-2025.10.24@sha256:63e965ecfa195d38cf0525b16ad801dff75833ee97d88cd763020537c36981c9",
+
"ghcr.io/apache/airflow-apache-rat:0.18-2026.09.13@sha256:d70f8f57f077473ffe917a8eca2f3f34e35f55b0b628c906fe7b464144a1f77f",
"--input-exclude-file",
"/opt/airflow/.rat-excludes",
"/opt/airflow",