-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add trace based testing to the demo #873
Comments
Can we also add it as part of our GH actions? Every time there is a code change, the test runs and makes sure the traces/metrics produced are the expected ones. |
Awesome initiative! Tracetest can be used in this case for integration and E2E testing. It can also work as part of the GH actions. We're currently dogfooding by testing Tracetest with Tracetest in our CI pipeline. Here's a live sample E2E test against the otel demo - http://tracetest-otel-demo.tracetest.io/transaction/79CmirA4g/run/20 I propose the following steps to be:
From there we can discuss further implementing Helm and more intricate E2E testing with transactions and adding automation in GH actions. |
I want to do this, though I'm unsure what the GH runner cost would be to build and run 23 services to run tests for each PR. At the very least, I would like this to be part of our release process, where a release gets blocked if a test fails. |
Hi folks! We can do a setup to run Tracetest as a GitHub action. We can build a sample on a fork and build a PR as example. On Tracetest we have a task that runs on each PR (here) to dogfood our tool. I believe that we can build a simple version to run it on GH actions at least on the release process. |
Hi folks! I created a draft PR (#877) with some examples of how to run tracetest with the OpenTelemetry demo. The next step that I'm planning to do is to create a GH action executing the testing script and automating these validations. Feel free to make any comments and give suggestions. Thanks! |
Hi folks 👋 ! I've updated the PR with more tests migrated from the AVA tests I showed at today's meeting. By running these tests, we noticed some findings:
You can reproduce these behaviors by running |
Another point that we discussed today is that Tracetest is mapped on CNCF landscape, but CNCF does not incubate it. If you want to see other projects that do Trace-based testing, there are these other three:
|
Feature Request
The demo is 23 services (and counting). Small changes can have unexpected results, and testing all possibilities is not realistic for committers and approvers of the project.
It would be good to record a complete trace (and metrics) for each defined code path and have that be part of a testing harness. The testing harness should be able to query Jaeger (and Prometheus) to check if the same code paths return similar telemetry signatures.
The testing harness should be callable by a developer using make targets. It should also be integrated into docker-compose and Helm for proper integrated testing.
tracetest should be explored as an option to do this.
The text was updated successfully, but these errors were encountered: