-
Notifications
You must be signed in to change notification settings - Fork 282
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
convert all generic easyblocks to run_shell_cmd
#3046
convert all generic easyblocks to run_shell_cmd
#3046
Conversation
The default for the verbose= parameter for build_step is reversed in line with the default for run_shell_cmd.
@bartoldeman: Tests failed in GitHub Actions, see https://github.com/easybuilders/easybuild-easyblocks/actions/runs/7115210289
bleep, bloop, I'm just a bot (boegelbot v20200716.01) |
run_shell_cmd
It handles errors itself already by just looking at the output, no need also do it in run_shell_cmd here. This fixes the test case for det_cmake_version().
All generic easyblocks have been converted. Time for testing... |
@SebastianAchilles Can you look into testing this a bit, as soon as easybuilders/easybuild-framework#4423 is merged? |
Yes, I will test this PR, as soon as easybuilders/easybuild-framework#4423 is merged. |
Test report by @SebastianAchilles Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
I think it makes sense to test, if possible, one EasyConfig per modified EasyBlock. To find recent EasyConfigs for an EasyBlock
I intend to test the following EasyConfigs: |
Test report by @SebastianAchilles Overview of tested easyconfigs (in order)
Build succeeded for 21 out of 21 (21 easyconfigs in total) |
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
Requested changes have been implemented.
Going in, thanks @bartoldeman! |
|
||
abs_pylibdirs = [os.path.join(actual_installdir, pylibdir) for pylibdir in self.all_pylibdirs] | ||
extrapath = "export PYTHONPATH=%s &&" % os.pathsep.join(abs_pylibdirs + ['$PYTHONPATH']) | ||
|
||
cmd = self.compose_install_command(test_installdir, extrapath=extrapath) | ||
run_cmd(cmd, log_all=True, simple=True, verbose=False) | ||
run_shell_cmd(cmd, hidden=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.
@bartoldeman Did you intentionally hide the installation command before running the tests in PythonPackage.test_step
?
Just wondering, not opposing it, sort of makes sense, but it is different from what we had before (verbose=False
in run_cmd
is not equivalent with hidden=True
in run_shell_cmd
)
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 looks like an oversight, since trace=False
(now hidden=True
) was used in many other places in this easyblock. I'll file a new PR for consistency.
To address easybuilders#3046 (comment) as a followup to easybuilders#3046
run_shell_cmd
run_shell_cmd
For ConfigureMake the default for the
verbose=
parameter forbuild_step
is reversed in line with the default forrun_shell_cmd
.