Skip to content

ci(otel): Enable cloud deployment and strengthen span asse…#684

Merged
SilanHe merged 11 commits into
mainfrom
otel-examples-cloud-enable
Jul 6, 2026
Merged

ci(otel): Enable cloud deployment and strengthen span asse…#684
SilanHe merged 11 commits into
mainfrom
otel-examples-cloud-enable

Conversation

@SilanHe

@SilanHe SilanHe commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

…rtions

Issue #, if available:

Description of changes:

  1. Remove localOnly flag from all OTel examples to enable cloud deployment and e2e testing. Update retry-steps to use createRetryStrategy from the SDK. All Otel examples where applicable will be subject to e2e testing. They will still be run as part of the local integration test suite as well as before.
  2. Strengthen test assertions to verify specific span names, types, parent-child hierarchy, and attributes rather than just counts.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…rtions

Remove localOnly flag from all OTel examples to enable cloud deployment
and integration testing. Update otel-invoke to target otel-basic-steps
(which matches the *-NodeJS* IAM permission pattern) instead of a
non-existent invoke-target function. Update retry-steps to use
createRetryStrategy from the SDK. Strengthen test assertions to verify
specific span names, types, parent-child hierarchy, and attributes
rather than just counts.
@SilanHe
SilanHe force-pushed the otel-examples-cloud-enable branch from b4a40b9 to e3e2591 Compare July 3, 2026 18:45
SilanHe and others added 4 commits July 3, 2026 11:45
…rtions

Remove localOnly flag from all OTel examples to enable cloud deployment
and integration testing. Update otel-invoke to target otel-basic-steps
(which matches the *-NodeJS* IAM permission pattern). Update retry-steps
to use createRetryStrategy from the SDK.

Refactor tests to read spans from the exported getSerializedSpans()
function after runner.run() returns (local) or from result.spans
(cloud). This ensures the final invocation span is always included,
giving consistent exact span counts across environments.

Strengthen test assertions to verify specific span names, types,
parent-child hierarchy, and attributes rather than just counts.
@SilanHe
SilanHe force-pushed the otel-examples-cloud-enable branch 3 times, most recently from 831e861 to 303e619 Compare July 3, 2026 22:51
@SilanHe
SilanHe force-pushed the otel-examples-cloud-enable branch from 410ff86 to 828792c Compare July 6, 2026 20:10
SilanHe and others added 3 commits July 6, 2026 13:10
…helper

Add type guard in assertSpanAttributes to skip metadata namespace
entries that are not objects (e.g. plain strings like the function name),
preventing TypeError when using the 'in' operator.
@SilanHe
SilanHe force-pushed the otel-examples-cloud-enable branch from 92257d4 to 72dc29a Compare July 6, 2026 21:54
@SilanHe
SilanHe marked this pull request as ready for review July 6, 2026 21:54
@SilanHe

SilanHe commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

All the tests have passed previously, I just removed an extra file from the PR (mise.toml) that shouldn't have been included. https://github.com/aws/aws-durable-execution-sdk-js/actions/runs/28824831798/job/85486889703?pr=684

@SilanHe
SilanHe merged commit 2ed273f into main Jul 6, 2026
27 of 28 checks passed
@SilanHe
SilanHe deleted the otel-examples-cloud-enable branch July 6, 2026 23:32
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.

3 participants