WIP [jnigen] Tighten up integration testing #3844
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.35) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 169 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.307
Real PR Conversation Timeline
1 comments
"Review active on #3844"
general
weight: 0.35
liamappelbe
While working on https://github.com/dart-lang/native/issues/3842, we found a bunch of holes in JNIgen's integration testing. Once they're fixed I'll be able to repro this bug on CI, by flipping
org.gradle.parallel=truein the maven examples (not doing so in this PR since it'd turn the CI red).addGradleSources: truein some of the examples. This is required to repro the bug, but for now just adds doc comments etc to the generated bindings. This exposed some other bugs:- A bug in apisummarizer, where in some cases Gradle's sources could cause javadoc to enter "modular mode" and fail. Updated apisummarizer with a fix and a test.
- android_sdk_tools.dart was deleting the groovy gradle stub but not the kotlin gradle stub (which is why it was leftover in the maven_libs example)
- Fix some bugs in the gradle stubs themselves related to how the source artifacts were being located and filtered.
- It was silently ignoring failed gradle runs (a historical relic). Updated it to fail the test
- Reuse existing
comparePathsutil, instead of callinggit diff