Skip to content

update grafana classifier#4635

Merged
kzantow merged 2 commits intoanchore:mainfrom
witchcraze:4559_update-grafana-binary-classifier
Feb 23, 2026
Merged

update grafana classifier#4635
kzantow merged 2 commits intoanchore:mainfrom
witchcraze:4559_update-grafana-binary-classifier

Conversation

@witchcraze
Copy link
Copy Markdown
Contributor

Description

update grafana classifier

$ go test -v ./syft/pkg/cataloger/binary -run Test_Cataloger_PositiveCases/grafana
=== RUN   Test_Cataloger_PositiveCases
=== RUN   Test_Cataloger_PositiveCases/grafana/12.4.0-22081664032/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/12.4.0-22081664032/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/12.3.2-security-01/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/12.3.2-security-01/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/12.3.1/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/12.3.1/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/12.2.0-258092/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/12.2.0-258092/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/12.0.0/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/12.0.0/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/11.0.0-preview/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/11.0.0-preview/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/11.0.0/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/11.0.0/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/10.4.19/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/10.4.19/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/10.3.12/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/10.3.12/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.5.21/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/9.5.21/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.4.0-beta1/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/9.4.0-beta1/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.3.0-beta1/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/9.3.0-beta1/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.2.20/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/9.2.20/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.2.13/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/9.2.13/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.0.0/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/9.0.0/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/7.5.17/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/7.5.17/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/6.7.6/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/6.7.6/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/6.7.0-test/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/6.7.0-test/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/6.0.0-beta1/linux-amd64
    snippet_or_binary.go:50: using snippet for "grafana/6.0.0-beta1/linux-amd64"
