Skip to content

[Copilot Agent] Rework tests on branch new/telemetry-testing for in-memory/in-process execution #48

Description

@manio143

Instructions for Copilot Agent

The current implementation of tests on branch new/telemetry-testing relies on running the .NET Aspire framework service via Docker and making calls over the network stack. This approach is slow and less reliable in the GitHub Actions pipeline.

Task:

  • Convert tests to use an in-process web server:

    • Use the AspNet Core library for in-memory web application testing, instead of network/HTTP calls to a Dockerized service.
  • Postgres dependency:

    • Use the Testcontainers library to spin up a Postgres database instance. The container should be started once for the entire test suite, not per test, to improve speed and reliability.
  • OpenTelemetry gRPC server:

    • Refactor the custom OpenTelemetry gRPC server used for capturing logs and traces during tests.
    • Make this code run fully in memory by leveraging an in-memory OpenTelemetry exporter processor, reducing the need for network stack and external gRPC server.

Additional Notes:

  • Ensure all changes work reliably in GitHub Actions pipeline.
  • Try to preserve the current tests structure and only substitute the initialization of distributed application for the in memory application
  • Maintain parity with current test coverage and logging/trace assertions.

Branch: new/telemetry-testing


If further clarification is needed, please ask.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions