← Back to Pull requests

Convert build scripts to Perl #118

Closed
unknown closed this pull request without merging on Feb 20, 2021 21:05 UTC
View on GitHub
unknown unknown commented on Jan 25, 2021 22:19 UTC
Author

Discussion in #115 was generally favorable to the idea of converting all the build (and test) scripts from sh+awk to Perl; this PR does that.

Notable immediate improvements include that there is now _one_ parser for hashes.conf and for libcrypt.map, that all of the libcrypt.minver.* files can be rolled into one, and that (IMHO) the code is overall quite a bit easier to read. My motivation for making this change, however, is to make it easier to change how the build works in the future; for instance, to add more fields to hashes.conf, or to generate a crypt-symbol-versions.h that can make use of __attribute__((symver)).

I selected perl 5.14 as the minimum supported version, trying to keep it well in the past but still relatively convenient to test with. I'm open to arguments for moving the minimum in either direction -- 5.14 happens to be the oldest version with comprehensive support for Unicode text (specifically, with a fully implemented use feature "unicode_strings"), and that's why I picked it, but we do not actually _need_ support for Unicode text; going in the other direction, the only thing I know I _want_ from newer perls is named subroutine arguments ("signatures") and those are still considered experimental as of the very newest version, so it's probably not a great idea to start using them yet.

Diff: 168 lines (+126 / -42) across 2 files Reviewer: besser82 Review duration: 37366m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 168 lines diff across 2 files
0.35
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.307
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #118"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 35.1% (MEDIUM) · Higher = larger blast radius
35.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 13.9% · Safe to merge
13.9%