You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decouple SDK and engine releases and versions #3271
Q: What version schemes should we use for the SDKs?
Semver, starting with 0.1.0 for the first release.
Q: Should each SDK have its own repo?
No. If we spread, the coordination work will increase by O(n²)a.k.a. O(my). Keeping all issues / PRs & discussions in a single repository keeps all context in a single place, with minimal synchronisation (reference the right ID). Having experienced first-hand, over the span of >5 years, the long-term (>10 years) trade-offs of multiple (>40) repositories, I would like us to avoid having to deal with those trade-offs. This is a rare situation where context doesn't make much difference.
All automation for various releases will live in a single repository - the current one.
Everyone can go to a single place to understand the state of everything public which is Dagger-related:
engine
docs
SDKs
The above applies to metric scrapers too.
Q: Assuming we have consensus on this, when should we execute this change?
Before we produce the first SDK release. Since that is the Go SDK, I am very curious what @aluzzardi & @sipsma think about the above.
I'd like to see everything SDK related under the same file tree, even the Go bits. So still make it modular and easy to break into a separate repo.
If you (as a company) want to create your own SDK, you should be able to copy that tree into a new empty repo that you own (e.g., github.com/dagger/dagger/sdk/nodejs → github.com/acme/dagger-deno-sdk).
Q: What version schemes should we use for the SDKs?
Agree with semver.
One question is whether the Go SDK should be a separate go module from the rest of our codebase (right now it's not). To be explicit, I'm talking about a submodule, not splitting out to separate repo.
I don't currently see any advantage to doing this really. The only "public" part of our go codebase should be the Go SDK I think, so I don't see a need to version it and the rest of the code separately.
However, that does imply that we should move most of our current code to an internal/ package if we want to be prim and proper and follow all the right go conventions. I believe @aluzzardi mentioned this in a PR comment before if I'm not imagining things.
Q: Should each SDK have its own repo?
Another +1 for monorepo. There was some discussion in the context of the nodejs sdk a while back here that came to the same conclusion: #3096 (comment)
As @mircubed pointed out, we have a short term deadline in the form of the upcoming 0.3.0-alpha.1 release and, shortly after that, launching Go SDK in tech preview. Let's focus on the decisions we need to make before this deadline, and leave the rest for later.
Here are our options:
Option 1: coupled
Option 2: decoupled
Versioning scheme for Go SDK
Coupled to engine
Semver
Version of Go SDK for tech preview next week
0.3.0-alpha.1
0.1.0-alpha.1
Version of engine used by Go SDK for tech preview next week
0.3.0-alpha.1
0.3.0-alpha.1
Reversible later
Yes (but couldn't rewind SDK versions: starting version would be engine version or higher)
No
SDK in same repo as engine?
Yes
Yes
Each SDK controls its engine dependency
No 👎
No 👍
SDK-specific improvement forces engine version bump
Yes 👎
No 👍
SDK-specific improvement forces version bump on other SDKs
Yes 👎
No 👍
Additional work to implement
No 👍
Yes 👎
So far I'm seeing more arguments in favor of decoupling - the main downside being that we need to do it quickly (before 0.3.0-alpha.1 basically).
Did I miss anything in this decision?
Are there other decisions we need to make before 0.3.0-alpha.1?
Activity
grouville commentedon Oct 6, 2022
Might be helpful/related: https://github.com/josh-project/josh (pretty sure Gerhard and Andrea already have it in mind)
gerhard commentedon Oct 13, 2022
This is what I think:
Q: What version schemes should we use for the SDKs?
Semver, starting with
0.1.0for the first release.Q: Should each SDK have its own repo?
No. If we spread, the coordination work will increase by
O(n²)a.k.a.O(my). Keeping all issues / PRs & discussions in a single repository keeps all context in a single place, with minimal synchronisation (reference the right ID). Having experienced first-hand, over the span of >5 years, the long-term (>10 years) trade-offs of multiple (>40) repositories, I would like us to avoid having to deal with those trade-offs. This is a rare situation where context doesn't make much difference.All automation for various releases will live in a single repository - the current one.
Everyone can go to a single place to understand the state of everything public which is Dagger-related:
The above applies to metric scrapers too.
Q: Assuming we have consensus on this, when should we execute this change?
Before we produce the first SDK release. Since that is the Go SDK, I am very curious what @aluzzardi & @sipsma think about the above.
What do others think? cc @sipsma @aluzzardi @helderco @samalba @shykes
helderco commentedon Oct 13, 2022
👍 for the monorepo.
I'd like to see everything SDK related under the same file tree, even the Go bits. So still make it modular and easy to break into a separate repo.
If you (as a company) want to create your own SDK, you should be able to copy that tree into a new empty repo that you own (e.g.,
github.com/dagger/dagger/sdk/nodejs→github.com/acme/dagger-deno-sdk).sipsma commentedon Oct 14, 2022
Agree with semver.
One question is whether the Go SDK should be a separate go module from the rest of our codebase (right now it's not). To be explicit, I'm talking about a submodule, not splitting out to separate repo.
I don't currently see any advantage to doing this really. The only "public" part of our go codebase should be the Go SDK I think, so I don't see a need to version it and the rest of the code separately.
internal/package if we want to be prim and proper and follow all the right go conventions. I believe @aluzzardi mentioned this in a PR comment before if I'm not imagining things.Another +1 for monorepo. There was some discussion in the context of the nodejs sdk a while back here that came to the same conclusion: #3096 (comment)
shykes commentedon Oct 14, 2022
As @mircubed pointed out, we have a short term deadline in the form of the upcoming 0.3.0-alpha.1 release and, shortly after that, launching Go SDK in tech preview. Let's focus on the decisions we need to make before this deadline, and leave the rest for later.
Here are our options:
So far I'm seeing more arguments in favor of decoupling - the main downside being that we need to do it quickly (before 0.3.0-alpha.1 basically).
Thanks!