-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge from develop branch, and apply the linking refactor (#5701)
* fix(invoke): Write in UTF-8 string instead of bytes (#5642) * Revert "fix: Revert UTF-8 fixes #5485 and #5427 (#5512)" This reverts commit 36f8bf9. * Enforce utf8 on stdout/stderr/logfile --------- Co-authored-by: Jacob Fuss <[email protected]> * chore(deps): bump cryptography from 41.0.2 to 41.0.3 in /requirements (#5675) Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.2 to 41.0.3. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](pyca/cryptography@41.0.2...41.0.3) --- updated-dependencies: - dependency-name: cryptography dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(test): Force reading file with utf8 in tests for windows (#5679) Co-authored-by: Jacob Fuss <[email protected]> * fix(test): Increase max execution time for timeout tests (#5680) Co-authored-by: Jacob Fuss <[email protected]> * chore: auto update reproducible requirements when there is a dependency change (#5677) * chore: add reproducible gha * format * formatting v2 * format v3 * use win make target * update windows job * update win paths * why windows why * remove if stmt for now * test with direct paths * update windows paths again * bring back activate * add dummy win file and push changes * update base.txt for testing * Update reproducibles * run jobs sequentially * print changed flag * check changes again * run git status before moving forward * refresh index before checking any changed files * Update reproducibles * commit or skip * Update reproducibles * rerun build & pyinstaller jobs once update reproducible finishes * add more details to commit message * nuke all reproducibles to trigger the CI * Update reproducibles: update-reproducible-linux-reqs * Update reproducibles: update-reproducible-mac-reqs * Update reproducibles: update-reproducible-win-reqs * change lb version for testing * update permissions and limit only for aws/aws-sam-cli * Update reproducibles: update-reproducible-linux-reqs * Update reproducibles: update-reproducible-mac-reqs * Update reproducibles: update-reproducible-win-reqs * update other jobs as well * run without file filter * Update reproducibles: update-reproducible-linux-reqs * Update reproducibles: update-reproducible-mac-reqs * Update reproducibles: update-reproducible-win-reqs * put the file filter back --------- Co-authored-by: GitHub Action <[email protected]> * fix: Repair failing integration test (#5698) * Fix failing integration test * Be more specific with error message --------- Co-authored-by: Leonardo Gama <[email protected]> * fix: link the API gateway resource parent to either rest api or another gateway resource (#5697) * chore: merge from develop branch, and apply the linking refactor * fix merge mistake in the integration test cases --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Jacob Fuss <[email protected]> Co-authored-by: Jacob Fuss <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mehmet Nuri Deveci <[email protected]> Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Leonardo Gama <[email protected]> Co-authored-by: Leonardo Gama <[email protected]>
- Loading branch information
1 parent
0df8cfb
commit 2b857ac
Showing
46 changed files
with
2,626 additions
and
1,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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 | ||
|
@@ -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]" | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.