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
Remove newlineReporter
custom report
#110319
Conversation
@chendave: GitHub didn't allow me to request PR reviews from the following users: onsi. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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/test-infra repository. |
@chendave: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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/test-infra repository. |
Signed-off-by: Dave Chen <dave.chen@arm.com>
What happens when the test writes something to stdout without a newline at the end? I.e. when using However, I lack some background here. It is not clear to me what the original problem was and why go-junit-report is used in combination with a Ginkgo test suite. |
The `newlineReporter` intends to print a new line after the test to prevent the something print to the stdout and mess up the test result while cause the tool like `go-junit-report` fail to parse the result. But this is no longer needed based on following evidence. - The issue that was first introduced in `go-junit-report` has already fixed in the version referenced in `go.mod`. - The `newlineReporter` report doesn't fix anything for `Ginkgo` v1 or V2 or `go test`, it just prints a new line before the test summarization. Signed-off-by: Dave Chen <dave.chen@arm.com>
Thanks, I should use
Me too, but from what was observed by the I saw that @eddiezane is the co-chair of the sig-cli, maybe he know more than us, or point us to the right person who can step out for a review? |
The description now makes more sense to me because it actually reproduces the original problem. /lgtm |
/assign @brianpursle For approval. |
@pohly: GitHub didn't allow me to assign the following users: brianpursle. Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
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/test-infra repository. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chendave, dims 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 |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
The
newlineReporter
intends to print a new line after the test to prevent the something print to the stdout and mess up the test result while cause the tool likego-junit-report
fail to parse the result.But this is no longer needed based on following evidence.
Tested with this patch,
go-junit-report
has already fixed in the versionreferenced in
go.mod
.It was fixed here,
jstemmer/go-junit-report#64
On the mater is here,
https://github.com/jstemmer/go-junit-report/blob/9ad16898a8044f83800984add0907d4e1c070ecb/parser/gotest/gotest.go#L22
It is
go-junit-report
v0.9.1 referenced in thego.mod
which has already included the fix.And I doubt that there is any direct dependency on
go-junit-report
in Kubernetes.newlineReporter
report doesn't fix anything forGinkgo
v1 or V2, it just prints anew line before the test summarization.
The newline is print right above the line of
Ran 9 of 9 Specs in 0.000 seconds
ref:
[1] jstemmer/go-junit-report#31
[2] jstemmer/go-junit-report#64
[3] jstemmer/go-junit-report#63 (the output from the Ginkgo is no longer applicable for Ginkgo v1.14.0 or Ginkgo V2.1.4
/cc @pohly
/cc @aojea
/cc @onsi
/cc @liggitt
/cc @BenTheElder
A following up for this: #109111
What type of PR is this?
Add one of the following kinds:
/kind cleanup
What this PR does / why we need it:
Which issue(s) this PR fixes:
Partial fixes ##109744
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: