Which test stages fit the money and wall-clock constraints on this repository?
Separate billed worker minutes from the wall-clock time a reviewer waits. Use a conservative setup allowance when weighing a faster PR gate against its cost.
Fit CI stages within a PR budget
Enter each stage’s test time on one worker. The planner keeps the stages in order and tries them against both caps.
- Stages that fit
- Unit + Browser
- Elapsed time with selected stages
- 10 min
- Billed compute
- 32 runner-min
- Compute cost
- £0.32
Adding extended would take 17 min and cost £0.60. Later stages are outside the selected pipeline. Assumes equal work per worker, parallel capacity available together and per-worker billing rounded up to whole minutes. A zero-minute stage is skipped.
Calculation method
Stage elapsed time = setup + single-worker test minutes ÷ workers. Billed runner-minutes = workers × ceiling(stage elapsed time). Add the initial queue once to elapsed time. Cost = billed runner-minutes × price.
Inputs to collect
Use one consistent observation window for the inputs below. Replace the calculator’s illustrative defaults with measurements from your own software and runners.
| Input | Where to get it |
|---|---|
| One PR run | Enter serial test minutes for each stage and the initial queue time. |
| Worker minutes | Enter workers per stage and their setup time before tests start. |
| Run limits | Enter the rate per runner minute, the money cap and the wall-clock cap for this PR. |
Interpreting your result
Compare against real billing records and add storage, artifact retention or managed-service charges where they apply. Treat uneven sharding and queues as separate constraints.