-
-
Notifications
You must be signed in to change notification settings - Fork 5
Add tags to Serval jobs based on the Scripture Forge environment #3316
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
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #3316 +/- ##
==========================================
+ Coverage 82.53% 82.55% +0.01%
==========================================
Files 605 605
Lines 35269 35301 +32
Branches 5737 5744 +7
==========================================
+ Hits 29110 29141 +31
- Misses 5301 5313 +12
+ Partials 858 847 -11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e00aae8
to
631ad2d
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.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @pmachapman)
src/SIL.XForge.Scripture/Services/MachineProjectService.cs
line 2168 at r1 (raw file):
options["tags"] = tag; } else if (options["tags"].Type == JTokenType.String && options["tags"].ToString() != tag)
What is the reason that we are supporting multiple tags? I would have expected that each build would really only have one tag.
Code quote:
else if (options["tags"].Type == JTokenType.String && options["tags"].ToString() != tag)
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @RaymondLuong3)
src/SIL.XForge.Scripture/Services/MachineProjectService.cs
line 2168 at r1 (raw file):
Previously, RaymondLuong3 (Raymond Luong) wrote…
What is the reason that we are supporting multiple tags? I would have expected that each build would really only have one tag.
Mostly because the ClearML API supports it, but also as I think there is a pretty reasonable chance tags could be added in future. I wrote the code to merge the tags in the ServalConfig so that a Serval Admin could configure custom tags in the Serval Config for a project, if they wanted to track special information for a project, such as Catapult, or something else.
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @pmachapman)
src/SIL.XForge.Scripture/Services/MachineProjectService.cs
line 2168 at r1 (raw file):
Previously, pmachapman (Peter Chapman) wrote…
Mostly because the ClearML API supports it, but also as I think there is a pretty reasonable chance tags could be added in future. I wrote the code to merge the tags in the ServalConfig so that a Serval Admin could configure custom tags in the Serval Config for a project, if they wanted to track special information for a project, such as Catapult, or something else.
Ok, that makes sense to me. Thanks for the explanation.
631ad2d
to
ad7ef24
Compare
This PR passes a tag to Serval, based on the Scripture Forge environment, so that the jobs in ClearML are tagged. These tags are only visible in ClearML.
See also: sillsdev/machine.py#208
This change is