Skip to content
Snippets Groups Projects

Convert to a package

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