Skip to content

test: add OTLP output support to integration tests#1012

Draft
Molter73 wants to merge 1 commit into
mauro/feat/otel-outputfrom
mauro/tests/otel-support
Draft

test: add OTLP output support to integration tests#1012
Molter73 wants to merge 1 commit into
mauro/feat/otel-outputfrom
mauro/tests/otel-support

Conversation

@Molter73

@Molter73 Molter73 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Description

Extend the test infrastructure to support both gRPC and OTLP output modes. Both servers translate their native message format into the test's Event/Process types, keeping protocol-specific code isolated.

Changes:

  • Add EventServer base class with shared queue/wait logic
  • Add GrpcServer translating FileActivity protobufs into Events
  • Add OtlpServer receiving OTLP/HTTP binary protobuf log exports
  • Refactor Event.diff() and Process.diff() to compare Event vs Event
  • Add --output pytest option (grpc, otlp, all; default: grpc)
  • Parameterize server fixture so tests run per output mode
  • Add pytest-otlp and pytest-all Makefile targets
  • Fix rust_style_quote to match Rust shlex backslash handling
  • Add opentelemetry-proto dependency
  • Add CARGO_ARGS build arg to Containerfile
  • Add image-otel Makefile target

Assisted-by: claude-opus-4-6@default noreply@opencode.ai

Checklist

  • Patch has a change log entry OR does not need one.
  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why you did not do so. (Valid reasons include "CI is sufficient" or "No testable changes")
In addition to reviewing your code, reviewers must also review your testing instructions, and make sure they are sufficient.

For more details, ref the Confluence page about this section.

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Enterprise

Run ID: a886cfc5-d3ac-4dcc-a3f7-e21000a9a556

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch mauro/tests/otel-support

Comment @coderabbitai help to get the list of available commands.

@codecov-commenter

codecov-commenter commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 34.13%. Comparing base (b915ce8) to head (e2a1695).

Additional details and impacted files
@@                   Coverage Diff                   @@
##           mauro/feat/otel-output    #1012   +/-   ##
=======================================================
  Coverage                   34.13%   34.13%           
=======================================================
  Files                          21       21           
  Lines                        2868     2868           
  Branches                     2868     2868           
=======================================================
  Hits                          979      979           
  Misses                       1886     1886           
  Partials                        3        3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Molter73 Molter73 force-pushed the mauro/feat/otel-output branch from a52c44e to b915ce8 Compare July 7, 2026 16:02
Extend the test infrastructure to support both gRPC and OTLP output
modes. Both servers translate their native message format into the
test's Event/Process types, keeping protocol-specific code isolated.

Changes:
- Add EventServer base class with shared queue/wait logic
- Add GrpcServer translating FileActivity protobufs into Events
- Add OtlpServer receiving OTLP/HTTP binary protobuf log exports
- Refactor Event.diff() and Process.diff() to compare Event vs Event
- Add --output pytest option (grpc, otlp, all; default: grpc)
- Parameterize server fixture so tests run per output mode
- Add pytest-otlp and pytest-all Makefile targets
- Fix rust_style_quote to match Rust shlex backslash handling
- Add opentelemetry-proto dependency
- Add CARGO_ARGS build arg to Containerfile
- Add image-otel Makefile target

Assisted-by: claude-opus-4-6@default <noreply@opencode.ai>
@Molter73 Molter73 force-pushed the mauro/tests/otel-support branch from 85722a4 to e2a1695 Compare July 7, 2026 16:03
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