fix: exclude known noise from cache comparison and configs

- Hugo: exclude Linux-64bit legacy filename alias
- Hugo-extended: exclude Linux-64bit legacy filename alias
- Gitea: exclude -src- and -docs- tarballs
- Pathman: exclude armv8 legacy alias
- UUID v7: exclude exotic architectures (thumb, armeb, loong, gnux32, risc)
- comparecache: filter bare executables and docs tarballs as noise,
  apply noise filter to both live and Go sides
- legacy.go: add .tar.bz2 to legacyFormats

Match count: 69/106 (up from 58)
This commit is contained in:
AJ ONeal
2026-03-10 18:18:38 -06:00
parent 2ebecb644e
commit 8f9cf8e487
7 changed files with 31 additions and 12 deletions

View File

@@ -287,7 +287,7 @@ func compare(livePath, goPath, pkg string, latestOnly, windowed bool) packageDif
var goVF map[string]map[string]bool
var goVersions []string
if goCache != nil {
goVF, goVersions = extractVersionFiles(goCache, nil)
goVF, goVersions = extractVersionFiles(goCache, notNoise)
d.VersionsGo = goVersions
d.GoCount = len(goCache.Releases)
}
@@ -497,6 +497,17 @@ func isLiveNoise(name string) bool {
return true
}
// Docs tarballs (e.g. gitea-docs-1.22.3.tar.gz).
if strings.Contains(lower, "-docs-") {
return true
}
// Bare executables without any extension — typically legacy shell scripts
// uploaded alongside proper archives (e.g. kubectx, kubens).
if !strings.Contains(name, ".") {
return true
}
return false
}

View File

@@ -1,3 +1,4 @@
source = github
owner = go-gitea
repo = gitea
exclude = -src- -docs-

View File

@@ -2,3 +2,4 @@ source = github
owner = gohugoio
repo = hugo
asset_filter = extended
exclude = Linux-64bit

View File

@@ -1,4 +1,4 @@
source = github
owner = gohugoio
repo = hugo
exclude = extended
exclude = extended Linux-64bit

View File

@@ -72,16 +72,20 @@ func ImportLegacy(lc LegacyCache) PackageData {
// legacyFormats is the set of formats the Node.js server recognizes.
// Assets with formats not in this set are filtered out of legacy exports.
var legacyFormats = map[string]bool{
".zip": true,
".tar.gz": true,
".tar.xz": true,
".tar": true,
".xz": true,
".pkg": true,
".msi": true,
".exe": true,
".dmg": true,
"git": true,
".zip": true,
".tar.gz": true,
".tar.xz": true,
".tar.zst": true,
".tar.bz2": true,
".tar": true,
".xz": true,
".7z": true,
".pkg": true,
".msi": true,
".exe": true,
".exe.xz": true,
".dmg": true,
"git": true,
}
// ExportLegacy converts PackageData to the LegacyCache wire format.

View File

@@ -2,3 +2,4 @@ source = gitea
base_url = https://git.rootprojects.org
owner = root
repo = pathman
exclude = armv8

View File

@@ -1,3 +1,4 @@
source = github
owner = coolaj86
repo = uuidv7
exclude = -thumb -armeb -loong -gnux32 -risc