Skip to content
Snippets Groups Projects

Convert to a package

Merged Ashwin Kumar Karnad requested to merge convert-to-a-package into main
5 files
+ 35
25
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -599,24 +599,28 @@ def record_script_execution_summary(
cmd_line = " ".join(sys.argv)
# script branch and commit hash
with os_chdir(root_dir):
script_branch = (
run(
["git", "rev-parse", "--abbrev-ref", "HEAD"],
stdout=subprocess.PIPE,
check=True,
try:
script_branch = (
run(
["git", "rev-parse", "--abbrev-ref", "HEAD"],
stdout=subprocess.PIPE,
check=True,
)
.stdout.decode()
.strip()
)
.stdout.decode()
.strip()
)
script_commit_hash = (
run(
["git", "rev-parse", "--short", "HEAD"],
stdout=subprocess.PIPE,
check=True,
script_commit_hash = (
run(
["git", "rev-parse", "--short", "HEAD"],
stdout=subprocess.PIPE,
check=True,
)
.stdout.decode()
.strip()
)
.stdout.decode()
.strip()
)
except subprocess.CalledProcessError:
script_branch = "unknown"
script_commit_hash = "unknown"
# spack-environments branch and commit hash from kwargs
spe_branch = kwargs.get("spe_branch", None)
spe_commit_hash = kwargs.get("spe_commit_hash", None)
Loading