Skip to content

Add CI and toolchain to Protobuf build telemetry#4682

Merged
bernardnormier merged 2 commits into
icerpc:mainfrom
bernardnormier:protobuf-ci
May 21, 2026
Merged

Add CI and toolchain to Protobuf build telemetry#4682
bernardnormier merged 2 commits into
icerpc:mainfrom
bernardnormier:protobuf-ci

Conversation

@bernardnormier
Copy link
Copy Markdown
Member

Fixes #4680

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the Protobuf build-telemetry reporting pipeline to include (1) whether the build is running under CI and (2) the .NET toolchain version, and wires these values from MSBuild into the telemetry plug-in payload.

Changes:

  • Add toolchain=dotnet:<sdkVersion> and ci options to the build-telemetry protoc plug-in invocation.
  • Extend the build-telemetry protobuf schema with ToolchainInfo and a ci flag on TelemetryData.
  • Refactor the build-telemetry plug-in to parse the new parameters directly into TelemetryData.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/IceRpc.Protobuf.Tools/IceRpc.Protobuf.Tools.targets Adds toolchain and CI flags to the build-telemetry plug-in parameter string.
src/IceRpc.Protobuf.BuildTelemetry/proto/icerpc/protobuf/build_telemetry.proto Adds toolchain + CI fields (but currently renumbers existing tags).
src/IceRpc.Protobuf.BuildTelemetry/Program.cs Updates parameter parsing to fill TelemetryData with toolchain/CI info.

Comment thread src/IceRpc.Protobuf.BuildTelemetry/Program.cs
@bernardnormier bernardnormier merged commit 70c3057 into icerpc:main May 21, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CI to build telemetry data

4 participants