Skip to content

Conversation

@bchampp
Copy link
Member

@bchampp bchampp commented Oct 4, 2025

Issue #, if available:

Description of changes:

  1. Created a hatch environment and a SAM template to test durable function examples locally.
  2. Added a GitHub action to deploy the examples to lambda and invoke them.

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

@bchampp bchampp force-pushed the examples-deployment branch from 757b376 to ae217b2 Compare October 4, 2025 21:53
- Add examples catalog with hello_world function
- Add build script to copy SDK dependencies from hatch environment
- Add deployment script with AWS Lambda integration
- Add SAM template for local testing
- Add GitHub workflow for automated deployment
- Add hatch examples environment with build/deploy/clean commands
Dependencies are handled by the build script copying from hatch environment
- Make build.py executable
- Fix unused arguments in hello_world.py
- Fix error message formatting in deploy.py
Keep this PR focused only on examples deployment infrastructure
- Add ruff configuration to allow print statements in examples scripts
- Fix code formatting in deploy.py
Required for git+ssh:// dependency URLs to work in GitHub Actions
Use LANGUAGE_SDK_SSH_PRIVATE_KEY and TESTING_SSH_PRIVATE_KEY to match other workflows
- Use catalog name and strip spaces (HelloWorld-Python-PR-13)
- Fix GitHub output format using heredoc to avoid JSON parsing issues
- Parse full example objects to get both name and handler
@bchampp bchampp force-pushed the examples-deployment branch from 4a4123d to c668700 Compare October 4, 2025 22:20
- Invoke deployed functions with test payload
- List durable executions and get execution history
- Test job runs in parallel for each deployed function
- Cleanup depends on both deploy and test jobs
@bchampp bchampp force-pushed the examples-deployment branch from c668700 to 5f06d15 Compare October 4, 2025 22:22
Copy link
Member

@yaythomas yaythomas left a comment

Choose a reason for hiding this comment

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

Remember to squash commits please 😁

@bchampp bchampp merged commit 09f2eb4 into main Oct 4, 2025
9 of 10 checks passed
@bchampp bchampp deleted the examples-deployment branch October 4, 2025 23:32
bchampp added a commit that referenced this pull request Oct 6, 2025
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.

2 participants