Skip to content
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

Test/binary canaries #5709

Merged
merged 71 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
792c6da
chore: Update CFN Lint version to support python 3.11 (#5651)
ConnorKirk Jul 31, 2023
e0de998
fix: Require file label to run before maintainers (#5656)
lucashuy Jul 31, 2023
275d44e
Add Windows config
mildaniel Jul 31, 2023
d0d68da
Fix formatting
mildaniel Jul 31, 2023
139964d
Merge changes from upstream
mildaniel Jul 31, 2023
f171723
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Jul 31, 2023
0ae07bb
Update config
mildaniel Jul 31, 2023
eeee79b
test
mildaniel Aug 1, 2023
91318ea
Update config
mildaniel Aug 1, 2023
99d80c5
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 1, 2023
b378f79
Update config
mildaniel Aug 1, 2023
8ba209a
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 1, 2023
88a21e1
Update config
mildaniel Aug 1, 2023
b3fe097
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 1, 2023
a5150f2
Update config
mildaniel Aug 1, 2023
1e14e6f
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 1, 2023
98f2cc8
Update config
mildaniel Aug 1, 2023
d264edd
chore: update aws_lambda_builders to 1.36.0 (#5655)
github-actions[bot] Aug 1, 2023
7457876
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 1, 2023
c754867
Update config
mildaniel Aug 1, 2023
bc08fa0
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 1, 2023
d854da7
Update config
mildaniel Aug 1, 2023
253852c
fix(invoke): Write in UTF-8 string instead of bytes (#5642)
jfuss Aug 1, 2023
27eb2e1
chore(deps): bump cryptography from 41.0.2 to 41.0.3 in /requirements…
dependabot[bot] Aug 2, 2023
e7413ae
Add linux config
mildaniel Aug 2, 2023
dfca9dd
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
135da3a
fix(test): Force reading file with utf8 in tests for windows (#5679)
jfuss Aug 2, 2023
b282ceb
fix(test): Increase max execution time for timeout tests (#5680)
jfuss Aug 2, 2023
3db9c79
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
78fe5a2
Update install links
mildaniel Aug 2, 2023
44d4bfa
Update linux config
mildaniel Aug 2, 2023
43332c4
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
b22459d
Update linux config
mildaniel Aug 2, 2023
5d8cb59
Resolve merge conflicts
mildaniel Aug 2, 2023
a263761
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
1ba36ac
Update linux config
mildaniel Aug 2, 2023
679d785
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
54972ab
Update linux config
mildaniel Aug 2, 2023
b10bd58
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
66a85e6
Update linux config
mildaniel Aug 2, 2023
f2bcf8b
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
fad6c46
Update linux config
mildaniel Aug 2, 2023
27ea704
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
748c100
Update linux config
mildaniel Aug 2, 2023
b994033
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
125f695
Update linux config
mildaniel Aug 2, 2023
2c953fc
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
6d093b2
Update linux config
mildaniel Aug 2, 2023
6ad913a
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
64ce0d8
Update linux config
mildaniel Aug 2, 2023
622bd18
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 2, 2023
abe74fb
Update linux config
mildaniel Aug 2, 2023
8ee525e
Merge branch 'develop' of https://github.com/aws/aws-sam-cli into tes…
mildaniel Aug 3, 2023
8b67713
chore: auto update reproducible requirements when there is a dependen…
mndeveci Aug 3, 2023
1af6375
fix: Repair failing integration test (#5698)
Leo10Gama Aug 3, 2023
841b2f4
Update Windows config
mildaniel Aug 3, 2023
766e036
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 3, 2023
e858489
fix: link the API gateway resource parent to either rest api or anoth…
moelasmar Aug 3, 2023
a3472d5
Update Windows config
mildaniel Aug 3, 2023
ed573cf
Update Windows config
mildaniel Aug 3, 2023
9e10d31
Update Windows config
mildaniel Aug 3, 2023
2296c6d
Update Windows config
mildaniel Aug 3, 2023
5b1de9a
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 3, 2023
15133a0
Update Windows config
mildaniel Aug 3, 2023
3a88be8
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 3, 2023
8f756dc
Update Windows config
mildaniel Aug 3, 2023
a6409da
Merge branch 'test/binary-canaries' of https://github.com/aws/aws-sam…
mildaniel Aug 3, 2023
a9703a2
Update Windows config
mildaniel Aug 3, 2023
07b7ffa
Update Windows config
mildaniel Aug 3, 2023
b9c6564
Update Windows config
mildaniel Aug 3, 2023
01b3014
Merge branch 'develop' of https://github.com/aws/aws-sam-cli into tes…
mildaniel Aug 3, 2023
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
16 changes: 2 additions & 14 deletions .github/workflows/automated-updates-to-sam-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ jobs:
with:
repository: aws/aws-sam-cli
path: aws-sam-cli

- uses: actions/setup-python@v4 # used for make update-reproducible-reqs below
with:
python-version: |
3.8
3.11

- name: Update aws-sam-translator & commit
run: |
Expand All @@ -90,7 +84,7 @@ jobs:
SAM_T_PRE_VERSION=$(grep "aws-sam-translator=" requirements/base.txt)
echo "SAM-T pre version is $SAM_T_PRE_VERSION"
git reset --hard develop
sed -i "s/$SAM_T_PRE_VERSION/aws-sam-translator==$SAM_T_CUR_VERSION/g" requirements/base.txt; make update-reproducible-reqs
sed -i "s/$SAM_T_PRE_VERSION/aws-sam-translator==$SAM_T_CUR_VERSION/g" requirements/base.txt
cp -r ../serverless-application-model/tests/translator/input ./tests/functional/commands/validate/lib/models
git status
git diff --quiet && exit 0 # exit if there is no change
Expand Down Expand Up @@ -129,12 +123,6 @@ jobs:
repository: aws/aws-sam-cli
path: aws-sam-cli

- uses: actions/setup-python@v4 # used for make update-reproducible-reqs below
with:
python-version: |
3.8
3.11

- name: Upgrade aws_lambda_builders & commit
run: |
git config --global user.email "[email protected]"
Expand All @@ -147,7 +135,7 @@ jobs:
BUILDERS_PRE_VERSION=$(grep "aws_lambda_builders=" requirements/base.txt)
echo "Lambda Builders pre version is $BUILDERS_PRE_VERSION"
git reset --hard develop
sed -i "s/$BUILDERS_PRE_VERSION/aws_lambda_builders==$BUILDERS_CUR_VERSION/g" requirements/base.txt; make update-reproducible-reqs
sed -i "s/$BUILDERS_PRE_VERSION/aws_lambda_builders==$BUILDERS_CUR_VERSION/g" requirements/base.txt
git status
git diff --quiet && exit 0 # exit if there is no change
echo "is_new_lambda_builders=1" >> $GITHUB_ENV # set env variable for next step run decision
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/update-reproducibles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Update reproducible requirements
on:
pull_request:
branches: [develop]
paths:
- requirements/base.txt # run this GHA only if requirements file is changed

jobs:
update-reqs:
permissions:
pull-requests: write
contents: write
if: github.repository_owner == 'aws'
strategy:
matrix:
include:
- os: ubuntu-latest
python: 3.11
target: update-reproducible-linux-reqs
- os: macos-latest
python: 3.8
target: update-reproducible-mac-reqs
- os: windows-latest
python: 3.8
target: update-reproducible-win-reqs
max-parallel: 1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- run: make ${{ matrix.target }}
- name: Push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Update reproducibles: ${{ matrix.target }}" || echo "nothing to commit"
git push
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,13 @@ update-reproducible-mac-reqs:
venv-update-reproducible-mac/bin/pip install -r requirements/base.txt
venv-update-reproducible-mac/bin/pip-compile --generate-hashes --allow-unsafe -o requirements/reproducible-mac.txt

# note that this should be run on a windows environment with python3.8 as default interpreter
update-reproducible-win-reqs:
python -m venv venv-update-reproducible-win
.\venv-update-reproducible-win\Scripts\activate
pip install --upgrade pip-tools pip
pip install -r requirements\base.txt
pip-compile --generate-hashes --allow-unsafe -o requirements\reproducible-win.txt


update-reproducible-reqs: update-reproducible-linux-reqs update-reproducible-mac-reqs
3 changes: 1 addition & 2 deletions appveyor-windows-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ configuration:

environment:
AWS_DEFAULT_REGION: us-east-1
SAM_CLI_DEV: 1
CARGO_LAMBDA_VERSION: "v0.17.1"

# Python uses $TMPDIR envvar to find root of tempdir
Expand Down Expand Up @@ -140,7 +139,7 @@ install:
Start-Process 'C:\\Windows\\System32\\msiexec.exe' -ArgumentList '/i aws-sam-cli-installer.msi /qn /norestart' -wait -PassThru;
Rename-Item -Path 'C:\\Program Files\\Amazon\\AWSSAMCLI_NIGHTLY\\bin\\sam-nightly.cmd' -NewName 'C:\\Program Files\\Amazon\\AWSSAMCLI_NIGHTLY\\bin\\sam.cmd'
"
- 'set PATH=C:\Program Files\Amazon\AWSSAMCLI\bin\;%PATH%'
- 'set PATH=C:\Program Files\Amazon\AWSSAMCLI_NIGHTLY\bin\;%PATH%'
- 'sam --version'

# Echo final Path
Expand Down
Loading