Running Test Across Multiple Executors

The executor property can support regular expression to search for compatible executors, this can be used if you want to run a test across multiple executors. In buildtest, we use re.fullmatch with the input pattern defined by executor property against a list of available executors defined in configuration file. You can retrieve a list of executors by running buildtest config executors.

In example below we will run this test on generic.local.bash and generic.local.sh executor based on the regular expression.

buildspecs:
  multiple_executors:
    type: script
    executor: 'generic.local.(bash|sh)'
    description: run test with executor generic.local.bash and generic.local.sh executor
    tags: [tutorials]
    run: date

If we build this test, notice that there are two tests, one for each executor.

buildtest build -b tutorials/multi_executors/executor_regex_script.yml
$ buildtest build -b tutorials/multi_executors/executor_regex_script.yml
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-21511056-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2023/08/04 19:26:18                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ buildtest version:  1.5                                                      │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ python version:     3.8.17                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/t… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/tutorials/multi_executors/executor_regex_script.yml: VALID
Total builder objects created: 2
                            Builders by type=script                             
┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┓
┃ builder  ┃ type   ┃ executor ┃ compiler ┃ nodes ┃ procs ┃ descrip… ┃ builds… ┃
┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━┩
│ multipl… │ script │ generic… │ None     │ None  │ None  │ run test │ /home/… │
│          │        │          │          │       │       │ with     │         │
│          │        │          │          │       │       │ executor │         │
│          │        │          │          │       │       │ generic… │         │
│          │        │          │          │       │       │ and      │         │
│          │        │          │          │       │       │ generic… │         │
│          │        │          │          │       │       │ executor │         │
├──────────┼────────┼──────────┼──────────┼───────┼───────┼──────────┼─────────┤
│ multipl… │ script │ generic… │ None     │ None  │ None  │ run test │ /home/… │
│          │        │          │          │       │       │ with     │         │
│          │        │          │          │       │       │ executor │         │
│          │        │          │          │       │       │ generic… │         │
│          │        │          │          │       │       │ and      │         │
│          │        │          │          │       │       │ generic… │         │
│          │        │          │          │       │       │ executor │         │
└──────────┴────────┴──────────┴──────────┴───────┴───────┴──────────┴─────────┘
──────────────────────────────── Building Test ─────────────────────────────────
multiple_executors/efe1965b: Creating test directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_regex_script/multiple_executors/efe1965b
multiple_executors/efe1965b: Creating the stage directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_regex_script/multiple_executors/efe1965b/stage
multiple_executors/efe1965b: Writing build script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_regex_script/multiple_executors/efe1965b/multiple_executors_build.sh
multiple_executors/0737b55d: Creating test directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_regex_script/multiple_executors/0737b55d
multiple_executors/0737b55d: Creating the stage directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_regex_script/multiple_executors/0737b55d/stage
multiple_executors/0737b55d: Writing build script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_regex_script/multiple_executors/0737b55d/multiple_executors_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
multiple_executors/0737b55d does not have any dependencies adding test to queue
multiple_executors/efe1965b does not have any dependencies adding test to queue
multiple_executors/0737b55d: Current Working Directory : /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_regex_script/multiple_executors/0737b55d/stage
multiple_executors/0737b55d: Running Test via command: sh --norc --noprofile -eo pipefail multiple_executors_build.sh
multiple_executors/0737b55d failed to submit job with returncode: 2 

/usr/bin/sh: 0: Illegal option --

multiple_executors/0737b55d: Detected failure in running test, will attempt to retry test: 1 times
multiple_executors/0737b55d: Run - 1/1
multiple_executors/0737b55d: Running Test via command: sh --norc --noprofile -eo pipefail multiple_executors_build.sh
multiple_executors/0737b55d: failed to submit job with returncode: 2 
multiple_executors/0737b55d: Test completed in 0.008827 seconds
multiple_executors/0737b55d: Test completed with returncode: 2
multiple_executors/0737b55d: Writing output file -  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_regex_script/multiple_executors/0737b55d/multiple_executors.out
multiple_executors/0737b55d: Writing error file - /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_regex_script/multiple_executors/0737b55d/multiple_executors.err
multiple_executors/efe1965b: Current Working Directory : /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_regex_script/multiple_executors/efe1965b/stage
multiple_executors/efe1965b: Running Test via command: bash --norc --noprofile -eo pipefail multiple_executors_build.sh
multiple_executors/efe1965b: Test completed in 0.008627 seconds
multiple_executors/efe1965b: Test completed with returncode: 0
multiple_executors/efe1965b: Writing output file -  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_regex_script/multiple_executors/efe1965b/multiple_executors.out
multiple_executors/efe1965b: Writing error file - /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_regex_script/multiple_executors/efe1965b/multiple_executors.err
In this iteration we are going to run the following tests: [multiple_executors/0737b55d, multiple_executors/efe1965b]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returncode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ multiple_exe │ generic.loc… │ PASS   │ None None     │ 0          │ 0.008627 │
│ cutors/efe19 │              │        │ None          │            │          │
│ 65b          │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ multiple_exe │ generic.loc… │ FAIL   │ None None     │ 2          │ 0.008827 │
│ cutors/0737b │              │        │ None          │            │          │
│ 55d          │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 1/2 Percentage: 50.000%
Failed Tests: 1/2 Percentage: 50.000%


