Skip to content

docs: Added FAQ entries for upgrading/uninstalling - #5515

Merged
vikram-dagger merged 11 commits into
dagger:mainfrom
vikram-dagger:docs-31-faq-upgrade-dagger
Aug 3, 2023
Merged

vikram-dagger merged 11 commits into
dagger:mainfrom
vikram-dagger:docs-31-faq-upgrade-dagger

Conversation

@vikram-dagger

@vikram-dagger vikram-dagger commented Jul 27, 2023 •

Copy link
Copy Markdown
Contributor

If applied, this commit adds FAQ entries for upgrading and uninstalling Dagger.

Signed-off-by: Vikram Vaswani <[email protected]>
@helderco

Copy link
Copy Markdown
Contributor

I think the most common source of confusion on upgrades is the mismatch between versions:

  • SDK version
  • CLI/Engine version
  • Runner version (for those running their own runner)

We're looking for ways to reduce this, for example:

  • adding version checks in the SDKs
  • moving the API to the "runner" instead of the CLI
  • focusing on running an SDK via the CLI in Zenith
  • etc

In the meantime I think it's important to highlight that you need to be aware that you need to make sure you're using compatible versions between these components.

@vikram-dagger

Copy link
Copy Markdown
Contributor Author

In the meantime I think it's important to highlight that you need to be aware that you need to make sure you're using compatible versions between these components.

What's the "rule" or guidelines the user should follow to check compatibility? Is it simply that Engine x.y will work with SDK x.y?

Also, what is the compatibility check for versions < 0.8?

@helderco

Copy link
Copy Markdown
Contributor

Each release notes the compatible engine. They've been mostly the same for CLI/Engine and SDKs, except for Go which has been 1 minor further due to historical reasons in the beginning of setting imports from dagger.io./dagger (instead of github.com/dagger/dagger.

Screenshot 2023-07-31 at 11 34 53
Screenshot 2023-07-31 at 11 35 36

The way this works is that each SDK version has the supported engine version hardcoded in it:

# Code generated by dagger. DO NOT EDIT.
CLI_VERSION = "0.6.3"

// Code generated by dagger. DO NOT EDIT.
package engineconn
const CLIVersion = "0.6.3"


So the ideal version for the Engine is the one that the SDK version specifically supports, and you check for it in the release notes. One of the improvements to make this more visible is by making the SDKs check compatibility in every Connect:

Here's the current rules:

https://github.com/dagger/dagger/blob/efbc2b1b4cf29f7f8cfd1f8615fb212891b9f19d/core/schema/query.go#L85-L106

From this PR that we'll include in v0.8.0:

@helderco

helderco commented Jul 31, 2023 •

Copy link
Copy Markdown
Contributor

@vikram-dagger, for clarity 👇

What's the "rule" or guidelines the user should follow to check compatibility? Is it simply that Engine x.y will work with SDK x.y?

If you're running from the CLI, or providing the CLI for the SDK to use (_EXPERIMENTAL_DAGGER_CLI_BIN env var), they can potentially be incompatible. The ideal version for the CLI is the one that's in the SDK's release notes.

Also, what is the compatibility check for versions < 0.8?

This has always worked the same. What's changing in 0.8 is that we're adding a check after establishing a connection but that may not show to the user. It's important to document it and this is the main motivator for having upgrade instructions.

In future versions we'll be reducing the potential of incompatibility but that's not today.

@helderco

Copy link
Copy Markdown
Contributor

I linked this to:

Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
@vikram-dagger

Copy link
Copy Markdown
Contributor Author

Added feedback, ping @helderco @gerhard for second review

@gerhard gerhard added this to the 0.8.0 BREAKING CHANGES RELEASE milestone Aug 2, 2023
@gerhard

gerhard commented Aug 2, 2023

Copy link
Copy Markdown
Contributor

Looking at this now @vikram-dagger @helderco

Comment thread docs/current/162770-faq.md Resolved
Comment thread docs/current/162770-faq.md Resolved
Comment thread docs/current/162770-faq.md Resolved
Comment thread docs/current/162770-faq.md Resolved
@gerhard

gerhard commented Aug 2, 2023

Copy link
Copy Markdown
Contributor

I am super keen on getting this one merged within the next 2h. We are really close to having everything in place for tomorrow's release 💪

Comment thread docs/current/162770-faq.md Resolved
Signed-off-by: Vikram Vaswani <[email protected]>
Comment thread docs/current/162770-faq.md Resolved
Comment thread docs/current/162770-faq.md Resolved
Comment thread docs/current/162770-faq.md Resolved
Vikram Vaswani added 2 commits August 3, 2023 16:27
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Comment thread docs/current/162770-faq.md Resolved
Comment thread docs/current/162770-faq.md Resolved

@gerhard gerhard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good! 🙌

Comment thread docs/current/162770-faq.md Resolved
Comment thread docs/current/162770-faq.md Resolved
Comment thread docs/current/162770-faq.md Resolved
vikram-dagger and others added 3 commits August 3, 2023 18:32
Co-authored-by: Helder Correia <[email protected]>
Signed-off-by: vikram-dagger <[email protected]>
Co-authored-by: Helder Correia <[email protected]>
Signed-off-by: vikram-dagger <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
@vikram-dagger
vikram-dagger merged commit d649f2d into dagger:main Aug 3, 2023
@gerhard
gerhard deleted the docs-31-faq-upgrade-dagger branch August 12, 2023 12:24
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.

How to upgrade Uninstall Dagger

4 participants