-
Notifications
You must be signed in to change notification settings - Fork 56
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
[SDK-3997] Upload test results to observability server #1551
[SDK-3997] Upload test results to observability server #1551
Conversation
Sorry, just realised there's still a |
056f4c9
to
3c684b3
Compare
Sorry about that — ready for review now. |
I've pushed 0f0dbb3 to fix a couple of mistakes. Will squash it once the PR is approved; I don't want to rebase it at the moment since I've got a couple of other WIP branches that are based on an earlier commit in this PR and I don't want to sever that connection right now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Integration of mocha-junit-reporter
LGTM. Happy to merge after comments are resolved.
Also, any particular reason we don't do the same for react-hooks
tests? It seems like vitest has a built-in JUnit reporter too.
The test reports emitted by mocha-junit-reporter have <testcase> tags with slightly weird `name` and `classname` properties, e.g. <testsuite name="rest/defaults"> <testcase name="rest/defaults Init with given environment" classname="Init with given environment"> <testcase/> </testsuite> This looks a bit odd in the observability server web UI, which displays the testcase.name and testcase.classname properties. I don’t know whether it’d be better to do some pre-upload manipulation of the ably-js reports, or to change the fields displayed in the web UI. Not going to do anything about it now; it’s usable enough and I don’t want to mess up the display of the ably-cocoa test reports. Co-authored-by: Owen Pearson <owen.pearson@ably.com>
Resolves #1548. Co-authored-by: Owen Pearson <owen.pearson@ably.com>
0f0dbb3
to
95e0e68
Compare
I didn't even consider it, to be honest. The normal test suite is where we've been seeing the flakiness, as far as I'm aware. Also the observability server doesn't currently support differentiating between different test suites in a given repository. |
I see now, seems reasonable. No need for |
Generates JUnit format results for the Node and browser tests, and uploads them to the test observability server. Based on work started by @owenpearson in #1009. See commit messages for more details.
Here is an example upload with some failures. (Before merging this PR, I'll delete all of the existing ably-js uploads so as to not skew the results with these example failures.)
Note that the observability server UI doesn't currently display a link to the individual matrix job that caused the upload. This is addressed by the following open PRs:
Resolves #1548.