Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
5a7d24a6
Commit
5a7d24a6
authored
Dec 14, 2023
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Don't have jq break on allocations without any tasks
parent
f519d2fb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbin/run_integration_test.sh
+1
-3
1 addition, 3 deletions
sbin/run_integration_test.sh
with
1 addition
and
3 deletions
sbin/run_integration_test.sh
+
1
−
3
View file @
5a7d24a6
...
@@ -126,9 +126,7 @@ function cleanup {
...
@@ -126,9 +126,7 @@ function cleanup {
mkdir
-p
log/allocations
mkdir
-p
log/allocations
# obtain the list of tasks, but only those that have actually started.
# obtain the list of tasks, but only those that have actually started.
echo
"Allocations:"
docker
exec
server.station.nomad.nomad-cluster.jumppad.dev nomad alloc status
-json
| jq
--raw-output
'.[] | (.ID + " " + .Name + " " + (.TaskStates | objects | map_values(select(.StartedAt)) | keys[]) + " " + (.CreateTime/1e9 | todate))'
|
while
read
-r
line
docker
exec
server.station.nomad.nomad-cluster.jumppad.dev nomad alloc status
-json
docker
exec
server.station.nomad.nomad-cluster.jumppad.dev nomad alloc status
-json
| jq
--raw-output
'.[] | (.ID + " " + .Name + " " + (.TaskStates | map_values(select(.StartedAt)) | keys[]) + " " + (.CreateTime/1e9 | todate))'
|
while
read
-r
line
do
do
read
-r
-a
parts
<<<
"
${
line
}
"
read
-r
-a
parts
<<<
"
${
line
}
"
ALLOC_ID
=
"
${
parts
[0]
}
"
ALLOC_ID
=
"
${
parts
[0]
}
"
...
...
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