-
Couldn't load subscription status.
- Fork 60
[reconfigurator] Fix planner RoT active slot bug #8893
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
Conversation
| expected_pending_persistent_boot_preference, | ||
| expected_transient_boot_preference, | ||
| }) => { | ||
| let active_caboose_which = match &expected_active_slot.slot { |
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.
I'm a little surprised this didn't break some (incorrect) tests - can we add a test somewhere that only passes with this change? How did the reconfiguator-cli target-release test pass before?
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.
Franky, I'm surprised too. But yeah! I'll add a test, good call
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.
Change looks good to me. Agreed on adding a test!
|
So, I tried to test this case within the RoT planner tests but failed. I'm not entirely sure I can force this test case here 🤔 Next week I'll attempt to test via the reconfigurator CLI tests 🤞 |
|
I did manage to improve the tests for the RoT so I added the case where an update is configured for a different active RoT slot, so I'll keep that |
|
Turns out the RoT active slot extension was on the wrong SP type. The test works fine. Will update the reconfigurator CLI tests in a follow up PR |
Fixes a bug where the planner was using the expected active slot as the found active slot for doing status checks.
Closes: #8887