Skip to content

Update os distro and runtime versions in compatibility tests #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ setup-codebuild-agent:

.PHONY: test-smoke
test-smoke: setup-codebuild-agent
CODEBUILD_IMAGE_TAG=codebuild-agent tests/integration/codebuild-local/test_one.sh tests/integration/codebuild/buildspec.os.alpine.1.yml alpine 3.12 3.8
CODEBUILD_IMAGE_TAG=codebuild-agent tests/integration/codebuild-local/test_one.sh tests/integration/codebuild/buildspec.os.alpine.yml alpine 3.15 3.9

.PHONY: test-integ
test-integ: setup-codebuild-agent
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You can include this package in your preferred base image to make that base imag

## Requirements
The Python Runtime Interface Client package currently supports Python versions:
- 3.6.x up to and including 3.9.x
- 3.7.x up to and including 3.9.x

## Usage

Expand Down Expand Up @@ -58,7 +58,7 @@ Example Dockerfile (to keep the image light we use a multi-stage build):
# Define custom function directory
ARG FUNCTION_DIR="/function"

FROM python:buster as build-image
FROM public.ecr.aws/docker/library/python:buster as build-image

# Include global arg in this stage of the build
ARG FUNCTION_DIR
Expand All @@ -82,7 +82,7 @@ RUN pip install \
awslambdaric


FROM python:buster
FROM public.ecr.aws/docker/library/python:buster

# Include global arg in this stage of the build
ARG FUNCTION_DIR
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/codebuild-local/Dockerfile.agent
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM amazonlinux:2
FROM public.ecr.aws/amazonlinux/amazonlinux:2

RUN amazon-linux-extras enable docker && \
yum clean metadata && \
Expand Down
111 changes: 0 additions & 111 deletions tests/integration/codebuild/buildspec.os.alpine.1.yml

This file was deleted.

113 changes: 0 additions & 113 deletions tests/integration/codebuild/buildspec.os.alpine.2.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:
variables:
OS_DISTRIBUTION: alpine
PYTHON_LOCATION: "/usr/local/bin/python"
TEST_NAME: "aws-lambda-python-rtc-alpine-3-test"
TEST_NAME: "aws-lambda-python-rtc-alpine-test"
batch:
build-matrix:
static:
Expand All @@ -15,9 +15,10 @@ batch:
env:
variables:
DISTRO_VERSION:
- "3.12"
- "3.13"
- "3.14"
- "3.15"
RUNTIME_VERSION:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
Expand Down
1 change: 0 additions & 1 deletion tests/integration/codebuild/buildspec.os.amazonlinux.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ batch:
DISTRO_VERSION:
- "1"
RUNTIME_VERSION:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
Expand Down
1 change: 0 additions & 1 deletion tests/integration/codebuild/buildspec.os.amazonlinux.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ batch:
DISTRO_VERSION:
- "2"
RUNTIME_VERSION:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
Expand Down
Loading