-
Notifications
You must be signed in to change notification settings - Fork 4
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
Replace versions.py with a TOML file #770
Comments
Nice, I like the options. I'm also torn. I like both the I think I lean toward option 1. It seems more "correct". |
+1 for switching from |
To be honest, I'm not a huge fan of release branches as they can often be hard to work with. But I can understand, why we want to keep the current workflow and how tracking Stackable releases in multiple places will cause pain points later down the road. An alternative syntax could look like this: [versions."2.8.3"]
dependencies = { python = "3.9", vector = "0.39.0" }
# Identical to above, just an alternate way of writing
[versions."3.0.0".dependencies]
python = "3.11"
vector = "0.39.0" JSON structure{
"versions": {
"2.8.3": {
"dependencies": {
"python": "3.9",
"vector": "0.39.0"
}
},
"3.0.0": {
"dependencies": {
"python": "3.11",
"vector": "0.39.0"
}
}
}
} Switching off release branches is completely out of scope for this issue, so let's discuss that at a later point. |
As part of the work to test container images on PRs, we would like a flag to mark which versions should be included in tests. Extending @Techassi's example from above, this could look like: [versions."2.8.3"]
build_on_pr = true
dependencies = { python = "3.9", vector = "0.39.0" }
|
We currently track supported product versions and dependencies in a
versions.py
file (which is imported by theconf.py
in the root of the repo, which is in turn imported bybake
.Ideally, configurations should be static which would also simplify how this is imported.
Ultimately,
bake
could then be upgraded to not import a conf.py but rather load in TOML configurations.This could also then become the source of truth for tracking versions for upcoming releases. It could also help with making versions concrete leading up to a release (eg: a PR opened for the release, and kept open until version freeze a few weeks before a release).
Note
bake
is still required for builds as it constructs a dependency graph and builds them beforeConfiguration Example
Option 1
The top-level
releases
table keeps track of the Stackable releases. Each product can then declare which versions are available for that Stackable version. The example below, lists two Stackable releases:24.3
and24.7
. The24.7
release is marked as active.bake
would need to validate that only one Stackable release can be marked as active. The example then declares available product versions per release, in this case2.6.3
and2.8.1
for24.3
. The table then lists dependencies and their version.JSON structure
Option 2
This option changes the declaration of product versions and it's dependencies slightly compared to above. It is closer to the current
versions.py
format.JSON structure
The text was updated successfully, but these errors were encountered: