This is an automated email from the ASF dual-hosted git repository.
jason810496 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 55cdf67cdb2 Fix OTel integration test after task.execute span addition
(#69236)
55cdf67cdb2 is described below
commit 55cdf67cdb2a5a908aac076de092e031aa12b500
Author: Jason(Zhe-You) Liu <[email protected]>
AuthorDate: Thu Jul 2 19:50:07 2026 +0900
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.
---
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 d19756094b6..6826d6cc877 100644
--- a/airflow-core/tests/integration/otel/test_otel.py
+++ b/airflow-core/tests/integration/otel/test_otel.py
@@ -467,9 +467,10 @@ class TestOtelIntegration:
"_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",