Skip to content

Commit 5ab9652

Browse files
author
Alex Wang
committed
Merge remote-tracking branch 'upstream/main' into feat/withRetry
2 parents ad11889 + 6bef3b2 commit 5ab9652

8 files changed

Lines changed: 18 additions & 44 deletions

File tree

.github/scripts/ci-checks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
set -e
44

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dist/
3131

3232
.kiro/
3333

34-
*/build/*
35-
*/*.zip
34+
**/build/
35+
**/*.zip
3636

3737
.env

packages/aws-durable-execution-sdk-python-examples/pyproject.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ dependencies = [
1515
[tool.hatch.build.targets.wheel]
1616
packages = ["src"]
1717

18-
[tool.pytest.ini_options]
19-
testpaths = ["test"]
20-
addopts = "-v --strict-markers"
21-
pythonpath = ["."]
22-
markers = [
23-
"example: marks tests as example tests (deselect with '-m \"not example\"')",
24-
"durable_execution: marks tests that use the durable_runner fixture (not used for test selection)",
25-
]
26-
2718
[tool.hatch.envs.examples.scripts]
2819
cli = "python cli.py {args}"
2920
bootstrap = "python cli.py bootstrap"

packages/aws-durable-execution-sdk-python-otel/README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
OpenTelemetry instrumentation for the [AWS Durable Execution SDK for Python](https://github.com/aws/aws-durable-execution-sdk-python).
44

5+
> **Note:** v0.1.0 reserves the package name. Instrumentation lands in v0.2.0.
6+
57
## Overview
68

7-
This package provides automatic OpenTelemetry tracing for durable execution workflows, giving you visibility into step execution, waits, retries, and overall workflow performance.
9+
This package will provide automatic OpenTelemetry tracing for durable execution workflows, giving you visibility into step execution, waits, retries, and overall workflow performance.
810

911
## Installation
1012

@@ -15,20 +17,12 @@ pip install aws-durable-execution-sdk-python-otel
1517
## Quick Start
1618

1719
```python
18-
from aws_durable_execution_sdk_python import DurableContext, durable_execution
19-
from aws_durable_execution_sdk_python_otel import instrument_durable_execution
20-
21-
# Instrument the SDK (call once at module load)
22-
instrument_durable_execution()
20+
from aws_durable_execution_sdk_python_otel import __version__
2321

24-
@durable_execution
25-
def handler(event: dict, context: DurableContext) -> dict:
26-
# Steps, waits, and invokes are automatically traced
27-
result = context.step(lambda _: do_work(), name="my-step")
28-
return {"result": result}
22+
print(__version__)
2923
```
3024

31-
## Features
25+
## Planned Features (v0.2.0)
3226

3327
- Automatic span creation for steps, waits, invokes, and child contexts
3428
- Replay-aware tracing (distinguishes fresh executions from replays)

packages/aws-durable-execution-sdk-python-otel/pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,3 @@ lines-after-imports = 2
8080
"SIM117",
8181
"TRY301",
8282
]
83-
84-
[tool.pytest.ini_options]
85-
testpaths = ["tests"]
86-
addopts = "-v --strict-markers"

packages/aws-durable-execution-sdk-python/pyproject.toml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,3 @@ lines-after-imports = 2
7373
"SIM117",
7474
"TRY301",
7575
]
76-
77-
[tool.pytest.ini_options]
78-
# Declare custom markers to avoid warnings with --strict-markers
79-
markers = [
80-
# Used for test selection with -m example
81-
"example: marks tests as example tests (deselect with '-m \"not example\"')",
82-
# Used for configuration - passes handler and lambda_function_name to durable_runner fixture
83-
"durable_execution: marks tests that use the durable_runner fixture (not used for test selection)",
84-
]
85-
# Default test discovery paths
86-
testpaths = ["tests"]
87-
# Default options for all test runs
88-
addopts = "-v --strict-markers"

packages/aws-durable-execution-sdk-python/tests/operation/map_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,9 +1162,9 @@ def create_id(self, i):
11621162
parent_call = mock_serialize.call_args_list[2]
11631163
assert parent_call[1]["serdes"] is custom_serdes
11641164
assert isinstance(parent_call[1]["value"], BatchResult)
1165+
assert parent_call[1]["value"] is result
11651166
finally:
11661167
importlib.reload(child)
1167-
assert parent_call[1]["value"] is result
11681168

11691169

11701170
def test_map_with_empty_list_should_exit_early():

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@ cov = "pytest --cov-report=term-missing --cov {args}"
2222
examples-integration = "pytest --runner-mode=cloud -m example packages/aws-durable-execution-sdk-python-examples/test/ -v {args}"
2323

2424
[tool.pytest.ini_options]
25-
addopts = "--import-mode=importlib"
25+
# Declare custom markers to avoid warnings with --strict-markers
26+
addopts = "-v --strict-markers --import-mode=importlib"
2627
testpaths = [
2728
"packages/aws-durable-execution-sdk-python/tests",
2829
"packages/aws-durable-execution-sdk-python-otel/tests",
2930
"packages/aws-durable-execution-sdk-python-examples/test",
3031
]
31-
32+
markers = [
33+
# Used for test selection with -m example
34+
"example: marks tests as example tests (deselect with '-m \"not example\"')",
35+
# Used for configuration - passes handler and lambda_function_name to durable_runner fixture
36+
"durable_execution: marks tests that use the durable_runner fixture (not used for test selection)",
37+
]
3238

3339
[tool.hatch.envs.types]
3440
workspace.members = ["packages/*"]

0 commit comments

Comments
 (0)