Skip to content

ci(deploy): cache Go modules via api/go.sum (fix cold-download fragility)#227

Merged
mastermanas805 merged 1 commit into
masterfrom
ci/deploy-go-module-cache-2026-06-03
Jun 3, 2026
Merged

ci(deploy): cache Go modules via api/go.sum (fix cold-download fragility)#227
mastermanas805 merged 1 commit into
masterfrom
ci/deploy-go-module-cache-2026-06-03

Conversation

@mastermanas805

Copy link
Copy Markdown
Member

deploy.yml checks the api repo out into ./api, so setup-go's default go.sum
lookup at the checkout root misses → the module cache is never restored and
every deploy cold-downloads the full dep tree (~2 min). On 2026-06-03 a
cold-download run was SIGTERM'd by a transient runner blip and the deploy only
landed on a warm re-run. Point cache-dependency-path at api/go.sum so deps
restore from cache, shrinking the download window + the transient-failure
exposure. (ci.yml checks api out at the root, so its cache already works — this
is deploy.yml-specific.) No code/behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

@mastermanas805 mastermanas805 enabled auto-merge (squash) June 3, 2026 18:19
@mastermanas805 mastermanas805 force-pushed the ci/deploy-go-module-cache-2026-06-03 branch 2 times, most recently from d2c6a63 to 072ef2e Compare June 3, 2026 18:54
…ity)

deploy.yml checks the api repo out into ./api, so setup-go's default go.sum
lookup at the checkout root misses → the module cache is never restored and
every deploy cold-downloads the full dep tree (~2 min). On 2026-06-03 a
cold-download run was SIGTERM'd by a transient runner blip and the deploy only
landed on a warm re-run. Point cache-dependency-path at api/go.sum so deps
restore from cache, shrinking the download window + the transient-failure
exposure. (ci.yml checks api out at the root, so its cache already works — this
is deploy.yml-specific.) No code/behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mastermanas805 mastermanas805 force-pushed the ci/deploy-go-module-cache-2026-06-03 branch from 072ef2e to 2577e02 Compare June 3, 2026 19:12
@mastermanas805 mastermanas805 merged commit 28e9332 into master Jun 3, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant