-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat(reporter): Add id of current ORT run as label to ORT results #200
feat(reporter): Add id of current ORT run as label to ORT results #200
Conversation
fdadf43
to
8fee6df
Compare
workers/notifier/src/main/kotlin/notifier/NotifierOrtResultGenerator.kt
Outdated
Show resolved
Hide resolved
workers/notifier/src/main/kotlin/notifier/NotifierOrtResultGenerator.kt
Outdated
Show resolved
Hide resolved
workers/notifier/src/test/kotlin/notifier/NotifierOrtResultGeneratorTest.kt
Outdated
Show resolved
Hide resolved
b0e25c8
to
b4cd334
Compare
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.
As a general note: I would recommend to do the introduction of the new result generator class/function in a separate commit. Currently, the single commit does a lot of things.
workers/common/src/main/kotlin/common/OrtBaseResultGenerator.kt
Outdated
Show resolved
Hide resolved
workers/common/src/main/kotlin/common/OrtBaseResultGenerator.kt
Outdated
Show resolved
Hide resolved
e41b09a
to
d722926
Compare
workers/notifier/src/test/kotlin/notifier/NotifierOrtResultGeneratorTest.kt
Show resolved
Hide resolved
d722926
to
0728582
Compare
@@ -88,6 +89,10 @@ class OrtRunService( | |||
private val scannerJobRepository: ScannerJobRepository, | |||
private val scannerRunRepository: ScannerRunRepository | |||
) { | |||
companion object { | |||
private const val RUN_ID_LABEL: String = "runId" |
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.
Nit: This should drop the explicit type.
0728582
to
07834ef
Compare
Add the id of the current ORT run as label to the ORT result in order to have it available during report and notification generation. Signed-off-by: Wolfgang Klenk <[email protected]>
07834ef
to
59a27f1
Compare
2f1f1e3
@oheger-bosch Please pay extra attention to the ECA check before adding PRs to the merge queue, we currently cannot make it required (https://gitlab.eclipse.org/eclipsefdn/it/api/git-eca-rest-api/-/issues/161, eclipse-apoapsis/.eclipsefdn#4). @wkl3nk Please do not edit commits with the GitHub UI as this makes the ECA check fail: https://api.eclipse.org/git/eca/status/gh/eclipse-apoapsis/ort-server/200 |
What does this mean? Does the commit have to be dropped again? |
No, I think as we know the commit was authered by @wkl3nk and only the wrong email was used it should be fine. |
Add the id of the current ORT run as label to the ORT result in order to have it available during report and notification generation.