Adding 2 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/logs/buildtest_o_343c5z.log

Multiple Executors

Note

This feature is in active development

Note

This feature is compatible with type: script and type: spack.

The executors property can be used to define executor specific configuration for each test, currently this field can be used with vars, env , scheduler directives: sbatch, bsub, pbs, cobalt and cray burst buffer/data warp. The executors field is a JSON object that expects name of executor followed by property set per executor. In this next example, we define variables X, Y and environment SHELL based on executors generic.local.sh and generic.local.bash.

buildspecs:
  executors_vars_env_declaration:
    type: script
    executor: 'generic.local.(bash|sh)'
    description: Declaring env and vars by executors section
    tags: [tutorials]
    run: |
      echo "X:" $X
      echo "Y:" $Y
      echo $SHELL
    executors:
      generic.local.bash:
        vars:
          X: 1
          Y: 3
        env:
          SHELL: bash
      generic.local.sh:
        vars:
          X: 2
          Y: 4
        env:
          SHELL: sh

Let’s build this test.

buildtest build -b tutorials/multi_executors/executors_var_env_declaration.yml
$ buildtest build -b tutorials/multi_executors/executors_var_env_declaration.yml
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-21511056-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2023/08/04 19:26:19                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ buildtest version:  1.5                                                      │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ python version:     3.8.17                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/t… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/tutorials/multi_executors/executors_var_env_declaration.yml: VALID
Total builder objects created: 2
                            Builders by type=script                             
┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┓
┃ builder  ┃ type   ┃ executor ┃ compiler ┃ nodes ┃ procs ┃ descrip… ┃ builds… ┃
┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━┩
│ executo… │ script │ generic… │ None     │ None  │ None  │ Declari… │ /home/… │
│          │        │          │          │       │       │ env and  │         │
│          │        │          │          │       │       │ vars by  │         │
│          │        │          │          │       │       │ executo… │         │
│          │        │          │          │       │       │ section  │         │
├──────────┼────────┼──────────┼──────────┼───────┼───────┼──────────┼─────────┤
│ executo… │ script │ generic… │ None     │ None  │ None  │ Declari… │ /home/… │
│          │        │          │          │       │       │ env and  │         │
│          │        │          │          │       │       │ vars by  │         │
│          │        │          │          │       │       │ executo… │         │
│          │        │          │          │       │       │ section  │         │
└──────────┴────────┴──────────┴──────────┴───────┴───────┴──────────┴─────────┘
──────────────────────────────── Building Test ─────────────────────────────────
executors_vars_env_declaration/7d023711: Creating test directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executors_var_env_declaration/executors_vars_env_declaration/7d023711
executors_vars_env_declaration/7d023711: Creating the stage directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executors_var_env_declaration/executors_vars_env_declaration/7d023711/stage
executors_vars_env_declaration/7d023711: Writing build script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executors_var_env_declaration/executors_vars_env_declaration/7d023711/executors_vars_env_declaration_build.sh
executors_vars_env_declaration/a7a65d71: Creating test directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executors_var_env_declaration/executors_vars_env_declaration/a7a65d71
executors_vars_env_declaration/a7a65d71: Creating the stage directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executors_var_env_declaration/executors_vars_env_declaration/a7a65d71/stage
executors_vars_env_declaration/a7a65d71: Writing build script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executors_var_env_declaration/executors_vars_env_declaration/a7a65d71/executors_vars_env_declaration_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
executors_vars_env_declaration/7d023711 does not have any dependencies adding test to queue
executors_vars_env_declaration/a7a65d71 does not have any dependencies adding test to queue
executors_vars_env_declaration/7d023711: Current Working Directory : /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executors_var_env_declaration/executors_vars_env_declaration/7d023711/stage
executors_vars_env_declaration/7d023711: Running Test via command: bash --norc --noprofile -eo pipefail executors_vars_env_declaration_build.sh
executors_vars_env_declaration/7d023711: Test completed in 0.005754 seconds
executors_vars_env_declaration/7d023711: Test completed with returncode: 0
executors_vars_env_declaration/7d023711: Writing output file -  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executors_var_env_declaration/executors_vars_env_declaration/7d023711/executors_vars_env_declaration.out
executors_vars_env_declaration/7d023711: Writing error file - /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executors_var_env_declaration/executors_vars_env_declaration/7d023711/executors_vars_env_declaration.err
executors_vars_env_declaration/a7a65d71: Current Working Directory : /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executors_var_env_declaration/executors_vars_env_declaration/a7a65d71/stage
executors_vars_env_declaration/a7a65d71: Running Test via command: sh --norc --noprofile -eo pipefail executors_vars_env_declaration_build.sh
executors_vars_env_declaration/a7a65d71 failed to submit job with returncode: 2 

