Skip to content

Change the GitHub action for serverless-artillery to test the new function /users/{user_id} and save the results in the right bucket #166

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

Open
wants to merge 61 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
768fdbe
Create serverless-artillery-test-users-api.yml
yergu Feb 13, 2021
3066ec5
Add Deploy invoke and remove function
yergu Feb 16, 2021
c222c04
update the target URL
yergu Feb 16, 2021
adf6c5b
Fix error in line 3 of serverless-artllery-action
yergu Feb 16, 2021
a742571
Fix Errors
yergu Feb 16, 2021
db63274
Fix errors
yergu Feb 16, 2021
faaf281
Remove space on line 20
yergu Feb 16, 2021
f3dd2ab
Remove space
yergu Feb 17, 2021
3fc0dce
ERROR FIXED
yergu Feb 17, 2021
d0892c7
Add Upload file to bucket section of the code
yergu Feb 17, 2021
51b0cc1
comment upload file
yergu Feb 17, 2021
c58c9eb
comment the s3 bucket seciton of my code
yergu Feb 17, 2021
2d8968e
update upload File to backet part of the code
yergu Feb 19, 2021
beb45c0
Fix s3 bucket part
yergu Feb 20, 2021
321bb85
minor fix
yergu Feb 20, 2021
c02957c
update s3 bucket section
yergu Feb 20, 2021
5b388c0
Fix on test script
yergu Feb 20, 2021
f1ede38
Update serverless-artillery-action-users-id-api.yml
yergu Feb 20, 2021
8bd8598
fix error
yergu Feb 20, 2021
c260f1d
updated
yergu Feb 20, 2021
af2cf52
delet space
yergu Feb 20, 2021
d7ed62c
updated
yergu Feb 20, 2021
c690d0f
Fix error on Invok
yergu Feb 20, 2021
110bfa9
remove / on invok
yergu Feb 20, 2021
46686f3
Fix error
yergu Feb 20, 2021
18cde5d
updated
yergu Feb 21, 2021
79df053
Remove s3 bucket
yergu Feb 21, 2021
3943b85
test
yergu Feb 21, 2021
de16bc1
Update serverless-artillery-action-users-id-api.yml
yergu Feb 21, 2021
ab730fb
update script
yergu Feb 21, 2021
854bfac
update s3
yergu Feb 21, 2021
f929cfa
Fix space
yergu Feb 21, 2021
1de87c1
fix upload
yergu Feb 21, 2021
4ccc72f
Fix Remove function
yergu Feb 21, 2021
d902038
fix remove
yergu Feb 21, 2021
ec8340f
delet comment
yergu Feb 21, 2021
7aefe96
test
yergu Feb 21, 2021
3f8a8a6
updated
yergu Feb 21, 2021
0c1b70b
change push section
yergu Feb 26, 2021
eb14586
test
yergu Feb 26, 2021
f785dae
update test
yergu Feb 26, 2021
f56ddeb
update file name extension error
yergu Feb 26, 2021
0e80923
test2
yergu Feb 26, 2021
9716f3a
test3
yergu Feb 26, 2021
d2af840
test3
yergu Feb 26, 2021
0a7c540
update env
yergu Feb 26, 2021
efdaa57
update test
yergu Feb 26, 2021
cde1677
update final
yergu Feb 26, 2021
bb89cce
update region
yergu Feb 26, 2021
b1adb43
fix error on region
yergu Feb 26, 2021
e8ef35d
fix upload upload file to s3 bucket
yergu Mar 4, 2021
8ab34d6
update
yergu Mar 4, 2021
d690239
updated
yergu Mar 5, 2021
9905455
Update serverless-artillery-action-users-id-api.yml
yergu Mar 5, 2021
b78b46b
updated last
yergu Mar 5, 2021
313daae
remove test
yergu Mar 5, 2021
9926beb
Fix push
yergu Mar 6, 2021
30aafa5
change Push
yergu Mar 6, 2021
e771b60
Update serverless-artillery-action-users-id-api.yml
yergu Mar 6, 2021
f11cef1
Change on push
yergu Mar 6, 2021
663976d
Merge pull request #3 from North-Seattle-College/development
yergu Mar 22, 2021
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
Empty file added .github/workflows/new
Empty file.
60 changes: 60 additions & 0 deletions .github/workflows/serverless-artillery-action-users-id-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Performance-Test serverless-artillery-action-users-id-api
on: [push]

jobs:
slsart-perf:
name: Serverless Artillery Users API Test Performance testing
runs-on: ubuntu-latest
env:
AWS_SLSART_REGION: "us-west-2"
NPM_CONFIG_PREFIX: "~/.npm-global"
STAGE_NAME: Test-userid-api
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
check-latest: true
- name: Get current date and time
id: date
run: echo "::set-output name=date::$(date +'%F_%H-%M-%S')"

- name: Install serverless and serverless-artillery
run: |
npm install -g [email protected]
npm install -g serverless-artillery

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- name: Deploy functions
run: ~/.npm-global/bin/slsart deploy --stage $STAGE_NAME --region $AWS_SLSART_REGION

- name: invoke functions
run: ~/.npm-global/bin/slsart invoke -o test/serverless-artillery/serverless-artillery-test-users-id-api.yml --region $AWS_SLSART_REGION | tee test/results/serverless-artillery-test-users-id-api-${{steps.date.outputs.date}}.json




- name: remove functions
run: ~/.npm-global/bin/slsart remove --stage $STAGE_NAME --region $AWS_SLSART_REGION


- name: Upload file to bucket
uses: zdurham/s3-upload-github-action@master
with:
args: --acl public-read
env:
FILE: test/results/serverless-artillery-test-users-id-api-${{steps.date.outputs.date}}.json
AWS_REGION: 'us-west-2'
S3_BUCKET: 'serverless-artillery'
S3_KEY: 'serverless-artillery-test-users-id-api-${{steps.date.outputs.date}}.json'
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

config:
# this hostname will be used as a prefix for each URI in the flow unless a complete URI is specified
target: "https://nsc-fun-dev-usw2-thursday.azurewebsites.net/api"
phases:
-
duration: 300
arrivalRate: 10
scenarios:
-
flow:
-
get:
url: "/users/1"
json:
name: "name"