Add support for HTTP HEAD method on /build endpoint #9
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 · 167 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.307
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9"
general
weight: 0.35
mkumatag
Description
Adds HEAD support to /build. Clients can now read an artifact's metadata (Content-Type, Content-Length, Content-Disposition) without downloading the artifact.
Changes
/buildnow supports the HTTPHEADmethod. The supporting changes are ingit.go, which handles the API call, ands3.go, which retrieves the object info (metadata) from IBM COS.___
Why do we need this change?
Clients that call GET on
/buildonly to check whether a build exists end up downloading the artifact and discarding it to/dev/null. With HEAD, a client can confirm availability upfront, without waiting for the download to complete before the request counts as successful, and helps saves both time and bandwidth.This can help specifically in the case of
periodic-golang-master-build-ppc64lewhere the availability for the build artifacts for a certain commit is currently checked through theGETon the/buildendpointRequest | HTTP status | Total time
-- | -- | --
curl -I (HEAD) | 200 | 0.939s
curl (GET, body discarded) | 200 | 17.373s
Commands that helped me test: