-
Notifications
You must be signed in to change notification settings - Fork 518
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
systemtest: add tests for aggregation and sampling #4084
Conversation
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
b90a471
to
8c14462
Compare
It's going to take a bit to shuffle the approvals code around, so I'll move the PR back into draft for now. |
Migrate aggregation and sampling system tests to Go. As part of this we introduce "approval" test support. The implementation is a little different to the one in the Python system tests: the Python ones ignore various dynamic fields when computing the diff; we replace dynamic fields before comparing, so the approved diffs don't change in unrelated ways every time there is an expected change, such as a new field.
If we don't consume the response, the server may (non-determinstically) log an error.
10d1ce3
to
589e133
Compare
Codecov Report
@@ Coverage Diff @@
## master #4084 +/- ##
=======================================
Coverage 80.34% 80.34%
=======================================
Files 142 142
Lines 6712 6712
=======================================
Hits 5393 5393
Misses 1319 1319 |
* systemtest: add tests for aggregation and sampling Migrate aggregation and sampling system tests to Go. As part of this we introduce "approval" test support. The implementation is a little different to the one in the Python system tests: the Python ones ignore various dynamic fields when computing the diff; we replace dynamic fields before comparing, so the approved diffs don't change in unrelated ways every time there is an expected change, such as a new field. * systemtest: update aggregation config * Check result in TestTransactionAggregationShutdown * systemtest: fix logging test If we don't consume the response, the server may (non-determinstically) log an error. * Update approved files
* systemtest: add tests for aggregation and sampling Migrate aggregation and sampling system tests to Go. As part of this we introduce "approval" test support. The implementation is a little different to the one in the Python system tests: the Python ones ignore various dynamic fields when computing the diff; we replace dynamic fields before comparing, so the approved diffs don't change in unrelated ways every time there is an expected change, such as a new field. * systemtest: update aggregation config * Check result in TestTransactionAggregationShutdown * systemtest: fix logging test If we don't consume the response, the server may (non-determinstically) log an error. * Update approved files
Motivation/summary
Migrate aggregation and sampling system tests to Go.
As part of this we introduce "approval" test support.
The implementation is a little different to the Python
version: the Python version ignores various dynamic
fields when computing the diff, whereas in this version
we replace dynamic fields before comparing, so the
approved files don't change in unrelated ways every
time there is an expected change, such as a new field.
Checklist
- [ ] I have updated CHANGELOG.asciidocI have considered changes for:
- [ ] documentation- [ ] logging (add log lines, choose appropriate log selector, etc.)- [ ] metrics and monitoring (create issue for Kibana team to add metrics to visualizations, e.g. Kibana#44001)- [ ] telemetry- [ ] Elasticsearch Service (https://cloud.elastic.co)- [ ] Elastic Cloud Enterprise (https://www.elastic.co/products/ece)- [ ] Elastic Cloud on Kubernetes (https://www.elastic.co/elastic-cloud-kubernetes)How to test these changes
cd systemtest && go test -v
Related issues
None.