Skip to content

chore: update opentelemetry-cpp, protobuf, GitHub Actions and fix flaky netflow test#768

Merged
leoparente merged 6 commits intodevelopfrom
chore/update-opentelemetry-protobuf
Apr 11, 2026
Merged

chore: update opentelemetry-cpp, protobuf, GitHub Actions and fix flaky netflow test#768
leoparente merged 6 commits intodevelopfrom
chore/update-opentelemetry-protobuf

Conversation

@leoparente
Copy link
Copy Markdown
Contributor

@leoparente leoparente commented Apr 10, 2026

Summary

  • opentelemetry-cpp: 1.17.01.24.0
  • protobuf: 5.27.06.33.5 (major version bump)
  • CMakeLists.txt: move CMAKE_CXX_STANDARD 17 before project() so conan_provider.cmake (which fires during project() via CMAKE_PROJECT_TOP_LEVEL_INCLUDES) sees the correct standard and does not fall back to MSVC's default C++14
  • Windows CI (build-develop.yml, build-release.yml): add a Setup Conan Profile step that pre-creates the default Conan profile with cppstd=17 before CMake runs — fixes --profile:build=default picking up C++14 for tool_requires (protobuf build-time use)
  • GitHub Actions: update all actions to latest versions across all 6 workflow files
  • test_flows.cpp: fix flaky Parse netflow v5 stream test — was silently relying on global state populated by sflow tests; now calls IpPort::set_csv_iana_ports() directly so it is self-contained regardless of run order

Test plan

  • Windows build passes with protobuf/6.33.5 and opentelemetry-cpp/1.24.0
  • Linux/macOS builds pass
  • [netflow] tagged tests pass when run in isolation (no sflow tests before them)
  • --randomize-run-order does not flip the netflow v5 port name assertion

🤖 Generated with Claude Code

- opentelemetry-cpp: 1.17.0 → 1.24.0
- protobuf: 5.27.0 → 6.33.5 (major version bump)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@leoparente leoparente self-assigned this Apr 10, 2026
leoparente and others added 5 commits April 10, 2026 16:32
…e on Windows

conan_provider.cmake fires during project() via CMAKE_PROJECT_TOP_LEVEL_INCLUDES,
before the previous CMAKE_CXX_STANDARD=17 assignment at line 53. MSVC defaults to
C++14, causing protobuf/6.33.5 (which requires C++17) to fail validation on Windows.

Moving the standard declaration above project() ensures conan_provider.cmake always
detects cppstd=17 regardless of platform.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
conan_provider.cmake passes --profile:build=default to conan install.
The auto-detected default on MSVC always sets compiler.cppstd=14, which
fails validation for protobuf/6.33.5 (requires C++17) when used as a
build/tool requirement.

Pre-creating the default profile with cppstd=17 before CMake runs ensures
both the host and build profiles agree on the C++ standard.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
actions/*:
  checkout v4 → v6, cache v4 → v5, upload-artifact v4 → v7,
  download-artifact v4 → v8, setup-python v4 → v6

docker/*:
  metadata-action v5.6.1 → v6.0.0, login-action v3.3.0 → v4.1.0,
  setup-qemu-action v3.2.0 → v4.0.0, setup-buildx-action v3.8.0 → v4.0.0,
  build-push-action v6.10.0 → v7.1.0

third-party:
  github-script v8.0.0 → v9.0.0, codecov-action v3 → v6.0.0,
  codeql-action v3 → v3.35.1 (SHA-pinned), codeql upload-sarif v4.32.6 → v4.35.1,
  filter-sarif v1 → v1.1

No change: turtlebrowser/get-conan (v1.2 already latest),
           aquasecurity/trivy-action (v0.35.0 already latest),
           actions/create-release (archived upstream)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The "Parse netflow v5 stream" test was missing the
IpPort::set_csv_iana_ports() call, making it depend on global static
state populated by sflow tests that happen to run first. When run in
isolation (e.g. --randomize-run-order or filtered by [netflow]), the
port map is empty so port 23 resolves to "23" instead of "telnet".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@leoparente leoparente changed the title chore: update opentelemetry-cpp and protobuf to latest versions chore: update opentelemetry-cpp, protobuf, GitHub Actions and fix flaky netflow test Apr 10, 2026
@leoparente leoparente marked this pull request as ready for review April 10, 2026 21:16
@leoparente leoparente requested a review from mfiedorowicz April 10, 2026 21:16
@leoparente leoparente merged commit 9e0d410 into develop Apr 11, 2026
14 of 15 checks passed
@leoparente leoparente deleted the chore/update-opentelemetry-protobuf branch April 11, 2026 11:15
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.

2 participants