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
8.06k stars 511 forks source link

Could not resolve node_module dependency when running on Fargate #3409

Open zatlodan opened 1 week ago

zatlodan commented 1 week ago

Running artillery run-fargate command via docker. I encounter the following error when adding a custom flow function which uses any node_module dependency:

ERROR: Could not resolve "<dependency-name>"

Full Task log: log-events-viewer-result.csv

Version info:

artilleryio/artillery:latest

Minimal example repository:

All other details are seen in the minimal example repository I have prepared.

https://github.com/zatlodan/artillery-issue-minimal

nvm use

yarn

cp .env.example .env

# Add your AWS credentials
nvim .env

yarn run:cloud

# Inspect the task output to see the error
google-chrome https://eu-west-1.console.aws.amazon.com/ecs/v2/clusters/artilleryio-cluster/tasks

Notes

The same behavior can be observed even when running npx artillery run-fargate without docker.