The GitHub Actions job "Tests (AMD)" on 
airflow.git/enable-ruff-b023-fix-closure-loop-var has failed.
Run started by GitHub user dkranchii (triggered by dkranchii).

Head commit for run:
61c8f4b156193f8d1e4abf60937485a8437670e9 / Deepak Kumar <[email protected]>
Enable ruff B023 (function-uses-loop-variable) and fix violations

B023 catches the late-binding closure-over-loop-variable footgun where
a function defined inside a loop captures the loop variable by
reference, so every function in the resulting list sees the same
(final) value — a classic silent-bug source in Python
(https://docs.python.org/3/faq/programming.html#why-do-lambdas-defined-in-a-loop-with-different-values-all-return-the-same-result).

The one user-visible fix is in providers/standard/.../triggers/file.py,
where the FileTrigger's os.walk lambda was dispatched to a worker
thread via anyio.to_thread.run_sync while the outer glob iteration
could advance, potentially walking the wrong path.

The rest are pre-existing latent-bug or false-positive sites in a
migration script, breeze translation helpers, sphinx extensions, a
system-test example DAG, the SMTP OAuth2 auth callback, secrets_masker
subclass compat shim, and two provider unit tests — fixed by binding
the loop-derived variable as a default argument on the inner function
or lambda.

Report URL: https://github.com/apache/airflow/actions/runs/30395942526

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to