Skip to content

Commit f0b1f6e

Browse files
authored
[Python GenAI Sample App] Temporarily hardcode langchain to older working version 0.3.27 (#472)
*Issue description:* - python has genai workflow failures https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/18730013353/job/53426255842 - Looks like there are a lot of Langchain changes around the time of when the failures started happening: https://pypi.org/project/langchain/#history *Description of changes:* - Temporarily hardcode langchain to older working version 0.3.27 *Rollback procedure:* We safely revert this commit if needed. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 4ca5d60 commit f0b1f6e

File tree

1 file changed

+3
-1
lines changed
  • terraform/python/ec2/adot-genai

1 file changed

+3
-1
lines changed

terraform/python/ec2/adot-genai/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ unzip genai-service.zip
8484
python3.12 -m pip install fastapi uvicorn[standard] --no-cache-dir
8585
python3.12 -m pip install boto3 botocore setuptools --no-cache-dir
8686
python3.12 -m pip install opentelemetry-api opentelemetry-sdk opentelemetry-semantic-conventions --no-cache-dir
87-
python3.12 -m pip install langchain langchain-community langchain_aws --no-cache-dir
87+
88+
# Temporarily hardcode langchain to 0.3.27, as we suspect later versions break the canary tests for gen-ai
89+
python3.12 -m pip install langchain==0.3.27 langchain-community langchain_aws --no-cache-dir
8890
python3.12 -m pip install python-dotenv openlit --no-cache-dir
8991
python3.12 -m pip install openinference-instrumentation-langchain --no-cache-dir
9092
${var.get_adot_wheel_command}

0 commit comments

Comments
 (0)