Skip to content

Conversation

@karencfv
Copy link
Contributor

Fixes a bug where the planner was using the expected active slot as the found active slot for doing status checks.

Closes: #8887

expected_pending_persistent_boot_preference,
expected_transient_boot_preference,
}) => {
let active_caboose_which = match &expected_active_slot.slot {
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Collaborator

@davepacheco davepacheco left a 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!

@karencfv
Copy link
Contributor Author

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 🤞

@karencfv
Copy link
Contributor Author

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

@karencfv karencfv enabled auto-merge (squash) August 25, 2025 16:49
@karencfv
Copy link
Contributor Author

karencfv commented Aug 25, 2025

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

@karencfv karencfv merged commit e050434 into oxidecomputer:main Aug 25, 2025
16 checks passed
@karencfv karencfv deleted the rot-update-fix branch August 25, 2025 21:27
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.

Blueprint planner: RoT update status check looks at wrong active slot

3 participants