--- PASS: Test_Cataloger_PositiveCases (2.98s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/12.4.0-22081664032/linux-amd64 (0.28s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/12.3.2-security-01/linux-amd64 (0.28s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/12.3.1/linux-amd64 (0.27s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/12.2.0-258092/linux-amd64 (0.27s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/12.0.0/linux-amd64 (0.26s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/11.0.0-preview/linux-amd64 (0.17s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/11.0.0/linux-amd64 (0.17s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/10.4.19/linux-amd64 (0.16s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/10.3.12/linux-amd64 (0.16s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.5.21/linux-amd64 (0.12s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.4.0-beta1/linux-amd64 (0.12s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.3.0-beta1/linux-amd64 (0.10s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.2.20/linux-amd64 (0.11s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.2.13/linux-amd64 (0.11s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.0.0/linux-amd64 (0.10s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/7.5.17/linux-amd64 (0.08s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/6.7.6/linux-amd64 (0.07s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/6.7.0-test/linux-amd64 (0.07s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/6.0.0-beta1/linux-amd64 (0.07s)
PASS
ok      github.com/anchore/syft/syft/pkg/cataloger/binary       2.997s

$ go test -v ./syft/pkg/cataloger/binary -run Test_Cataloger_PositiveCases/grafana -must-use-original-binaries
=== RUN   Test_Cataloger_PositiveCases
=== RUN   Test_Cataloger_PositiveCases/grafana/12.4.0-22081664032/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/12.4.0-22081664032/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/12.3.2-security-01/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/12.3.2-security-01/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/12.3.1/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/12.3.1/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/12.2.0-258092/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/12.2.0-258092/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/12.0.0/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/12.0.0/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/11.0.0-preview/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/11.0.0-preview/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/11.0.0/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/11.0.0/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/10.4.19/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/10.4.19/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/10.3.12/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/10.3.12/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.5.21/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/9.5.21/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.4.0-beta1/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/9.4.0-beta1/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.3.0-beta1/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/9.3.0-beta1/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.2.20/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/9.2.20/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.2.13/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/9.2.13/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/9.0.0/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/9.0.0/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/7.5.17/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/7.5.17/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/6.7.6/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/6.7.6/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/6.7.0-test/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/6.7.0-test/linux-amd64"
=== RUN   Test_Cataloger_PositiveCases/grafana/6.0.0-beta1/linux-amd64
    snippet_or_binary.go:62: forcing the use of the original binary for "grafana/6.0.0-beta1/linux-amd64"
--- PASS: Test_Cataloger_PositiveCases (240.68s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/12.4.0-22081664032/linux-amd64 (1.97s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/12.3.2-security-01/linux-amd64 (9.12s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/12.3.1/linux-amd64 (8.98s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/12.2.0-258092/linux-amd64 (1.92s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/12.0.0/linux-amd64 (21.73s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/11.0.0-preview/linux-amd64 (8.21s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/11.0.0/linux-amd64 (11.94s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/10.4.19/linux-amd64 (21.17s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/10.3.12/linux-amd64 (24.28s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.5.21/linux-amd64 (22.61s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.4.0-beta1/linux-amd64 (33.49s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.3.0-beta1/linux-amd64 (3.00s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.2.20/linux-amd64 (24.14s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.2.13/linux-amd64 (23.80s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/9.0.0/linux-amd64 (5.07s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/7.5.17/linux-amd64 (3.24s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/6.7.6/linux-amd64 (2.40s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/6.7.0-test/linux-amd64 (11.16s)
    --- PASS: Test_Cataloger_PositiveCases/grafana/6.0.0-beta1/linux-amd64 (2.45s)
PASS
ok      github.com/anchore/syft/syft/pkg/cataloger/binary       240.695s

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (please discuss with the team first; Syft is 1.0 software and we won't accept breaking changes without going to 2.0)
  • Documentation (updates the documentation)
  • Chore (improve the developer experience, fix a test flake, etc, without changing the visible behavior of Syft)
  • Performance (make Syft run faster or use less memory, without changing visible behavior much)

Checklist

  • I have added unit tests that cover changed behavior
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections

Issue references

Fixes #4559

Signed-off-by: witchcraze <witchcraze@gmail.com>
Signed-off-by: witchcraze <witchcraze@gmail.com>
@witchcraze
Copy link
Copy Markdown
Contributor Author

CI failed due to external download error.
Could you re-run the CI?

[0000]  INFO binny version: 0.11.3
[0000]  INFO installing tool=syft version=v1.42.1
2026/02/22 16:36:05 [DEBUG] GET https://github.com/anchore/syft/releases/expanded_assets/v1.42.1
2026/02/22 16:36:05 [DEBUG] GET https://github.com/anchore/syft/releases/expanded_assets/v1.42.1 (status: 502): retrying in 1s (4 left)
2026/02/22 16:36:06 [DEBUG] GET https://github.com/anchore/syft/releases/expanded_assets/v1.42.1 (status: 502): retrying in 2s (3 left)
2026/02/22 16:36:08 [DEBUG] GET https://github.com/anchore/syft/releases/expanded_assets/v1.42.1 (status: 502): retrying in 4s (2 left)
2026/02/22 16:36:12 [DEBUG] GET https://github.com/anchore/syft/releases/expanded_assets/v1.42.1 (status: 502): retrying in 8s (1 left)
1 error occurred:
[0015]  WARN failed to install all tools failed=[syft]
	* failed to install tool "syft": unable to fetch github release anchore/syft@v1.42.1: unable to fetch release anchore/syft@v1.42.1 via scrape: unable to download "https://github.com/anchore/syft/releases/expanded_assets/v1.42.1": GET https://github.com/anchore/syft/releases/expanded_assets/v1.42.1 giving up after 5 attempt(s)
task: Failed to run task "tools": exit status 1
Error: exit status 1
make: *** [Makefile:43: tools] Error 201
Error: Process completed with exit code 2.

Copy link
Copy Markdown
Contributor

@kzantow kzantow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @witchcraze

@kzantow kzantow merged commit e9e7e20 into anchore:main Feb 23, 2026
16 of 17 checks passed
@witchcraze witchcraze deleted the 4559_update-grafana-binary-classifier branch February 24, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support grafana binary various versions

2 participants