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

kola: return 77 on warning and use different colors to highlight tests results #3551

Merged
merged 5 commits into from
Aug 22, 2023

Conversation

nikita-dubrovskii
Copy link
Contributor

=== RUN   ext.config.ntp.timesyncd.dhcp-propagation                                                                                                                                                                                            
=== RUN   ext.config.ntp.chrony.coreos-platform-chrony-config                                                                                                                                                                                  
=== RUN   ext.config.ntp.chrony.dhcp-propagation                                                                                                                                                                                               
--- PASS: ext.config.ntp.chrony.coreos-platform-chrony-config (27.13s) 
--- WARN: ext.config.ntp.chrony.dhcp-propagation (410.37s)
+ rc=77                                                                                                                                                                                                                                        
+ set +x

mantle/harness/harness_test.go Outdated Show resolved Hide resolved
mantle/kola/harness.go Outdated Show resolved Hide resolved
mantle/cli/cli.go Outdated Show resolved Hide resolved
mantle/kola/harness.go Outdated Show resolved Hide resolved
mantle/cmd/kola/options.go Outdated Show resolved Hide resolved
dustymabe and others added 5 commits August 21, 2023 09:05
Let's get the exit code to the top level when a non-zero exit code
is returned. This allows someone to take different behavior based
on the exit code.
This will allow callers to behave differently based on the exitcode.
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

@dustymabe dustymabe merged commit a191716 into coreos:main Aug 22, 2023
2 checks passed
dustymabe added a commit to dustymabe/coreos-ci-lib that referenced this pull request Aug 22, 2023
This commit refactors the arguments and error handling for `kola`
into a runKola function to make it easier to manage. Most calls in
this file use mostly the same arguments, so this is a nice cleanup.

This commit also adds the `--on-warn-failure-exit-77` option [1]
and adds handling to mark a test as `warn()` if that happens versus
the typical `error()`.

[1] coreos/coreos-assembler#3551
@dustymabe
Copy link
Member

/cherry-pick rhcos-4.14

@openshift-cherrypick-robot

@dustymabe: new pull request created: #3578

In response to this:

/cherry-pick rhcos-4.14

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.

dustymabe added a commit to dustymabe/coreos-ci-lib that referenced this pull request Aug 23, 2023
This commit refactors the arguments and error handling for `kola`
into a runKola closure to make it easier to manage. Most calls in
this file use mostly the same arguments, so this is a nice cleanup.

This commit also adds the `--on-warn-failure-exit-77` option [1]
and adds handling to mark a test as `warn()` if that happens versus
the typical `error()`.

[1] coreos/coreos-assembler#3551
dustymabe added a commit to coreos/coreos-ci-lib that referenced this pull request Aug 23, 2023
This commit refactors the arguments and error handling for `kola`
into a runKola closure to make it easier to manage. Most calls in
this file use mostly the same arguments, so this is a nice cleanup.

This commit also adds the `--on-warn-failure-exit-77` option [1]
and adds handling to mark a test as `warn()` if that happens versus
the typical `error()`.

[1] coreos/coreos-assembler#3551
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.

3 participants