CICD-336 · Concurrent request testing
Encyclopedia · Distributed systems and reliability testing · All snippets
Previous · CICD-335 · Next · CICD-337
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites disposable integration environment, synthetic traffic and controlled test faults.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
HEALTH_URL.
2. Copy the snippet
bash
seq 1 40 | xargs -P 8 -I '{}' curl -fsS --max-time 5 -o /dev/null "${HEALTH_URL:?}"3. How it works
The request checks the selected HTTP interface. Timeouts limit waiting, and an explicit exit or payload condition determines pass and fail.
4. Verify the result
Linux xargs returns failure when a child fails. Keep concurrency bounded and aim at an authorized fixture.
Validation syntax-validated (Bash parse). Status definitions.