Remove CurlHandle's unused source_file/source_line parameters #1138
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.37) × (1 − Review Confidence (0.87)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 68 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.82 · 5 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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.253
Real PR Conversation Timeline
14 items
Could a maintainer add the improvement and non-breaking labels (I can't set labels as an outside contributor) and /ok to test 6e321eb? Thanks!
/ok to test 6e321eb
/ok to test 6e321eb
@kingcrimsontianyu, there was an error processing your request: E2
See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/
/ok to test 6e321eb351b8b0dd90ffad6d0990cbdda07d7b32
I think we can remove this macro and simply use direct initialization at the call site now:
CurlHandle curl(LibCurl::instance().get_handle());
explicit CurlHandle(LibCurl::UniqueHandlePtr handle, bool use_shared_dns_cache = true);
Done in a8a3722: the macro is gone and all 11 call sites (including the tests) construct CurlHandle directly.
Applied in a8a3722.
/ok to test a8a3722dc2dce4628f0d4aabce1bc04f0ac8d628
Thanks for the cleanup!
/merge
Approved
Approved these changes.
kingcrimsontianyu
maxwbuckley
CurlHandle'ssource_fileandsource_lineconstructor parameters haven't been read since #653 moved error reporting toKVIKIO_EXPECT/KVIKIO_FAIL. This removes them andfix_conda_file_path_hack(), which existed only to clean up the__FILE__string passed assource_file. Following review, it also removes thecreate_curl_handle()macro: callers now constructCurlHandledirectly, and its constructor isexplicit.No behavior change. Split out of #1135 at a reviewer's request; #1135 now keeps the parameters and marks them
[[maybe_unused]].CurlHandleis in a public header, so out-of-tree code that constructs it directly with the old four-argument signature would need updating. The same applies to out-of-tree code that usescreate_curl_handle(). All callers within KvikIO are updated.Testing: every changed file compiles with GCC 14 against current
main. The first commit's change, applied to the #1135 branch, passed the curl, URL, TLS, multi-poll and remote-handle tests.🤖 Generated with Claude Code