aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--syz-cluster/workflow/fuzz-step/main.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/syz-cluster/workflow/fuzz-step/main.go b/syz-cluster/workflow/fuzz-step/main.go
index e187f8217..8704d1d73 100644
--- a/syz-cluster/workflow/fuzz-step/main.go
+++ b/syz-cluster/workflow/fuzz-step/main.go
@@ -292,12 +292,15 @@ func reportStatus(ctx context.Context, client *api.Client, status string, store
return nil
}
tarGzReader, err := compressArtifacts(store.BasePath)
- if err != nil {
+ if errors.Is(err, errWriteOverLimit) {
+ app.Errorf("the artifacts archive is too big to upload")
+ } else if err != nil {
return fmt.Errorf("failed to compress the artifacts dir: %w", err)
- }
- err = client.UploadTestArtifacts(ctx, *flagSession, testName, tarGzReader)
- if err != nil {
- return fmt.Errorf("failed to upload the status: %w", err)
+ } else {
+ err = client.UploadTestArtifacts(ctx, *flagSession, testName, tarGzReader)
+ if err != nil {
+ return fmt.Errorf("failed to upload the status: %w", err)
+ }
}
return nil
}