/usr/bin/sh: 0: Illegal option --

executors_vars_env_declaration/a7a65d71: Detected failure in running test, will attempt to retry test: 1 times
executors_vars_env_declaration/a7a65d71: Run - 1/1
executors_vars_env_declaration/a7a65d71: Running Test via command: sh --norc --noprofile -eo pipefail executors_vars_env_declaration_build.sh
executors_vars_env_declaration/a7a65d71: failed to submit job with returncode: 2
executors_vars_env_declaration/a7a65d71: Test completed in 0.008907 seconds
executors_vars_env_declaration/a7a65d71: Test completed with returncode: 2
executors_vars_env_declaration/a7a65d71: Writing output file -  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executors_var_env_declaration/executors_vars_env_declaration/a7a65d71/executors_vars_env_declaration.out
executors_vars_env_declaration/a7a65d71: Writing error file - /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executors_var_env_declaration/executors_vars_env_declaration/a7a65d71/executors_vars_env_declaration.err
In this iteration we are going to run the following tests: [executors_vars_env_declaration/7d023711, executors_vars_env_declaration/a7a65d71]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returncode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ executors_va │ generic.loc… │ FAIL   │ None None     │ 2          │ 0.008907 │
│ rs_env_decla │              │        │ None          │            │          │
│ ration/a7a65 │              │        │               │            │          │
│ d71          │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ executors_va │ generic.loc… │ PASS   │ None None     │ 0          │ 0.005754 │
│ rs_env_decla │              │        │ None          │            │          │
│ ration/7d023 │              │        │               │            │          │
│ 711          │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 1/2 Percentage: 50.000%
Failed Tests: 1/2 Percentage: 50.000%


Adding 2 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/logs/buildtest_dmb5ft8m.log

Now let’s look at the generated content of the test as follows. We will see that buildtest will set X=1, Y=3 and SHELL=bash for generic.local.bash and X=2, Y=4 and SHELL=sh for generic.local.sh

buildtest inspect query --testpath executors_vars_env_declaration/
$ buildtest inspect query --testpath executors_vars_env_declaration/
───── executors_vars_env_declaration/a7a65d71-3dfb-4949-88aa-9a6d830dd48a ──────
Executor: generic.local.sh
Description: Declaring env and vars by executors section
State: FAIL
Returncode: 2
Runtime: 0.008907 sec
Starttime: 2023/08/04 19:26:19
Endtime: 2023/08/04 19:26:19
Command: sh --norc --noprofile -eo pipefail executors_vars_env_declaration_build.sh
Test Script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executors_var_env_declaration/executors_vars_env_declaration/a7a65d71/executors_vars_env_declaration.sh
Build Script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executors_var_env_declaration/executors_vars_env_declaration/a7a65d71/executors_vars_env_declaration_build.sh
Output File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executors_var_env_declaration/executors_vars_env_declaration/a7a65d71/executors_vars_env_declaration.out
Error File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executors_var_env_declaration/executors_vars_env_declaration/a7a65d71/executors_vars_env_declaration.err
Log File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/logs/buildtest_dmb5ft8m.log
─ Test File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/check… ─
#!/usr/bin/sh                                                                   
export SHELL="sh"                                                               
X="2"                                                                           
Y="4"                                                                           
# Content of run section                                                        
echo "X:" $X                                                                    
echo "Y:" $Y                                                                    
echo $SHELL                                                                     
                                                                                
