-
Notifications
You must be signed in to change notification settings - Fork 67
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
deployer: add --skip-refresh flag to deploy command #4141
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Nice! Also if you want to deploy in parallell from separate terminal sessions at the same time, they can interfere with each other if they do the update step - with this flag, it could be made safe to do in parallell without waiting for the update sequence to complete. |
Suitable PR to use the deployer:skip-deploy label on i think - as this doesn't change any hub and running tests just spends cloud resources and energy. I'll add it, feel free to remove if you disagree! I'll review the implementation tomorrow morning |
Thank you very much for working on this, @AIDEA775! @consideRatio I removed that label as I'd like to make sure this doesn't fundamentally change behavior on CI. I would rather have us catch issues now than much later (as happened in https://2i2c.slack.com/archives/C055A1J1DRP/p1716337516500199, where we caught many failing hubs about 9 days after they had started failing) |
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.
helm update
has a --skip-refresh
flag, which skips the remote network based updates that are done - which is what slows everything down. But, it does the thing that may cause us problems - which is to pick up changes in basehub/values.yaml
if we change them, and use daskhub
.
So I suggest that:
- This flag be renamed from
--skip-update
to--skip-refresh
, to match thehelm dep
command - in https://2i2c.slack.com/archives/C04994X0BPC/p1716293361972159,
--skip-refresh
is passed unconditionally to the second twodep up
commands, as one refresh is more than enough - If this command is passed to
deployer
, then pass--skip-refresh
to the firstdep up
command as well.
Thanks for working on this, @AIDEA775! This is a papercut that's bothered me a lot too (and sometimes i'll just commen out these dep up
calls). I want to make sure that the priority in the sprint should still be to make sure we finish all the things we had previously committed to, so you can continue work on this at a slower pace if needed.
@AIDEA775 anything I can do to help move this forward? |
3bd4fa4
to
8839e90
Compare
Passing
I tried to add the
I think it's better to maintain the if statement to entirely skip the call to |
alright, i think this is a good enough improvement that we should merge it. Thanks @AIDEA775. |
🎉🎉🎉🎉 Monitor the deployment of the hubs here 👉 https://github.com/2i2c-org/infrastructure/actions/runs/9786721523 |
This is something I wrote some time ago and now I will open a PR to discuss.
The
deployer deploy
command runshelm dep up
several times to ensure that the Helm charts and their dependencies are up-to-date.I think this is okay, but if I need several deployments in the same day, it's not worth running the update each time.
So this PR adds a flag
--skip-update
to skip that phase and run the validation directly.Example: