Skip to content

Wait for the code update before updating a redeployed reaper's configuration (#1084) - #1085

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/1084
Oct 17, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/1084

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Fixes #1084, found while upgrading the dev account's self-hosted reaper (v0.121.0 → v0.131.0): spawn reaper deploy called UpdateFunctionConfiguration right after UpdateFunctionCode; Lambda rejects that with a 409 while the code update is InProgress, so the redeploy aborted with new code live and configuration, schedule and version tag unwritten.

Deployer.waitForUpdate polls GetFunction until LastUpdateStatus leaves InProgress (2s poll, 3-minute bound, context-cancellable) and fails with Lambda's reason on Failed. The test fake now models the asynchronous update and the 409; both new tests fail against a compiling revert (wait made a no-op).

@codecov

codecov Bot commented Oct 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 67.85714% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/reaperdeploy/deployer.go 67.85% 6 Missing and 3 partials ⚠️

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit 3d5ef12 into main Oct 17, 2026
8 checks passed
@scttfrdmn
scttfrdmn deleted the fix/1084 branch October 17, 2026 20:52
@scttfrdmn scttfrdmn mentioned this pull request Oct 17, 2026
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.

spawn reaper deploy fails redeploying an existing reaper: UpdateFunctionConfiguration 409 while the code update is in progress

1 participant