aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-09-03 15:29:12 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-09-03 14:08:46 +0000
commit192169592697970730a7072e4137ac8af72fe5e9 (patch)
treef23b8e019da703ec3e4b6c2ac7c07b20f5e7b131
parent2c659a721b3ae09f7c2509293a39fbfece668321 (diff)
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.
-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
}