-
Notifications
You must be signed in to change notification settings - Fork 62
[3/n] [reconfigurator-planning] add and use set_target_release_and_old_repo #8938
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
[3/n] [reconfigurator-planning] add and use set_target_release_and_old_repo #8938
Conversation
Created using spr 1.3.6-beta.1 [skip ci]
Created using spr 1.3.6-beta.1
Are we changing this for all tests? Is there some risk there since real systems don't start with it set? |
I was planning to update all the
Several reconfigurator-cli tests start with the system at install-dataset -- most notably |
Created using spr 1.3.6-beta.1
plotnick
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not having to guess that initial generation is great, thanks for this.
| // This generation is successively incremented for each TUF repo. We use | ||
| // generation 2 to represent the first generation with a TUF repo | ||
| // attached. | ||
| let target_release_generation = Generation::from_u32(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
…d_repo (#8938) For update-related tests, we're going to move to a world where the initial system we start with has a target release set on it. We want to ensure that as part of these tests, we transition from the initial target release to the new one set up by these tests. Add a setter to the `SystemDescription` called `set_target_release_and_old_repo`, and use that in all the update-related tests. As a nice benefit, we don't have to guess that the first non-initial target release generation is 2 (in fact it will soon become 3 since we'll initialize the system with a target release).
For update-related tests, we're going to move to a world where the initial system we start with has a target release set on it. We want to ensure that as part of these tests, we transition from the initial target release to the new one set up by these tests.
Add a setter to the
SystemDescriptioncalledset_target_release_and_old_repo, and use that in all the update-related tests. As a nice benefit, we don't have to guess that the first non-initial target release generation is 2 (in fact it will soon become 3 since we'll initialize the system with a target release).Depends on: