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.07k stars 512 forks source link

ci(test): retry npm install in distributed tests #3247

Closed bernardobridge closed 5 months ago

bernardobridge commented 5 months ago

Description

Tests are occasionally failing in an npm install step (example) that happens in main, seemingly due to intermittent network issues.

This PR creates a bash script to retry npm commands. If needed we can use this in more places in the future, but I've only seen this issue in these 2 install steps in recent history.

Pre-merge checklist