Skip to content

Commit 88474c9

Browse files
authored
improve validation pipelines (#70)
Signed-off-by: Jorge Aguilera <[email protected]>
1 parent 83ccd0a commit 88474c9

File tree

10 files changed

+22
-11
lines changed

10 files changed

+22
-11
lines changed

validation/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The most important part of the configuration (`basic/nextflow.config`) are:
4141

4242
```
4343
plugins {
44-
id 'nf-nomad@latest'
44+
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
4545
}
4646
```
4747

@@ -85,8 +85,17 @@ you can test some pipelines from your terminal using the `--nfazure` argument
8585

8686
- `./run-all.sh --skiplocal --nfazure` run only remote pipelines
8787

88+
### Test published version
8889

90+
In case you want to run the validation using a published version (for example, 0.1.2-edge3 release), you can run:
8991

92+
```
93+
export NOMAD_PLUGIN_VERSION=0.1.2-edge3
94+
95+
export NXF_PLUGINS_TEST_REPOSITORY="https://github.com/nextflow-io/nf-nomad/releases/download/0.1.2-edge3/nf-nomad-0.1.2-edge3-meta.json"
96+
97+
./run-all.sh
98+
```
9099

91100
## Stop the cluster
92101

@@ -95,4 +104,4 @@ cd validation
95104
sudo ./stop-nomad.sh
96105
```
97106

98-
This command try to clean and kill the nomad process unmounting temp folders created by the client
107+
This command tries to clean and kill the nomad process unmounting temp folders created by the client

validation/az-nomadlab/2-volumes.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'nf-nomad@latest'
2+
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
33
}
44

55
process {

validation/az-nomadlab/nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'nf-nomad@latest'
2+
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
33
}
44

55
process {

validation/basic/nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'nf-nomad@latest'
2+
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
33
}
44

55
process {

validation/constraints/node-nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'nf-nomad@latest'
2+
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
33
}
44

55
process {

validation/directives/nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'nf-nomad@latest'
2+
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
33
}
44

55
process {

validation/multiple-volumes/2-volumes.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'nf-nomad@latest'
2+
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
33
}
44

55
process {

validation/multiple-volumes/3-volumes.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'nf-nomad@latest'
2+
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
33
}
44

55
process {

validation/stop-nomad.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
./nomad system gc
44
sleep 1
55
df -h --output=target | grep nf-task | xargs sudo umount
6-
pkill -9 nomad
6+
pkill -9 nomad
7+
sleep 1
8+
rm -rf nomad_temp

validation/sun-nomadlab/nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'nf-nomad@latest'
2+
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
33
}
44

55
process {

0 commit comments

Comments
 (0)