───── executors_vars_env_declaration/7d023711-0b8a-45a4-b3a2-fa73cd8f6b1f ──────
Executor: generic.local.bash
Description: Declaring env and vars by executors section
State: PASS
Returncode: 0
Runtime: 0.005754 sec
Starttime: 2023/08/04 19:26:19
Endtime: 2023/08/04 19:26:19
Command: bash --norc --noprofile -eo pipefail executors_vars_env_declaration_build.sh
Test Script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executors_var_env_declaration/executors_vars_env_declaration/7d023711/executors_vars_env_declaration.sh
Build Script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executors_var_env_declaration/executors_vars_env_declaration/7d023711/executors_vars_env_declaration_build.sh
Output File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executors_var_env_declaration/executors_vars_env_declaration/7d023711/executors_vars_env_declaration.out
Error File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executors_var_env_declaration/executors_vars_env_declaration/7d023711/executors_vars_env_declaration.err
Log File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/logs/buildtest_dmb5ft8m.log
─ Test File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/check… ─
#!/usr/bin/bash                                                                 
export SHELL="bash"                                                             
X="1"                                                                           
Y="3"                                                                           
# Content of run section                                                        
echo "X:" $X                                                                    
echo "Y:" $Y                                                                    
echo $SHELL

Scheduler Directives

We can also define scheduler directives based on executor type, in this example we define sbatch property per executor type. Note that sbatch property in the executors section will override the sbatch property defined in the top-level file otherwise it will use the default.

buildspecs:
  executors_sbatch_declaration:
    type: script
    executor: 'generic.local.(bash|sh)'
    description: Declaring env and vars by executors section
    tags: [tutorials]
    run: hostname
    sbatch: ["-N 4"]
    executors:
      generic.local.bash:
        sbatch: ["-n 4", "-N 1", "-t 30"]
      generic.local.sh:
        sbatch: ["-n 8", "-N 1", "-t 60"]
buildtest build -b tutorials/multi_executors/executor_scheduler.yml
$ buildtest build -b tutorials/multi_executors/executor_scheduler.yml
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-21511056-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2023/08/04 19:26:20                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ buildtest version:  1.5                                                      │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ python version:     3.8.17                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/t… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/tutorials/multi_executors/executor_scheduler.yml: VALID
Total builder objects created: 2
                            Builders by type=script                             
┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┓
┃ builder  ┃ type   ┃ executor ┃ compiler ┃ nodes ┃ procs ┃ descrip… ┃ builds… ┃
┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━┩
│ executo… │ script │ generic… │ None     │ None  │ None  │ Declari… │ /home/… │
│          │        │          │          │       │       │ env and  │         │
│          │        │          │          │       │       │ vars by  │         │
│          │        │          │          │       │       │ executo… │         │
│          │        │          │          │       │       │ section  │         │
├──────────┼────────┼──────────┼──────────┼───────┼───────┼──────────┼─────────┤
│ executo… │ script │ generic… │ None     │ None  │ None  │ Declari… │ /home/… │
│          │        │          │          │       │       │ env and  │         │
│          │        │          │          │       │       │ vars by  │         │
│          │        │          │          │       │       │ executo… │         │
│          │        │          │          │       │       │ section  │         │
└──────────┴────────┴──────────┴──────────┴───────┴───────┴──────────┴─────────┘
──────────────────────────────── Building Test ─────────────────────────────────
executors_sbatch_declaration/7d176a0f: Creating test directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_scheduler/executors_sbatch_declaration/7d176a0f
executors_sbatch_declaration/7d176a0f: Creating the stage directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_scheduler/executors_sbatch_declaration/7d176a0f/stage
executors_sbatch_declaration/7d176a0f: Writing build script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_scheduler/executors_sbatch_declaration/7d176a0f/executors_sbatch_declaration_build.sh
executors_sbatch_declaration/0d26faaf: Creating test directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_scheduler/executors_sbatch_declaration/0d26faaf
executors_sbatch_declaration/0d26faaf: Creating the stage directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_scheduler/executors_sbatch_declaration/0d26faaf/stage
executors_sbatch_declaration/0d26faaf: Writing build script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_scheduler/executors_sbatch_declaration/0d26faaf/executors_sbatch_declaration_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
executors_sbatch_declaration/0d26faaf does not have any dependencies adding test to queue
executors_sbatch_declaration/7d176a0f does not have any dependencies adding test to queue
executors_sbatch_declaration/0d26faaf: Current Working Directory : /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_scheduler/executors_sbatch_declaration/0d26faaf/stage
executors_sbatch_declaration/0d26faaf: Running Test via command: sh --norc --noprofile -eo pipefail executors_sbatch_declaration_build.sh
executors_sbatch_declaration/0d26faaf failed to submit job with returncode: 2 

