Request for more test resources

Test runners are tailored to restrain their resources usage to specifically what is asked for by Nextflow through the configuration files. For nf-neuro tests, you can find this configuration in tests/config/nextflow.config. If any of your tests ask for more, you need to define it correctly.

First, resource requirements need to be defined in the nextflow.config file(s) of your test cases. Add the process.cpu and process.memory and set their requirements as needed :

process.memory = '9G'
process.cpus = 6

or

process {
  memory = '10G'
  cpus = 6
}

To allow test runners on your PR to run with sufficient resources, you’ll need to specify to which class of runners to assign to. To do so, edit .github/workflows/run_checks_suite.yml. Find the matrix definition for the nf-test job (currently around line 133) and add the following request for a runner in the include section :

- runner: <name-of-the-runner-class>
  path: modules/nf-neuro/<category>/<tool>

Available runner classes that superseed default :

Runner ClassResources
(default)
  • 4 CPU
  • 4Gb RAM
scilus-nf-neuro-bigmem-runners
  • 16Gb RAM