Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Commits
48ba4089
Commit
48ba4089
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
black and reduce line length in comments
parent
f7e78df0
No related branches found
No related tags found
1 merge request
!77
Skip logging script commit hash
Pipeline
#372723
passed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mpsd_software_manager/mpsd_software.py
+4
-6
4 additions, 6 deletions
src/mpsd_software_manager/mpsd_software.py
tests/test_mpsd_software.py
+0
-1
0 additions, 1 deletion
tests/test_mpsd_software.py
with
4 additions
and
7 deletions
src/mpsd_software_manager/mpsd_software.py
+
4
−
6
View file @
48ba4089
...
...
@@ -580,9 +580,9 @@ def record_script_execution_summary(
"""
# Write to the log file with the following format
# --------------------------------------------------
# 2023-06-20T15:30:37.965370,
src/
mpsd_software
_manager/mpsd_software.py
prepare dev-23a
# MPSD Software manager version: 2023.6.16
# Spack environments branch: dev-23a (commit hash:
8eac43476b2fd9a3a044f5562f3f7c2bccfe384a
)
# 2023-06-20T15:30:37.965370, mpsd_software prepare dev-23a
# MPSD Software manager version: 2023.6.16
# Spack environments branch: dev-23a (commit hash:
abcdefg
)
# MSGs
with
os_chdir
(
root_dir
):
with
open
(
config_vars
[
"
cmd_log_file
"
],
"
a
"
)
as
f
:
...
...
@@ -603,9 +603,7 @@ def record_script_execution_summary(
# Write to log file
f
.
write
(
f
"
{
datetime
.
datetime
.
now
().
isoformat
()
}
,
{
cmd_line
}
\n
"
)
# logs script version
f
.
write
(
f
"
MPSD Software manager version:
{
__version__
}
\n
"
)
f
.
write
(
f
"
MPSD Software manager version:
{
__version__
}
\n
"
)
f
.
write
(
f
"
Spack environments branch:
{
spe_branch
}
"
f
"
(commit hash:
{
spe_commit_hash
}
)
\n
"
...
...
This diff is collapsed.
Click to expand it.
tests/test_mpsd_software.py
+
0
−
1
View file @
48ba4089
...
...
@@ -190,7 +190,6 @@ def test_record_script_execution_summary(tmp_path):
assert
f
"
MPSD Software manager version:
{
script_version
}
"
in
lines
[
-
2
]
def
test_install_environment_wrong_package_set
(
tmp_path
):
"""
Test exception is raised for non-existing package_set.
"""
# exits with exit code 1 when wrong package_sets are provided
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment