Skip to content

Commit eeeea9e

Browse files
chore: switch to yardstick validate from custom gate.py (#2090)
* chore: switch to yardstick validate from custom gate.py Signed-off-by: Will Murphy <[email protected]> * fix python version to work with new yardstick Signed-off-by: Will Murphy <[email protected]> * chore: use yardstick release not branch Signed-off-by: Will Murphy <[email protected]> --------- Signed-off-by: Will Murphy <[email protected]>
1 parent 5c62bd3 commit eeeea9e

File tree

5 files changed

+10
-348
lines changed

5 files changed

+10
-348
lines changed

.github/actions/bootstrap/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
python-version:
99
description: "Python version to install"
1010
required: true
11-
default: "3.10"
11+
default: "3.11"
1212
go-dependencies:
1313
description: "Download go dependencies"
1414
required: true

test/quality/.yardstick.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ default_max_year: 2021
9191
result-sets:
9292
pr_vs_latest_via_sbom:
9393
description: "latest released grype vs grype from the current build (via SBOM ingestion)"
94+
validations:
95+
- max-f1-regression: 0.0
96+
max-new-false-negatives: 00
97+
max-unlabeled-percent: 10
98+
max_year: 2021
9499
matrix:
95100
images: *images
96101

@@ -112,6 +117,7 @@ result-sets:
112117
# for local build of grype, use for example:
113118
version: path:../../+import-db=db.tar.gz
114119
takes: SBOM
120+
label: candidate
115121

116122
- name: grype
117123
# note: we import a static (pinned) DB as to prevent changes in the DB from affecting the results. The
@@ -121,3 +127,4 @@ result-sets:
121127
# are testing with is not too stale.
122128
version: latest+import-db=db.tar.gz
123129
takes: SBOM
130+
label: reference

test/quality/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ all: capture validate ## Fetch or capture all data and run all quality checks
2727

2828
.PHONY: validate
2929
validate: venv $(VULNERABILITY_LABELS)/Makefile ## Run all quality checks against already collected data
30-
$(ACTIVATE_VENV) ./gate.py
30+
$(ACTIVATE_VENV) yardstick validate -r $(RESULT_SET)
3131

3232
.PHONY: capture
3333
capture: sboms vulns ## Collect and store all syft and grype results

test/quality/gate.py

Lines changed: 0 additions & 345 deletions
This file was deleted.

test/quality/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
git+https://github.com/anchore/yardstick@v0.9.1
1+
git+https://github.com/anchore/yardstick@v0.10.0
22
# ../../../yardstick
33
tabulate==0.9.0

0 commit comments

Comments
 (0)