From fd805827947b52110403636542ac4f8855bb563b Mon Sep 17 00:00:00 2001 From: LIU ZHE YOU Date: Thu, 2 Jul 2026 16:40:40 +0900 Subject: [PATCH] Fix OTel integration test after task.execute span addition PR #67877 wrapped the operator execute callable in a new task.execute detail span, so operator-emitted spans now nest under it instead of directly under _execute_task. Integration tests do not run on regular PRs, so the expected span hierarchy in the OTel integration test was not updated there and the canary build started failing. --- airflow-core/tests/integration/otel/test_otel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airflow-core/tests/integration/otel/test_otel.py b/airflow-core/tests/integration/otel/test_otel.py index d19756094b6ce..6826d6cc877a7 100644 --- a/airflow-core/tests/integration/otel/test_otel.py +++ b/airflow-core/tests/integration/otel/test_otel.py @@ -467,9 +467,10 @@ def test_export_metrics_during_process_shutdown(self, capfd): "_validate_task_inlets_and_outlets": "_prepare", "_prepare": "run", "_execute_task": "run", + "task.execute": "_execute_task", "finalize": "worker.task1", "run": "worker.task1", - "sub_span1": "_execute_task", + "sub_span1": "task.execute", "dag_run.otel_test_dag": None, "task_run.task1": "dag_run.otel_test_dag", "worker.task1": "task_run.task1",