Skip to content

Commit

Permalink
Merge from aws/aws-sam-cli/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sam-cli-bot authored Oct 30, 2023
2 parents 1facef0 + 68195b9 commit cde5759
Show file tree
Hide file tree
Showing 25 changed files with 844 additions and 617 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
- ubuntu-latest
- windows-latest
python:
- "3.7"
- "3.8"
- "3.9"
- "3.11"
Expand Down Expand Up @@ -108,7 +107,6 @@ jobs:
- ubuntu-latest
- windows-latest
python:
- "3.7"
- "3.8"
- "3.9"
# folders that is commented below requires credentials, no need to spare time to run them
Expand Down Expand Up @@ -151,7 +149,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/setup-java@v3
Expand Down Expand Up @@ -195,7 +193,6 @@ jobs:
- ubuntu-latest
- windows-latest
python:
- "3.7"
- "3.8"
- "3.9"
- "3.11"
Expand Down Expand Up @@ -227,11 +224,11 @@ jobs:
with:
# These are the versions of Python that correspond to the supported Lambda runtimes
python-version: |
3.11
3.10
3.9
3.8
3.7
3.8
3.9
3.10
3.11
- name: Stop Docker Linux
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/update-reproducibles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ on:
pull_request:
branches: [develop]
paths:
- requirements/base.txt # run this GHA only if requirements file is changed
# run this GHA if the following files have changed
- requirements/base.txt
- requirements/reproducible-linux.txt
- requirements/reproducible-mac.txt
- requirements/reproducible-win.txt

jobs:
update-reqs:
Expand All @@ -21,7 +25,7 @@ jobs:
python: 3.8
target: update-reproducible-mac-reqs
- os: windows-latest
python: 3.8
python: 3.11
target: update-reproducible-win-reqs
max-parallel: 1
runs-on: ${{ matrix.os }}
Expand Down
56 changes: 22 additions & 34 deletions appveyor-linux-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ configuration:
- BuildIntegTestingArm64
- BuildIntegTestingArm64Java
- AllTerraformBuildTesting
- DeployIntegTesting
- PackageIntegTesting
- DeleteIntegTesting
- PackageAndDeleteAndDeployIntegTesting
- SyncIntegTesting
- LocalIntegTesting
- EndToEndTesting
- LocalInvokeIntegTesting
- LocalStartIntegTesting
# other Integration testing, Dev, regression and smoke testing
- OtherTesting
- OtherAndEndToEndTesting

environment:
PYTHON_HOME: "$HOME/venv3.11/bin"
Expand Down Expand Up @@ -214,32 +212,14 @@ for:
- sh: "pytest -vv -n 4 tests/integration/buildcmd/test_build_terraform_applications.py --json-report --json-report-file=TEST_REPORT-integration-buildcmd.json"
- sh: "pytest -vv -n 4 tests/integration/buildcmd/test_build_terraform_applications_other_cases.py --json-report --json-report-file=TEST_REPORT-integration-buildcmd.json"

# Integ testing deploy
# Integ testing package & delete
-
matrix:
only:
- configuration: DeployIntegTesting
- configuration: PackageAndDeleteAndDeployIntegTesting

test_script:
- sh: "pytest -vv tests/integration/deploy -n 4 --reruns 4 --dist=loadgroup --json-report --json-report-file=TEST_REPORT-integration-deploy.json"

# Integ testing package
-
matrix:
only:
- configuration: PackageIntegTesting

test_script:
- sh: "pytest -vv tests/integration/package -n 4 --reruns 4 --json-report --json-report-file=TEST_REPORT-integration-package.json"

# Integ testing delete
-
matrix:
only:
- configuration: DeleteIntegTesting

test_script:
- sh: "pytest -vv tests/integration/delete -n 4 --reruns 4 --json-report --json-report-file=TEST_REPORT-integration-delete.json"
- sh: "pytest -vv tests/integration/package tests/integration/delete tests/integration/deploy --dist=loadgroup -n 4 --reruns 4 --json-report --json-report-file=TEST_REPORT-integration-package-delete-deploy.json"

