WIP: Windows unit tests - move to junit#39971
Conversation
8e4bb0b to
14f5096
Compare
hack/make.ps1
Outdated
There was a problem hiding this comment.
Should we build this as part of the Dockerfile, and then copy the binary out?
There was a problem hiding this comment.
@thaJeztah - Great suggestion, it would be what we do on Linux. I will put it on my plate - the current approach makes it easier to debug issues with building of gotestsum. Once we have it baked well for all three [unit, integration and integration-cli], I will move this to Dockerfile, if that is OK by you.
14f5096 to
c0044d1
Compare
|
Hmm...looks like the windows RS5 node was not allocated properly to even start the tests: I've re-kicked the job. |
|
You're going to need a section in Lines 401 to 405 in 9b07a3e After you add that, the additional tests will start showing up on the test report: https://ci.docker.com/public/job/moby/view/change-requests/job/PR-39971/test/?width=800&height=600 And under the test results page of the specific build number, e.g.: https://ci.docker.com/public/job/moby/view/change-requests/job/PR-39971/5/testReport/ |
Signed-off-by: Vikram bir Singh <[email protected]>
c0044d1 to
3ebfb8f
Compare
|
@andrewhsu - thanks, pushed the Jenkinsfile change as well. RS5 for now, will add for RS1 as well after validation. |
| } | ||
| post { | ||
| always { | ||
| junit testResults: 'bundles/junit-report.xml', allowEmptyResults: true |
There was a problem hiding this comment.
@vikramhh hmm...i don't see the test results for RS5: https://ci.docker.com/public/job/moby/job/PR-39971/6/testReport/
does windows care about the direction of the slashes in filename paths?
|
Could you also have It will help with diagnosis and processing of test results. |
|
I think I'll have to carry this one so that the Jenkinsfile changes are picked up |
|
opened #39998 |
|
I want to try a different approach; perhaps Jenkins doesn't look at where the PR came from (which fork), but only who opened the PR. So instead of forking your branch to my GitHub fork, I want to open a PR from your branch. GitHub doesn't allow having two PRs open from the same branch though, so I'll close this one, and open a new one from the same branch on your fork. |
Part of work required for #39675 on Windows.
#39638 covers the corresponding work on Linux.
Signed-off-by: Vikram bir Singh [email protected]
- What I did
Added functionality to Unit test execution code to build and use gotestsum.exe for test execution
- How I did it
Modified the Unit test execution code in hack\make.ps1
- How to verify it
Execute unit tests and verify that test output is present in the bundles directory under root.
- Description for the changelog
Build and use gotestsum.exe for unit test execution\
- A picture of a cute animal (not mandatory but encouraged)