Skip to content

Commit 1a6cfee

Browse files
authored
Merge branch 'main' into fix/otel-context-detach
2 parents 8bb1799 + 9d943a7 commit 1a6cfee

2 files changed

Lines changed: 38 additions & 4 deletions

File tree

.github/scripts/tests/test_opentelemetry_conformance_workflow.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,35 @@
44
WORKFLOW_PATH = (
55
Path(__file__).parents[2] / "workflows" / "opentelemetry-conformance-tests.yml"
66
)
7+
ORCHESTRATOR_REVISION = "397d523d01bdf97ff8461ab749ddaa445bbf67ca"
78

89

910
def test_opentelemetry_conformance_caller_uses_current_workflow_contract() -> None:
1011
workflow = WORKFLOW_PATH.read_text()
1112

12-
assert "otlp_endpoint:" not in workflow
13+
orchestrator = (
14+
"uses: aws/aws-durable-execution-conformance-tests/.github/workflows/"
15+
f"opentelemetry-orchestrator.yml@{ORCHESTRATOR_REVISION}"
16+
)
17+
assert orchestrator in workflow
18+
assert "python-opentelemetry.yml@" not in workflow
19+
assert "\n otlp_endpoint:" not in workflow
20+
21+
for configuration in (
22+
"language: python",
23+
"resource_prefix: p",
24+
"sdk_repository: aws/aws-durable-execution-sdk-python",
25+
"sdk_ref: ${{ github.event.pull_request.head.sha || github.sha }}",
26+
"conformance_test_ref: ${{ inputs.conformance_test_ref || 'main' }}",
27+
"checkout_sdk: false",
28+
"packages/aws-durable-execution-conformance-tests-otel/"
29+
"tests/test_python_examples.py",
30+
"adot_release_repository: aws-observability/aws-otel-python-instrumentation",
31+
"collector_compatible_runtime: python3.13",
32+
"collector_otlp_endpoint: http://localhost:4318",
33+
"suite_timeout_minutes: 30",
34+
):
35+
assert configuration in workflow
1336

1437
for secret_name in (
1538
"DATADOG_ACCESS_TOKEN",

.github/workflows/opentelemetry-conformance-tests.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,24 @@ jobs:
4848
actions: write
4949
contents: read
5050
id-token: write
51-
uses: aws/aws-durable-execution-conformance-tests/.github/workflows/python-opentelemetry.yml@397d523d01bdf97ff8461ab749ddaa445bbf67ca
51+
uses: aws/aws-durable-execution-conformance-tests/.github/workflows/opentelemetry-orchestrator.yml@397d523d01bdf97ff8461ab749ddaa445bbf67ca
5252
with:
53+
language: python
54+
resource_prefix: p
55+
sdk_repository: aws/aws-durable-execution-sdk-python
56+
sdk_ref: ${{ github.event.pull_request.head.sha || github.sha }}
57+
conformance_test_ref: ${{ inputs.conformance_test_ref || 'main' }}
58+
checkout_sdk: false
59+
contract_test_command: >-
60+
hatch run test:all
61+
packages/aws-durable-execution-conformance-tests-otel/tests/test_python_examples.py
62+
adot_release_repository: aws-observability/aws-otel-python-instrumentation
63+
collector_compatible_runtime: python3.13
64+
collector_otlp_endpoint: http://localhost:4318
65+
suite_timeout_minutes: 30
5366
phase: ${{ inputs.phase || 'short' }}
5467
delay_seconds: ${{ inputs.delay_seconds || '82800' }}
5568
aws_region: ${{ inputs.aws_region || 'us-west-2' }}
56-
conformance_test_ref: ${{ inputs.conformance_test_ref || 'main' }}
57-
python_sdk_ref: ${{ github.event.pull_request.head.sha || github.sha }}
5869
secrets:
5970
CONFORMANCE_TEST_ROLE_ARN: ${{ secrets.TEST_ROLE_ARN }}
6071
CONFORMANCE_TEST_ACCOUNT_ID: ${{ secrets.TEST_ACCOUNT_ID }}

0 commit comments

Comments
 (0)