# Integ testing sync
-
Expand All @@ -254,7 +234,7 @@ for:
-
matrix:
only:
- configuration: LocalIntegTesting
- configuration: LocalInvokeIntegTesting

test_script:
# install Terraform
Expand All @@ -265,23 +245,31 @@ for:
- sh: "sudo mv /opt/terraform/terraform /usr/local/bin/"
- sh: "terraform -version"

- sh: "pytest -vv tests/integration/local --json-report --json-report-file=TEST_REPORT-integration-local.json"
- sh: "pytest -vv tests/integration/local/invoke tests/integration/local/generate_event --json-report --json-report-file=TEST_REPORT-integration-local.json"

# End-to-end testing
# Integ testing local
-
matrix:
only:
- configuration: EndToEndTesting
- configuration: LocalStartIntegTesting

test_script:
- sh: "pytest -vv -n 4 --reruns 5 --dist loadscope tests/end_to_end --json-report --json-report-file=TEST_REPORT-end-to-end.json"
# install Terraform
- sh: "sudo apt update --allow-releaseinfo-change"
- sh: "TER_VER=`curl -s https://api.github.com/repos/hashicorp/terraform/releases/latest | grep tag_name | cut -d: -f2 | tr -d \\\"\\,\\v | awk '{$1=$1};1'`"
- sh: "wget https://releases.hashicorp.com/terraform/${TER_VER}/terraform_${TER_VER}_linux_amd64.zip -P /tmp"
- sh: "sudo unzip -d /opt/terraform /tmp/terraform_${TER_VER}_linux_amd64.zip"
- sh: "sudo mv /opt/terraform/terraform /usr/local/bin/"
- sh: "terraform -version"

- sh: "pytest -vv tests/integration/local/start_api tests/integration/local/start_lambda --json-report --json-report-file=TEST_REPORT-integration-local-start.json"

# Other testing
-
matrix:
only:
- configuration: OtherTesting
- configuration: OtherAndEndToEndTesting

test_script:
- sh: "pytest -vv -n 4 --reruns 4 --dist loadgroup tests/integration --ignore=tests/integration/buildcmd --ignore=tests/integration/delete --ignore=tests/integration/deploy --ignore=tests/integration/package --ignore=tests/integration/sync --ignore=tests/integration/local --json-report --json-report-file=TEST_REPORT-integration-others.json"
- sh: "pytest -vv -n 4 --reruns 4 --dist loadgroup tests/integration tests/end_to_end --ignore=tests/integration/buildcmd --ignore=tests/integration/delete --ignore=tests/integration/deploy --ignore=tests/integration/package --ignore=tests/integration/sync --ignore=tests/integration/local --json-report --json-report-file=TEST_REPORT-integration-others.json"
- sh: "pytest -vv tests/regression --json-report --json-report-file=TEST_REPORT-regression.json"
44 changes: 21 additions & 23 deletions appveyor-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ configuration:
- BuildIntegTestingArm64
- BuildIntegTestingArm64Java
- AllTerraformBuildTesting
- DeployIntegTesting
- PackageAndDeleteIntegTesting
- PackageAndDeleteAndDeployIntegTesting
- SyncIntegTesting
- LocalIntegTesting
- EndToEndTesting
- LocalInvokeIntegTesting
- LocalStartIntegTesting
# other Integration testing, Dev, regression and smoke testing
- OtherTesting
- OtherAndEndToEndTesting

environment:
PYTHON_HOME: "$HOME/venv3.8/bin"
Expand Down Expand Up @@ -202,23 +201,14 @@ for:
- sh: "pytest -vv -n 4 tests/integration/buildcmd/test_build_terraform_applications.py --json-report --json-report-file=TEST_REPORT-integration-buildcmd.json"
- sh: "pytest -vv -n 4 tests/integration/buildcmd/test_build_terraform_applications_other_cases.py --json-report --json-report-file=TEST_REPORT-integration-buildcmd.json"

