half: Improve tests using special values migrated to harness #2758
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.56) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.56 · 141 lines diff across 1 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.296
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.056
Real PR Conversation Timeline
1 comments
"Review active on #2758"
general
weight: 0.35
shajder
This PR improves the half-float storage conformance tests by leveraging targeted special values (edge cases) and centralizing the dataset generation in the test harness:
Centralize Special Values: Migrated the floating-point and integer special value datasets (
specialValuesFloat,specialValuesDouble) and their generator helper functions from the conversions conformance suite into the centralized test harness (test_common/harness). This makes these edge-case datasets globally accessible for other conformance tests.Thread-safe Initialization: Refactored the initialization of the special value datasets to use C++11 thread-safe static local initialization. This removes the need for explicit locking via
std::recursive_mutexand associated includes.Test_vStoreHalf.cpp(vStoreHalfandvStoreaHalftests) to use the migrated special values. Instead of using a slow sequential bit-pattern loop, the tests now seed blocks with targeted edge cases (NaNs, infinities, subnormals) before padding with random data.Ref #2723