feat: upgrade default Python runtime to PYTHON_3_14#837
Merged
Conversation
Add PYTHON_3_14 as a supported runtime version and make it the default for new agents and MCP tools. Updates schema enums, defaults, UI options, packaging fallbacks, import mappings, and tests. Verified end-to-end: deployed a runtime with PYTHON_3_14 to AgentCore and confirmed successful invocation.
Contributor
Package TarballHow to installnpm install https://github.com/aws/agentcore-cli/releases/download/pr-837-tarball/aws-agentcore-0.8.0.tgz |
Contributor
Coverage Report
|
The JSON schema file is auto-regenerated during the release workflow. Direct changes are rejected by the schema-check CI job.
Contributor
1. Missed defaults/fallbacksThree files still hardcode
2. Tests that should include PYTHON_3_14
3. Docs still showing PYTHON_3_13
|
- Update packCodeZipSync fallback in packaging/index.ts - Add PYTHON_3_14 to llm-compacted/mcp.ts PythonRuntime type - Update hardcoded runtimeVersion in AgentPrimitive.tsx - Add PYTHON_3_14 to agent-env schema test - Update TUI harness fixture default - Update docs examples and runtime version list
Contributor
Author
|
Thanks for the thorough review! All three categories addressed in 604f025: 1. Missed defaults/fallbacks — Fixed all three:
2. Tests — Both updated:
3. Docs — All examples and the runtime versions list updated:
All 3297 unit tests pass, pre-commit hooks (lint, prettier, typecheck) clean. |
Define DEFAULT_PYTHON_VERSION once in schema/constants.ts and re-export from the three TUI screen files that previously defined their own copy. Replace hardcoded 'PYTHON_3_14' fallbacks in packaging and AgentPrimitive with the shared constant. Future runtime version bumps now require a single-line change.
… logic When numpy lacks pre-built wheels for a specific manylinux platform on CPython 3.14, uv reports "no wheels with a matching Python ABI tag" or "has no usable wheels" instead of the platform-specific errors the retry logic was matching. This caused the packager to hard-fail on the first platform candidate instead of retrying with a newer manylinux version that does have compatible wheels.
aidandaly24
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Upgrade the default Python runtime version from
PYTHON_3_13toPYTHON_3_14for new agents and MCP tools.Changes:
PYTHON_3_14to thePythonRuntimeSchemaZod enum and all related type definitionsDEFAULT_PYTHON_VERSION) toPYTHON_3_14PYTHON_3_14as "Latest" in the MCP Python version UI picker, demote 3.13Related Issue
Merge order: The companion CDK constructs PR must be merged and released first, otherwise CDK synth will reject
PYTHON_3_14as an unknown runtime version.Documentation PR
N/A
Type of Change
Testing
How have you tested the change?
npm run test:unitandnpm run test:integnpm run typechecknpm run lintsrc/assets/, I rannpm run test:update-snapshotsand committed the updated snapshotsEnd-to-end verification:
agentcore create --defaults— confirmedruntimeVersion: "PYTHON_3_14"in generatedagentcore.json"Runtime": "PYTHON_3_14"on theAWS::BedrockAgentCore::RuntimeresourceE2E CI note: The
e2e (main)ande2e (npm)jobs will fail until the CDK constructs PR (https://github.com/aws/agentcore-l3-cdk-constructs/pull/146) is merged and released. The E2E tests install CDK constructs separately from npm or the CDK main branch, which don't yet includePYTHON_3_14support.Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.