From ec8f139f409ae2dbb25f784005b0b714d06d53fd Mon Sep 17 00:00:00 2001 From: "Jason(Zhe-You) Liu" <68415893+jason810496@users.noreply.github.com> Date: Thu, 2 Jul 2026 19:50:07 +0900 Subject: [PATCH] [v3-3-test] Fix OTel integration test after task.execute span addition (#69236) 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. (cherry picked from commit 55cdf67cdb2a5a908aac076de092e031aa12b500) Co-authored-by: Jason(Zhe-You) Liu <68415893+jason810496@users.noreply.github.com> --- 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",