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
switch go tests to json output #80822
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt 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 |
looks like a straightforward win! 👀 on CI |
there seems to be some bug verifying the LICENSE? something seems to think gotest.tools/ needs one, we have one for gotest.tools/gotestsum |
I think you need to also vendor https://github.com/gotestyourself/gotest.tools/ ? |
6cedcf2
to
e6ef581
Compare
c32543e
to
0423af4
Compare
0423af4
to
72b2802
Compare
the log file is bigger for the new one, but also the same order of magnitude so /shrug |
Makes sense that wrapping metadata around each line would add some overhead |
/priority important-soon |
The integration failure was intentional: |
heh - I'm so used to integration tests flakes ._.
…On Wed, Jul 31, 2019 at 3:35 PM Jordan Liggitt ***@***.***> wrote:
The integration failure was intentional:
https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/80822/pull-kubernetes-integration/1156682058571976704/
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#80822?email_source=notifications&email_token=AAHADK7JX3P4YIVQ4ZVO4XTQCIHS5A5CNFSM4IIJ3E42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3IYIWQ#issuecomment-517047386>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHADK7CREXTU3CFCCD75UTQCIHS5ANCNFSM4IIJ3E4Q>
.
|
72b2802
to
bd2dc5e
Compare
dropped the intentionally failing commit, this is ready for review |
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.
/lgtm
/hold
one suggestion / question
|
||
if ! command -v gotestsum >/dev/null 2>&1; then | ||
kube::log::error "gotestsum not found; please install with " \ | ||
"go get -u gotest.tools/gotestsum" |
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.
should we be telling people to install from vendor instead?
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.
this was mostly a copy/paste of the existing message... given our scripts do the install from vendor, I don't really care either way
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.
i figured as much, imho we should suggest doing what we would do, otherwise they're going to run it with a different version? /shrug
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.
let's revisit later actually ... @cblecker penny for your thoughts ...
/retest |
/hold cancel |
/retest there's the TestVolumeProvision flake we know and love |
retroactive lgtm. thanks for this @liggitt cc: @kubernetes/sig-testing FYI |
I noticed with this PR, the command |
We could only do json output if a junit report is requested |
What type of PR is this?
/kind bug
/kind failing-test
/kind flake
What this PR does / why we need it:
Switches go tests to json output and switches junit generator to github.com/gotestyourself/gotestsum to avoid flakes caused by spurious output parsing
Which issue(s) this PR fixes:
Fixes #80258
Tested:
Does this PR introduce a user-facing change?:
/sig testing
/cc @BenTheElder