/usr/bin/sh: 0: Illegal option --

executors_sbatch_declaration/0d26faaf: Detected failure in running test, will attempt to retry test: 1 times
executors_sbatch_declaration/0d26faaf: Run - 1/1
executors_sbatch_declaration/0d26faaf: Running Test via command: sh --norc --noprofile -eo pipefail executors_sbatch_declaration_build.sh
executors_sbatch_declaration/0d26faaf: failed to submit job with returncode: 2 
executors_sbatch_declaration/0d26faaf: Test completed in 0.008904 seconds
executors_sbatch_declaration/0d26faaf: Test completed with returncode: 2
executors_sbatch_declaration/0d26faaf: Writing output file -  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_scheduler/executors_sbatch_declaration/0d26faaf/executors_sbatch_declaration.out
executors_sbatch_declaration/0d26faaf: Writing error file - /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_scheduler/executors_sbatch_declaration/0d26faaf/executors_sbatch_declaration.err
executors_sbatch_declaration/7d176a0f: Current Working Directory : /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_scheduler/executors_sbatch_declaration/7d176a0f/stage
executors_sbatch_declaration/7d176a0f: Running Test via command: bash --norc --noprofile -eo pipefail executors_sbatch_declaration_build.sh
executors_sbatch_declaration/7d176a0f: Test completed in 0.006088 seconds
executors_sbatch_declaration/7d176a0f: Test completed with returncode: 0
executors_sbatch_declaration/7d176a0f: Writing output file -  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_scheduler/executors_sbatch_declaration/7d176a0f/executors_sbatch_declaration.out
executors_sbatch_declaration/7d176a0f: Writing error file - /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_scheduler/executors_sbatch_declaration/7d176a0f/executors_sbatch_declaration.err
In this iteration we are going to run the following tests: [executors_sbatch_declaration/0d26faaf, executors_sbatch_declaration/7d176a0f]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returncode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ executors_sb │ generic.loc… │ PASS   │ None None     │ 0          │ 0.006088 │
│ atch_declara │              │        │ None          │            │          │
│ tion/7d176a0 │              │        │               │            │          │
│ f            │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ executors_sb │ generic.loc… │ FAIL   │ None None     │ 2          │ 0.008904 │
│ atch_declara │              │        │ None          │            │          │
│ tion/0d26faa │              │        │               │            │          │
│ f            │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 1/2 Percentage: 50.000%
Failed Tests: 1/2 Percentage: 50.000%


Adding 2 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/logs/buildtest_za4hrz3k.log

If we inspect this test, we will see each each test have different #SBATCH directives for each test based on the sbatch property defined in the executors field.

