-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update spin deploy to patch channel rather then recreate channels #728
Conversation
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strategy and code here looks good to me. Defer to @bacongobbler on account of the mentioned hippo-* dependency updates.
Can you bump hippo to v0.16.1 and run Line 21 in ee996c1
Once that's done, we should be good to go. |
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'm seeing very odd behaviour... With two applications, I'm seeing the other app being updated each time I
notice how the channel bound to This might be a server-side issue with the |
Ah... It's actually spin's Line 304 in ee996c1
This function takes a channel name, then returns the first channel that matches with the same name. If two applications use This may also be the cause of some issues you were seeing in testing, @kate-goldenring. We should be passing the application ID from line 173 to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but can you please address the issue with get_channel_id
so we update the correct channel?
@bacongobbler thank you for catching this! I believe it should be resolved with the latest changes. Can you double check on your side? |
71ce0f6
to
d50e181
Compare
Sorry, one last change... I think we need to apply the same logic to I know it's unrelated to this change, but it should help with these spurious errors we're seeing in the wild. |
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
d50e181
to
af2251a
Compare
Great point @bacongobbler! I forgot that the bindle_id is the bindle version. |
Looks great! Just tested and deploys are rolling out as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Currently,
spin deploy
is deleting and recreating channels in order to ensure the correct bindle will be served byHippo
. This modifies the behavior to use thepatch_channel
command recently added tohippo-cli
.This PR cannot merge until the following changes have been made to
hippo-cli
andhippo-openapi
-- marking as Draft in the meantime:Signed-off-by: Kate Goldenring kate.goldenring@fermyon.com