From 192169592697970730a7072e4137ac8af72fe5e9 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 3 Sep 2025 15:29:12 +0200 Subject: 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. --- syz-cluster/workflow/fuzz-step/main.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'syz-cluster') 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 } -- cgit mrf-deployment