Repository navigation
feat: record the platform and network state of every run - #292
Merged
Merged
Conversation
The runner records two restricted facts in every run. platform_recorded, right after ceremony_started, says where the run happens: OS, architecture, a Rite Live system, a container or a virtual machine when one is detected, and Secure Boot. network_state_recorded is measured at the opening, once the ceremony is started, and at the closing, before ceremony_completed or ceremony_failed. An abort after the opening measurement also records a closing measurement. A measurement records each interface's kind, state, carrier, whether it has an address and its counters, as decimal strings, the default routes and the radios. Hardware and network addresses are not recorded. The counters of the two measurements bracket the traffic of the run, which rite report shows per interface. rite verify prints the platform as reported, without checking it. The probes now leave the radios unknown when /sys is hidden, the interfaces unknown when they cannot be listed, and the hostname unset when the OS does not report it.
The System tab opens on the platform and the latest network measurement as the transcript records them, each with the time it was recorded, then what the TUI reads itself: disks, backends and the build. Unknown values read as unknown. The interfaces are a table, one row each, those with an address first and virtual ones last. The tab scrolls from the top with the same keys as the log. The host name and the Peripherals placeholder are no longer shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.