Update for Zig 0.17 #113
There's a commit from the original repo supporting 0.17.0 thanks to your PR 🙏🏼
We should use that one
@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?
Yes the segfault if because of the race condition of parallel exports
you're right I forgot to update after they merged
<!-- 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:
| 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>
inge4pres
agagniere
Closes #107