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

Add kola-junit script to generate JUnit XML files #3667

Merged
merged 3 commits into from
Dec 4, 2023

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Nov 27, 2023

There's a lot of friction associated with debugging pipeline kola test
failures. One must scroll a bunch and sift through the output to see
which test(s) failed, and if more information is needed, download the
archived artifacts, extract it, and look for the journal and console
there.

Let's make this easier by outputting JUnit XML files. Jenkins can
natively display test results in that format so it's much easier to see
which tests ran, which ones failed, and their outputs (in the Blue Ocean
view, it's the "Tests" tab which we haven't been using so far).

For space efficiency and to reduce noise, we default to skipping over
passed tests.

jlebon added a commit to jlebon/coreos-ci-lib that referenced this pull request Nov 27, 2023
This will allow us to much more easily inspect failing kola tests.
Goes together with coreos/coreos-assembler#3667,
which has more details.

While we're here, use `kola-testiso` as marker since it looks clearer
and for consistency with `kola-upgrade`.
jlebon added a commit to jlebon/coreos-ci-lib that referenced this pull request Nov 27, 2023
This will allow us to much more easily inspect failing kola tests.
Goes together with coreos/coreos-assembler#3667,
which has more details.

While we're here, use `kola-testiso` as marker since it looks clearer
and for consistency with `kola-upgrade`.
@jlebon
Copy link
Member Author

jlebon commented Nov 27, 2023

You can see what it looks like in https://jenkins-coreos-ci.apps.ocp.fedoraproject.org/blue/organizations/jenkins/jlebon-tmp2/detail/jlebon-tmp2/12/tests

And screenshot for posterity for when that job will be wiped.

image

@dustymabe
Copy link
Member

It would be great in this new page view if we could see the stdout from cosa kola run that related to this test.. i.e. things like the test timed out, but I don't think that's easy to get at all :)

src/kola-junit Outdated Show resolved Hide resolved
jlebon added a commit to jlebon/coreos-ci-lib that referenced this pull request Dec 1, 2023
This will allow us to much more easily inspect failing kola tests.
Goes together with coreos/coreos-assembler#3667,
which has more details.

While we're here, use `kola-testiso` as marker since it looks clearer
and for consistency with `kola-upgrade`.
There's a lot of friction associated with debugging pipeline kola test
failures. One must scroll a bunch and sift through the output to see
which test(s) failed, and if more information is needed, download the
archived artifacts, extract it, and look for the journal and console
there.

Let's make this easier by outputting JUnit XML files. Jenkins can
natively display test results in that format so it's much easier to see
which tests ran, which ones failed, and their outputs (in the Blue Ocean
view, it's the "Tests" tab which we haven't been using so far).

For space efficiency and to reduce noise, we default to skipping over
passed tests.
While we carry patches, let's freeze the osbuild version so that the
patches can be updated atomically with the version freeze, avoiding
temporarily breaking builds.
@jlebon
Copy link
Member Author

jlebon commented Dec 1, 2023

Updated for comments and added a freeze on osbuild as discussed in #3671! (Fine to break that out into its own PR if you'd prefer.)

It would be great in this new page view if we could see the stdout from cosa kola run that related to this test.. i.e. things like the test timed out, but I don't think that's easy to get at all :)

That actually is possible. It was already the case for non-external tests, but now I've tweaked it so we retain the information for external tests too.

build.sh Show resolved Hide resolved
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jlebon jlebon merged commit 22dbf07 into coreos:main Dec 4, 2023
2 checks passed
@jlebon jlebon deleted the pr/junit branch December 4, 2023 14:13
jlebon added a commit to coreos/coreos-ci-lib that referenced this pull request Dec 4, 2023
This will allow us to much more easily inspect failing kola tests.
Goes together with coreos/coreos-assembler#3667,
which has more details.

While we're here, use `kola-testiso` as marker since it looks clearer
and for consistency with `kola-upgrade`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants