From 6af1f94a698da45d69e83632a9a06fae10739d1c Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Fri, 8 Mar 2024 15:52:59 +0100 Subject: syz-ci: pipeline coverage from manager to gcs --- syz-ci/manager.go | 3 ++- syz-ci/syz-ci.go | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/syz-ci/manager.go b/syz-ci/manager.go index 2f86325e6..77497496c 100644 --- a/syz-ci/manager.go +++ b/syz-ci/manager.go @@ -941,7 +941,8 @@ func (mgr *Manager) uploadFile(dstPath, name string, file io.Reader, allowPublis URL.Path = path.Join(URL.Path, name) URLStr := URL.String() log.Logf(0, "uploading %v to %v", name, URLStr) - if strings.HasPrefix(URLStr, "http") { + if strings.HasPrefix(URLStr, "http://") || + strings.HasPrefix(URLStr, "https://") { return uploadFileHTTPPut(URLStr, file) } return uploadFileGCS(URLStr, file, allowPublishing && mgr.cfg.PublishGCS) diff --git a/syz-ci/syz-ci.go b/syz-ci/syz-ci.go index 9c59870ca..e9e12e0e6 100644 --- a/syz-ci/syz-ci.go +++ b/syz-ci/syz-ci.go @@ -106,7 +106,6 @@ type Config struct { // Supported protocols: GCS (gs://) and HTTP PUT (http:// or https://). CoverUploadPath string `json:"cover_upload_path"` // Path to upload json coverage reports from managers (optional). - // Supported protocol: GCS (gs://) CoverPipelinePath string `json:"cover_pipeline_path"` // Path to upload corpus.db from managers (optional). // Supported protocols: GCS (gs://) and HTTP PUT (http:// or https://). -- cgit mrf-deployment