← Back to Pull requests

Update for Zig 0.17 #113

Open
agagniere opened this pull request with 714 lines diff across 33 files
View on GitHub
agagniere agagniere commented on Oct 13, 2026 08:19 UTC
Author

Closes #107

Diff: 714 lines (+565 / -149) across 33 files Reviewer: inge4pres Review duration: 6961m
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.77) × (1 − Review Confidence (0.92)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.77 · 714 lines diff across 33 files
0.77
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.91 · 3 substantive comment(s)
0.91
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
91%
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.393
Mass File Touch mass_file_touch
0.080
Empty Description empty_description
0.060
Real PR Conversation Timeline
6 items
inge4pres inge4pres commented on code on Oct 14, 2026 20:37 UTC
Code Review
build.zig.zon:1
@@ -24,14 +24,14 @@
     // internet connectivity.
     .dependencies = .{
         .zbench = .{
-            .url = "git+https://github.com/hendriknielaender/zBench?ref=v0.13.0#b2b89c475e3ef1bb2bd71255c80478a82d3e0ca8",
-            .hash = "zbench-0.13.0-YTdc7xVBAQCCMC-IdLLuotBeiNNNm8k9Pi2V4VYqrwfI",
+            .url = "git+https://github.com/hendriknielaender/zBench?ref=v0.14.1#f12a2262bcd9d300207890555c577da5e29de453",
+            .hash = "zbench-0.14.1-YTdc781OAQCR6wxqkgAwm9bG4TnFGzm8c9aE-ZPiTAU1",
         },
         // Consumed by the vendored opentelemetry-proto module (see
         // build/proto/build.zig) and, transitively, by the SDK.
         .protobuf = .{
-            .url = "git+https://github.com/Arwalk/zig-protobuf?ref=v5.0.0#1f6cb06156b3ff4f52f98bc14f829c0b8393a6fc",
-            .hash = "protobuf-5.0.0-0e82avKUKAAVwTWJzTIEZ14Fu0zC11_lElR8tE6H__y1",
+            .url = "git+https://github.com/agagniere/zig-protobuf?ref=zig-master#42a6dcbe93b90f588097839cac52b51f6f9f926d",

There's a commit from the original repo supporting 0.17.0 thanks to your PR 🙏🏼
We should use that one

inge4pres inge4pres commented on Oct 15, 2026 17:45 UTC
Reviewer

@agagniere tried it out and looking good 👍🏼
Is the segfault in the examples build something that is fixed by another open PR?

IIRC you mentioned #115 does it?

agagniere agagniere commented on Oct 16, 2026 06:40 UTC
Author

Yes the segfault if because of the race condition of parallel exports

agagniere agagniere commented on code on Oct 16, 2026 06:41 UTC
Code Review
build.zig.zon:1
@@ -24,14 +24,14 @@
     // internet connectivity.
     .dependencies = .{
         .zbench = .{
-            .url = "git+https://github.com/hendriknielaender/zBench?ref=v0.13.0#b2b89c475e3ef1bb2bd71255c80478a82d3e0ca8",
-            .hash = "zbench-0.13.0-YTdc7xVBAQCCMC-IdLLuotBeiNNNm8k9Pi2V4VYqrwfI",
+            .url = "git+https://github.com/hendriknielaender/zBench?ref=v0.14.1#f12a2262bcd9d300207890555c577da5e29de453",
+            .hash = "zbench-0.14.1-YTdc781OAQCR6wxqkgAwm9bG4TnFGzm8c9aE-ZPiTAU1",
         },
         // Consumed by the vendored opentelemetry-proto module (see
         // build/proto/build.zig) and, transitively, by the SDK.
         .protobuf = .{
-            .url = "git+https://github.com/Arwalk/zig-protobuf?ref=v5.0.0#1f6cb06156b3ff4f52f98bc14f829c0b8393a6fc",
-            .hash = "protobuf-5.0.0-0e82avKUKAAVwTWJzTIEZ14Fu0zC11_lElR8tE6H__y1",
+            .url = "git+https://github.com/agagniere/zig-protobuf?ref=zig-master#42a6dcbe93b90f588097839cac52b51f6f9f926d",

you're right I forgot to update after they merged

copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Oct 17, 2026 10:04 UTC
Reviewer

<!-- ccr-overview-v2 -->

🔵 Needs a closer look

Unresolved moderate issues affect test filtering and exporter-wrapper cleanup, with a dependency documentation mismatch.

No open issues 🎉

<details>
<summary><strong>What changed in this PR</strong></summary>

Updates the repository for Zig 0.17, including build APIs, dependencies, SDK compatibility changes, and regenerated protobuf bindings.

Changes:

  • Migrates Zig build, reflection, allocator, and test APIs.

  • Updates dependencies and CI workflows.

  • Regenerates protobuf bindings and adjusts exporter lifecycle handling.
  • | File | Description |
    |---|---|
    | opentelemetry-sdk/​src/​test_runner.zig | Updates test allocator handling. |
    | opentelemetry-sdk/​src/​sdk/​metrics/​reader.zig | Updates array initialization. |
    | opentelemetry-sdk/​src/​sdk/​metrics/​exporters/​prometheus.zig | Adjusts exporter cleanup. |
    | opentelemetry-sdk/​src/​sdk/​metrics/​exporter.zig | Adjusts exporter cleanup in tests. |
    | opentelemetry-sdk/​src/​otlp.zig | Updates array and string APIs. |
    | opentelemetry-sdk/​src/​attributes.zig | Updates reflection and array APIs. |
    | opentelemetry-sdk/​src/​api/​trace.zig | Updates reflection APIs. |
    | opentelemetry-sdk/​src/​api/​metrics/​spec.zig | Updates compile-time string generation. |
    | opentelemetry-sdk/​src/​api/​logs/​logger_provider.zig | Updates struct reflection. |
    | opentelemetry-sdk/​integration_tests/​README.md | Updates integration filter usage. |
    | opentelemetry-sdk/​examples/​trace/​simple.zig | Updates array initialization. |
    | opentelemetry-sdk/​examples/​metrics/​prometheus.zig | Adjusts exporter lifecycle handling. |
    | opentelemetry-sdk/​benchmarks/​metrics/​observable.zig | Disables incompatible allocation tracking. |
    | opentelemetry-proto/​src/​opentelemetry/​proto/​trace/​v1.pb.zig | Regenerated protobuf bindings. |
    | opentelemetry-proto/​src/​opentelemetry/​proto/​resource/​v1.pb.zig | Regenerated protobuf bindings. |
    | opentelemetry-proto/​src/​opentelemetry/​proto/​profiles/​v1development.pb.zig | Regenerated protobuf bindings. |
    | opentelemetry-proto/​src/​opentelemetry/​proto/​metrics/​v1.pb.zig | Regenerated protobuf bindings. |
    | opentelemetry-proto/​src/​opentelemetry/​proto/​logs/​v1.pb.zig | Regenerated protobuf bindings. |
    | opentelemetry-proto/​src/​opentelemetry/​proto/​common/​v1.pb.zig | Regenerated protobuf bindings. |
    | opentelemetry-proto/​src/​opentelemetry/​proto/​collector/​trace/​v1.pb.zig | Regenerated collector bindings. |
    | opentelemetry-proto/​src/​opentelemetry/​proto/​collector/​profiles/​v1development.pb.zig | Regenerated collector bindings. |
    | opentelemetry-proto/​src/​opentelemetry/​proto/​collector/​metrics/​v1.pb.zig | Regenerated collector bindings. |
    | opentelemetry-proto/​src/​opentelemetry/​proto/​collector/​logs/​v1.pb.zig | Regenerated collector bindings. |
    | CONTRIBUTING.md | Updates development commands. |
    | build/​semconv/​build.zig | Migrates semantic-convention build logic. |
    | build/​sdk/​build.zig | Updates SDK build and filtering logic. |
    | build/​proto/​build.zig | Migrates protobuf build logic. |
    | build/​helpers.zig | Updates build metadata and directory handling. |
    | build.zig.zon | Updates Zig and dependency versions. |
    | build.zig | Adds test filtering and updates optimization settings. |
    | .github/​workflows/​test.yaml | Uses Zig 0.17 in CI. |
    | .github/​workflows/​integration.yaml | Uses Zig 0.17 for integration CI. |
    | .github/​workflows/​deploy-docs.yml | Uses Zig 0.17 for documentation deployment. |
    </details>

    <sub>Review effort: Lite</sub>

    Reviewers
    Assignees
    agagniere agagniere
    Labels
    risk: low confidence: 91.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: 76.8% (HIGH) · Higher = larger blast radius
    76.8%
    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: 91.5% · Lower = rushed or shallow review
    91.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: 6.5% · Safe to merge
    6.5%