Skip to content

Conversation

sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Aug 28, 2025

As part of the work in #8726, updates will only happen if all zones are at known versions before the update starts. In tests, the easiest way to achieve this is to start off the ExampleSystem with a target release at creation time.

This PR:

  • adds support for that
  • adds a simple 0.0.1 fake manifest that tests can use
  • converts one of the update-related tests over to starting off with a target release, as an example. (More tests will be converted over in subsequent commits.)

In order to do this, the ExampleSystemBuilder now needs to be aware of how to extract TUF repos. Reconfigurator-cli already had code to create and extract TUF repos, which I've moved into nexus-reconfigurator-planning.

This is going to run into issues with Cosmo boards since they'll have multiple host phase 1 artifacts -- added TODOs to flag that.

Depends on:

Created using spr 1.3.6-beta.1
bail!("output path `{output_path}` already exists");
}

// Just use a fixed key for now.
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to use a fixed key? (Could we let tufaceous generate a random one?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a bit dumb but if you don't specify a key, tufaceous outputs the key that was produced, making the output unstable 😅

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