File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44WORKFLOW_PATH = (
55 Path (__file__ ).parents [2 ] / "workflows" / "opentelemetry-conformance-tests.yml"
66)
7+ ORCHESTRATOR_REVISION = "397d523d01bdf97ff8461ab749ddaa445bbf67ca"
78
89
910def 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" ,
Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments