Skip to content

Commit

Permalink
Pin jsonschema for Lambda Layer to version 4.17.3
Browse files Browse the repository at this point in the history
This was not necessary because we used Lambda runtime Python 3.9, which contains boto3-1.26.90, which does not rely on jsonschema. After using Lambda runtime Python 3.12, we are using a newer boto3 version and reply on jsonschema. We need to pin the jsonschema because of a known issue: aws/aws-cdk#26300

Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-pcluste committed Dec 26, 2023
1 parent be254b1 commit f00e4b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration-tests/conftest_resource_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def install_pc(basepath, pc_version):
cli_dir = root / "cli"
try:
logger.info("installing ParallelCluster packages...")
subprocess.check_call([sys.executable, "-m", "pip", "install", f"{cli_dir}[awslambda]", "-t", tempdir])
subprocess.check_call(
[sys.executable, "-m", "pip", "install", "jsonschema==4.17.3", f"{cli_dir}[awslambda]", "-t", tempdir]
)
# The following are provided by the lambda runtime
shutil.rmtree(tempdir / "botocore")
shutil.rmtree(tempdir / "boto3")
Expand Down

0 comments on commit f00e4b3

Please sign in to comment.