-
Notifications
You must be signed in to change notification settings - Fork 432
chore(ci): add end to end testing mechanism #1247
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
heitorlessa
merged 81 commits into
aws-powertools:develop
from
mploski:feature/e2e-tests
Jul 14, 2022
Merged
Changes from 13 commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
22d35a9
Initial commit
2b6eb9e
Merge branch 'develop' into feature/e2e-tests
5dde53e
Rewrite code to use only cf deployment
25c7723
Refactor code to use common libs
081b7d9
Enable deploying stack with concrete python version
7d34af1
Remove alpha dependency from CDK. Fix package creation
2cb4c40
Fix different python runtimes errors
bb0080a
Remove cdk cli installation
62ddaf7
Fix conflicts
8f8fc19
Merge branch 'develop' into feature/e2e-tests
mploski 885d5ea
Drop python 3.6 support. Use current secret from github actions
2b43d3b
Fix PR checks errors
add97ca
Add note about testing to mantainers document
ec777f0
Update .github/workflows/run-e2e-tests.yml
mploski f0030e0
Update .github/workflows/run-e2e-tests.yml
mploski 003cd2b
Update MAINTAINERS.md
mploski d58d3d5
Update tests/e2e/utils/helpers.py
mploski 4fd8647
Move end to end subsection to its own section under mantainer respons…
b8e0eab
Remove unnecessary f-string from logger key modification
29e8ddc
Decouple infra creation step from lambda triggering
be1a1bb
Implement strategy pattern to generalise infrastructure deployment
3923fc2
Create helper function for fetching trace metadata
9afdf3d
Create helper function for fetching trace metadata
b6e47fe
Add comment to Dockerfile
82673db
Add typing for AWS services clients
3034041
Unified types
0c49b66
Add PR suggestions
6c1a4d2
fix(logger): preserve std keys when using custom formatters (#1264)
heitorlessa daf6e03
Merge branch 'develop' of https://github.com/awslabs/aws-lambda-power…
heitorlessa c6de9c1
fix(ci): checkout project before validating related issue workflow
heitorlessa 0f1f1cd
chore(layers): bump to 22 for 1.26.3
heitorlessa 89d33d3
chore(ci): limits concurrency for docs workflow
heitorlessa c0bb85f
fix(ci): regex to catch combination of related issues workflow
heitorlessa 84eadd1
Update MAINTAINERS.md
mploski 9203232
Update MAINTAINERS.md
mploski f98df4c
Update MAINTAINERS.md
mploski 936839e
Update tests/e2e/utils/infrastructure.py
mploski 1f570a6
chore(layers): add release pipeline in GitHub Actions (#1278)
577a410
fix: typo in input for layer workflow
e0b3b58
fix: no need to cache npm since we only install cdk cli and don't hav…
925c145
fix: add entire ARN role instead of account and role name
5bcd026
fix: path to artefact
46c1754
fix: unzip the right artifact name
1170e76
docs(event-handler): snippets split, improved, and lint (#1279)
heitorlessa a34d34d
chore(ci): fix reference error in related_issue
heitorlessa ad86b10
fix: download artefact into the layer dir
6848d0b
Merge branch 'develop' of github.com:am29d/aws-lambda-powertools-pyth…
1962f19
fix: mathc the name of the cdk synth from the build phase
2ded8a6
fix: sight, yes a whitespace character breaks the build
fef70b0
docs(core): match code snippet name with filename (#1286)
heitorlessa d918387
fix(ci): accept core arg in label related issue workflow
heitorlessa 92b475b
docs(graphql): snippets split, improved, and lint (#1287)
heitorlessa 2d4df8a
chore(ci): convert inline gh-script to file
heitorlessa 06965bb
chore(ci): make export PR reusable
heitorlessa a2c9e34
Refactor asset uploading to use asset manifest
cf39c60
Merge branch 'feature/e2e-tests' of github.com:mploski/aws-lambda-pow…
db1b756
fix(ci): move conditionals from yaml to code
heitorlessa 95a8f77
chore(ci): move error prone env to code as constants
heitorlessa 15f0c9e
chore(ci): move all scripts under .github/scripts
heitorlessa 6e5492c
chore(governance): remove any step relying on master branch
heitorlessa da11802
fix(ci): move conditionals from yaml to code; leftover
heitorlessa 10aaf71
chore(ci): auto-merge cdk lib and lambda layer construct
heitorlessa b8a0238
chore(deps): bump actions/setup-node from 2 to 3 (#1281)
dependabot[bot] 839e252
fix(ci): escape outputs as certain PRs can break GH Actions expressions
heitorlessa 43e6729
Merge branch 'develop' of https://github.com/awslabs/aws-lambda-power…
heitorlessa ac07fe2
chore(governance): update emeritus affiliation
heitorlessa 69073b4
chore(ci): disable output debugging as pr body isnt accepted
heitorlessa 0e72f8c
chore(deps): bump aws-cdk-lib from 2.29.0 to 2.31.1 (#1290)
dependabot[bot] e76a26a
chore(deps): bump cdk-lambda-powertools-python-layer (#1284)
dependabot[bot] 69baefe
docs(homepage): emphasize additional powertools languages (#1292)
heitorlessa cfc15b8
fix(ci): regex group name for on_merge workflow
heitorlessa 83e6091
chore(deps): bump attrs from 21.2.0 to 21.4.0 (#1282)
dependabot[bot] c051945
Fix documentation and relative imports
9db0dcd
PR suggestions applied
1d832b0
Merge branch 'develop' into feature/e2e-tests
616c830
Fix makefile coverage html to not include e2e tests
6e37fce
chore(deps-dev): bump mypy-boto3-dynamodb from 1.24.12 to 1.24.27 (#1…
dependabot[bot] 1ad6efe
Merge branch 'develop' into feature/e2e-tests
mploski 1ad720b
Merge branch 'develop' into feature/e2e-tests
mploski 0dffaf3
Add docstring about using custom s3 asset uploader instead of cdk-assets
3610d08
chore: typo
heitorlessa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,35 @@ | ||
name: run-e2e-tests | ||
on: | ||
workflow_dispatch: {} | ||
env: | ||
AWS_DEFAULT_REGION: us-east-1 | ||
E2E_TESTS_PATH: tests/e2e/ | ||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write # needed to interact with GitHub's OIDC Token endpoint. | ||
mploski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
contents: read | ||
strategy: | ||
matrix: | ||
version: ["3.7", "3.8", "3.9"] | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
######################### | ||
# Release new version | ||
######################### | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leftover? Release new version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removing. Leftover |
||
- name: "Use Python" | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.version }} | ||
architecture: "x64" | ||
- name: Install dependencies | ||
run: make dev | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_TEST_ROLE_ARN }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Test | ||
run: make e2e-test |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.