Skip to content

feat: example scripts moved to root#418

Merged
SilanHe merged 3 commits into
mainfrom
fix/deploy-examples-otel
Jun 4, 2026
Merged

feat: example scripts moved to root#418
SilanHe merged 3 commits into
mainfrom
fix/deploy-examples-otel

Conversation

@SilanHe
Copy link
Copy Markdown
Contributor

@SilanHe SilanHe commented Jun 4, 2026

Issue #, if available:

Description of changes:

Moving the scripts defined in the aws-durable-execution-sdk-python-examples/pyproject.toml to the root pyproject.toml for consistency.

Also fixing a ci bug from this PR. Frank is adding dependency on otel package to examples but our ci only installs the sdk locally. Added otel package as part of install.

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

@SilanHe
Copy link
Copy Markdown
Contributor Author

SilanHe commented Jun 4, 2026

I think think we also need to add ../aws-durable-execution-sdk-python-otel as well

hatch run -- examples:pip install -e ../aws-durable-execution-sdk-python

https://github.com/aws/aws-durable-execution-sdk-python/actions/runs/26921643616/workflow?pr=417#L63

but I'm leaving it as is for now to repro issue Frank ran in to here

@SilanHe SilanHe marked this pull request as ready for review June 4, 2026 17:26
@SilanHe SilanHe marked this pull request as draft June 4, 2026 17:27
@SilanHe SilanHe marked this pull request as ready for review June 4, 2026 17:39
@zhongkechen
Copy link
Copy Markdown
Contributor

We do need a long term solution for examples. Maybe track it in this issue #404

Comment thread pyproject.toml
get = "python packages/aws-durable-execution-sdk-python-examples/cli.py get {args}"
history = "python packages/aws-durable-execution-sdk-python-examples/cli.py history {args}"
policy = "python packages/aws-durable-execution-sdk-python-examples/cli.py policy {args}"
list = "python packages/aws-durable-execution-sdk-python-examples/cli.py list"
Copy link
Copy Markdown
Contributor

@zhongkechen zhongkechen Jun 4, 2026

Choose a reason for hiding this comment

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

Looks weird to me running a script directly from a sub-package at the root level. Hoping for a nicer solution: #404 or #383

@SilanHe SilanHe merged commit 82bd79d into main Jun 4, 2026
66 of 67 checks passed
@SilanHe SilanHe deleted the fix/deploy-examples-otel branch June 4, 2026 17:58
working-directory: ./packages/aws-durable-execution-sdk-python-examples
run: |
hatch run -- examples:pip install -e ../aws-durable-execution-sdk-python
hatch run -- examples:pip install -e packages/aws-durable-execution-sdk-python packages/aws-durable-execution-sdk-python-otel
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is the crux of the ci fix

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