Open Dylan-Riley opened 3 years ago
File location:
./.github/workflows/Serverless-artilleryreport-users-user_id-tasks.yml
EDIT:
Also:
./test/artillery/Artillery-test-users-user_id-tasks.yml
EDIT 2: Do not touch file mentioned in first edit, that's artillery, not serverless-artillery. Need to create a new /test/serverless-artillery/ file. Or that file is the correct file, but horribly outdated at this point. See https://github.com/North-Seattle-College/ad440-winter2021-thursday-repo/issues/152#issuecomment-777930900 for function to target.
See issue https://github.com/North-Seattle-College/ad440-winter2021-thursday-repo/issues/92 and pull request https://github.com/North-Seattle-College/ad440-winter2021-thursday-repo/pull/124 for @jaguiniga's previous work on serverless-artillery reporting for /users/{user_id}/tasks
See issue https://github.com/North-Seattle-College/ad440-winter2021-thursday-repo/issues/5 and pull request https://github.com/North-Seattle-College/ad440-winter2021-thursday-repo/pull/39 for initial GitHub action to start serverless-artillery test setup.
Function to test will be found in Azure Resource Group nsc-rg-dev-usw2-thursday
in the Function App nsc-fun-dev-usw2-thursday
At time of writing (11/FEB/2021 6:40 PM) does not exist yet
https://nsc-fun-dev-usw2-thursday.azurewebsites.net/api/users/1/tasks?
Might be better to not code a specific user but I don't have time to look into that right now
Buckets
11/FEB/2021 8:15 PM: Created buckets artillery
and serverless-artillery
also do not seem to exist in AWS S3 yetartillery
and serverless-artillery
See: https://github.com/marketplace/actions/upload-s3 for an example of using GitHub actions to upload things to AWS S3
This seems to be using some outdated stuff. Instead I'm trying out https://github.com/marketplace/actions/s3-cp-file that seems to just use the AWS CLI CP function
Just use AWS CLI S3. It's referenced here and looks much better. Though currently seems to be another permission issue...
Serverless-artillery does not work with the latest version of serverless. Hasn't for a while now...
The error message says to use "^1.0.3" but installing that specific version breaks something else. In a previous build of this test the version 1.38.0 was used and that seems to let slsart commands actually run.
This is weirdly comforting to see. It looks like I may have hit them a bunch of times, but just made a bad call? Maybe it's because the function is 500'ing?
Task:
Change GitHub action for serverless-artillery to test the new function /users/{user_id}/tasks and save the results in the correct AWS Bucket with the correct naming conventions.
More details:
All lowercase names! S3 bucket names:
Test results naming convention:
Tags for each resource:
Update:
artillery-and-actions-filename-conventions.docx