Skip to content

Fix OTel integration test for new task.execute detail span#69237

Closed
potiuk wants to merge 1 commit into
apache:mainfrom
potiuk:fix-otel-detail-span-hierarchy
Closed

Fix OTel integration test for new task.execute detail span#69237
potiuk wants to merge 1 commit into
apache:mainfrom
potiuk:fix-otel-detail-span-hierarchy

Conversation

@potiuk

@potiuk potiuk commented Jul 2, 2026

Copy link
Copy Markdown
Member

test_dag_execution_succeeds[detail_spans] has been failing on main's
scheduled/canary runs, e.g.
https://github.com/apache/airflow/actions/runs/28562105904

Root cause: #67877 ("Add task.execute detail span around task execute callable")
wraps the execute callable in its own task.execute span at task span detail
level > 1, so operator-emitted spans nest under task.execute rather than
directly under _execute_task. The OTel integration test's expected hierarchy
was not updated in that PR — and since the OTel integration suite only runs on
schedule/canary (not per-PR), it merged without catching the break.

Update the detail_spans expected hierarchy to include the task.execute span
(sub_span1 -> task.execute -> _execute_task), matching the actual output.
Only the detail_spans variant is affected; default_spans (detail level <= 1)
is unchanged.

related: #67877


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8 1M)

Generated-by: Claude Code (Opus 4.8 1M) following the guidelines

apache#67877 added a task.execute detail span around the task execute callable at
task span detail level > 1, so operator-emitted spans (such as sub_span1) now
nest under it instead of directly under _execute_task. That PR did not update
the OTel integration test's expected span hierarchy, and because the OTel
integration suite runs only on schedule/canary rather than per-PR, the change
merged green and test_dag_execution_succeeds[detail_spans] has been failing on
main since. Update the expected hierarchy to include the task.execute span.
@potiuk potiuk added the backport-to-v3-3-test Backport to v3-3-test label Jul 2, 2026
@potiuk

potiuk commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

Close in favour of #69236

@potiuk potiuk closed this Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v3-3-test Backport to v3-3-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant