-
Notifications
You must be signed in to change notification settings - Fork 6
Collect more system info #425
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,8 +42,18 @@ | |
| } | ||
|
|
||
| NON_TRANSFORMED_FIELDS: List[str] = [ | ||
| "arch", | ||
| "command", | ||
| "cpu_total", | ||
| "distro_build_id", | ||
| "distro_codename", | ||
| "distro_id", | ||
| "distro_id_like", | ||
| "distro_name", | ||
| "distro_pretty_name", | ||
| "distro_variant_id", | ||
| "distro_version", | ||
| "distro_version_id", | ||
| "duct_version", | ||
| "gpu", | ||
| "hostname", | ||
|
|
@@ -52,7 +62,11 @@ | |
| "message", | ||
| "num_samples", | ||
| "num_reports", | ||
| "os_name", | ||
| "os_release", | ||
| "os_version", | ||
| "prefix", | ||
| "processor", | ||
| "schema_version", | ||
| "stderr", | ||
| "stdout", | ||
|
|
@@ -118,6 +132,25 @@ def ensure_compliant_schema(info_dict: dict) -> None: | |
| # message field added in 0.2.2 | ||
| if parse_version(info_dict["schema_version"]) < parse_version("0.2.2"): | ||
| info_dict["message"] = "" | ||
| # OS and distro provenance fields added to system block in 0.2.3 | ||
| if parse_version(info_dict["schema_version"]) < parse_version("0.2.3"): | ||
| for field in ( | ||
| "os_name", | ||
| "os_release", | ||
| "os_version", | ||
| "arch", | ||
| "processor", | ||
| "distro_id", | ||
| "distro_id_like", | ||
| "distro_name", | ||
| "distro_version", | ||
| "distro_version_id", | ||
| "distro_codename", | ||
| "distro_variant_id", | ||
| "distro_pretty_name", | ||
| "distro_build_id", | ||
| ): | ||
| info_dict["system"][field] = "" | ||
|
Comment on lines
+135
to
+153
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. system always exists on the oldest supported schema, and I dont think we should handle malformed logs at schema migration time. I think we should leave this as-is. If theres a missing field thats needed: Message could be improved, and |
||
|
|
||
|
|
||
| def process_run_data( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.