-
Notifications
You must be signed in to change notification settings - Fork 246
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
Stabilize spec 3.4.0 #1553
Labels
jira
for syncing to jira
Comments
Reopening to track followup changes in other projects. |
To avoid snoozing tests for a long time, we've now broken the external test ratchet into two pieces: Stabilize Ignition spec
Stabilize Butane spec
|
The stabilization ratchet is now complete. The only remaining step is finishing the Butane release, but that's routine, and is tracked separately in coreos/butane#430. Closing this out. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Marking an experimental spec as stable
When an experimental version of the Ignition config spec (e.g.:
3.1.0-experimental
) is to be declared stable (e.g.3.1.0
), there are a handful of changes that must be made to the code base. These changes should have the following effects:version
field set to the previously experimental version will no longer pass validation. For example, if3.1.0-experimental
is being marked as stable, any configs written for3.1.0-experimental
should have their version fields changed to3.1.0
, for Ignition will no longer accept them.3.1.0-experimental
is being marked as stable, a new version of3.2.0-experimental
(or4.0.0-experimental
if backwards incompatible changes are being made) will now be accepted, and start to accumulate new changes to the spec.Accept
header that Ignition uses whenever fetching a config will be updated to advertise the new stable spec.The changes that are required to achieve these effects are typically the following:
Making the experimental package stable
config/vX_Y_experimental
toconfig/vX_Y
, and update the golangpackage
statements_experimental
from all imports inconfig/vX_Y
MaxVersion
inconfig/vX_Y/types/config.go
to delete thePreRelease
fieldconfig/vX_Y/config.go
to update the comment block onParseCompatibleVersion
config/vX_Y/config_test.go
to test that the new stable version is valid and the old experimental version is invalidAccept
header ininternal/resource/url.go
to specify the new spec version.Creating the new experimental package
config/vX_Y
intoconfig/vX_(Y+1)_experimental
, and update the golangpackage
statementsconfig/vX_Y
imports inconfig/vX_(Y+1)_experimental
toconfig/vX_(Y+1)_experimental
config/vX_(Y+1)_experimental/types/config.go
to setMaxVersion
to the correct major/minor versions withPreRelease
set to"experimental"
config/vX_(Y+1)_experimental/config.go
to point theprev
import to the new stablevX_Y
package and update the comment block onParseCompatibleVersion
config/vX_(Y+1)_experimental/config_test.go
to test that the new stable version is invalid and the new experimental version is validconfig/vX_(Y+1)_experimental/translate/translate.go
to translate from the previous stable version. Update theold_types
import, delete all functions excepttranslateIgnition
andTranslate
, and ensuretranslateIgnition
translates the entireIgnition
struct.config/vX_(Y+1)_experimental/translate/translate_test.go
to point theold
import to the new stablevX_Y/types
packageconfig/config.go
imports to point to the experimental version.config/config_test.go
to add the new experimental version toTestConfigStructure
.generate
to generate the new stable and experimental versions, and rerungenerate
.Update all relevant places to use the new experimental package
config/vX_Y_experimental
should be updated toconfig/vX_(Y+1)_experimental
.tests/register/register.go
in the following ways:config/vX_Y/types
config/vX_Y_experimental/types
toconfig/vX_(Y+1)_experimental/types
config/vX_Y/types
's identifier toconfigVersions
inRegister()
Update the blackbox tests
-experimental
version in the relevantVersionOnlyConfig
test intests/negative/general/config.go
.X.Y.0-experimental
and alter them to useX.Y.0
.Accept
header checks intests/servers/servers.go
to specify the new spec version.Update docs
docs/configuration-vX_Y-experimental.md
todocs/configuration-vX_Y.md
and make a copy asdocs/configuration-vX_(Y+1)_experimental.md
.docs/configuration-vX_Y.md
, drop-experimental
from the version number in the heading and theignition.version
field, and drop the prerelease warning. Update thenav_order
field in the Jekyll front matter to be one less than thenav_order
of the previous stable spec.docs/configuration-vX_(Y+1)_experimental.md
, update the version of the experimental spec in the heading and theignition.version
field.docs/migrating-configs.md
.docs/specs.md
, update the list of stable and experimental spec versions (listing the latest stable release first) and update the table listing the Ignition release where a spec has been marked as stable.docs/release-notes.md
, following the format of previous stabilizations. Drop the-exp
version suffix from any notes for the upcoming release.External tests
If there are any external kola tests that were using the now stabilized experimental spec that are not part of the Ignition repo (e.g. tests in the fedora-coreos-config repo), CI will fail for the spec stabilization PR.
For tests using experimental Ignition configs: (none)
Uncomment the commented-out workaround for this in.cci.jenkinsfile
.When bumping the Ignition package in fedora-coreos-config, you'll need to update the external test in that repo to make CI green.Comment out the workaround.For tests using experimental Butane configs:
see #1553 (comment)
Snooze the affected tests inkola-denylist.yaml
.Stabilize the Butane spec and revendor into coreos-assembler.Drop the snoozes.Other packages
iso customize
andpxe customize
. Update release notes.Stabilize Butane specs.- see Stabilize spec 3.4.0 #1553 (comment)Put out a new release.-experimental
from configs in FCOS docs and remove colocated experimental-config warnings - Stabilize Butane spec 1.5.0 fedora-coreos-docs#509Revendor Ignition and Butane into coreos-assembler and update- see Stabilize spec 3.4.0 #1553 (comment)mantle/platform/conf/conf.go
andconf_test.go
The text was updated successfully, but these errors were encountered: