Replies: 5 comments 5 replies
-
|
@mimir-d Ready for you to take a look |
Beta Was this translation helpful? Give feedback.
-
|
i have to say, for the first rfc, this format looks very nice. if we get a linked PR to it, i think the structure of rfcs looks rather final. as for the content of this rfc, my comments are:
waiting for other comments in the meantime: @dframe-google @njordr @dalwise @20100M @yuanlinw-google |
Beta Was this translation helpful? Give feedback.
-
|
Since the intent is to ease debugging and troubleshooting would it be more beneficial to expand sourceLocation to a more generic stackTrace or stdErr element to trace where the error was emitted. This would satisfy the needs of tracking source location while providing more general-purpose traceability of an error in execution. |
Beta Was this translation helpful? Give feedback.
-
|
Summarizing what we discussed in the meeting on Wednesday: Software Info Id is meant to capture the "emitter" idea of saying where something comes from. Right now Logs and Diagnoses do not have this, so it's implied that they are always produced by the diagnostic itself. This is fine for Diagnoses as they are meant to be hardware related, but we may want to add software info ID to logs for when logs are "re-logged" from other software. Ultimately though, this question is not related to the source location and can be explored in a future RFC. Let me know if this is accurate @mimir-d Also @mimir-d, @20100M are we ready to approve this and discuss other additions in future RFCs or do we feel like there needs to be more discussion? |
Beta Was this translation helpful? Give feedback.
-
|
PR #637 was merged 🎉 @ckchen-google would be great if you could give us some feedback around your experience of proposing a spec change, in #631 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Abstract
Today, the OCP Test and Validation Output specification doesn’t contain source location information, making it difficult to identify and debug issues. This is especially problematic for dynamic logs, which are generated at runtime and don’t have a fixed error string to search for in the codebase. We propose adding a source location artifact to the OCP Diag specification in order to address these concerns.
Motivation
Adding source location information would greatly improve the usefulness of logs and make it easier to identify and resolve issues. It would allow users to quickly locate the relevant code location and understand the context in which the log was generated. To do this, we propose a new source location artifact to be added to the preexisting Diagnosis, Log, and Error artifacts.
Proposed Changes
This would result in the following spec changes:
SourceLocation
Diagnosis
Log
Error
Examples
Diagnosis
{ "testStepArtifact": { "diagnosis": { "verdict": "mlc-intranode-bandwidth-pass", "type": "PASS", "message": "intranode bandwidth within threshold.", "hardwareInfoId": "1", "subcomponent": { "type": "BUS", "name": "QPI1", "location": "CPU-3-2-3", "version": "1", "revision": "0" }, "sourceLocation": { "filepath": "examples/simple/simple_main.cc", "line": 90 } }, "testStepId": "1" }, "sequenceNumber": 1, "timestamp": "2022-07-25T02:15:58.296032Z" }Log
{ "testStepArtifact": { "log": { "message": "file operation completed successfully.", "severity": "INFO", "sourceLocation": { "filepath": "examples/simple/simple_main.cc", "line": 90 } }, "testStepId": "1" }, "sequenceNumber": 1, "timestamp": "2022-07-25T03:19:01.274584Z" }Error
{ "testStepArtifact": { "error": { "symptom": "bad-return-code", "message": "software exited abnormally.", "softwareInfoIds": [ "3", "4" ], "sourceLocation": { "filepath": "examples/simple/simple_main.cc", "line": 90 } }, "testStepId": "1" }, "sequenceNumber": 1, "timestamp": "2022-07-25T03:06:11.254865Z" }Beta Was this translation helpful? Give feedback.
All reactions