Skip to content

Commit

Permalink
improve validation pipelines
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Aguilera <[email protected]>
  • Loading branch information
jagedn committed Jul 16, 2024
1 parent 83ccd0a commit e782fcf
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 11 deletions.
13 changes: 11 additions & 2 deletions validation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The most important part of the configuration (`basic/nextflow.config`) are:

```
plugins {
id 'nf-nomad@latest'
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
}
```

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

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

### Test published version

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

```
export NOMAD_PLUGIN_VERSION=0.1.2-edge3
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"
./run-all.sh
```

## Stop the cluster

Expand All @@ -95,4 +104,4 @@ cd validation
sudo ./stop-nomad.sh
```

This command try to clean and kill the nomad process unmounting temp folders created by the client
This command tries to clean and kill the nomad process unmounting temp folders created by the client
2 changes: 1 addition & 1 deletion validation/az-nomadlab/2-volumes.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'nf-nomad@latest'
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
}

process {
Expand Down
2 changes: 1 addition & 1 deletion validation/az-nomadlab/nextflow.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'nf-nomad@latest'
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
}

process {
Expand Down
2 changes: 1 addition & 1 deletion validation/basic/nextflow.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'nf-nomad@latest'
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
}

process {
Expand Down
2 changes: 1 addition & 1 deletion validation/constraints/node-nextflow.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'nf-nomad@latest'
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
}

process {
Expand Down
2 changes: 1 addition & 1 deletion validation/directives/nextflow.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'nf-nomad@latest'
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
}

process {
Expand Down
2 changes: 1 addition & 1 deletion validation/multiple-volumes/2-volumes.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'nf-nomad@latest'
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
}

process {
Expand Down
2 changes: 1 addition & 1 deletion validation/multiple-volumes/3-volumes.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'nf-nomad@latest'
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
}

process {
Expand Down
4 changes: 3 additions & 1 deletion validation/stop-nomad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
./nomad system gc
sleep 1
df -h --output=target | grep nf-task | xargs sudo umount
pkill -9 nomad
pkill -9 nomad
sleep 1
rm -rf nomad_temp
2 changes: 1 addition & 1 deletion validation/sun-nomadlab/nextflow.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'nf-nomad@latest'
id "nf-nomad@${System.getenv("NOMAD_PLUGIN_VERSION") ?: "latest"}"
}

process {
Expand Down

0 comments on commit e782fcf

Please sign in to comment.