Skip to content

Conversation

@MEPalma
Copy link
Contributor

@MEPalma MEPalma commented Jul 8, 2025

Following recent changes to the LDM that allow the debug-enabled Docker container to remain running between invocations, this PR updates the Python-based LDM samples to use a new wait_for_debug_client logic. This update enables the debug client to stay connected and also reconnect multiple times to the container. The samples have been manually validated against the latest LDM changes.

* Unrelated test failures

@MEPalma MEPalma requested review from dfangl and dominikschubert July 8, 2025 14:42
@MEPalma MEPalma self-assigned this Jul 8, 2025
@MEPalma MEPalma marked this pull request as ready for review July 17, 2025 08:07
@MEPalma MEPalma requested review from joe4dev and removed request for dfangl and dominikschubert July 17, 2025 11:47
Copy link
Contributor

@joe4dev joe4dev left a comment

Choose a reason for hiding this comment

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

LGTM.

Thank you for pro-actively updating the samples. I tested the base case and the runtime-level debugger attachment is a nice quality of life improvement 🙌

echo "Invoking the Lambda function, attempt $i."
AWS_MAX_ATTEMPTS=1 \
awslocal lambda invoke \
--cli-binary-format raw-in-base64-out \
Copy link
Contributor

Choose a reason for hiding this comment

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

This parameter requires the AWS CLI v2. It fails with the default AWS CLI v1 installation still advertised in awslocal

Copy link
Contributor

Choose a reason for hiding this comment

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

Adding a comment to clarify this conditional parameter might be a quick fix here (same for all run.sh scripts)

@MEPalma MEPalma merged commit a28373f into master Jul 22, 2025
1 check failed
@MEPalma MEPalma deleted the MEP-LDM-update_python_wait branch July 22, 2025 16:09
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