Skip to content

fix(core): detect bundled SDK via version stamp - #717

Open
nvasiu wants to merge 1 commit into
mainfrom
feat/bundled-stamp-detection
Open

fix(core): detect bundled SDK via version stamp#717
nvasiu wants to merge 1 commit into
mainfrom
feat/bundled-stamp-detection

Conversation

@nvasiu

@nvasiu nvasiu commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

N/A

Description of changes:

The managed runtime now stamps a +bundled local version label onto the installed durable SDK. This update reads the stamp to determine if the SDK is installed in the managed runtime (replacing the old method of checking the installation folder, which was unreliable).

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

@nvasiu
nvasiu deployed to ai-pr-review-runtime September 10, 2026 18:04 — with GitHub Actions Active
@nvasiu
nvasiu deployed to ai-pr-review-runtime September 10, 2026 18:12 — with GitHub Actions Active
return module_file.startswith("/var/lang/")
def _is_bundled(version: str = __version__) -> bool:
"""True if the managed runtime stamped a +bundled label onto this install."""
return "+bundled" in version

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Codex AI review · Finding arf_v1_m4vdthbymtstfubzqehpcuftc7

[P3] Match the bundled label exactly

This substring check also accepts valid, distinct local versions such as 2.0.0+bundleddebug, causing customer builds to be reported as managed-runtime -bundled installs. Compare against the exact +bundled suffix and add a negative test for a label beginning with bundled.

Suggested change
return "+bundled" in version
return version.endswith("+bundled")

@github-actions

Copy link
Copy Markdown
Contributor

Codex AI review

Found one low-severity issue at packages/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python/lambda_service.py:43.

Reviewed commit 7469710a1645e9c89e3bfbfadaa6cf92b108ea54. Workflow run

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.

1 participant