-
Notifications
You must be signed in to change notification settings - Fork 419
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
NO-ISSUE: ensure that test output is being captured #4908
base: main
Are you sure you want to change the base?
NO-ISSUE: ensure that test output is being captured #4908
Conversation
./hack/test-with-junit.sh appears to be eating the output from go test. For now, it is probably better to remove the calls to that script since some of the test suites are failing and no output is visible.
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheesesashimi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What about something like. Tested this locally:
|
What I was trying to do was allow the usual tee "$test_output";
cat "$test_output" | go-junit-report > "$JUNIT_LOCATION"; In the future, we may want to adopt something like gotestsum which can do a lot of this for us. |
@cheesesashimi: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
- What I did
I removed the calls to ./hack/test-with-junit.sh within our e2e test suites. This scripts' purpose is to capture the go test output, write it to a file, and run go-junit on it to produce a junit.xml file that Prow can ingest. Unfortunately, it appears that the script is eating output from go test and not even writing it to the workspace upon failure. This means that we can't figure out the cause of the test failure. So while we'll lose our junit reporting, that is less important right now.
- How to verify it
Run the e2e test jobs. The output should be visible, regardless of the test outcome. However, note that we will no longer receive junit reporting in Prow from it.
- Description for the changelog
Remove junit processing for e2e tests