-
Notifications
You must be signed in to change notification settings - Fork 82
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
Improve utils.execute_command
, add a Pytest selftest for it, and run it in GHA
#1243
Conversation
@@ -53,13 +53,12 @@ def read_yaml(filename): | |||
return None | |||
|
|||
|
|||
def execute_command(cmd): | |||
def execute_command(cmd, print_stdout=True): |
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.
this is to have an option to quiet down the output in selftests
Robot Results
|
Run this twice, there was only a test fail in "Verify that the must-gather image provides RHODS logs and info", which is known open issue, https://redhat-internal.slack.com/archives/C03V3J222D7/p1707985201274959?thread_ts=1707974794.266549&cid=C03V3J222D7 CI: job/rhods/job/rhods-ci-pr-test/2544/ |
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.
With my limited knowledge, LGTM. I put just two optional changes.
It's really funny that all I wanted was to revert 2 lines of code, and here you've come with this PR 😄
Thank you.
…n it in GHA Fixes red-hat-data-services#1241 Signed-off-by: Jiri Daněk <jdanek@redhat.com>
Signed-off-by: Jiri Daněk <jdanek@redhat.com>
Co-authored-by: Jan Stourac <jstourac@redhat.com>
|
Pytest is configured according to https://docs.pytest.org/en/7.1.x/explanation/goodpractices.html#tests-as-part-of-application-code
I am using the same
poetry
command for both the ruff and pytest jobs, so that they can share cache.Fixes #1241
CI: job/rhods/job/rhods-ci-pr-test/2543/ PASSED w/ known issues (see last comment for CI rerun)