hub v0.162.0 (built, not deployed): no repeat mail after a restart for a known-down host or an already-reported stale restore test (R-1001); the Day-0 agent list leaves out packages without the felhom-agent file, a vouch of one is refused (R-1011); an absent tunnel reads 'none set up' (R-1070)
gates / gates (push) Successful in 7m20s

This commit is contained in:
admin committed 2026-10-19 20:27:01 +02:00
1 parent a28f162c66
commit 5f31da04bc
16 files changed
+443 -17

No files matched your search

+12
View File
@@ -6,6 +6,7 @@ import (
"crypto/subtle"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"html/template"
"log"
@@ -385,7 +386,14 @@ func (s *Server) artifactChoices(ctx context.Context, pkg, file string) []artifa
wg.Wait()
out := make([]artifactChoice, 0, len(vers))
var noFile []string
for i, v := range vers {
if errors.Is(errs[i], gitea.ErrNoFile) {
// R-1011: a version whose package does not hold the artifact (an agent step bundle) is not an agent
// version — left out of the dropdown, one INFO line per resolve rather than a WARN per version.
noFile = append(noFile, v)
continue
}
if errs[i] != nil {
// unchanged behaviour: a failed lookup drops THAT version, never the whole list
s.logger.Printf("[WARN] artifact sha (%s/%s): %v", pkg, v, errs[i])
@@ -394,6 +402,10 @@ func (s *Server) artifactChoices(ctx context.Context, pkg, file string) []artifa
out = append(out, artifactChoice{Version: v, SHA256: shas[i]})
}
if len(noFile) > 0 {
s.logger.Printf("[INFO] artifact choices (%s): %d version(s) without %s left out (R-1011): %s", pkg, len(noFile), file, strings.Join(noFile, ", "))
}
// Only a SUCCESSFUL resolve is cached. A Gitea blip must not pin an empty list in front of the
// operator for a minute — the earlier returns leave the cache untouched, and so does this one
// when every version's sha lookup failed.