Skip to content

Commit 98b2432

Browse files
authored
integration test in sun-nomadlab (#64)
* add sun-nomadlab to integration tests Signed-off-by: Jorge Aguilera <[email protected]> * add sun-nomadlab to integration tests Signed-off-by: Jorge Aguilera <[email protected]> * add sun-nomadlab to integration tests Signed-off-by: Jorge Aguilera <[email protected]> --------- Signed-off-by: Jorge Aguilera <[email protected]>
1 parent 1eb0b9a commit 98b2432

File tree

3 files changed

+48
-9
lines changed

3 files changed

+48
-9
lines changed

Diff for: .gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ out
1010

1111
_resources
1212
oracle-nomad-cluster
13-
sun-nomadlab
1413

1514
.project
1615
.classpath

Diff for: validation/run-all.sh

+10-8
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,19 @@ else
6262
fi
6363

6464

65-
#NOTE: In this use-case, the default login user is not a sudoer.
65+
#NOTE: In this use-case you need to be in the same network of sun-nomadlab server, for example using a tailscale connection
66+
#NOTE2: You need to have 2 secrets stored in your Nextlow: SUN_NOMADLAB_ACCESS_KEY and SUN_NOMADLAB_SECRET_KEY
6667
if [ "$NFSUN" == 1 ]; then
67-
ssh nomad01 'rm -rf ~/.nextflow/plugins/nf-nomad-latest'
68-
rsync -Pr ~/.nextflow/plugins/nf-nomad-latest nomad01:~/.nextflow/plugins/
69-
rsync -Pr sun-nomadlab nomad01:~/integration-tests/
7068

71-
ssh nomad01 \
72-
'cd ~/integration-tests/sun-nomadlab; NXF_ASSETS=~/abhinav/jfs/nomad/projects/assets nextflow run hello -w ~/abhinav/jfs/nomad/workdir -c ~/integration-tests/sun-nomadlab/nextflow.config'
69+
nextflow run -w s3://juicefs/integration-test -c sun-nomadlab/nextflow.config hello
70+
71+
nextflow run bactopia/bactopia \
72+
-w s3://juicefs/integration-test -c sun-nomadlab/nextflow.config \
73+
-profile test,docker --outdir s3://juicefs/bactopia/outdir \
74+
--accession SRX4563634 --coverage 100 --genome_size 2800000 \
75+
--datasets_cache s3://juicefs/bactopia/assets
76+
7377

74-
# ssh nomad01 \
75-
# 'cd ~/integration-tests/sun-nomadlab; NXF_ASSETS=/projects/assets nextflow run bactopia/bactopia -c nextflow.config -w /projects -profile test,docker --outdir /projects/bactopia/outdir --accession SRX4563634 --coverage 100 --genome_size 2800000 --datasets_cache /projects/bactopia/datasets'
7678
else
7779
echo "skip nfsun"
7880
fi

Diff for: validation/sun-nomadlab/nextflow.config

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
plugins {
2+
id 'nf-nomad@latest'
3+
}
4+
5+
process {
6+
executor = "nomad"
7+
}
8+
9+
aws {
10+
accessKey = secrets.SUN_NOMADLAB_ACCESS_KEY
11+
secretKey = secrets.SUN_NOMADLAB_SECRET_KEY
12+
client {
13+
endpoint = 'http://100.119.165.23:9000'
14+
}
15+
}
16+
17+
wave {
18+
enabled = true
19+
}
20+
21+
fusion {
22+
enabled = true
23+
exportStorageCredentials = true
24+
}
25+
26+
nomad {
27+
28+
client {
29+
address = 'http://100.119.165.23:4646'
30+
}
31+
32+
jobs {
33+
deleteOnCompletion = true
34+
volumes = [
35+
{ type "csi" name "juicefs-volume" }
36+
]
37+
}
38+
}

0 commit comments

Comments
 (0)