add Elastic Stack and Elastic Package version to test results report#3070
add Elastic Stack and Elastic Package version to test results report#3070teresaromero merged 10 commits intoelastic:mainfrom
Conversation
|
@efd6 should this information be across all the tests? (static, asset, pipeline, etc...) Let me know if the elastic-package version format is ok or you have any other thought |
|
AFIUI the version is a constant over the table, correct? If that's the case, the additional verbosity is not a win. In the output of In terms of other thought, I'd love it if the tool emitted JSON instead of a table (or at least optionally instead of), since then any format can by chosen by the user after processing the machine-readable format. |
…esults" This reverts commit c580a91.
…nder-version-tests
💚 Build Succeeded
History
|
As you said, its not a result perse, but a constant defining the test. I've added as a command log when running each test. To be part of the table/xml i guess it should be part of the result and redundant to each test case.
i've added the option to make a json file/output with the test results |
cmd/testrunner.go
Outdated
| } | ||
|
|
||
| cmd.Println(version.Version()) | ||
| cmd.Printf("elastic-stack: %s\n", esClientInfo.Version.Number) |
There was a problem hiding this comment.
As this is printed by each test action, this is printed multiple times, once for each type of test, when running elastic-package test without specifying a subcommand. Is this intended?
There was a problem hiding this comment.
it is intentional, as the version from the stack is taken from the clients / profile.
would it make sense to create a esClient right at the begining of the test cmd to get the version?
There was a problem hiding this comment.
would it make sense to create a esClient right at the begining of the test cmd to get the version?
I don't think so, as not all tests need it. Let's leave it here by now.
| case formats.ReportFormatXUnit: | ||
| ext = "xml" | ||
| case formats.ReportFormatJSON: | ||
| ext = "json" |
There was a problem hiding this comment.
I think it would be better to move this to a separate PR. Or was this report intended to include the version too? 🤔
There was a problem hiding this comment.
Initially i thought this data should appear at the report (table, xml) but by the feedback i got i understood it needed to be printed as a log. The propsal for json y guess is independent as it still reflects the results of the test and not the "environment" (versions) that have been used for them.
eitherway, i am extracting the commit to a new branch and reverting from this PR
@efd6 could you describe with more detail what is the request for this changes? should the version still be part of the results or just be logged into the test output? should the new json option reflect the versions too? thanks
There was a problem hiding this comment.
opening #3101 to track json format changes
Resolves #991
Elastic stack version and elastic-package running version are now logged into the running test output when
elastic-stack testis run.