Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package arkade for openSUSE:Factory checked in at 2026-11-16 10:10:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/arkade (Old) and /work/SRC/openSUSE:Factory/.arkade.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "arkade" Mon Nov 16 10:10:52 2026 rev:99 rq:1397701 version:0.12.1 Changes: -------- --- /work/SRC/openSUSE:Factory/arkade/arkade.changes 2026-11-06 19:51:59.656153425 +0100 +++ /work/SRC/openSUSE:Factory/.arkade.new.1251/arkade.changes 2026-11-16 10:11:04.302184819 +0100 @@ -1,0 +2,6 @@ +Sun Nov 15 09:59:42 UTC 2026 - Johannes Kastl <[email protected]> + +- Update to version 0.12.1: + * Fix E2E download checks and pin Civo + +------------------------------------------------------------------- Old: ---- arkade-0.12.0.obscpio New: ---- arkade-0.12.1.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ arkade.spec ++++++ --- /var/tmp/diff_new_pack.HYg09f/_old 2026-11-16 10:11:05.450233533 +0100 +++ /var/tmp/diff_new_pack.HYg09f/_new 2026-11-16 10:11:05.453233661 +0100 @@ -17,7 +17,7 @@ Name: arkade -Version: 0.12.0 +Version: 0.12.1 Release: 0 Summary: Open Source Kubernetes Marketplace License: Apache-2.0 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.HYg09f/_old 2026-11-16 10:11:05.517236376 +0100 +++ /var/tmp/diff_new_pack.HYg09f/_new 2026-11-16 10:11:05.524236673 +0100 @@ -3,7 +3,7 @@ <param name="url">https://github.com/alexellis/arkade.git</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">refs/tags/0.12.0</param> + <param name="revision">refs/tags/0.12.1</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.HYg09f/_old 2026-11-16 10:11:05.543237480 +0100 +++ /var/tmp/diff_new_pack.HYg09f/_new 2026-11-16 10:11:05.549237734 +0100 @@ -3,6 +3,6 @@ <param name="url">https://github.com/alexellis/arkade</param> <param name="changesrevision">37af31c7b58de8f16a10067051e3bbe7ecb6aa79</param></service><service name="tar_scm"> <param name="url">https://github.com/alexellis/arkade.git</param> - <param name="changesrevision">a5f88e9316f954916ea8bf6fed53254417c2d9d6</param></service></servicedata> + <param name="changesrevision">18ccdbc73f00d18a1aef0b9a4184ebc0b4894b2f</param></service></servicedata> (No newline at EOF) ++++++ arkade-0.12.0.obscpio -> arkade-0.12.1.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/arkade-0.12.0/Makefile new/arkade-0.12.1/Makefile --- old/arkade-0.12.0/Makefile 2026-11-05 10:16:51.000000000 +0100 +++ new/arkade-0.12.1/Makefile 2026-11-12 10:59:56.000000000 +0100 @@ -27,7 +27,7 @@ .PHONY: e2e e2e: - CGO_ENABLED=0 go test github.com/alexellis/arkade/pkg/get -cover --tags e2e -v + CGO_ENABLED=0 go test github.com/alexellis/arkade/pkg/get -count=1 -cover --tags e2e -v .PHONY: dist-local dist-local: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/arkade-0.12.0/pkg/get/get.go new/arkade-0.12.1/pkg/get/get.go --- old/arkade-0.12.0/pkg/get/get.go 2026-11-05 10:16:51.000000000 +0100 +++ new/arkade-0.12.1/pkg/get/get.go 2026-11-12 10:59:56.000000000 +0100 @@ -275,18 +275,36 @@ req.Header.Set("User-Agent", pkg.UserAgent()) - res, err := http.DefaultClient.Do(req) - if err != nil { - return http.StatusBadRequest, "", nil, err - } - + timeout := 10 * time.Second + client := makeHTTPClient(&timeout, false) + defer client.CloseIdleConnections() + status := http.StatusBadRequest var body string - if res.Body != nil { - b, _ := io.ReadAll(res.Body) + var headers http.Header + _, err = retryWithBackoff(func() (string, error) { + res, err := client.Do(req) + if err != nil { + return "", err + } + defer res.Body.Close() + + status = res.StatusCode + headers = res.Header + b, err := io.ReadAll(res.Body) + if err != nil { + return "", err + } body = string(b) - } - return res.StatusCode, body, res.Header, nil + // Retry transient server failures, leaving other statuses for + // the caller to validate without retrying permanent failures. + if status >= 500 && status < 600 { + return "", fmt.Errorf("server returned status: %d", status) + } + return "", nil + }, 3, 100*time.Millisecond) + + return status, body, headers, err } func (tool Tool) GetURL(os, arch, version string, quiet bool) (string, string, error) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/arkade-0.12.0/pkg/get/get_test.go new/arkade-0.12.1/pkg/get/get_test.go --- old/arkade-0.12.0/pkg/get/get_test.go 2026-11-05 10:16:51.000000000 +0100 +++ new/arkade-0.12.1/pkg/get/get_test.go 2026-11-12 10:59:56.000000000 +0100 @@ -516,6 +516,83 @@ } } +func Test_ToolHead(t *testing.T) { + tests := []struct { + name string + statuses []int + attempts int + wantErr bool + }{ + {name: "success", statuses: []int{http.StatusOK}, attempts: 1}, + {name: "gateway timeout recovers", statuses: []int{http.StatusGatewayTimeout, http.StatusOK}, attempts: 2}, + {name: "server failures recover", statuses: []int{http.StatusBadGateway, http.StatusServiceUnavailable, http.StatusOK}, attempts: 3}, + {name: "server failure exhausts retries", statuses: []int{http.StatusGatewayTimeout}, attempts: 4, wantErr: true}, + {name: "not found is not retried", statuses: []int{http.StatusNotFound}, attempts: 1}, + {name: "forbidden is not retried", statuses: []int{http.StatusForbidden}, attempts: 1}, + {name: "rate limit is not retried", statuses: []int{http.StatusTooManyRequests}, attempts: 1}, + } + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + var attempts atomic.Int32 + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != http.MethodHead { + t.Errorf("expected HEAD request, got %s", r.Method) + } + if r.Header.Get("User-Agent") == "" { + t.Error("expected User-Agent header") + } + attempt := int(attempts.Add(1)) - 1 + if attempt >= len(tc.statuses) { + attempt = len(tc.statuses) - 1 + } + w.Header().Set("Content-Length", "42") + w.WriteHeader(tc.statuses[attempt]) + })) + defer server.Close() + + status, _, headers, err := (Tool{}).Head(server.URL) + if (err != nil) != tc.wantErr { + t.Fatalf("expected error: %v, got %v", tc.wantErr, err) + } + if want := tc.statuses[len(tc.statuses)-1]; status != want { + t.Errorf("expected status %d, got %d", want, status) + } + if headers.Get("Content-Length") != "42" { + t.Errorf("expected response headers, got %v", headers) + } + if got := int(attempts.Load()); got != tc.attempts { + t.Errorf("expected %d attempts, got %d", tc.attempts, got) + } + }) + } +} + +func Test_ToolHeadRetriesConnectionFailure(t *testing.T) { + var attempts atomic.Int32 + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if attempts.Add(1) == 1 { + conn, _, err := w.(http.Hijacker).Hijack() + if err != nil { + t.Errorf("hijack connection: %v", err) + return + } + conn.Close() + return + } + w.Header().Set("Content-Length", "42") + w.WriteHeader(http.StatusOK) + })) + defer server.Close() + + status, _, _, err := (Tool{}).Head(server.URL) + if err != nil || status != http.StatusOK { + t.Fatalf("expected recovery after connection failure, got status %d: %v", status, err) + } + if got := attempts.Load(); got != 2 { + t.Errorf("expected two attempts, got %d", got) + } +} + func Test_MakeSureNoDuplicates(t *testing.T) { count := map[string]int{} tools := MakeTools() @@ -2191,28 +2268,46 @@ tool := getTool(name, tools) - const toolVersion = "v0.7.11" + const toolVersion = "v1.6.0" + if tool.Version != toolVersion { + t.Fatalf("expected default version %s, got %s", toolVersion, tool.Version) + } tests := []test{ {os: "mingw64_nt-10.0-18362", arch: arch64bit, version: toolVersion, - url: `https://github.com/civo/cli/releases/download/v0.7.11/civo-0.7.11-windows-amd64.zip`, + url: `https://github.com/civo/cli/releases/download/v1.6.0/civo-1.6.0-windows-amd64.zip`, }, {os: "linux", arch: arch64bit, version: toolVersion, - url: `https://github.com/civo/cli/releases/download/v0.7.11/civo-0.7.11-linux-amd64.tar.gz`, + url: `https://github.com/civo/cli/releases/download/v1.6.0/civo-1.6.0-linux-amd64.tar.gz`, }, {os: "darwin", arch: arch64bit, version: toolVersion, - url: `https://github.com/civo/cli/releases/download/v0.7.11/civo-0.7.11-darwin-amd64.tar.gz`, + url: `https://github.com/civo/cli/releases/download/v1.6.0/civo-1.6.0-darwin-amd64.tar.gz`, }, {os: "linux", arch: archARM7, version: toolVersion, - url: `https://github.com/civo/cli/releases/download/v0.7.11/civo-0.7.11-linux-arm.tar.gz`, + url: `https://github.com/civo/cli/releases/download/v1.6.0/civo-1.6.0-linux-arm.tar.gz`, + }, + {os: "linux", + arch: archARM64, + version: toolVersion, + url: `https://github.com/civo/cli/releases/download/v1.6.0/civo-1.6.0-linux-arm64.tar.gz`, + }, + {os: "linux", + arch: "arm64", + version: toolVersion, + url: `https://github.com/civo/cli/releases/download/v1.6.0/civo-1.6.0-linux-arm64.tar.gz`, + }, + {os: "darwin", + arch: archDarwinARM64, + version: toolVersion, + url: `https://github.com/civo/cli/releases/download/v1.6.0/civo-1.6.0-darwin-arm64.tar.gz`, }, } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/arkade-0.12.0/pkg/get/tools.go new/arkade-0.12.1/pkg/get/tools.go --- old/arkade-0.12.0/pkg/get/tools.go 2026-11-05 10:16:51.000000000 +0100 +++ new/arkade-0.12.1/pkg/get/tools.go 2026-11-12 10:59:56.000000000 +0100 @@ -1301,6 +1301,11 @@ Repo: "cli", Name: "civo", Description: "CLI for interacting with your Civo resources.", + // Pinned to v1.6.0, transient: v1.6.1 ships no binaries. + // Unpin once release binaries are restored. + // Previous occurrence: civo/cli#570 (v1.4.5). + // https://github.com/civo/cli/issues/570 + Version: "v1.6.0", // BinaryTemplate: `civo`, BinaryTemplate: ` @@ -1321,6 +1326,8 @@ {{$archStr := .Arch}} {{- if eq .Arch "armv7l" -}} {{$archStr = "arm"}} + {{- else if eq .Arch "aarch64" -}} + {{$archStr = "arm64"}} {{- else if eq .Arch "x86_64" -}} {{$archStr = "amd64"}} {{- end -}} ++++++ arkade.obsinfo ++++++ --- /var/tmp/diff_new_pack.HYg09f/_old 2026-11-16 10:11:06.054259163 +0100 +++ /var/tmp/diff_new_pack.HYg09f/_new 2026-11-16 10:11:06.057259291 +0100 @@ -1,5 +1,5 @@ name: arkade -version: 0.12.0 -mtime: 1793870211 -commit: a5f88e9316f954916ea8bf6fed53254417c2d9d6 +version: 0.12.1 +mtime: 1794477596 +commit: 18ccdbc73f00d18a1aef0b9a4184ebc0b4894b2f ++++++ vendor.tar.gz ++++++
