-
Notifications
You must be signed in to change notification settings - Fork 352
feat: Add a reporter that writes a JSON schema for ORT results #9961
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
Conversation
plugins/reporters/ort-result-schema/src/main/kotlin/OrtResultSchemaReporter.kt
Fixed
Show fixed
Hide fixed
plugins/reporters/ort-result-schema/src/main/kotlin/OrtResultSchemaReporter.kt
Fixed
Show fixed
Hide fixed
plugins/reporters/ort-result-schema/src/main/kotlin/OrtResultSchemaReporter.kt
Fixed
Show fixed
Hide fixed
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9961 +/- ##
=========================================
Coverage 68.46% 68.46%
Complexity 1309 1309
=========================================
Files 250 250
Lines 8881 8881
Branches 924 924
=========================================
Hits 6080 6080
Misses 2409 2409
Partials 392 392
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ccb246c
to
da1322b
Compare
This is mostly to assist the ORT community with writing external tooling. But it could also be used to detect breaking ORT results changes in the future, and introduce / bump an output file format version. Signed-off-by: Sebastian Schuberth <[email protected]>
da1322b
to
bf33639
Compare
@@ -0,0 +1,35 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit-msg:
This is mostly to assist the ORT community with writing external
tooling.
Didn't we say that the OrtResult
format should not be depended upon externally as it is subject to change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and this PR is not supposed to imply changing that. The ORT result file is and should stay an internal format that can change any time without notice. Which means that also this schema generated by this reporter can change any time. This was just meant as a quick support work for @heliocastro as requested on Slack.
But as I knew this would spawn discussions, I've not dared to take this out of draft state yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just in the schema now, the current jackson support old type of jsonschema. Is ok for you if i update the PR @sschuberth ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is ok for you if i update the PR @sschuberth ?
Update how? Even the latest version of jackson-module-jsonSchema
only supports schema V3, and the fork at https://github.com/mbknor/mbknor-jackson-jsonSchema that is supposed to support newer schema versions has not been updated for 4 years.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll give that one a try. However, we've discussed in today's core dev meeting that a reporter maybe is not the ideal place to implement this after all. I'll probably experiment with something over at https://github.com/sschuberth/ort-scripts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm closing this PR in favor of the scripting approach. Please give the script a try @heliocastro.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this approach better
No description provided.