Skip to content

hack: add legacy label conversion for old clients - #7013

Closed
jedevc wants to merge 1 commit into
dagger:mainfrom
jedevc:fix-legacy-client-labels
Closed

jedevc wants to merge 1 commit into
dagger:mainfrom
jedevc:fix-legacy-client-labels

Conversation

@jedevc

@jedevc jedevc commented Apr 4, 2024 •

Copy link
Copy Markdown
Contributor

This allows old clients like dagger v0.10.3 to still connect to and use dagger engine v0.11.0. While this isn't a strict requirement, it's nice to not break this if we don't have to, and based on a couple tests, it seems like this was the only blocker for that.

The other option for this was to introduce an explicit failure for when clients mismatch, but... this is potentially a bit more destructive, this change is pretty minimal. If we don't take this, we should probably take that change instead.

This allows old clients like dagger v0.10.3 to still connect to and use
dagger engine v0.11.0. While this *isn't* a strict requirement, it's
nice to not break this if we don't have to, and based on a couple tests,
it seems like this was the only blocker for that.

Signed-off-by: Justin Chadwell <[email protected]>
@jedevc jedevc added this to the v0.11.0 milestone Apr 4, 2024
@jedevc
jedevc requested review from gerhard and vito April 4, 2024 10:42
@gerhard

gerhard commented Apr 4, 2024

Copy link
Copy Markdown
Contributor

When running the v0.10.3 CLI against a dev Engine built from this PR the output does not look right:

Screen.Recording.2024-04-04.at.13.21.01.mov

This is how the CLI & Engine both built from this PR behave:

Screen.Recording.2024-04-04.at.13.24.15.mov

For comparison, I am going to test next a v0.10.3 CLI against a dev Engine built from main

@gerhard

gerhard commented Apr 4, 2024

Copy link
Copy Markdown
Contributor

OK, so without this change, connecting a CLI version which is less than what will become 0.11.0 fails in a rather user unfriendly way:

Screen.Recording.2024-04-04.at.13.31.18.mp4

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.

2 participants