-
Notifications
You must be signed in to change notification settings - Fork 618
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(nexus): finish artifact saver #6296
Conversation
9773c04
to
50026b5
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6296 +/- ##
==========================================
- Coverage 77.10% 70.70% -6.41%
==========================================
Files 387 387
Lines 44607 44598 -9
==========================================
- Hits 34393 31531 -2862
- Misses 10162 13015 +2853
Partials 52 52
Flags with carried forward coverage won't be shown. Click here to find out more.
|
50026b5
to
2d370af
Compare
c6b1603
to
08c8ebf
Compare
2d370af
to
f0052d3
Compare
351060b
to
796c8a0
Compare
0658cf7
to
100799f
Compare
ab50c8b
to
6003a11
Compare
6003a11
to
a518377
Compare
taskResultsChan <- TaskResult{task, name} | ||
}, | ||
} | ||
as.UploadManager.AddTask(task) |
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.
FYI: i think we still need to add something (in a later PR) to capture uploaded files so we can pass them in filestream as completed files.. See "Uploaded" in pkg/filestream/loop_transmit.go -- and equiv logic in python internal/filestream.go
What happened here? @dmitryduev @kptkin why did you add a bunch of unrelated changes to my PR? |
@@ -291,7 +291,8 @@ func (h *Handler) handleRequest(record *service.Record) { | |||
shutdown = true | |||
case *service.Request_StopStatus: | |||
case *service.Request_LogArtifact: | |||
h.handleLogArtifact(record, x.LogArtifact, response) | |||
h.handleLogArtifact(record) | |||
response = nil |
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.
Just return early from this case
nexus/pkg/utils/utils.go
Outdated
func NilIfZero[T comparable](x T) *T { | ||
var zero T | ||
if x == zero { | ||
return nil | ||
} | ||
return &x | ||
} | ||
|
||
func ComputeB64MD5(data []byte) (string, error) { |
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 this used anywhere other than artifacts?
Fixes WB-15188
Description
Nexus docs: https://weightsandbiases.slack.com/archives/C04MNBGJDBN/p1692678447664909
Upload algorithm docs: https://weightsandbiases.slack.com/archives/C04MNBGJDBN/p1693352398534739
Benchmark: https://weightsandbiases.slack.com/archives/C04MNBGJDBN/p1695764535202659
TODO:
Test plan