The GitHub Actions job "Tests (AMD)" on airflow.git/main has failed. Run started by GitHub user potiuk (triggered by potiuk).
Head commit for run: da57d5ecf81e43e0f5b89e08a8289de0fbb3b9ac / Dheeraj Turaga <[email protected]> Add regression tests for task_instance_mutation_hook under scheduler commit guard (#67980) * Add regression tests for task_instance_mutation_hook under scheduler commit guard Pin the behavior of task_instance_mutation_hook during mapped-task expansion while the scheduler's prohibit_commit guard is active — the exact path that crashes the scheduler when a hook opens a nested committing session (e.g. a no-arg get_dagrun()). Adds three tests to TestDagRun's neighborhood in test_dagrun.py: - a naive DB-touching hook raises UNEXPECTED COMMIT under the guard, - a session-reusing hook survives the guard and routes queue from DagRun.conf on every expanded mapped TI, - a deterministic hook called repeatedly per TI yields a stable result. These close gaps where existing tests only asserted the hook was invoked, never that its mutation survived mapped expansion or that the guard was active on that path. * Pin dag_run resolution contract for conf-routing mutation hooks Add three tests that lock down the properties a non-committing, DagRun-reading task_instance_mutation_hook depends on across upgrades: - a freshly-built mapped TaskInstance exposes dag_run as loaded-None (attribute access returns None without a DB hit or DetachedInstanceError), - a committing hook crashes on the real DagRun.verify_integrity path under prohibit_commit, proving the guard is live on the production method and not just the hand-rolled expand_mapped_task wrapper, - an attribute-access hook that resolves the DagRun via ti.dag_run (never opening a committing session) survives verify_integrity under the guard and leaves expansion intact. These close gaps left by the earlier expand_mapped_task tests, which used an explicit SELECT rather than attribute access and never drove the real guarded scheduler method. Report URL: https://github.com/apache/airflow/actions/runs/27113576450 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
