Summary
withRetry (packages/worker/src/infrastructure/retry.ts) implements per-step retry classification per ADR-0002 and is unit-tested, but no production code calls it.
Evidence
- Only references to
withRetry: infrastructure/retry.ts itself and test/unit/infrastructure/retry.test.ts.
packages/worker/src/deployments/pipeline.ts has no retry logic; the only inline retry is the port-conflict loop in strategies/dockerfile.ts:23.
Scope
Wire withRetry into the pipeline steps per ADR-0002:
- git clone — retry on timeout, fail fast on auth errors (exit 128).
- npm install / build — retry on network blips, fail fast on 404 / non-zero build.
Or, if the classification isn't wanted, soften the ADR / resume wording instead.
Summary
withRetry(packages/worker/src/infrastructure/retry.ts) implements per-step retry classification per ADR-0002 and is unit-tested, but no production code calls it.Evidence
withRetry:infrastructure/retry.tsitself andtest/unit/infrastructure/retry.test.ts.packages/worker/src/deployments/pipeline.tshas no retry logic; the only inline retry is the port-conflict loop instrategies/dockerfile.ts:23.Scope
Wire
withRetryinto the pipeline steps per ADR-0002:Or, if the classification isn't wanted, soften the ADR / resume wording instead.