Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scitas-software-stacks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCITAS
Software stack
scitas-software-stacks
Commits
1e3c5748
Commit
1e3c5748
authored
3 months ago
by
Nicolas Richart
Browse files
Options
Downloads
Patches
Plain Diff
Adding more debugging capabilities
parent
f5f409c4
No related branches found
No related tags found
2 merge requests
!43
Release/pinot noir/rhel9.4
,
!22
Correcting cpu machines plus clang
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/debug/spack_lock_info.sh
+36
-8
36 additions, 8 deletions
ci/debug/spack_lock_info.sh
with
36 additions
and
8 deletions
ci/debug/spack_lock_info.sh
+
36
−
8
View file @
1e3c5748
...
...
@@ -69,15 +69,32 @@ get_name_dep(){
}
get_all_dependent
(){
jq
--arg
h
"
$1
"
-c
'.concrete_specs
| to_entries
| .[]
| select(.value.dependencies | length != 0)
| select(.value.dependencies[] | select(.hash | match($h)))
| {
name: .value.name,
key: .key,
version: .value.version,
compiler: (.value.compiler | "\(.version)"),
target: (.value.arch.target | if type == "object" then .name else . end)
}'
$2
}
usage
()
{
echo
"-h [hash]"
echo
"-n [name]"
echo
"-f [file]"
}
OPTSTRING
=
":h:n:f:a"
OPTSTRING
=
":h:n:f:a
:d
"
all
=
0
dependent
=
0
hash
=
""
name
=
""
file
=
""
...
...
@@ -92,6 +109,9 @@ while getopts ${OPTSTRING} opt; do
n
)
name
=
${
OPTARG
}
;;
d
)
dependent
=
1
;;
a
)
all
=
1
;;
...
...
@@ -108,22 +128,30 @@ while getopts ${OPTSTRING} opt; do
esac
done
if
[
"x
$file
"
=
=
"x"
]
if
[
"x
$file
"
=
"x"
]
then
echo
"No file specified"
usage
exit
1
fi
echo
"name (
$name
), hash (
$hash
), file(
$file
), all(
$all
)"
#
echo "name ($name), hash ($hash), file($file), all($all)"
if
[
"x
$hash
"
!=
"x"
]
if
[
$dependent
-eq
1
]
then
if
[
$all
-eq
1
]
if
[
"x
$hash
"
!=
"x"
]
then
get_all_dependent
$hash
$file
fi
else
if
[
"x
$hash
"
!=
"x"
]
then
get_all_dep
$hash
$file
else
get_hash_dep
$hash
$file
if
[
$all
-eq
1
]
then
get_all_dep
$hash
$file
else
get_hash_dep
$hash
$file
fi
fi
fi
...
...
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