Skip to content
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

Include OS version info in metadata #163

Merged
merged 7 commits into from
May 28, 2022
Merged

Include OS version info in metadata #163

merged 7 commits into from
May 28, 2022

Conversation

raccube
Copy link
Member

@raccube raccube commented May 27, 2022

Closes #126

@raccube raccube requested a review from trickeydan May 27, 2022 18:17
@raccube raccube marked this pull request as draft May 27, 2022 18:23
@raccube raccube marked this pull request as ready for review May 28, 2022 08:22
Copy link
Contributor

@trickeydan trickeydan left a comment

Choose a reason for hiding this comment

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

Looks good so far, we definitely need to do something about those potential KeyErrors though.

I'm really excited to combine this with templating!

astoria/common/metadata.py Outdated Show resolved Hide resolved
astoria/common/metadata.py Outdated Show resolved Hide resolved
astoria/common/metadata.py Outdated Show resolved Hide resolved
trickeydan added a commit that referenced this pull request May 28, 2022
This change usings the string.Template templating engine to allow metadata to be inserted into the initial log lines at runtime.

This means that we can print the OS version and other information that Astoria is aware of in the log lines.

It should be noted that the metadata is the metadata at the time of the log being generated, so the arena, zone and other keys that may be updated by a metadata USB might not be accurate when the code first starts. This is because metadata USBs are often inserted after the robot has been turned on!

Fixes #156

This change also builds the path to #113, although doesn't resolve it until #163 is also merged.
raccube and others added 2 commits May 28, 2022 20:33
Co-authored-by: Dan Trickey <git@trickey.io>
@raccube raccube requested a review from trickeydan May 28, 2022 18:35
@raccube raccube merged commit 25ca0cd into main May 28, 2022
@raccube raccube deleted the kjk/os-version-metadata branch May 28, 2022 22:52
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.

Add operating system to Metadata
2 participants