Repository navigation
Add engine release instructions. - #3749
Conversation
There was a problem hiding this comment.
I think this is automatable. Can have the code look at the current git branch and use that to set the tag. Will need to add some sort of confirmation dialog too. I think that slight extra bit of complication would be worth it to get this more automated, but let me know if you disagree
EDIT: currently working on automating this in an even simpler way that just presumes for now it is only ever meant to be run in CI and thus avoids all that complication (can later add a way of pushing this to other registries for testing on the side if needed).
There was a problem hiding this comment.
Yes, that is exactly what @aluzzardi mentioned earlier today - mage sdk:python:engine:bump - so we are all on the same page.
There was a problem hiding this comment.
This should be fairly easy to automate as a mage step (the reason it isn't already is because we run tests dagger-in-dagger, which is great but skips the provisioning code paths)
There was a problem hiding this comment.
Though automating it on MacOS is not going to happen before the next release, so that will still be manual
There was a problem hiding this comment.
Would like to automate this part, but not sure how straightforward it is when we don't rely on dagger-in-dagger. Will give it a shot, but like the Go SDK, will be at least partially manual on MacOS for now.
|
Also, I want to do a double check of the instructions by running through them all manually (not actually pushing any tags) before merging this. But let me know what feedback there is in the meantime |
There was a problem hiding this comment.
This is super important. I thought that multiple engines with different versions are supported. Great to know this!
There was a problem hiding this comment.
Yes, more context in this comment and the one right above it: #3647 (comment)
tl;dr it's a simple solution for now, we can find ways of improving it in the near future (at the cost of some extra complexity)
There was a problem hiding this comment.
This is my favourite image ref format too: <version>@sha256:<digest>
I propose that we default to this whenever possible.
There was a problem hiding this comment.
Is it possible to check when logs are flushed? If yes, I would check periodically and fail on timeout. Sleeps like this one get worse the longer they are kept around.
There was a problem hiding this comment.
I'll double check quickly, but I think the answer is no, being able to check that will require a lot more changes to our logging related code (which should happen, just will take time0
gerhard
left a comment
There was a problem hiding this comment.
Optimistic approval so that we can get a subset of this in (if possible).
How does this all look to you @aluzzardi?
Thanks @gerhard, I just pushed an extra commit with the first batch of automation ( |
This comment was marked as outdated.
This comment was marked as outdated.
a850436 to
3b074ca
Compare
aluzzardi
left a comment
There was a problem hiding this comment.
(for later)
How about we move engine refs to a generated file per SDK, for example:
sdk/go/engine_ref.gen.go
sdk/python/dagger/engine_ref.gen.py
Then we can bump them programmatically, every time we release an engine:
mage sdk:all:bump <engine version>
[open PR]
3b074ca to
06999a1
Compare
|
Did a test run of the github workflow by pushing to the dagger repo with a temporary tag, everything worked as expected there, so probably as good of verification we'll get before merging. After merging this I'll make follow up issues for:
|
06999a1 to
3da191b
Compare
Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Erik Sipsma <[email protected]>
3da191b to
793c189
Compare
|
It was great to see this come together so quickly - amazing! 🏎 🏎 |
Signed-off-by: Erik Sipsma [email protected]
There are a few parts of the instructions I'd like to automate ASAP (before official release ideally), will comment on them. Just writing out the instructions as is for now.