Skip to content

Commit

Permalink
Merge branch 'develop' into fix-checksum-check
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed May 17, 2023
2 parents aaf6564 + b1a5287 commit b81e37a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 152 deletions.
137 changes: 0 additions & 137 deletions .github/workflows/bootstrap_script.yml

This file was deleted.

10 changes: 6 additions & 4 deletions easybuild/framework/easyconfig/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,15 @@
('FTPGNOME_SOURCE', 'https://ftp.gnome.org/pub/GNOME/sources/%(namelower)s/%(version_major_minor)s',
'http download for gnome ftp server'),
('GITHUB_SOURCE', 'https://github.com/%(github_account)s/%(name)s/archive',
'GitHub source URL (namelower is used if github_account easyconfig parameter is not specified)'),
'GitHub source URL (if github_account easyconfig parameter is not specified, namelower is used in its place)'),
('GITHUB_LOWER_SOURCE', 'https://github.com/%(github_account)s/%(namelower)s/archive',
'GitHub source URL (lowercase name, namelower is used if github_account easyconfig parameter is not specified)'),
'GitHub source URL with lowercase name (if github_account easyconfig '
'parameter is not specified, namelower is used in its place)'),
('GITHUB_RELEASE', 'https://github.com/%(github_account)s/%(name)s/releases/download/v%(version)s',
'GitHub release URL (namelower is used if github_account easyconfig parameter is not specified)'),
'GitHub release URL (if github_account easyconfig parameter is not specified, namelower is used in its place)'),
('GITHUB_LOWER_RELEASE', 'https://github.com/%(github_account)s/%(namelower)s/releases/download/v%(version)s',
'GitHub release URL (namelower is used if github_account easyconfig parameter is not specified)'),
'GitHub release URL with lowercase name (if github_account easyconfig '
'parameter is not specified, namelower is used in its place)'),
('GNU_SAVANNAH_SOURCE', 'https://download-mirror.savannah.gnu.org/releases/%(namelower)s',
'download.savannah.gnu.org source url'),
('GNU_SOURCE', 'https://ftpmirror.gnu.org/gnu/%(namelower)s',
Expand Down
24 changes: 13 additions & 11 deletions easybuild/tools/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,19 +623,19 @@ def parse_cmd_output(cmd, stdouterr, ec, simple, log_all, log_ok, regexp):
"""
if strictness == IGNORE:
check_ec = False
use_regexp = False
fail_on_error_match = False
elif strictness == WARN:
check_ec = True
use_regexp = False
fail_on_error_match = False
elif strictness == ERROR:
check_ec = True
use_regexp = True
fail_on_error_match = True
else:
raise EasyBuildError("invalid strictness setting: %s", strictness)

# allow for overriding the regexp setting
if not regexp:
use_regexp = False
fail_on_error_match = False

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

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

if simple:
if ec:
Expand Down

0 comments on commit b81e37a

Please sign in to comment.