-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Print kuttl logs if kuttl tests cannot be started #6225
Print kuttl logs if kuttl tests cannot be started #6225
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andreasgerstmayr Thanks for taking the time to make this contribution!
I am having a hard time trying to understand what this change is trying to accomplish. To me it seems like the motivation is to improve the error message of empty kuttl test suite was found
, but my understanding of the changes made in this PR don't seem to reflect that.
All that being said, I'm by no means a SME in regards to scorecard and how it handles kuttl tests.
@theishshah Would you mind taking a look at this?
Hi @everettraven! Sorry, I should have added more context to this PR's description. This example includes a test with the current version (
In the current version ( afaics if kuttl can't start it won't emit any testsuites, and therefore the current logic prints |
(for reference, open-telemetry/opentelemetry-operator#1252 led me to investigate this error message of the |
@andreasgerstmayr Thanks for providing more information! The motivation behind this makes much more sense to me now - I will take another look at the changes with this new perspective :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andreasgerstmayr After re-evaluating the changes I have some suggestions.
If you disagree with any of the requested changes, let me know. I am happy to have as much discussion as necessary to make sure we are making the changes that make the most sense :)
In some cases kuttl cannot be started and no test suite is run (for example when specifying an inaccessible path in `crdDir`). Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
1dcc98f
to
f6fe00f
Compare
When we put the kuttl logs in the
afaics multi-line strings in the I've updated the PR, and now we get the following output:
What do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andreasgerstmayr Thanks for making these changes and improving upon my original suggestion! These changes look great to me!
Only one final thing before approval - since this change introduces user facing changes to scorecard, would you mind adding a changelog (only marking my review as "Requesting Changes" because of this - once it is done I will approve 😄 )?
Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
Done, thanks for the review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Closing and reopening to try and pick up the fixed links that are causing the sanity check to fail |
Description of the change:
Print kuttl logs if kuttl tests cannot be started (for example when specifying an inaccessible path in
crdDir
).Motivation for the change:
The
empty kuttl test suite was found
error message is not helpful in case kuttl cannot be started.Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments
(seechangelog/fragments/00-template.yaml
)website/content/en/docs