Accept the dropped empty spec in the ReadProfile fuzz test #3598
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 219 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.323
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3598"
general
weight: 0.35
saschagrunert
What type of PR is this?
/kind failing-test
What this PR does / why we need it:
The weekly fuzz run found an input that
FuzzReadProfilerejects:spec: {allow: {}}fails the same way.ReadProfilereads it correctly,the assertion of the test is too strict.
Specis taggedomitzeroandallowis taggedomitempty, so the first encoding keepsspec: {}because the empty
allowmap is not nil. Reading it back leavesallownil, and the second encoding drops
specentirely. Both encodingsdescribe the same profile, but the test required the first round trip to
produce identical YAML.
The test now requires:
equality.Semantic.DeepEqual, which treats nil and empty maps andslices as equal,
The failing input of the run is added as
empty-selinux-allowbelowtestdata/fuzzas a regression test.Which issue(s) this PR fixes:
Fixes #3597
Does this PR have test?
Yes, the change is the test itself. The new corpus entry fails before the
change and passes after it. Each assertion catches a broken
ReadProfileinjected locally: a profile that changes on each read (semantic check),
and an encoding that alternates between
spec: {}and nospec(stabilitycheck).
FuzzReadProfileran 15 minutes locally, 3.3M executions, withoutfailure.
Special notes for your reviewer:
Changing the
omitzerotag of the released v1 API to get an identicalfirst round trip seemed out of proportion for a test, as both forms are
equivalent.
Does this PR introduce a user-facing change?
``
release-note
``NONE