Skip to content

Rename packrat field names - #728

Merged
jamesmunns merged 2 commits into
masterfrom
james/rename-host-cmds
Sep 3, 2026
Merged

Rename packrat field names#728
jamesmunns merged 2 commits into
masterfrom
james/rename-host-cmds

Conversation

@jamesmunns

Copy link
Copy Markdown
Contributor

Closes #727

In oxidecomputer/hubris@8011935 I changed the name of these fields after the humility PR landed, and didn't go back to change them.

This addresses that. We don't need to support the old names as that never landed in the main hubris tree.

@jamesmunns
jamesmunns requested a review from labbott September 3, 2026 17:32
Comment thread cmd/host/src/lib.rs
const PACKRAT_LAST_PANIC_PAYLOAD: &str = "cell.value.host_info.panic_payload";
const PACKRAT_LAST_PANIC_STATE: &str = "cell.value.host_info.panic_state";
const PACKRAT_BOOT_FAIL_PAYLOAD: &str = "cell.value.host_info.panic_payload";
const PACKRAT_BOOT_FAIL_STATE: &str = "cell.value.host_info.panic_state";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@jamesmunns are there tests we can add to catch issues like these moving forward?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I'll add an issue to add this to our regression test suite. We have tests for older versions, but I didn't add one as we hadn't landed the hubris change yet when the humility PR did (which also fixed some other issues).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Opened #729

@adamlouis

Copy link
Copy Markdown

@jamesmunns This works on the affected systems - thanks for the fix!

@jamesmunns
jamesmunns merged commit 00c4db9 into master Sep 3, 2026
13 checks passed
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.

humility host last-panic fails with member missing from struct: last_boot_fail

3 participants