buildtest inspect query --testpath executors_sbatch_declaration/
$ buildtest inspect query --testpath executors_sbatch_declaration/
────── executors_sbatch_declaration/0d26faaf-b805-4883-b532-4e1ebc0717dd ───────
Executor: generic.local.sh
Description: Declaring env and vars by executors section
State: FAIL
Returncode: 2
Runtime: 0.008904 sec
Starttime: 2023/08/04 19:26:20
Endtime: 2023/08/04 19:26:20
Command: sh --norc --noprofile -eo pipefail executors_sbatch_declaration_build.sh
Test Script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_scheduler/executors_sbatch_declaration/0d26faaf/executors_sbatch_declaration.sh
Build Script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_scheduler/executors_sbatch_declaration/0d26faaf/executors_sbatch_declaration_build.sh
Output File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_scheduler/executors_sbatch_declaration/0d26faaf/executors_sbatch_declaration.out
Error File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/executor_scheduler/executors_sbatch_declaration/0d26faaf/executors_sbatch_declaration.err
Log File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/logs/buildtest_za4hrz3k.log
─ Test File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/check… ─
#!/usr/bin/sh                                                                   
#SBATCH -n 8                                                                    
#SBATCH -N 1                                                                    
#SBATCH -t 60                                                                   
#SBATCH --job-name=executors_sbatch_declaration                                 
#SBATCH --output=executors_sbatch_declaration.out                               
#SBATCH --error=executors_sbatch_declaration.err                                
# Content of run section                                                        
hostname                                                                        
────── executors_sbatch_declaration/7d176a0f-5101-4955-883c-0ab35c733371 ───────
Executor: generic.local.bash
Description: Declaring env and vars by executors section
State: PASS
Returncode: 0
Runtime: 0.006088 sec
Starttime: 2023/08/04 19:26:20
Endtime: 2023/08/04 19:26:20
Command: bash --norc --noprofile -eo pipefail executors_sbatch_declaration_build.sh
Test Script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_scheduler/executors_sbatch_declaration/7d176a0f/executors_sbatch_declaration.sh
Build Script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_scheduler/executors_sbatch_declaration/7d176a0f/executors_sbatch_declaration_build.sh
Output File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_scheduler/executors_sbatch_declaration/7d176a0f/executors_sbatch_declaration.out
Error File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/executor_scheduler/executors_sbatch_declaration/7d176a0f/executors_sbatch_declaration.err
Log File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/logs/buildtest_za4hrz3k.log
─ Test File: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/check… ─
#!/usr/bin/bash                                                                 
#SBATCH -n 4                                                                    
#SBATCH -N 1                                                                    
#SBATCH -t 30                                                                   
#SBATCH --job-name=executors_sbatch_declaration                                 
#SBATCH --output=executors_sbatch_declaration.out                               
#SBATCH --error=executors_sbatch_declaration.err                                
# Content of run section                                                        
hostname

Cray Burst Buffer and Data Warp

You can also define BB and DW directives in the executors field to override cray burst buffer and data warp settings per executor. buildtest will use the fields BB and DW and insert the #BB and #DW directives in the job script. For more details see Cray Burst Buffer & Data Warp.

buildspecs:
  create_burst_buffer_executors:
    type: script
    executor: "generic.local.(sh|bash)"
    sbatch: ["-N 1", "-t 10", "-C knl"]
    description: Create a burst buffer for multiple executors
    tags: [jobs]
    executors:
      generic.local.sh:
        BB:
          - create_persistent name=buffer1 capacity=10GB access_mode=striped type=scratch
        DW:
          - persistentdw name=buffer1
      generic.local.bash:
        BB:
        - create_persistent name=buffer2 capacity=10GB access_mode=striped type=scratch
        DW:
          - persistentdw name=buffer2
    run: hostname

Custom Status by Executor

The status and metrics field are supported in executors which can be defined within the named executor. In this next example, we will define executor generic.local.bash to match for returncode 0 or 2 while second test will use executor generic.local.sh to match returncode of 1.

buildspecs:
  status_returncode_by_executors:
    type: script
    executor: "generic.local.(bash|sh)"
    description: define status per executor type.
    tags: [tutorials]
    run: exit 0
    executors:
      generic.local.bash:
        status:
          returncode: [0, 2]
      generic.local.sh:
        status:
          returncode: 1

Now let’s run this test and we will see the test using executor generic.local.sh will fail because we have a returncode mismatch even though both tests got a 0 returncode as its actual value.

buildtest build -b tutorials/multi_executors/status_by_executors.yml
$ buildtest build -b tutorials/multi_executors/status_by_executors.yml
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-21511056-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2023/08/04 19:26:21                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ buildtest version:  1.5                                                      │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ python version:     3.8.17                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/t… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/tutorials/multi_executors/status_by_executors.yml: VALID
Total builder objects created: 2
                            Builders by type=script                             
┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┓
┃ builder  ┃ type   ┃ executor ┃ compiler ┃ nodes ┃ procs ┃ descrip… ┃ builds… ┃
┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━┩
│ status_… │ script │ generic… │ None     │ None  │ None  │ define   │ /home/… │
│          │        │          │          │       │       │ status   │         │
│          │        │          │          │       │       │ per      │         │
│          │        │          │          │       │       │ executor │         │
│          │        │          │          │       │       │ type.    │         │
├──────────┼────────┼──────────┼──────────┼───────┼───────┼──────────┼─────────┤
│ status_… │ script │ generic… │ None     │ None  │ None  │ define   │ /home/… │
│          │        │          │          │       │       │ status   │         │
│          │        │          │          │       │       │ per      │         │
│          │        │          │          │       │       │ executor │         │
│          │        │          │          │       │       │ type.    │         │
└──────────┴────────┴──────────┴──────────┴───────┴───────┴──────────┴─────────┘
──────────────────────────────── Building Test ─────────────────────────────────
status_returncode_by_executors/a6a82778: Creating test directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/status_by_executors/status_returncode_by_executors/a6a82778
status_returncode_by_executors/a6a82778: Creating the stage directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/status_by_executors/status_returncode_by_executors/a6a82778/stage
status_returncode_by_executors/a6a82778: Writing build script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/status_by_executors/status_returncode_by_executors/a6a82778/status_returncode_by_executors_build.sh
status_returncode_by_executors/c1f448bf: Creating test directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/status_by_executors/status_returncode_by_executors/c1f448bf
status_returncode_by_executors/c1f448bf: Creating the stage directory: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/status_by_executors/status_returncode_by_executors/c1f448bf/stage
status_returncode_by_executors/c1f448bf: Writing build script: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/status_by_executors/status_returncode_by_executors/c1f448bf/status_returncode_by_executors_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
status_returncode_by_executors/c1f448bf does not have any dependencies adding test to queue
status_returncode_by_executors/a6a82778 does not have any dependencies adding test to queue
status_returncode_by_executors/c1f448bf: Current Working Directory : /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/status_by_executors/status_returncode_by_executors/c1f448bf/stage
status_returncode_by_executors/c1f448bf: Running Test via command: sh --norc --noprofile -eo pipefail status_returncode_by_executors_build.sh
status_returncode_by_executors/c1f448bf failed to submit job with returncode: 2 

/usr/bin/sh: 0: Illegal option --

status_returncode_by_executors/c1f448bf: Detected failure in running test, will attempt to retry test: 1 times
status_returncode_by_executors/c1f448bf: Run - 1/1
status_returncode_by_executors/c1f448bf: Running Test via command: sh --norc --noprofile -eo pipefail status_returncode_by_executors_build.sh
status_returncode_by_executors/c1f448bf: failed to submit job with returncode: 2
status_returncode_by_executors/c1f448bf: Test completed in 0.009145 seconds
status_returncode_by_executors/c1f448bf: Test completed with returncode: 2
status_returncode_by_executors/c1f448bf: Writing output file -  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/status_by_executors/status_returncode_by_executors/c1f448bf/status_returncode_by_executors.out
status_returncode_by_executors/c1f448bf: Writing error file - /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.sh/status_by_executors/status_returncode_by_executors/c1f448bf/status_returncode_by_executors.err
status_returncode_by_executors/c1f448bf: Checking returncode - 2 is matched in list [1]
status_returncode_by_executors/a6a82778: Current Working Directory : /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/status_by_executors/status_returncode_by_executors/a6a82778/stage
status_returncode_by_executors/a6a82778: Running Test via command: bash --norc --noprofile -eo pipefail status_returncode_by_executors_build.sh
status_returncode_by_executors/a6a82778: Test completed in 0.005452 seconds
status_returncode_by_executors/a6a82778: Test completed with returncode: 0
status_returncode_by_executors/a6a82778: Writing output file -  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/status_by_executors/status_returncode_by_executors/a6a82778/status_returncode_by_executors.out
status_returncode_by_executors/a6a82778: Writing error file - /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/tests/generic.local.bash/status_by_executors/status_returncode_by_executors/a6a82778/status_returncode_by_executors.err
status_returncode_by_executors/a6a82778: Checking returncode - 0 is matched in list [0, 2]
In this iteration we are going to run the following tests: [status_returncode_by_executors/c1f448bf, status_returncode_by_executors/a6a82778]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returncode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ status_retur │ generic.loc… │ FAIL   │ False None    │ 2          │ 0.009145 │
│ ncode_by_exe │              │        │ None          │            │          │
│ cutors/c1f44 │              │        │               │            │          │
│ 8bf          │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ status_retur │ generic.loc… │ PASS   │ True None     │ 0          │ 0.005452 │
│ ncode_by_exe │              │        │ None          │            │          │
│ cutors/a6a82 │              │        │               │            │          │
│ 778          │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 1/2 Percentage: 50.000%
Failed Tests: 1/2 Percentage: 50.000%


Adding 2 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v1.5/var/logs/buildtest_dbluta0m.log