Skip to content

Commit 1921695

Browse files
committed
syz-cluster/workflow/fuzz-step: nuance archive upload errors
If the archive turned out to be too large, just print an error message and don't return an error from the status update function.
1 parent 2c659a7 commit 1921695

File tree

1 file changed

+8
-5
lines changed
  • syz-cluster/workflow/fuzz-step

1 file changed

+8
-5
lines changed

syz-cluster/workflow/fuzz-step/main.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,15 @@ func reportStatus(ctx context.Context, client *api.Client, status string, store
292292
return nil
293293
}
294294
tarGzReader, err := compressArtifacts(store.BasePath)
295-
if err != nil {
295+
if errors.Is(err, errWriteOverLimit) {
296+
app.Errorf("the artifacts archive is too big to upload")
297+
} else if err != nil {
296298
return fmt.Errorf("failed to compress the artifacts dir: %w", err)
297-
}
298-
err = client.UploadTestArtifacts(ctx, *flagSession, testName, tarGzReader)
299-
if err != nil {
300-
return fmt.Errorf("failed to upload the status: %w", err)
299+
} else {
300+
err = client.UploadTestArtifacts(ctx, *flagSession, testName, tarGzReader)
301+
if err != nil {
302+
return fmt.Errorf("failed to upload the status: %w", err)
303+
}
301304
}
302305
return nil
303306
}

0 commit comments

Comments
 (0)