Skip to content
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

Move Machine engine to Serval repo #421

Merged
merged 348 commits into from
Jul 9, 2024
Merged

Move Machine engine to Serval repo #421

merged 348 commits into from
Jul 9, 2024

Conversation

ddaspit
Copy link
Contributor

@ddaspit ddaspit commented Jul 5, 2024

This change is Reviewable

ddaspit and others added 20 commits March 22, 2024 13:09
- align all Scripture corpora to Original versification
Fix CI
* parenthesis for order of operations || &&
* master, not main
* default to major biblical terms - #357
Update tests - target-1 does not include BiblicalTermsListSetting to invoke default.

* fix
- add new ScriptureRef corpus ref class
- update Scripture corpora classes to use ScriptureRef
- add ScriptureRefUsfmParserHandlerBase class to track ScriptureRef in USFM
- update UsfmTextUpdater and UsfmTextBase to use ScriptureRefUsfmParserHandlerBase
- add support for updating non-Scripture paragraphs and notes
- update NmtPreprocessBuildJob to support non-Scripture segments

Co-authored-by: John Lambert <john_lambert@sil.org>
* run test coverage locally

* More coverage of ScriptureRef and ScriptureElement.

* Reviewer Comments

* Updates from reviewer comments
* Convert to MongoDB callback API #314

* Update to newest data access layer
* Control the pretranslation of existing text: #370

* Fix tests
* Serval was down until langtags.json was added back.
Add test to force download.

* Reviwer comments
* SMT on ClearML
* Replace CPU, GPU types with just Hangfire vs ClearML as well as engine type
* Allow each engine type to have it's own queue and docker image
* SMT build defaults on ClearML
* NMT local train removed
* Download and upload model in factory using tar.gz and the build directory
* Preserve changes from sillsdev/machine#205.

This reverts commit cf5f45393b4e86b2813ca1beb2c915d88539d159.

---------

Co-authored-by: Damien Daspit <damien_daspit@sil.org>
* retry hangfire jobs - sillsdev/machine#158
* Fixed auto-retry as per this forum post: https://discuss.hangfire.io/t/recurring-jobs-do-not-automatically-get-retried-after-application-crash-net-core-service/9160
* MongoDB can't handle documents greater than 16MB
* Treat messages from one id as a group
* Kill failing messages over 4 days old
* Make outbox truly generic, handling multiple queues
* Ensure globally ordered outbox messages
* Add "MoveAsync" to SharedStorage
* Refactor saving pretranslations file
* correctly handle scoped services in background services
* abstract file handling of content in outbox services
* merge Id and Context in Outbox model
* Consistently use strings for outbox message method identifiers
* split up tests into true unit tests

---------

Co-authored-by: Damien Daspit <damien_daspit@sil.org>
@johnml1135
Copy link
Collaborator

:lgtm:

@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2024

Codecov Report

Attention: Patch coverage is 46.30670% with 2486 lines in your changes missing coverage. Please review.

Project coverage is 61.73%. Comparing base (d729fed) to head (6b47050).
Report is 3 commits behind head on main.

Files Patch % Lines
....Shared/Configuration/IMachineBuilderExtensions.cs 0.00% 309 Missing ⚠️
...l.Machine.Shared/Services/ClearMLMonitorService.cs 5.74% 279 Missing ⚠️
...hared/Services/ServalTranslationEngineServiceV1.cs 0.00% 251 Missing ⚠️
...rc/Serval.Machine.Shared/Services/S3WriteStream.cs 0.00% 178 Missing ⚠️
...val.Machine.Shared/Services/SmtTransferBuildJob.cs 0.00% 117 Missing ⚠️
...c/Serval.Machine.Shared/Services/ClearMLService.cs 31.05% 108 Missing and 3 partials ⚠️
...l.Machine.Shared/Services/ServalPlatformService.cs 0.00% 95 Missing ⚠️
...Machine.Shared/Utils/CustomEnumConverterFactory.cs 2.12% 92 Missing ⚠️
...rc/Serval.Machine.Shared/Services/S3FileStorage.cs 0.00% 84 Missing ⚠️
...rval.Machine.Shared/Services/ClearMLHealthCheck.cs 0.00% 73 Missing ⚠️
... and 61 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #421      +/-   ##
==========================================
- Coverage   71.18%   61.73%   -9.46%     
==========================================
  Files         151      232      +81     
  Lines        7195    11825    +4630     
  Branches     1129     1510     +381     
==========================================
+ Hits         5122     7300    +2178     
- Misses       1615     3998    +2383     
- Partials      458      527      +69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@johnml1135 johnml1135 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 200 of 200 files at r1, 2 of 2 files at r2, 3 of 3 files at r5, 1 of 1 files at r7, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ddaspit)

@johnml1135 johnml1135 merged commit e62da1f into main Jul 9, 2024
2 checks passed
ddaspit added a commit that referenced this pull request Jul 9, 2024
johnml1135 pushed a commit that referenced this pull request Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants