Skip to content

Fix OTel smoke test execution and diagnostics - #11971

Merged
lpcox merged 2 commits into
mainfrom
copilot/smoke-otel-tracing-fix
Nov 23, 2026
Merged

lpcox merged 2 commits into
mainfrom
copilot/smoke-otel-tracing-fix

Conversation

@lpcox

@lpcox lpcox commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

The OTel smoke workflow silently skipped tests because Jest 30 rejected --testPathPattern and || true masked the error. Diagnostics also used the wrong directory and inferred export behavior from local files despite configured OTLP collectors.

  • Test execution: Use the supported flag, propagate failures, and remove the missing-module success bypass:
    npx jest --verbose --ci --testPathPatterns='otel' 2>&1
  • Fallback validation: Assert that absent OTLP configuration selects FileSpanExporter while tracing remains enabled.
  • Diagnostics: Read api-proxy-logs; require backend span evidence to confirm collector delivery. Clarify that post-step output is unavailable during agent execution.
  • Source/lock consistency: Regenerate and post-process the lock; add focused regressions for commands, assertions, and diagnostics.

@lpcox lpcox changed the title [WIP] Fix OTel test step execution issue and diagnostics path Fix OTel smoke test execution and diagnostics Nov 23, 2026
@lpcox
lpcox marked this pull request as ready for review November 23, 2026 01:38
Copilot AI adaptive review requested due to automatic review settings November 23, 2026 01:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Changes to success criteria and failure gating interact across host pre-steps, sandbox reporting, and OTLP delivery, exceeding the scope of conservative automated approval.

No open issues 🎉

What changed in this PR

This PR fixes AWF’s OpenTelemetry smoke workflow so tests run and failures propagate, addressing #11959. It also distinguishes local fallback tracing from confirmed collector delivery.

Changes:

  • Use Jest’s supported --testPathPatterns flag and remove failure-masking behavior.
  • Strengthen assertions that tracing remains enabled with FileSpanExporter when OTLP configuration is absent.
  • Correct diagnostic paths, clarify reporting, and add source/lock regression checks.
File Description
scripts/​ci/​smoke-otel-tracing-workflow.test.ts Adds regression checks for workflow commands, assertions, diagnostics, and reporting.
containers/​api-proxy/​otel-fanout.test.js Verifies the fallback exporter type and output path.
.github/​workflows/​smoke-otel-tracing.md Fixes test execution and clarifies fallback versus collector validation.
.github/​workflows/​smoke-otel-tracing.lock.yml Synchronizes the compiled workflow with the source changes.

Review effort: Balanced (adaptive)

@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@lpcox Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@lpcox
lpcox merged commit 4139c16 into main Nov 23, 2026
39 of 42 checks passed
@lpcox
lpcox deleted the copilot/smoke-otel-tracing-fix branch November 23, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[smoke-otel-tracing] OTel tracing smoke: OTEL test step never runs and diagnostics path is wrong

3 participants