artilleryio / artillery

The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
https://www.artillery.io
Mozilla Public License 2.0
7.92k stars 505 forks source link

Fargate: add option for uploading test artefacts to S3 #2215

Open m1x0n opened 11 months ago

m1x0n commented 11 months ago

Since s3 is already in use to store tests/ and test-runs/ it would be nice to store screenshots and videos for browser tests with playwright.

walnutdust commented 8 months ago

bumping this thread, because this is of interest to me as well.

naively looking at it, would a possible approach be:

  1. Updating the run-fargate cli command to take in a parameter for an output folder, and
  2. pass it into packages/artillery/lib/platform/aws-ecs/worker/loadgen-worker.
  3. In packages/artillery/lib/platform/aws-ecs/worker/loadgen-worker, before exiting (e.g. here, to upload the folder into s3, e.g. aws s3 cp ${output} "${s3_run_data_path}/${worker_id}/${output}"

happy to take a stab at it if I can get some help from the team with regards to verifying the change

mrister commented 8 months ago

Ah this would be great to have and much easier to debug tests that run on fargate