Skip to content

Commit b81e37a

Browse files
committed
Merge branch 'develop' into fix-checksum-check
2 parents aaf6564 + b1a5287 commit b81e37a

File tree

3 files changed

+19
-152
lines changed

3 files changed

+19
-152
lines changed

.github/workflows/bootstrap_script.yml

Lines changed: 0 additions & 137 deletions
This file was deleted.

easybuild/framework/easyconfig/templates.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,15 @@
114114
('FTPGNOME_SOURCE', 'https://ftp.gnome.org/pub/GNOME/sources/%(namelower)s/%(version_major_minor)s',
115115
'http download for gnome ftp server'),
116116
('GITHUB_SOURCE', 'https://github.com/%(github_account)s/%(name)s/archive',
117-
'GitHub source URL (namelower is used if github_account easyconfig parameter is not specified)'),
117+
'GitHub source URL (if github_account easyconfig parameter is not specified, namelower is used in its place)'),
118118
('GITHUB_LOWER_SOURCE', 'https://github.com/%(github_account)s/%(namelower)s/archive',
119-
'GitHub source URL (lowercase name, namelower is used if github_account easyconfig parameter is not specified)'),
119+
'GitHub source URL with lowercase name (if github_account easyconfig '
120+
'parameter is not specified, namelower is used in its place)'),
120121
('GITHUB_RELEASE', 'https://github.com/%(github_account)s/%(name)s/releases/download/v%(version)s',
121-
'GitHub release URL (namelower is used if github_account easyconfig parameter is not specified)'),
122+
'GitHub release URL (if github_account easyconfig parameter is not specified, namelower is used in its place)'),
122123
('GITHUB_LOWER_RELEASE', 'https://github.com/%(github_account)s/%(namelower)s/releases/download/v%(version)s',
123-
'GitHub release URL (namelower is used if github_account easyconfig parameter is not specified)'),
124+
'GitHub release URL with lowercase name (if github_account easyconfig '
125+
'parameter is not specified, namelower is used in its place)'),
124126
('GNU_SAVANNAH_SOURCE', 'https://download-mirror.savannah.gnu.org/releases/%(namelower)s',
125127
'download.savannah.gnu.org source url'),
126128
('GNU_SOURCE', 'https://ftpmirror.gnu.org/gnu/%(namelower)s',

easybuild/tools/run.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -623,19 +623,19 @@ def parse_cmd_output(cmd, stdouterr, ec, simple, log_all, log_ok, regexp):
623623
"""
624624
if strictness == IGNORE:
625625
check_ec = False
626-
use_regexp = False
626+
fail_on_error_match = False
627627
elif strictness == WARN:
628628
check_ec = True
629-
use_regexp = False
629+
fail_on_error_match = False
630630
elif strictness == ERROR:
631631
check_ec = True
632-
use_regexp = True
632+
fail_on_error_match = True
633633
else:
634634
raise EasyBuildError("invalid strictness setting: %s", strictness)
635635

636636
# allow for overriding the regexp setting
637637
if not regexp:
638-
use_regexp = False
638+
fail_on_error_match = False
639639

640640
if ec and (log_all or log_ok):
641641
# We don't want to error if the user doesn't care
@@ -650,14 +650,16 @@ def parse_cmd_output(cmd, stdouterr, ec, simple, log_all, log_ok, regexp):
650650
_log.debug('cmd "%s" exited with exit code %s and output:\n%s' % (cmd, ec, stdouterr))
651651

652652
# parse the stdout/stderr for errors when strictness dictates this or when regexp is passed in
653-
if use_regexp or regexp:
654-
res = parse_log_for_error(stdouterr, regexp, msg="Command used: %s" % cmd)
655-
if len(res) > 0:
656-
message = "Found %s errors in command output (output: %s)" % (len(res), "\n\t".join([r[0] for r in res]))
657-
if use_regexp:
658-
raise EasyBuildError(message)
653+
if fail_on_error_match or regexp:
654+
res = parse_log_for_error(stdouterr, regexp, stdout=False)
655+
if res:
656+
errors = "\n\t" + "\n\t".join([r[0] for r in res])
657+
error_str = "error" if len(res) == 1 else "errors"
658+
if fail_on_error_match:
659+
raise EasyBuildError("Found %s %s in output of %s:%s", len(res), error_str, cmd, errors)
659660
else:
660-
_log.warning(message)
661+
_log.warning("Found %s potential %s (some may be harmless) in output of %s:%s",
662+
len(res), error_str, cmd, errors)
661663

662664
if simple:
663665
if ec:

0 commit comments

Comments
 (0)