Skip to content
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

Missing summary in check when no test results recorded #221

Closed
jglick opened this issue Dec 4, 2020 · 12 comments · Fixed by #223
Closed

Missing summary in check when no test results recorded #221

jglick opened this issue Dec 4, 2020 · 12 comments · Fixed by #223
Labels

Comments

@jglick
Copy link
Member

jglick commented Dec 4, 2020

Not sure if this is related to #211.
test-results
https://github.com/jenkinsci/bom/runs/1498792384 and all other plugin branches show no test result count. Only the initial https://github.com/jenkinsci/bom/runs/1498759937 displays

passed: 8

as expected.

@jglick
Copy link
Member Author

jglick commented Dec 4, 2020

(I do not consider this particularly important, unless test failures are not reported either. Have not yet observed an unstable build to check.)

@mrginglymus
Copy link
Contributor

I'm seeing test result counts on most runs except durable task and echarts. Currently stuck under toddler and wrangling GitHub's very limited app, so hard to see exactly what's gone on.

@mrginglymus
Copy link
Contributor

image

@timja
Copy link
Member

timja commented Dec 4, 2020

ah interesting, I expect this will trigger some failures: jenkinsci/bom#376

@mrginglymus
Copy link
Contributor

💥

@jglick
Copy link
Member Author

jglick commented Dec 4, 2020

So we do get details on failures; it is only the count which is missing on subsequent checks.

@mrginglymus
Copy link
Contributor

Everything looks ok to me - iirc you don’t get a count when there’s a single failure, right? And the greens with no counts also didn’t have any tests.

That’s definitely something to improve though, to explicitly say ‘no tests found’ rather than not show a count

@jglick
Copy link
Member Author

jglick commented Dec 4, 2020

the greens with no counts also didn’t have any tests

Ah, missed that in https://github.com/jenkinsci/bom/runs/1498880553 for example. (jenkinsci/bom#341 means that this was common, for plugins including no explicit tests.) Maybe better to just omit the check altogether if there were no tests (when allowEmptyResults: true)?

@jglick jglick changed the title Test check does not report number of tests, after initial Missing summary in check when no test results recorded Dec 4, 2020
@mrginglymus
Copy link
Contributor

Yes - I suppose once you’ve set that true you shouldn’t be surprised if you get no results :)

@timja
Copy link
Member

timja commented Dec 4, 2020

Possibly just put in the summary:

No test results found

?

A little bit wary of omitting but also could be a valid solution

@mrginglymus
Copy link
Contributor

That would be my preference but I’ve never used ‘allow empty results’ so can’t speak from experience.

Doesn’t seem worth adding another config...

@timja
Copy link
Member

timja commented Dec 4, 2020

Doesn’t seem worth adding another config...

agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants