Skip to content

Conversation

@rhmdnd
Copy link
Collaborator

@rhmdnd rhmdnd commented Oct 3, 2025

The tests will fail if there are any discrepancies between the expected
cluster state and the observed state. Using t.Fatalf() or t.Fatal marks
the test as failed, which is what we want, but it also stop execution of
the test. Since we have some helper methods that process the mismatched
results to generate assertion files and reports, we don't want to
completely stop execution so that we can still produce those files.

This commit updates those specific parts of the tests to use Error
instead of Fatal so we perserve the behavior to mark the test as failed,
but continue processing in the test to cleanup and generate reports.

@rhmdnd rhmdnd requested review from Vincent056 and yuumasato October 3, 2025 16:53
The tests will fail if there are any discrepancies between the expected
cluster state and the observed state. Using t.Fataf() or t.Fatal marks
the test as failed, which is what we want, but it also stop execution of
the test. Since we have some helper methods that process the mismatched
results to generate assertion files and reports, we don't want to
completely stop execution so that we can still produce those files.

This commit updates those specific parts of the tests to use Error
instead of Fatal so we perserve the behavior to mark the test as failed,
but continue processing in the test to cleanup and generate reports.
@rhmdnd rhmdnd force-pushed the use-error-instead-of-fatal branch from cc23012 to f24bf03 Compare October 3, 2025 16:54
@openshift-ci
Copy link

openshift-ci bot commented Oct 3, 2025

@rhmdnd: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-ocp4-cis f24bf03 link true /test e2e-aws-ocp4-cis
ci/prow/e2e-aws-ocp4-stig f24bf03 link true /test e2e-aws-ocp4-stig
ci/prow/e2e-aws-rhcos4-moderate f24bf03 link true /test e2e-aws-rhcos4-moderate
ci/prow/e2e-aws-openshift-node-compliance f24bf03 link true /test e2e-aws-openshift-node-compliance

Full PR test history. Your PR dashboard.

Details

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-sigs/prow repository. I understand the commands that are listed here.

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