# Integ testing deploy
-
matrix:
only:
- configuration: DeployIntegTesting

test_script:
- sh: "pytest -vv tests/integration/deploy -n 4 --reruns 4 --dist=loadgroup --json-report --json-report-file=TEST_REPORT-integration-deploy.json"

# Integ testing package & delete
-
matrix:
only:
- configuration: PackageAndDeleteIntegTesting
- configuration: PackageAndDeleteAndDeployIntegTesting

test_script:
- sh: "pytest -vv tests/integration/package tests/integration/delete -n 4 --reruns 4 --json-report --json-report-file=TEST_REPORT-integration-package-delete.json"
- sh: "pytest -vv tests/integration/package tests/integration/delete tests/integration/deploy --dist=loadgroup -n 4 --reruns 4 --json-report --json-report-file=TEST_REPORT-integration-package-delete-deploy.json"

# Integ testing sync
-
Expand All @@ -233,7 +223,7 @@ for:
-
matrix:
only:
- configuration: LocalIntegTesting
- configuration: LocalInvokeIntegTesting

test_script:
# install Terraform
Expand All @@ -244,23 +234,31 @@ for:
- sh: "sudo mv /opt/terraform/terraform /usr/local/bin/"
- sh: "terraform -version"

- sh: "pytest -vv tests/integration/local --json-report --json-report-file=TEST_REPORT-integration-local.json"
- sh: "pytest -vv tests/integration/local/invoke tests/integration/local/generate_event --json-report --json-report-file=TEST_REPORT-integration-local.json"

# End-to-end testing
# Integ testing local
-
matrix:
only:
- configuration: EndToEndTesting
- configuration: LocalStartIntegTesting

test_script:
- sh: "pytest -vv -n 4 --reruns 5 --dist loadscope tests/end_to_end --json-report --json-report-file=TEST_REPORT-end-to-end.json"
# install Terraform
- sh: "sudo apt update --allow-releaseinfo-change"
- sh: "TER_VER=`curl -s https://api.github.com/repos/hashicorp/terraform/releases/latest | grep tag_name | cut -d: -f2 | tr -d \\\"\\,\\v | awk '{$1=$1};1'`"
- sh: "wget https://releases.hashicorp.com/terraform/${TER_VER}/terraform_${TER_VER}_linux_amd64.zip -P /tmp"
- sh: "sudo unzip -d /opt/terraform /tmp/terraform_${TER_VER}_linux_amd64.zip"
- sh: "sudo mv /opt/terraform/terraform /usr/local/bin/"
- sh: "terraform -version"

- sh: "pytest -vv tests/integration/local/start_api tests/integration/local/start_lambda --json-report --json-report-file=TEST_REPORT-integration-local-start.json"

# Other testing
-
matrix:
only:
- configuration: OtherTesting
- configuration: OtherAndEndToEndTesting

test_script:
- sh: "pytest -vv -n 4 --reruns 4 --dist loadgroup tests/integration --ignore=tests/integration/buildcmd --ignore=tests/integration/delete --ignore=tests/integration/deploy --ignore=tests/integration/package --ignore=tests/integration/sync --ignore=tests/integration/local --json-report --json-report-file=TEST_REPORT-integration-others.json"
- sh: "pytest -vv -n 4 --reruns 4 --dist loadgroup tests/integration tests/end_to_end --ignore=tests/integration/buildcmd --ignore=tests/integration/delete --ignore=tests/integration/deploy --ignore=tests/integration/package --ignore=tests/integration/sync --ignore=tests/integration/local --json-report --json-report-file=TEST_REPORT-integration-others.json"
- sh: "pytest -vv tests/regression --json-report --json-report-file=TEST_REPORT-regression.json"
Loading

0 comments on commit cde5759

Please sign in to comment.