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 Feb 22, 2023
2 parents da6e906 + 6b1e179 commit 916db74
Show file tree
Hide file tree
Showing 326 changed files with 4,843 additions and 1,787 deletions.
28 changes: 28 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: chore
include: scope
reviewers:
- aws/serverless-application-experience-sbt

- package-ecosystem: "pip"
directory: "/requirements"
schedule:
interval: "weekly"
target-branch: "develop"
commit-message:
prefix: chore
include: scope
reviewers:
- aws/serverless-application-experience-sbt
ignore:
# The dependencies are intentionally pinned to certain
# version ranges for specific Python versions
- dependency-name: "flake8"
- dependency-name: "isort"
79 changes: 76 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Tests
name: Build And Test

on:
pull_request:
Expand All @@ -7,8 +7,24 @@ on:
- "feat/*"

jobs:
build:
name: ${{ matrix.os }} / ${{ matrix.python }}
run-workflow:
name: PR Workflow
if: always()
runs-on: ubuntu-latest
needs:
- make-pr
- integration_tests-buildcmd_rust
steps:
- name: report-failure
if : |
needs.make-pr.result != 'success' ||
needs.integration_tests-buildcmd_rust.result != 'success'
run: exit 1
- name: report-success
run: exit 0

make-pr:
name: make pr / ${{ matrix.os }} / ${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -29,3 +45,60 @@ jobs:
- run: test -f "./.github/ISSUE_TEMPLATE/Bug_report.md" # prevent Bug_report.md from being renamed or deleted
- run: make init
- run: make pr

integration_tests-buildcmd_rust:
name: Integration Tests / buildcmd - Rust / ${{ matrix.os }} / ${{ matrix.python }}
runs-on: ${{ matrix.os }}
env:
AWS_DEFAULT_REGION: us-east-1
SAM_CLI_DEV: "1"
CARGO_LAMBDA_VERSION: 0.17.1
CI_OVERRIDE: "1"
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# TODO(hawflau): investigate and fix flakiness on Windows
# - windows-latest
python:
- "3.7"
- "3.8"
- "3.9"
rust:
- stable
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

# Install and configure Rust
- name: Install rustup
run: |
: install rustup if needed
if ! command -v rustup &> /dev/null ; then
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
fi
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: rustup toolchain install ${{ matrix.rust }}
run: rustup toolchain install ${{ matrix.rust }} --profile minimal --no-self-update
- run: rustup default ${{ matrix.rust }}
- run: |
: disable incremental compilation
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
- run: |
: enable colors in Cargo output
echo CARGO_TERM_COLOR=always >> $GITHUB_ENV
# Install and configure Cargo Lambda
- name: Install Cargo Lambda
run: pip install cargo-lambda==$CARGO_LAMBDA_VERSION
- run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- run: make init
- run: pytest -vv -n 4 tests/integration/buildcmd/test_build_cmd_rust.py
2 changes: 1 addition & 1 deletion .github/workflows/update_app_templates_hash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ jobs:
cd aws-sam-cli
git push --force origin update_app_templates_hash
gh pr list --repo aws/aws-sam-cli --head update_app_templates_hash --json id --jq length | grep 1 && exit 0 # exit if there is existing pr
gh pr create --base develop --head update_app_templates_hash --title "feat: update SAM CLI with latest App Templates commit hash" --body "This PR & commit is automatically created from App Templates repo to update the SAM CLI with latest hash of the App Templates."
gh pr create --base develop --head update_app_templates_hash --title "feat: update SAM CLI with latest App Templates commit hash" --body "This PR & commit is automatically created from App Templates repo to update the SAM CLI with latest hash of the App Templates." --label "pr/internal"
Loading

0 comments on commit 916db74

Please sign in to comment.