-
Notifications
You must be signed in to change notification settings - Fork 522
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
smoketest: Improve output, parallelize by test #8638
smoketest: Improve output, parallelize by test #8638
Conversation
Improves the smoke test output by redirecting all terraform commands to a `tf.log` file, and changes the way the tests are discovered to allow each test to run in parallel. Signed-off-by: Marc Lopez Rubio <[email protected]>
The output for the $ make smoketest/all
-> Running /Users/marclop/repos/elastic/apm-server/testing/smoke/legacy-standalone-major-managed smoke tests for version latest...
-> Running /Users/marclop/repos/elastic/apm-server/testing/smoke/legacy-managed smoke tests for version latest...
-> Running /Users/marclop/repos/elastic/apm-server/testing/smoke/basic-upgrade smoke tests for version latest...
-> unspecified version, using 8.3
-> Running basic upgrade smoke test for version 8.3.2
-> Creating / Upgrading deployment to version 8.2.[0-9]?([0-9])$
-> APM Server ready!
-> Sending events to APM Server...
-> Asserting component templates and ILM policies...
-> Asserting ingest pipelines...
-> Asserting logs-apm.error-* contains expected documents documents...
-> Asserted 1 error.id=9876543210abcdeffedcba0123456789 exists
-> Asserting traces-apm-* contains expected documents documents...
-> Asserted 1 span.id=1234567890aaaade exists
-> Asserting traces-apm-* contains expected documents documents...
-> Asserted 1 transaction.id=4340a8e0df1906ecbfa9 exists
-> Asserting metrics-apm.internal-* contains expected documents documents...
-> Asserted 1 transaction.type=request exists
-> Upgrading APM Server from 8.2.3 to 8.3.2
-> Creating / Upgrading deployment to version 8.3.2
-> APM Server ready!
-> Sending events to APM Server...
-> Asserting component templates and ILM policies...
-> Asserting ingest pipelines...
-> Asserting logs-apm.error-* contains expected documents documents...
-> Asserted 1 error.id=9876543210abcdeffedcba0123456789 exists
-> Asserting traces-apm-* contains expected documents documents...
-> Asserted 1 span.id=1234567890aaaade exists
-> Asserting traces-apm-* contains expected documents documents...
-> Asserted 1 transaction.id=4340a8e0df1906ecbfa9 exists
-> Asserting metrics-apm.internal-* contains expected documents documents...
-> Asserted 1 transaction.type=request exists
-> Destroying the underlying infrastructure... |
Signed-off-by: Marc Lopez Rubio <[email protected]>
… of https://github.com/marclop/apm-server into f/improve-smoke-test-output-parallelize-each-test-case
🌐 Coverage report
|
📚 Go benchmark reportDiff with the
report generated with https://pkg.go.dev/golang.org/x/perf/cmd/benchstat |
hm, the tests don't seem to be running in parallel as we expected, the Makefile targets result in a "nothing to do for target XYZ". @amannocci Do you know what we could be doing differently here so it runs as intended? |
I looked at the issue and it seems to be related to the Let's try this :
Instead of this :
|
Signed-off-by: Marc Lopez Rubio <[email protected]>
Results look wrong:
|
Signed-off-by: Marc Lopez Rubio <[email protected]>
This reverts commit fd19e4c.
I think it happened because all three parallel Jenkins jobs are running in the same folder form what I see in the UI, and the terraform locks are preventing the job from running multiple terraform commands concurrently in the same folder (unintended behavior). I think the splitting of the lines isn't working correctly just yet. In my machine I can run the command just fine and it returns the right output:
|
CI logic was adapted and test runs are parallelized now. |
Motivation/summary
Improves the smoke test output by redirecting all terraform commands to
a
tf.log
file, and changes the way the tests are discovered to alloweach test to run in parallel.
Checklist
- [ ] Update CHANGELOG.asciidoc- [ ] Update package changelog.yml (only if changes toapmpackage
have been made)- [ ] Documentation has been updatedHow to test these changes
make smoketest/all SMOKETEST_VERSION=7.17,latest
Related issues
#8303