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: adfe70de6562b0ca2ffc540355b15f14a628cb44 / 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/30714607337 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
