Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
argopkgs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
argopkgs
Commits
b73fb543
Commit
b73fb543
authored
Jun 13, 2019
by
Valentin Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor, fix singularity test.
parent
4f1a97ce
Pipeline
#7694
failed with stages
in 28 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
35 deletions
+52
-35
deployments/restart-runners.sh
deployments/restart-runners.sh
+2
-7
dhrun/all-tests.dh
dhrun/all-tests.dh
+50
-28
No files found.
deployments/restart-runners.sh
View file @
b73fb543
#!/usr/bin/env bash
echo
"restarted runner."
ssh root@140.221.10.9 systemctl restart gitlab-runner2.service
echo
"restarted runner."
ssh root@129.114.111.114 systemctl restart gitlab-runner2.service
echo
"restarted runner."
ssh root@129.114.110.3 systemctl restart gitlab-runner2.service
echo
"restarted runner."
ssh root@129.114.111.116 systemctl restart gitlab-runner2.service
echo
"restarted runner."
ssh root@129.114.33.201 systemctl restart gitlab-runner2.service
echo
"restarted runner."
ssh gitlab-runner@argo-phi1
sudo
systemctl restart gitlab-runner.service
ssh gitlab-runner@argo-phi1.mcs
sudo
systemctl restart gitlab-runner.service
echo
"restarted runner."
dhrun/all-tests.dh
View file @
b73fb543
...
...
@@ -44,6 +44,8 @@
manifestDir ++ "basic.yml"
, perf =
manifestDir ++ "perfwrap.yml"
, singularity =
manifestDir ++ "singularity.yml"
}
let ifTest =
...
...
@@ -54,18 +56,13 @@
let ifTestList = ifTest (List Text) ([] : List Text)
let ifTestTimeout =
ifTest
(Optional Natural)
([] : Optional Natural)
([ 600 ] : Optional Natural)
let withDaemon =
λ(runArg : argotypes.MkRun)
λ(daemonArg : argotypes.MkDaemon)
→ λ(runArg : argotypes.MkRun)
→ λ(runOverrides : types.Cmd → types.Cmd)
→ λ(extraCmds : List types.Cmd)
→ makeExtended
(
argo.nrmd.defa
rg
(
daemonA
rg
⫽ { daemonavoids =
ifTestList [ "Traceback", "ValueError" ]
, powercap =
...
...
@@ -74,29 +71,51 @@
)
idCmd
( runArg
⫽ { cmdavoids = runArg.cmdavoids # ifTestList [ "Traceback" ] }
⫽ { cmdavoids =
runArg.cmdavoids # ifTestList [ "Traceback", "ValueError" ]
}
)
( λ(c : types.Cmd)
→ runOverrides
( c
⫽ { timeout =
ifTest
(Optional Natural)
([] : Optional Natural)
([ 600 ] : Optional Natural)
}
)
)
(λ(c : types.Cmd) → runOverrides (c ⫽ { timeout = ifTestTimeout }))
extraCmds
let withDaemonNoExtras =
λ(runArg : argotypes.MkRun)
→ λ(runOverrides : types.Cmd → types.Cmd)
→ withDaemon runArg runOverrides ([] : List types.Cmd)
→ withDaemon
argo.nrmd.defarg
runArg runOverrides ([] : List types.Cmd)
let withDaemonExtraProgresstest =
λ(runArg : argotypes.MkRun)
let withDaemonExtraListen =
λ(filter : Text)
→ λ(doFilter : Bool)
→ λ(runArg : argotypes.MkRun)
→ λ(runOverrides : types.Cmd → types.Cmd)
→ withDaemon
argo.nrmd.defarg
runArg
runOverrides
[ argo.listen.mk
(argo.listen.defarg cn ⫽ { filter =
"progress", doFilter = True
})
(argo.listen.defarg cn ⫽ { filter =
filter, doFilter = doFilter
})
]
let basicRun = λ(name : Text) → argo.run.defarg name manifests.basic cn
let withDaemonExtraProgresstest = withDaemonExtraListen "performance" True
let mkrun =
λ(manifest : Text) → λ(name : Text) → argo.run.defarg name manifest cn
let basicRun = mkrun manifests.basic
let perfRun = mkrun manifests.perf
let
perfRun = λ(name : Text) → argo.run.defarg name manifests.perf cn
let
singularityRun = mkrun manifests.singularity
in { run =
withDaemonNoExtras (basicRun "true") idCmd
...
...
@@ -117,26 +136,29 @@
)
idCmd
, listen =
withDaemon
withDaemonExtraListen
","
False
(basicRun "sleep" ⫽ { args = [ "1" ] })
idCmd
[ argo.listen.mk (argo.listen.defarg cn ⫽ { doFilter = False }) ]
, power =
withDaemon
withDaemonExtraListen
"power"
True
(basicRun "sleep" ⫽ { args = [ "15" ] })
idCmd
[ argo.listen.mk
(argo.listen.defarg cn ⫽ { filter = "power", doFilter = True })
]
, performance =
withDaemon
withDaemonExtraListen
"performance"
True
(perfRun "sleep" ⫽ { args = [ "15" ] })
idCmd
[ argo.listen.mk
( argo.listen.defarg cn
⫽ { filter = "performance", doFilter = True }
)
]
, run-singularity =
withDaemon
(argo.nrmd.defarg ⫽ { singularity = True })
(singularityRun "true")
idCmd
([] : List types.Cmd)
, qmcpack =
withDaemonExtraProgresstest
( basicRun "mpiexec"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment