Building Test via buildtest (buildtest build)

This guide will get you familiar with buildtest command line interface. Once you complete this section, you can proceed to writing buildspecs section where we will cover how to write buildspecs.

Once you install buildtest, you should find the buildtest command in your $PATH. You can check the path to buildtest command by running:

$ which buildtest

If you don’t see buildtest go back and install buildtest.

When you clone buildtest, you also get a set of buildspecs that you can run on your system. The buildtest build command is used for building and running tests. Buildtest will read one or more buildspecs file that adheres to one of the buildtest schemas. For a complete list of build options please run buildtest build --help.

Note

buildtest bd is an alias for buildtest build command.

Build Usage

$ buildtest build --help
usage: buildtest [options] [COMMANDS] build [-h] [-b BUILDSPEC] [-x EXCLUDE]
                                            [-e EXECUTOR] [-t TAGS] [--rerun]
                                            [-f FILTER] [--helpfilter]
                                            [-et {local,batch}]
                                            [--module-purge] [-m MODULES]
                                            [-u UNLOAD_MODULES]
                                            [--account ACCOUNT]
                                            [--disable-executor-check] [-k]
                                            [--maxpendtime MAXPENDTIME]
                                            [--pollinterval POLLINTERVAL]
                                            [--procs PROCS [PROCS ...]]
                                            [--nodes NODES [NODES ...]]
                                            [--rebuild REBUILD]
                                            [--retry RETRY] [-s {parse,build}]
                                            [--testdir TESTDIR]
                                            [--timeout TIMEOUT]

optional arguments:
  -h, --help            show this help message and exit

select:
  Select buildspec file to run based on file, tag, executor

  -b BUILDSPEC, --buildspec BUILDSPEC
                        Specify a buildspec (file or directory) to build. A
                        buildspec must end in '.yml' extension.
  -x EXCLUDE, --exclude EXCLUDE
                        Exclude one or more buildspecs (file or directory)
                        from processing. A buildspec must end in '.yml'
                        extension.
  -e EXECUTOR, --executor EXECUTOR
                        Discover buildspecs by executor name found in
                        buildspec cache
  -t TAGS, --tags TAGS  Discover buildspecs by tags found in buildspec cache
  --rerun               Rerun last successful buildtest build command.

filter:
  Filter tests after selection

  -f FILTER, --filter FILTER
                        Filter buildspec based on tags, type, or maintainers.
                        Usage: --filter key1=val1,key2=val2
  --helpfilter          Show available filter fields used with --filter option
  -et {local,batch}, --executor-type {local,batch}
                        Filter tests by executor type (local, batch)

module:
  Module Selection option

  --module-purge        Run 'module purge' before running any test
  -m MODULES, --modules MODULES
                        Specify a list of modules to load during test
                        execution, to specify multiple modules each one must
                        be comma separated for instance if you want to load
                        'gcc' and 'python' module you can do '-m gcc,python'
  -u UNLOAD_MODULES, --unload-modules UNLOAD_MODULES
                        Specify a list of modules to unload during test
                        execution

batch:
  Batch Submission Options

  --account ACCOUNT     Specify project account used to charge batch jobs
                        (applicable for batch jobs only)
  --maxpendtime MAXPENDTIME
                        Specify Maximum Pending Time (sec) for job before
                        cancelling job. This only applies for batch job
                        submission.
  --pollinterval POLLINTERVAL
                        Specify Poll Interval (sec) for polling batch jobs
  --procs PROCS [PROCS ...]
                        Specify number of processes to run tests (only
                        applicable with batch jobs). Multiple values can be
                        specified comma separated.
  --nodes NODES [NODES ...]
                        Specify number of nodes to run tests (only applicable
                        with batch jobs). Multiple values can be specified
                        comma separated.

extra:
  All extra options

  --disable-executor-check
                        Disable executor check during configuration check. By
                        default these checks are enforced for Local, Slurm,
                        PBS, LSF, and Cobalt Executor.
  -k, --keep-stage-dir  Keep stage directory after job completion.
  --rebuild REBUILD     Rebuild test X number of times. Must be a positive
                        number between [1-50]
  --retry RETRY         Retry failed jobs
  -s {parse,build}, --stage {parse,build}
                        Control behavior of buildtest build to stop execution
                        after 'parse' or 'build' stage
  --testdir TESTDIR     Specify a custom test directory where to write tests.
                        This overrides configuration file and default
                        location.
  --timeout TIMEOUT     Specify test timeout in number of seconds

Building a Test

To build a test, we use the --buildspec or short option -b to specify the path to buildspec file. Let’s see some examples, first we specify a full path to buildspec file. In this example, buildtest will discover buildspecs followed by parsing the test with appropriate schema and generate a shell script that is run by buildtest. You can learn more about build and test process.

$ buildtest build -b $BUILDTEST_ROOT/tutorials/vars.yml
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:37:29                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b /home/docs/checkouts/readthedocs. │
│ org/user_builds/buildtest/checkouts/stable/tutorials/vars.yml                │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/vars.yml: VALID
Total builder objects created: 1
Total compiler builder: 0
Total script builder: 1
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ variables… │ generic.l… │ None     │ None  │ None  │ Declare    │ /home/doc… │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ variables  │            │
│            │            │          │       │       │ in bash    │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
variables_bash/d3b8a695: Creating test directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/
variables_bash/d3b8a695
variables_bash/d3b8a695: Creating the stage directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
vars/variables_bash/d3b8a695/stage
variables_bash/d3b8a695: Writing build script: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/var
iables_bash/d3b8a695/variables_bash_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
variables_bash/d3b8a695 does not have any dependencies adding test to queue
variables_bash/d3b8a695: Running Test via command: bash --norc --noprofile -eo 
pipefail variables_bash_build.sh
variables_bash/d3b8a695: Test completed in 0.010397 seconds
variables_bash/d3b8a695: Test completed with returncode: 0
variables_bash/d3b8a695: Writing output file -  /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/va
riables_bash/d3b8a695/variables_bash.out
variables_bash/d3b8a695: Writing error file - /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/vari
ables_bash/d3b8a695/variables_bash.err
In this iteration we are going to run the following tests: [variables_bash/d3b8a695]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ variables_ba │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.010397 │
│ sh/d3b8a695  │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 1/1 Percentage: 100.000%
Failed Tests: 0/1 Percentage: 0.000%


Adding 1 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_2uhhsgjv.log

Note

buildtest will only read buildspecs with .yml extension, if you specify a .yaml it will be ignored by buildtest.

The --buildspec option can be used to specify a file or directory path. If you want to build multiple buildspecs in a directory you can specify the directory path and buildtest will recursively search for all .yml files. In the next example, we build all tests in directory general_tests/configuration.

$ buildtest build -b general_tests/configuration/
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:24                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b general_tests/configuration/      │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  4
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  4
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 4 buildspecs
Valid Buildspecs: 4
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/gene
ral_tests/configuration/kernel_state.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/gene
ral_tests/configuration/ulimits.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/gene
ral_tests/configuration/disk_usage.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/gene
ral_tests/configuration/systemd-default-target.yml: VALID
Total builder objects created: 9
Total compiler builder: 0
Total script builder: 9
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ kernel_sw… │ generic.l… │ None     │ None  │ None  │ Retrieve   │ /home/doc… │
│            │            │          │       │       │ Kernel     │            │
│            │            │          │       │       │ Swap Usage │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_fi… │ generic.l… │ None     │ None  │ None  │ Check if   │ /home/doc… │
│            │            │          │       │       │ file lock  │            │
│            │            │          │       │       │ is set to  │            │
│            │            │          │       │       │ unlimited  │            │
│            │            │          │       │       │ in ulimits │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_cp… │ generic.l… │ None     │ None  │ None  │ Check if   │ /home/doc… │
│            │            │          │       │       │ cputime is │            │
│            │            │          │       │       │ set to     │            │
│            │            │          │       │       │ unlimited  │            │
│            │            │          │       │       │ in ulimits │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_st… │ generic.l… │ None     │ None  │ None  │ Check if   │ /home/doc… │
│            │            │          │       │       │ stack size │            │
│            │            │          │       │       │ is set to  │            │
│            │            │          │       │       │ unlimited  │            │
│            │            │          │       │       │ in ulimits │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_vm… │ generic.l… │ None     │ None  │ None  │ Check      │ /home/doc… │
│            │            │          │       │       │ virtual    │            │
│            │            │          │       │       │ memory     │            │
│            │            │          │       │       │ size and   │            │
│            │            │          │       │       │ check if   │            │
│            │            │          │       │       │ its set to │            │
│            │            │          │       │       │ unlimited  │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_fi… │ generic.l… │ None     │ None  │ None  │ Check if   │ /home/doc… │
│            │            │          │       │       │ open file  │            │
│            │            │          │       │       │ descripto… │            │
│            │            │          │       │       │ limit is   │            │
│            │            │          │       │       │ set to     │            │
│            │            │          │       │       │ 4096       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_ma… │ generic.l… │ None     │ None  │ None  │ Check max  │ /home/doc… │
│            │            │          │       │       │ number of  │            │
│            │            │          │       │       │ user       │            │
│            │            │          │       │       │ process    │            │
│            │            │          │       │       │ limit is   │            │
│            │            │          │       │       │ set to     │            │
│            │            │          │       │       │ 2048       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ root_disk… │ generic.l… │ None     │ None  │ None  │ Check root │ /home/doc… │
│            │            │          │       │       │ disk usage │            │
│            │            │          │       │       │ and report │            │
│            │            │          │       │       │ if it      │            │
│            │            │          │       │       │ exceeds    │            │
│            │            │          │       │       │ threshold  │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ systemd_d… │ generic.l… │ None     │ None  │ None  │ check if   │ /home/doc… │
│            │            │          │       │       │ default    │            │
│            │            │          │       │       │ target is  │            │
│            │            │          │       │       │ multi-use… │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
kernel_swapusage/b8ad28fa: Creating test directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ker
nel_state/kernel_swapusage/b8ad28fa
kernel_swapusage/b8ad28fa: Creating the stage directory: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/kernel_state/kernel_swapusage/b8ad28fa/stage
kernel_swapusage/b8ad28fa: Writing build script: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/kernel
_state/kernel_swapusage/b8ad28fa/kernel_swapusage_build.sh
ulimit_filelock_unlimited/6c86a730: Creating test directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/ulimits/ulimit_filelock_unlimited/6c86a730
ulimit_filelock_unlimited/6c86a730: Creating the stage directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.
local.bash/ulimits/ulimit_filelock_unlimited/6c86a730/stage
ulimit_filelock_unlimited/6c86a730: Writing build script: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/ulimits/ulimit_filelock_unlimited/6c86a730/ulimit_filelock_unlimited_build.sh
ulimit_cputime_unlimited/91aabf12: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/ulimits/ulimit_cputime_unlimited/91aabf12
ulimit_cputime_unlimited/91aabf12: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.l
ocal.bash/ulimits/ulimit_cputime_unlimited/91aabf12/stage
ulimit_cputime_unlimited/91aabf12: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/ulimits/ulimit_cputime_unlimited/91aabf12/ulimit_cputime_unlimited_build.sh
ulimit_stacksize_unlimited/8a848328: Creating test directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loca
l.bash/ulimits/ulimit_stacksize_unlimited/8a848328
ulimit_stacksize_unlimited/8a848328: Creating the stage directory: /home/docs/ch
eckouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic
.local.bash/ulimits/ulimit_stacksize_unlimited/8a848328/stage
ulimit_stacksize_unlimited/8a848328: Writing build script: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/ulimits/ulimit_stacksize_unlimited/8a848328/ulimit_stacksize_unlimited_build
.sh
ulimit_vmsize_unlimited/f1f8dc74: Creating test directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/ulimits/ulimit_vmsize_unlimited/f1f8dc74
ulimit_vmsize_unlimited/f1f8dc74: Creating the stage directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.lo
cal.bash/ulimits/ulimit_vmsize_unlimited/f1f8dc74/stage
ulimit_vmsize_unlimited/f1f8dc74: Writing build script: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/ulimits/ulimit_vmsize_unlimited/f1f8dc74/ulimit_vmsize_unlimited_build.sh
ulimit_filedescriptor_4096/77750bd8: Creating test directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loca
l.bash/ulimits/ulimit_filedescriptor_4096/77750bd8
ulimit_filedescriptor_4096/77750bd8: Creating the stage directory: /home/docs/ch
eckouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic
.local.bash/ulimits/ulimit_filedescriptor_4096/77750bd8/stage
ulimit_filedescriptor_4096/77750bd8: Writing build script: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/ulimits/ulimit_filedescriptor_4096/77750bd8/ulimit_filedescriptor_4096_build
.sh
ulimit_max_user_process_2048/8311b2fc: Creating test directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.lo
cal.bash/ulimits/ulimit_max_user_process_2048/8311b2fc
ulimit_max_user_process_2048/8311b2fc: Creating the stage directory: /home/docs/
checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/gener
ic.local.bash/ulimits/ulimit_max_user_process_2048/8311b2fc/stage
ulimit_max_user_process_2048/8311b2fc: Writing build script: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/ulimits/ulimit_max_user_process_2048/8311b2fc/ulimit_max_user_process_2048
_build.sh
root_disk_usage/d171ec22: Creating test directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk
_usage/root_disk_usage/d171ec22
root_disk_usage/d171ec22: Creating the stage directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/disk_usage/root_disk_usage/d171ec22/stage
root_disk_usage/d171ec22: Writing build script: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk_us
age/root_disk_usage/d171ec22/root_disk_usage_build.sh
systemd_default_target/bc1f8700: Creating test directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/systemd-default-target/systemd_default_target/bc1f8700
systemd_default_target/bc1f8700: Creating the stage directory: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loc
al.bash/systemd-default-target/systemd_default_target/bc1f8700/stage
systemd_default_target/bc1f8700: Writing build script: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
systemd-default-target/systemd_default_target/bc1f8700/systemd_default_target_bu
ild.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
ulimit_vmsize_unlimited/f1f8dc74 does not have any dependencies adding test to 
queue
systemd_default_target/bc1f8700 does not have any dependencies adding test to 
queue
ulimit_filedescriptor_4096/77750bd8 does not have any dependencies adding test 
to queue
ulimit_cputime_unlimited/91aabf12 does not have any dependencies adding test to 
queue
kernel_swapusage/b8ad28fa does not have any dependencies adding test to queue
ulimit_max_user_process_2048/8311b2fc does not have any dependencies adding test
to queue
root_disk_usage/d171ec22 does not have any dependencies adding test to queue
ulimit_stacksize_unlimited/8a848328 does not have any dependencies adding test 
to queue
ulimit_filelock_unlimited/6c86a730 does not have any dependencies adding test to
queue
ulimit_vmsize_unlimited/f1f8dc74: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_vmsize_unlimited_build.sh
ulimit_vmsize_unlimited/f1f8dc74: Test completed in 0.006012 seconds
ulimit_vmsize_unlimited/f1f8dc74: Test completed with returncode: 0
ulimit_vmsize_unlimited/f1f8dc74: Writing output file -  /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/ulimits/ulimit_vmsize_unlimited/f1f8dc74/ulimit_vmsize_unlimited.out
ulimit_vmsize_unlimited/f1f8dc74: Writing error file - /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
ulimits/ulimit_vmsize_unlimited/f1f8dc74/ulimit_vmsize_unlimited.err
ulimit_vmsize_unlimited/f1f8dc74: performing regular expression - '^unlimited$' 
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/st
able/var/tests/generic.local.bash/ulimits/ulimit_vmsize_unlimited/f1f8dc74/ulimi
t_vmsize_unlimited.out
ulimit_vmsize_unlimited/f1f8dc74: Regular Expression Match - Success!
systemd_default_target/bc1f8700: Running Test via command: bash --norc 
--noprofile -eo pipefail systemd_default_target_build.sh
systemd_default_target/bc1f8700: Test completed in 0.014679 seconds
systemd_default_target/bc1f8700: Test completed with returncode: 1
systemd_default_target/bc1f8700: Writing output file -  /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/systemd-default-target/systemd_default_target/bc1f8700/systemd_default_target.o
ut
systemd_default_target/bc1f8700: Writing error file - /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/s
ystemd-default-target/systemd_default_target/bc1f8700/systemd_default_target.err
ulimit_filedescriptor_4096/77750bd8: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_filedescriptor_4096_build.sh
ulimit_filedescriptor_4096/77750bd8: Test completed in 0.006226 seconds
ulimit_filedescriptor_4096/77750bd8: Test completed with returncode: 0
ulimit_filedescriptor_4096/77750bd8: Writing output file -  /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/ulimits/ulimit_filedescriptor_4096/77750bd8/ulimit_filedescriptor_4096.out
ulimit_filedescriptor_4096/77750bd8: Writing error file - /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/ulimits/ulimit_filedescriptor_4096/77750bd8/ulimit_filedescriptor_4096.err
ulimit_filedescriptor_4096/77750bd8: performing regular expression - '^4096$' on
file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stabl
e/var/tests/generic.local.bash/ulimits/ulimit_filedescriptor_4096/77750bd8/ulimi
t_filedescriptor_4096.out
ulimit_filedescriptor_4096/77750bd8: Regular Expression Match - Failed!
kernel_swapusage/b8ad28fa: Running Test via command: bash --norc --noprofile -eo
pipefail kernel_swapusage_build.sh
kernel_swapusage/b8ad28fa: Test completed in 0.007869 seconds
kernel_swapusage/b8ad28fa: Test completed with returncode: 255
kernel_swapusage/b8ad28fa: Writing output file -  /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/kerne
l_state/kernel_swapusage/b8ad28fa/kernel_swapusage.out
kernel_swapusage/b8ad28fa: Writing error file - /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/kernel_
state/kernel_swapusage/b8ad28fa/kernel_swapusage.err
ulimit_cputime_unlimited/91aabf12: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_cputime_unlimited_build.sh
ulimit_cputime_unlimited/91aabf12: Test completed in 0.006081 seconds
ulimit_cputime_unlimited/91aabf12: Test completed with returncode: 0
ulimit_cputime_unlimited/91aabf12: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/ulimits/ulimit_cputime_unlimited/91aabf12/ulimit_cputime_unlimited.out
ulimit_cputime_unlimited/91aabf12: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/ulimits/ulimit_cputime_unlimited/91aabf12/ulimit_cputime_unlimited.err
ulimit_cputime_unlimited/91aabf12: performing regular expression - '^unlimited$'
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/st
able/var/tests/generic.local.bash/ulimits/ulimit_cputime_unlimited/91aabf12/ulim
it_cputime_unlimited.out
ulimit_cputime_unlimited/91aabf12: Regular Expression Match - Success!
ulimit_max_user_process_2048/8311b2fc: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_max_user_process_2048_build.sh
ulimit_max_user_process_2048/8311b2fc: Test completed in 0.006313 seconds
ulimit_max_user_process_2048/8311b2fc: Test completed with returncode: 0
ulimit_max_user_process_2048/8311b2fc: Writing output file -  /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loca
l.bash/ulimits/ulimit_max_user_process_2048/8311b2fc/ulimit_max_user_process_204
8.out
ulimit_max_user_process_2048/8311b2fc: Writing error file - /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/ulimits/ulimit_max_user_process_2048/8311b2fc/ulimit_max_user_process_2048.
err
ulimit_max_user_process_2048/8311b2fc: performing regular expression - '^2048$' 
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/st
able/var/tests/generic.local.bash/ulimits/ulimit_max_user_process_2048/8311b2fc/
ulimit_max_user_process_2048.out
ulimit_max_user_process_2048/8311b2fc: Regular Expression Match - Failed!
root_disk_usage/d171ec22: Running Test via command: bash --norc --noprofile -eo 
pipefail root_disk_usage_build.sh
root_disk_usage/d171ec22: Test completed in 0.010895 seconds
root_disk_usage/d171ec22: Test completed with returncode: 0
root_disk_usage/d171ec22: Writing output file -  /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk_u
sage/root_disk_usage/d171ec22/root_disk_usage.out
root_disk_usage/d171ec22: Writing error file - /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk_usa
ge/root_disk_usage/d171ec22/root_disk_usage.err
ulimit_stacksize_unlimited/8a848328: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_stacksize_unlimited_build.sh
ulimit_stacksize_unlimited/8a848328: Test completed in 0.005979 seconds
ulimit_stacksize_unlimited/8a848328: Test completed with returncode: 0
ulimit_stacksize_unlimited/8a848328: Writing output file -  /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/ulimits/ulimit_stacksize_unlimited/8a848328/ulimit_stacksize_unlimited.out
ulimit_stacksize_unlimited/8a848328: Writing error file - /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/ulimits/ulimit_stacksize_unlimited/8a848328/ulimit_stacksize_unlimited.err
ulimit_stacksize_unlimited/8a848328: performing regular expression - 
'^unlimited$' on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtes
t/checkouts/stable/var/tests/generic.local.bash/ulimits/ulimit_stacksize_unlimit
ed/8a848328/ulimit_stacksize_unlimited.out
ulimit_stacksize_unlimited/8a848328: Regular Expression Match - Failed!
ulimit_filelock_unlimited/6c86a730: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_filelock_unlimited_build.sh
ulimit_filelock_unlimited/6c86a730: Test completed in 0.006211 seconds
ulimit_filelock_unlimited/6c86a730: Test completed with returncode: 0
ulimit_filelock_unlimited/6c86a730: Writing output file -  /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/ulimits/ulimit_filelock_unlimited/6c86a730/ulimit_filelock_unlimited.out
ulimit_filelock_unlimited/6c86a730: Writing error file - /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/ulimits/ulimit_filelock_unlimited/6c86a730/ulimit_filelock_unlimited.err
ulimit_filelock_unlimited/6c86a730: performing regular expression - 
'^unlimited$' on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtes
t/checkouts/stable/var/tests/generic.local.bash/ulimits/ulimit_filelock_unlimite
d/6c86a730/ulimit_filelock_unlimited.out
ulimit_filelock_unlimited/6c86a730: Regular Expression Match - Success!
In this iteration we are going to run the following tests: [ulimit_vmsize_unlimited/f1f8dc74, systemd_default_target/bc1f8700, ulimit_filedescriptor_4096/77750bd8, kernel_swapusage/b8ad28fa, ulimit_cputime_unlimited/91aabf12, ulimit_max_user_process_2048/8311b2fc, root_disk_usage/d171ec22, ulimit_stacksize_unlimited/8a848328, ulimit_filelock_unlimited/6c86a730]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ kernel_swapu │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 255        │ 0.007869 │
│ sage/b8ad28f │              │        │               │            │          │
│ a            │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_filed │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.006226 │
│ escriptor_40 │              │        │ False         │            │          │
│ 96/77750bd8  │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ systemd_defa │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.014679 │
│ ult_target/b │              │        │               │            │          │
│ c1f8700      │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ root_disk_us │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.010895 │
│ age/d171ec22 │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_max_u │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.006313 │
│ ser_process_ │              │        │ False         │            │          │
│ 2048/8311b2f │              │        │               │            │          │
│ c            │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_vmsiz │ generic.loc… │ PASS   │ False True    │ 0          │ 0.006012 │
│ e_unlimited/ │              │        │ False         │            │          │
│ f1f8dc74     │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_stack │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.005979 │
│ size_unlimit │              │        │ False         │            │          │
│ ed/8a848328  │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_filel │ generic.loc… │ PASS   │ False True    │ 0          │ 0.006211 │
│ ock_unlimite │              │        │ False         │            │          │
│ d/6c86a730   │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_cputi │ generic.loc… │ PASS   │ False True    │ 0          │ 0.006081 │
│ me_unlimited │              │        │ False         │            │          │
│ /91aabf12    │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 4/9 Percentage: 44.444%
Failed Tests: 5/9 Percentage: 55.556%


Adding 9 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_oa4wz2cy.log

Building Multiple Buildspecs

You can append -b option to build multiple buildspecs in the same command. Buildtest will discover buildspecs for every argument (-b) and accumulate a list of buildspecs to run. In this example, we instruct buildtest to build a buildspec file and all buildspecs in a directory path.

$ buildtest build -b general_tests/configuration/ -b tutorials/vars.yml
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:25                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b general_tests/configuration/ -b   │
│ tutorials/vars.yml                                                           │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  5
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  5
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 5 buildspecs
Valid Buildspecs: 5
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/gene
ral_tests/configuration/systemd-default-target.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/gene
ral_tests/configuration/kernel_state.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/gene
ral_tests/configuration/disk_usage.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/vars.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/gene
ral_tests/configuration/ulimits.yml: VALID
Total builder objects created: 10
Total compiler builder: 0
Total script builder: 10
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ systemd_d… │ generic.l… │ None     │ None  │ None  │ check if   │ /home/doc… │
│            │            │          │       │       │ default    │            │
│            │            │          │       │       │ target is  │            │
│            │            │          │       │       │ multi-use… │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ kernel_sw… │ generic.l… │ None     │ None  │ None  │ Retrieve   │ /home/doc… │
│            │            │          │       │       │ Kernel     │            │
│            │            │          │       │       │ Swap Usage │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ root_disk… │ generic.l… │ None     │ None  │ None  │ Check root │ /home/doc… │
│            │            │          │       │       │ disk usage │            │
│            │            │          │       │       │ and report │            │
│            │            │          │       │       │ if it      │            │
│            │            │          │       │       │ exceeds    │            │
│            │            │          │       │       │ threshold  │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ variables… │ generic.l… │ None     │ None  │ None  │ Declare    │ /home/doc… │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ variables  │            │
│            │            │          │       │       │ in bash    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_fi… │ generic.l… │ None     │ None  │ None  │ Check if   │ /home/doc… │
│            │            │          │       │       │ file lock  │            │
│            │            │          │       │       │ is set to  │            │
│            │            │          │       │       │ unlimited  │            │
│            │            │          │       │       │ in ulimits │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_cp… │ generic.l… │ None     │ None  │ None  │ Check if   │ /home/doc… │
│            │            │          │       │       │ cputime is │            │
│            │            │          │       │       │ set to     │            │
│            │            │          │       │       │ unlimited  │            │
│            │            │          │       │       │ in ulimits │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_st… │ generic.l… │ None     │ None  │ None  │ Check if   │ /home/doc… │
│            │            │          │       │       │ stack size │            │
│            │            │          │       │       │ is set to  │            │
│            │            │          │       │       │ unlimited  │            │
│            │            │          │       │       │ in ulimits │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_vm… │ generic.l… │ None     │ None  │ None  │ Check      │ /home/doc… │
│            │            │          │       │       │ virtual    │            │
│            │            │          │       │       │ memory     │            │
│            │            │          │       │       │ size and   │            │
│            │            │          │       │       │ check if   │            │
│            │            │          │       │       │ its set to │            │
│            │            │          │       │       │ unlimited  │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_fi… │ generic.l… │ None     │ None  │ None  │ Check if   │ /home/doc… │
│            │            │          │       │       │ open file  │            │
│            │            │          │       │       │ descripto… │            │
│            │            │          │       │       │ limit is   │            │
│            │            │          │       │       │ set to     │            │
│            │            │          │       │       │ 4096       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ ulimit_ma… │ generic.l… │ None     │ None  │ None  │ Check max  │ /home/doc… │
│            │            │          │       │       │ number of  │            │
│            │            │          │       │       │ user       │            │
│            │            │          │       │       │ process    │            │
│            │            │          │       │       │ limit is   │            │
│            │            │          │       │       │ set to     │            │
│            │            │          │       │       │ 2048       │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
systemd_default_target/fd96cf46: Creating test directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/systemd-default-target/systemd_default_target/fd96cf46
systemd_default_target/fd96cf46: Creating the stage directory: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loc
al.bash/systemd-default-target/systemd_default_target/fd96cf46/stage
systemd_default_target/fd96cf46: Writing build script: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
systemd-default-target/systemd_default_target/fd96cf46/systemd_default_target_bu
ild.sh
kernel_swapusage/7ade1517: Creating test directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ker
nel_state/kernel_swapusage/7ade1517
kernel_swapusage/7ade1517: Creating the stage directory: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/kernel_state/kernel_swapusage/7ade1517/stage
kernel_swapusage/7ade1517: Writing build script: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/kernel
_state/kernel_swapusage/7ade1517/kernel_swapusage_build.sh
root_disk_usage/98a86a77: Creating test directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk
_usage/root_disk_usage/98a86a77
root_disk_usage/98a86a77: Creating the stage directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/disk_usage/root_disk_usage/98a86a77/stage
root_disk_usage/98a86a77: Writing build script: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk_us
age/root_disk_usage/98a86a77/root_disk_usage_build.sh
variables_bash/38b647cc: Creating test directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/
variables_bash/38b647cc
variables_bash/38b647cc: Creating the stage directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
vars/variables_bash/38b647cc/stage
variables_bash/38b647cc: Writing build script: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/var
iables_bash/38b647cc/variables_bash_build.sh
ulimit_filelock_unlimited/5e8cce40: Creating test directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/ulimits/ulimit_filelock_unlimited/5e8cce40
ulimit_filelock_unlimited/5e8cce40: Creating the stage directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.
local.bash/ulimits/ulimit_filelock_unlimited/5e8cce40/stage
ulimit_filelock_unlimited/5e8cce40: Writing build script: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/ulimits/ulimit_filelock_unlimited/5e8cce40/ulimit_filelock_unlimited_build.sh
ulimit_cputime_unlimited/d1a1d7d8: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/ulimits/ulimit_cputime_unlimited/d1a1d7d8
ulimit_cputime_unlimited/d1a1d7d8: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.l
ocal.bash/ulimits/ulimit_cputime_unlimited/d1a1d7d8/stage
ulimit_cputime_unlimited/d1a1d7d8: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/ulimits/ulimit_cputime_unlimited/d1a1d7d8/ulimit_cputime_unlimited_build.sh
ulimit_stacksize_unlimited/3c2e584f: Creating test directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loca
l.bash/ulimits/ulimit_stacksize_unlimited/3c2e584f
ulimit_stacksize_unlimited/3c2e584f: Creating the stage directory: /home/docs/ch
eckouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic
.local.bash/ulimits/ulimit_stacksize_unlimited/3c2e584f/stage
ulimit_stacksize_unlimited/3c2e584f: Writing build script: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/ulimits/ulimit_stacksize_unlimited/3c2e584f/ulimit_stacksize_unlimited_build
.sh
ulimit_vmsize_unlimited/6abcd9dd: Creating test directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/ulimits/ulimit_vmsize_unlimited/6abcd9dd
ulimit_vmsize_unlimited/6abcd9dd: Creating the stage directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.lo
cal.bash/ulimits/ulimit_vmsize_unlimited/6abcd9dd/stage
ulimit_vmsize_unlimited/6abcd9dd: Writing build script: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/ulimits/ulimit_vmsize_unlimited/6abcd9dd/ulimit_vmsize_unlimited_build.sh
ulimit_filedescriptor_4096/c1860e76: Creating test directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loca
l.bash/ulimits/ulimit_filedescriptor_4096/c1860e76
ulimit_filedescriptor_4096/c1860e76: Creating the stage directory: /home/docs/ch
eckouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic
.local.bash/ulimits/ulimit_filedescriptor_4096/c1860e76/stage
ulimit_filedescriptor_4096/c1860e76: Writing build script: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/ulimits/ulimit_filedescriptor_4096/c1860e76/ulimit_filedescriptor_4096_build
.sh
ulimit_max_user_process_2048/e36ba720: Creating test directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.lo
cal.bash/ulimits/ulimit_max_user_process_2048/e36ba720
ulimit_max_user_process_2048/e36ba720: Creating the stage directory: /home/docs/
checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/gener
ic.local.bash/ulimits/ulimit_max_user_process_2048/e36ba720/stage
ulimit_max_user_process_2048/e36ba720: Writing build script: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/ulimits/ulimit_max_user_process_2048/e36ba720/ulimit_max_user_process_2048
_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
variables_bash/38b647cc does not have any dependencies adding test to queue
ulimit_cputime_unlimited/d1a1d7d8 does not have any dependencies adding test to 
queue
ulimit_stacksize_unlimited/3c2e584f does not have any dependencies adding test 
to queue
ulimit_filedescriptor_4096/c1860e76 does not have any dependencies adding test 
to queue
kernel_swapusage/7ade1517 does not have any dependencies adding test to queue
systemd_default_target/fd96cf46 does not have any dependencies adding test to 
queue
ulimit_filelock_unlimited/5e8cce40 does not have any dependencies adding test to
queue
ulimit_vmsize_unlimited/6abcd9dd does not have any dependencies adding test to 
queue
ulimit_max_user_process_2048/e36ba720 does not have any dependencies adding test
to queue
root_disk_usage/98a86a77 does not have any dependencies adding test to queue
variables_bash/38b647cc: Running Test via command: bash --norc --noprofile -eo 
pipefail variables_bash_build.sh
variables_bash/38b647cc: Test completed in 0.009295 seconds
variables_bash/38b647cc: Test completed with returncode: 0
variables_bash/38b647cc: Writing output file -  /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/va
riables_bash/38b647cc/variables_bash.out
variables_bash/38b647cc: Writing error file - /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/vari
ables_bash/38b647cc/variables_bash.err
ulimit_cputime_unlimited/d1a1d7d8: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_cputime_unlimited_build.sh
ulimit_cputime_unlimited/d1a1d7d8: Test completed in 0.005665 seconds
ulimit_cputime_unlimited/d1a1d7d8: Test completed with returncode: 0
ulimit_cputime_unlimited/d1a1d7d8: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/ulimits/ulimit_cputime_unlimited/d1a1d7d8/ulimit_cputime_unlimited.out
ulimit_cputime_unlimited/d1a1d7d8: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/ulimits/ulimit_cputime_unlimited/d1a1d7d8/ulimit_cputime_unlimited.err
ulimit_cputime_unlimited/d1a1d7d8: performing regular expression - '^unlimited$'
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/st
able/var/tests/generic.local.bash/ulimits/ulimit_cputime_unlimited/d1a1d7d8/ulim
it_cputime_unlimited.out
ulimit_cputime_unlimited/d1a1d7d8: Regular Expression Match - Success!
ulimit_filedescriptor_4096/c1860e76: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_filedescriptor_4096_build.sh
ulimit_filedescriptor_4096/c1860e76: Test completed in 0.005439 seconds
ulimit_filedescriptor_4096/c1860e76: Test completed with returncode: 0
ulimit_filedescriptor_4096/c1860e76: Writing output file -  /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/ulimits/ulimit_filedescriptor_4096/c1860e76/ulimit_filedescriptor_4096.out
ulimit_filedescriptor_4096/c1860e76: Writing error file - /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/ulimits/ulimit_filedescriptor_4096/c1860e76/ulimit_filedescriptor_4096.err
ulimit_filedescriptor_4096/c1860e76: performing regular expression - '^4096$' on
file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stabl
e/var/tests/generic.local.bash/ulimits/ulimit_filedescriptor_4096/c1860e76/ulimi
t_filedescriptor_4096.out
ulimit_filedescriptor_4096/c1860e76: Regular Expression Match - Failed!
ulimit_stacksize_unlimited/3c2e584f: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_stacksize_unlimited_build.sh
ulimit_stacksize_unlimited/3c2e584f: Test completed in 0.00571 seconds
ulimit_stacksize_unlimited/3c2e584f: Test completed with returncode: 0
ulimit_stacksize_unlimited/3c2e584f: Writing output file -  /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/ulimits/ulimit_stacksize_unlimited/3c2e584f/ulimit_stacksize_unlimited.out
ulimit_stacksize_unlimited/3c2e584f: Writing error file - /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/ulimits/ulimit_stacksize_unlimited/3c2e584f/ulimit_stacksize_unlimited.err
ulimit_stacksize_unlimited/3c2e584f: performing regular expression - 
'^unlimited$' on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtes
t/checkouts/stable/var/tests/generic.local.bash/ulimits/ulimit_stacksize_unlimit
ed/3c2e584f/ulimit_stacksize_unlimited.out
ulimit_stacksize_unlimited/3c2e584f: Regular Expression Match - Failed!
kernel_swapusage/7ade1517: Running Test via command: bash --norc --noprofile -eo
pipefail kernel_swapusage_build.sh
kernel_swapusage/7ade1517: Test completed in 0.00659 seconds
kernel_swapusage/7ade1517: Test completed with returncode: 255
kernel_swapusage/7ade1517: Writing output file -  /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/kerne
l_state/kernel_swapusage/7ade1517/kernel_swapusage.out
kernel_swapusage/7ade1517: Writing error file - /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/kernel_
state/kernel_swapusage/7ade1517/kernel_swapusage.err
systemd_default_target/fd96cf46: Running Test via command: bash --norc 
--noprofile -eo pipefail systemd_default_target_build.sh
systemd_default_target/fd96cf46: Test completed in 0.008342 seconds
systemd_default_target/fd96cf46: Test completed with returncode: 1
systemd_default_target/fd96cf46: Writing output file -  /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/systemd-default-target/systemd_default_target/fd96cf46/systemd_default_target.o
ut
systemd_default_target/fd96cf46: Writing error file - /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/s
ystemd-default-target/systemd_default_target/fd96cf46/systemd_default_target.err
ulimit_filelock_unlimited/5e8cce40: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_filelock_unlimited_build.sh
ulimit_filelock_unlimited/5e8cce40: Test completed in 0.005764 seconds
ulimit_filelock_unlimited/5e8cce40: Test completed with returncode: 0
ulimit_filelock_unlimited/5e8cce40: Writing output file -  /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/ulimits/ulimit_filelock_unlimited/5e8cce40/ulimit_filelock_unlimited.out
ulimit_filelock_unlimited/5e8cce40: Writing error file - /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/ulimits/ulimit_filelock_unlimited/5e8cce40/ulimit_filelock_unlimited.err
ulimit_filelock_unlimited/5e8cce40: performing regular expression - 
'^unlimited$' on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtes
t/checkouts/stable/var/tests/generic.local.bash/ulimits/ulimit_filelock_unlimite
d/5e8cce40/ulimit_filelock_unlimited.out
ulimit_filelock_unlimited/5e8cce40: Regular Expression Match - Success!
ulimit_vmsize_unlimited/6abcd9dd: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_vmsize_unlimited_build.sh
ulimit_vmsize_unlimited/6abcd9dd: Test completed in 0.006034 seconds
ulimit_vmsize_unlimited/6abcd9dd: Test completed with returncode: 0
ulimit_vmsize_unlimited/6abcd9dd: Writing output file -  /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/ulimits/ulimit_vmsize_unlimited/6abcd9dd/ulimit_vmsize_unlimited.out
ulimit_vmsize_unlimited/6abcd9dd: Writing error file - /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
ulimits/ulimit_vmsize_unlimited/6abcd9dd/ulimit_vmsize_unlimited.err
ulimit_vmsize_unlimited/6abcd9dd: performing regular expression - '^unlimited$' 
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/st
able/var/tests/generic.local.bash/ulimits/ulimit_vmsize_unlimited/6abcd9dd/ulimi
t_vmsize_unlimited.out
ulimit_vmsize_unlimited/6abcd9dd: Regular Expression Match - Success!
ulimit_max_user_process_2048/e36ba720: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_max_user_process_2048_build.sh
ulimit_max_user_process_2048/e36ba720: Test completed in 0.0061 seconds
ulimit_max_user_process_2048/e36ba720: Test completed with returncode: 0
ulimit_max_user_process_2048/e36ba720: Writing output file -  /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loca
l.bash/ulimits/ulimit_max_user_process_2048/e36ba720/ulimit_max_user_process_204
8.out
ulimit_max_user_process_2048/e36ba720: Writing error file - /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/ulimits/ulimit_max_user_process_2048/e36ba720/ulimit_max_user_process_2048.
err
ulimit_max_user_process_2048/e36ba720: performing regular expression - '^2048$' 
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/st
able/var/tests/generic.local.bash/ulimits/ulimit_max_user_process_2048/e36ba720/
ulimit_max_user_process_2048.out
ulimit_max_user_process_2048/e36ba720: Regular Expression Match - Failed!
root_disk_usage/98a86a77: Running Test via command: bash --norc --noprofile -eo 
pipefail root_disk_usage_build.sh
root_disk_usage/98a86a77: Test completed in 0.009809 seconds
root_disk_usage/98a86a77: Test completed with returncode: 0
root_disk_usage/98a86a77: Writing output file -  /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk_u
sage/root_disk_usage/98a86a77/root_disk_usage.out
root_disk_usage/98a86a77: Writing error file - /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk_usa
ge/root_disk_usage/98a86a77/root_disk_usage.err
In this iteration we are going to run the following tests: [variables_bash/38b647cc, ulimit_cputime_unlimited/d1a1d7d8, ulimit_filedescriptor_4096/c1860e76, ulimit_stacksize_unlimited/3c2e584f, kernel_swapusage/7ade1517, systemd_default_target/fd96cf46, ulimit_filelock_unlimited/5e8cce40, ulimit_vmsize_unlimited/6abcd9dd, ulimit_max_user_process_2048/e36ba720, root_disk_usage/98a86a77]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ ulimit_vmsiz │ generic.loc… │ PASS   │ False True    │ 0          │ 0.006034 │
│ e_unlimited/ │              │        │ False         │            │          │
│ 6abcd9dd     │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ root_disk_us │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.009809 │
│ age/98a86a77 │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ kernel_swapu │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 255        │ 0.00659  │
│ sage/7ade151 │              │        │               │            │          │
│ 7            │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_max_u │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.0061   │
│ ser_process_ │              │        │ False         │            │          │
│ 2048/e36ba72 │              │        │               │            │          │
│ 0            │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ variables_ba │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.009295 │
│ sh/38b647cc  │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_cputi │ generic.loc… │ PASS   │ False True    │ 0          │ 0.005665 │
│ me_unlimited │              │        │ False         │            │          │
│ /d1a1d7d8    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_stack │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.00571  │
│ size_unlimit │              │        │ False         │            │          │
│ ed/3c2e584f  │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_filel │ generic.loc… │ PASS   │ False True    │ 0          │ 0.005764 │
│ ock_unlimite │              │        │ False         │            │          │
│ d/5e8cce40   │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_filed │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.005439 │
│ escriptor_40 │              │        │ False         │            │          │
│ 96/c1860e76  │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ systemd_defa │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.008342 │
│ ult_target/f │              │        │               │            │          │
│ d96cf46      │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 5/10 Percentage: 50.000%
Failed Tests: 5/10 Percentage: 50.000%


Adding 10 test results to /home/docs/checkouts/readthedocs.org/user_builds/build
test/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_tn4nzwd2.log

Excluding Buildspecs

So far we learned how to build buildspecs by file and directory path using the -b option. Next, we will discuss how one may exclude buildspecs which behaves similar to -b option. You can exclude buildspecs via --exclude or short option -x which can be useful when you want to exclude certain files or sub directory.

For example we can build all buildspecs in tutorials but exclude file tutorials/vars.yml by running:

$ buildtest build -b tutorials -x tutorials/vars.yml

buildtest will discover all buildspecs and then exclude any buildspecs specified by -x option. You can specify -x multiple times just like -b option.

For example, we can undo discovery by passing same option to -b and -x as follows

$ buildtest bd -b tutorials/ -x tutorials/
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:26                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest bd -b tutorials/ -x tutorials/             │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
There are no Buildspec files to process.

Buildtest will stop immediately if there are no Buildspecs to process, this is true if you were to specify files instead of directory.

In this example, we build all buildspecs in a directory but exclude a file. Buildtest will report the excluded buildspecs in the output and -x option can be appended multiple times. The -x can be a file or a directory and behaves similar to -b option.

$ buildtest bd -b general_tests/configuration/ -x general_tests/configuration/ulimits.yml
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:27                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest bd -b general_tests/configuration/ -x      │
│ general_tests/configuration/ulimits.yml                                      │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                              Excluded buildspecs                               
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  4
Total Excluded Buildspecs:  1
Detected Buildspecs after exclusion:  3
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 3 buildspecs
Valid Buildspecs: 3
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/gene
ral_tests/configuration/kernel_state.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/gene
ral_tests/configuration/disk_usage.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/gene
ral_tests/configuration/systemd-default-target.yml: VALID
Total builder objects created: 3
Total compiler builder: 0
Total script builder: 3
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ kernel_sw… │ generic.l… │ None     │ None  │ None  │ Retrieve   │ /home/doc… │
│            │            │          │       │       │ Kernel     │            │
│            │            │          │       │       │ Swap Usage │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ root_disk… │ generic.l… │ None     │ None  │ None  │ Check root │ /home/doc… │
│            │            │          │       │       │ disk usage │            │
│            │            │          │       │       │ and report │            │
│            │            │          │       │       │ if it      │            │
│            │            │          │       │       │ exceeds    │            │
│            │            │          │       │       │ threshold  │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ systemd_d… │ generic.l… │ None     │ None  │ None  │ check if   │ /home/doc… │
│            │            │          │       │       │ default    │            │
│            │            │          │       │       │ target is  │            │
│            │            │          │       │       │ multi-use… │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
kernel_swapusage/2c14757f: Creating test directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ker
nel_state/kernel_swapusage/2c14757f
kernel_swapusage/2c14757f: Creating the stage directory: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/kernel_state/kernel_swapusage/2c14757f/stage
kernel_swapusage/2c14757f: Writing build script: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/kernel
_state/kernel_swapusage/2c14757f/kernel_swapusage_build.sh
root_disk_usage/c565494a: Creating test directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk
_usage/root_disk_usage/c565494a
root_disk_usage/c565494a: Creating the stage directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/disk_usage/root_disk_usage/c565494a/stage
root_disk_usage/c565494a: Writing build script: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk_us
age/root_disk_usage/c565494a/root_disk_usage_build.sh
systemd_default_target/4f95ed1d: Creating test directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/systemd-default-target/systemd_default_target/4f95ed1d
systemd_default_target/4f95ed1d: Creating the stage directory: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loc
al.bash/systemd-default-target/systemd_default_target/4f95ed1d/stage
systemd_default_target/4f95ed1d: Writing build script: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
systemd-default-target/systemd_default_target/4f95ed1d/systemd_default_target_bu
ild.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
kernel_swapusage/2c14757f does not have any dependencies adding test to queue
systemd_default_target/4f95ed1d does not have any dependencies adding test to 
queue
root_disk_usage/c565494a does not have any dependencies adding test to queue
kernel_swapusage/2c14757f: Running Test via command: bash --norc --noprofile -eo
pipefail kernel_swapusage_build.sh
kernel_swapusage/2c14757f: Test completed in 0.006897 seconds
kernel_swapusage/2c14757f: Test completed with returncode: 255
kernel_swapusage/2c14757f: Writing output file -  /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/kerne
l_state/kernel_swapusage/2c14757f/kernel_swapusage.out
kernel_swapusage/2c14757f: Writing error file - /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/kernel_
state/kernel_swapusage/2c14757f/kernel_swapusage.err
systemd_default_target/4f95ed1d: Running Test via command: bash --norc 
--noprofile -eo pipefail systemd_default_target_build.sh
systemd_default_target/4f95ed1d: Test completed in 0.008117 seconds
systemd_default_target/4f95ed1d: Test completed with returncode: 1
systemd_default_target/4f95ed1d: Writing output file -  /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/systemd-default-target/systemd_default_target/4f95ed1d/systemd_default_target.o
ut
systemd_default_target/4f95ed1d: Writing error file - /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/s
ystemd-default-target/systemd_default_target/4f95ed1d/systemd_default_target.err
root_disk_usage/c565494a: Running Test via command: bash --norc --noprofile -eo 
pipefail root_disk_usage_build.sh
root_disk_usage/c565494a: Test completed in 0.009414 seconds
root_disk_usage/c565494a: Test completed with returncode: 0
root_disk_usage/c565494a: Writing output file -  /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk_u
sage/root_disk_usage/c565494a/root_disk_usage.out
root_disk_usage/c565494a: Writing error file - /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/disk_usa
ge/root_disk_usage/c565494a/root_disk_usage.err
In this iteration we are going to run the following tests: [kernel_swapusage/2c14757f, systemd_default_target/4f95ed1d, root_disk_usage/c565494a]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ kernel_swapu │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 255        │ 0.006897 │
│ sage/2c14757 │              │        │               │            │          │
│ f            │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ root_disk_us │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.009414 │
│ age/c565494a │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ systemd_defa │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.008117 │
│ ult_target/4 │              │        │               │            │          │
│ f95ed1d      │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 1/3 Percentage: 33.333%
Failed Tests: 2/3 Percentage: 66.667%


Adding 3 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_o1ulshx1.log

Building By Tags

buildtest can perform builds by tags by using --tags or short option (-t). In order to use this feature, buildtest must load buildspecs in cache which can be run via buildtest buildspec find. If you are unsure of the available tags you can run buildtest buildspec find --tags or let buildtest tab-complete the available tags. For more details see Querying buildspec tags.

Let’s assume you want to build by tag name network, buildtest will attempt to find all tests that contain tags: ['network'] in the buildspec which is loaded in the buildcache cache. If a test matches the tag name, the test will be picked up during the discover process.

$ buildtest build -t network
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:27                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -t network                           │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                           Buildspecs By Tag=network                            
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/tags_example.yml: VALID
Total builder objects created: 2
Total compiler builder: 0
Total script builder: 2
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ string_ta… │ generic.l… │ None     │ None  │ None  │ tags can   │ /home/doc… │
│            │            │          │       │       │ be a       │            │
│            │            │          │       │       │ string     │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ list_of_s… │ generic.l… │ None     │ None  │ None  │ tags can   │ /home/doc… │
│            │            │          │       │       │ be a list  │            │
│            │            │          │       │       │ of strings │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
string_tag/f63a4677: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/tags_exam
ple/string_tag/f63a4677
string_tag/f63a4677: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/tags
_example/string_tag/f63a4677/stage
string_tag/f63a4677: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/tags_example
/string_tag/f63a4677/string_tag_build.sh
list_of_strings_tags/76082977: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/tags_example/list_of_strings_tags/76082977
list_of_strings_tags/76082977: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/tags_example/list_of_strings_tags/76082977/stage
list_of_strings_tags/76082977: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ta
gs_example/list_of_strings_tags/76082977/list_of_strings_tags_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
list_of_strings_tags/76082977 does not have any dependencies adding test to 
queue
string_tag/f63a4677 does not have any dependencies adding test to queue
list_of_strings_tags/76082977: Running Test via command: bash --norc --noprofile
-eo pipefail list_of_strings_tags_build.sh
list_of_strings_tags/76082977: Test completed in 3.031379 seconds
list_of_strings_tags/76082977: Test completed with returncode: 0
list_of_strings_tags/76082977: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/t
ags_example/list_of_strings_tags/76082977/list_of_strings_tags.out
list_of_strings_tags/76082977: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/tag
s_example/list_of_strings_tags/76082977/list_of_strings_tags.err
string_tag/f63a4677: Running Test via command: bash --norc --noprofile -eo 
pipefail string_tag_build.sh
string_tag/f63a4677: Test completed in 0.006279 seconds
string_tag/f63a4677: Test completed with returncode: 0
string_tag/f63a4677: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/tags_exampl
e/string_tag/f63a4677/string_tag.out
string_tag/f63a4677: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/tags_example/
string_tag/f63a4677/string_tag.err
In this iteration we are going to run the following tests: [list_of_strings_tags/76082977, string_tag/f63a4677]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ list_of_stri │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 3.031379 │
│ ngs_tags/760 │              │        │               │            │          │
│ 82977        │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ string_tag/f │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.006279 │
│ 63a4677      │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 2/2 Percentage: 100.000%
Failed Tests: 0/2 Percentage: 0.000%


Adding 2 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest__1ozq4ky.log

You can build by multiple tags by specifying --tags multiple times. In next example we build all tests with tag name pass and python.

$ buildtest build -t python -t pass
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:31                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -t python -t pass                    │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                            Buildspecs By Tag=python                            
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                             Buildspecs By Tag=pass                             
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  3
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  3
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 3 buildspecs
Valid Buildspecs: 3
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/pass_returncode.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-hello.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-shell.yml: VALID
Total builder objects created: 6
Total compiler builder: 0
Total script builder: 6
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ exit1_fai… │ generic.l… │ None     │ None  │ None  │ exit 1 by  │ /home/doc… │
│            │            │          │       │       │ default is │            │
│            │            │          │       │       │ FAIL       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ exit1_pas… │ generic.l… │ None     │ None  │ None  │ report     │ /home/doc… │
│            │            │          │       │       │ exit 1 as  │            │
│            │            │          │       │       │ PASS       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ returncod… │ generic.l… │ None     │ None  │ None  │ exit 2     │ /home/doc… │
│            │            │          │       │       │ failed     │            │
│            │            │          │       │       │ since it   │            │
│            │            │          │       │       │ failed to  │            │
│            │            │          │       │       │ match      │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 1          │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ returncod… │ generic.l… │ None     │ None  │ None  │ exit 128   │ /home/doc… │
│            │            │          │       │       │ matches    │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 128        │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ python_he… │ generic.l… │ None     │ None  │ None  │ Hello      │ /home/doc… │
│            │            │          │       │       │ World      │            │
│            │            │          │       │       │ python     │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ circle_ar… │ generic.l… │ None     │ None  │ None  │ Calculate  │ /home/doc… │
│            │            │          │       │       │ circle of  │            │
│            │            │          │       │       │ area given │            │
│            │            │          │       │       │ a radius   │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
exit1_fail/11c70bb3: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_retu
rncode/exit1_fail/11c70bb3
exit1_fail/11c70bb3: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass
_returncode/exit1_fail/11c70bb3/stage
exit1_fail/11c70bb3: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnc
ode/exit1_fail/11c70bb3/exit1_fail_build.sh
exit1_pass/9825c9cf: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_retu
rncode/exit1_pass/9825c9cf
exit1_pass/9825c9cf: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass
_returncode/exit1_pass/9825c9cf/stage
exit1_pass/9825c9cf: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnc
ode/exit1_pass/9825c9cf/exit1_pass_build.sh
returncode_list_mismatch/ac6a6895: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/pass_returncode/returncode_list_mismatch/ac6a6895
returncode_list_mismatch/ac6a6895: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.l
ocal.bash/pass_returncode/returncode_list_mismatch/ac6a6895/stage
returncode_list_mismatch/ac6a6895: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/pass_returncode/returncode_list_mismatch/ac6a6895/returncode_list_mismatch_bui
ld.sh
returncode_int_match/c4a1acac: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/pass_returncode/returncode_int_match/c4a1acac
returncode_int_match/c4a1acac: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/pass_returncode/returncode_int_match/c4a1acac/stage
returncode_int_match/c4a1acac: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pa
ss_returncode/returncode_int_match/c4a1acac/returncode_int_match_build.sh
python_hello/10b4c01c: Creating test directory: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-
hello/python_hello/10b4c01c
python_hello/10b4c01c: Creating the stage directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/py
thon-hello/python_hello/10b4c01c/stage
python_hello/10b4c01c: Writing build script: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-hel
lo/python_hello/10b4c01c/python_hello_build.sh
circle_area/89d42a70: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-s
hell/circle_area/89d42a70
circle_area/89d42a70: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pyt
hon-shell/circle_area/89d42a70/stage
circle_area/89d42a70: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-shel
l/circle_area/89d42a70/circle_area_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
python_hello/10b4c01c does not have any dependencies adding test to queue
exit1_pass/9825c9cf does not have any dependencies adding test to queue
returncode_int_match/c4a1acac does not have any dependencies adding test to 
queue
exit1_fail/11c70bb3 does not have any dependencies adding test to queue
returncode_list_mismatch/ac6a6895 does not have any dependencies adding test to 
queue
circle_area/89d42a70 does not have any dependencies adding test to queue
python_hello/10b4c01c: Running Test via command: bash --norc --noprofile -eo 
pipefail python_hello_build.sh
python_hello/10b4c01c: Test completed in 0.030574 seconds
python_hello/10b4c01c: Test completed with returncode: 0
python_hello/10b4c01c: Writing output file -  /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-he
llo/python_hello/10b4c01c/python_hello.out
python_hello/10b4c01c: Writing error file - /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-hell
o/python_hello/10b4c01c/python_hello.err
exit1_pass/9825c9cf: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_pass_build.sh
exit1_pass/9825c9cf: Test completed in 0.00539 seconds
exit1_pass/9825c9cf: Test completed with returncode: 1
exit1_pass/9825c9cf: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_return
code/exit1_pass/9825c9cf/exit1_pass.out
exit1_pass/9825c9cf: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnco
de/exit1_pass/9825c9cf/exit1_pass.err
exit1_pass/9825c9cf: Checking returncode - 1 is matched in list [1]
returncode_int_match/c4a1acac: Running Test via command: bash --norc --noprofile
-eo pipefail returncode_int_match_build.sh
returncode_int_match/c4a1acac: Test completed in 0.005349 seconds
returncode_int_match/c4a1acac: Test completed with returncode: 128
returncode_int_match/c4a1acac: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/p
ass_returncode/returncode_int_match/c4a1acac/returncode_int_match.out
returncode_int_match/c4a1acac: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pas
s_returncode/returncode_int_match/c4a1acac/returncode_int_match.err
returncode_int_match/c4a1acac: Checking returncode - 128 is matched in list 
[128]
exit1_fail/11c70bb3: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_fail_build.sh
exit1_fail/11c70bb3: Test completed in 0.005162 seconds
exit1_fail/11c70bb3: Test completed with returncode: 1
exit1_fail/11c70bb3: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_return
code/exit1_fail/11c70bb3/exit1_fail.out
exit1_fail/11c70bb3: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnco
de/exit1_fail/11c70bb3/exit1_fail.err
returncode_list_mismatch/ac6a6895: Running Test via command: bash --norc 
--noprofile -eo pipefail returncode_list_mismatch_build.sh
returncode_list_mismatch/ac6a6895: Test completed in 0.005101 seconds
returncode_list_mismatch/ac6a6895: Test completed with returncode: 2
returncode_list_mismatch/ac6a6895: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/pass_returncode/returncode_list_mismatch/ac6a6895/returncode_list_mismatch.ou
t
returncode_list_mismatch/ac6a6895: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/pass_returncode/returncode_list_mismatch/ac6a6895/returncode_list_mismatch.err
returncode_list_mismatch/ac6a6895: Checking returncode - 2 is matched in list 
[1, 3]
circle_area/89d42a70: Running Test via command: bash --norc --noprofile -eo 
pipefail circle_area_build.sh
circle_area/89d42a70: Test completed in 0.030893 seconds
circle_area/89d42a70: Test completed with returncode: 0
circle_area/89d42a70: Writing output file -  /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-she
ll/circle_area/89d42a70/circle_area.out
circle_area/89d42a70: Writing error file - /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-shell
/circle_area/89d42a70/circle_area.err
In this iteration we are going to run the following tests: [python_hello/10b4c01c, exit1_pass/9825c9cf, returncode_int_match/c4a1acac, exit1_fail/11c70bb3, returncode_list_mismatch/ac6a6895, circle_area/89d42a70]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ returncode_l │ generic.loc… │ FAIL   │ False False   │ 2          │ 0.005101 │
│ ist_mismatch │              │        │ False         │            │          │
│ /ac6a6895    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_i │ generic.loc… │ PASS   │ True False    │ 128        │ 0.005349 │
│ nt_match/c4a │              │        │ False         │            │          │
│ 1acac        │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_fail/1 │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.005162 │
│ 1c70bb3      │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ circle_area/ │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.030893 │
│ 89d42a70     │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ python_hello │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.030574 │
│ /10b4c01c    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_pass/9 │ generic.loc… │ PASS   │ True False    │ 1          │ 0.00539  │
│ 825c9cf      │              │        │ False         │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 4/6 Percentage: 66.667%
Failed Tests: 2/6 Percentage: 33.333%


Adding 6 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_n72okhbd.log

When multiple tags are specified, we search each tag independently and if it’s found in the buildspec cache we retrieve the buildspec file and add file to queue. This queue is a list of buildspecs that buildtest will process (i.e parse, build, run). You can query tags from buildspecs cache to see all available tags by running buildtest buildspec find --tags.

Note

The --tags is used for discovering buildspec file and not filtering tests by tag.

You can combine --tags with --buildspec to discover buildspecs in a single command. buildtest will query tags and buildspecs independently and combine all discovered buildspecs together.

$ buildtest build --tags pass --buildspec tutorials/python-hello.yml
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:32                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build --tags pass --buildspec              │
│ tutorials/python-hello.yml                                                   │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                             Buildspecs By Tag=pass                             
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  2
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  2
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 2 buildspecs
Valid Buildspecs: 2
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/pass_returncode.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-hello.yml: VALID
Total builder objects created: 5
Total compiler builder: 0
Total script builder: 5
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ exit1_fai… │ generic.l… │ None     │ None  │ None  │ exit 1 by  │ /home/doc… │
│            │            │          │       │       │ default is │            │
│            │            │          │       │       │ FAIL       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ exit1_pas… │ generic.l… │ None     │ None  │ None  │ report     │ /home/doc… │
│            │            │          │       │       │ exit 1 as  │            │
│            │            │          │       │       │ PASS       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ returncod… │ generic.l… │ None     │ None  │ None  │ exit 2     │ /home/doc… │
│            │            │          │       │       │ failed     │            │
│            │            │          │       │       │ since it   │            │
│            │            │          │       │       │ failed to  │            │
│            │            │          │       │       │ match      │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 1          │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ returncod… │ generic.l… │ None     │ None  │ None  │ exit 128   │ /home/doc… │
│            │            │          │       │       │ matches    │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 128        │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ python_he… │ generic.l… │ None     │ None  │ None  │ Hello      │ /home/doc… │
│            │            │          │       │       │ World      │            │
│            │            │          │       │       │ python     │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
exit1_fail/8c7e6073: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_retu
rncode/exit1_fail/8c7e6073
exit1_fail/8c7e6073: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass
_returncode/exit1_fail/8c7e6073/stage
exit1_fail/8c7e6073: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnc
ode/exit1_fail/8c7e6073/exit1_fail_build.sh
exit1_pass/2b484bca: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_retu
rncode/exit1_pass/2b484bca
exit1_pass/2b484bca: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass
_returncode/exit1_pass/2b484bca/stage
exit1_pass/2b484bca: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnc
ode/exit1_pass/2b484bca/exit1_pass_build.sh
returncode_list_mismatch/0088ab1e: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/pass_returncode/returncode_list_mismatch/0088ab1e
returncode_list_mismatch/0088ab1e: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.l
ocal.bash/pass_returncode/returncode_list_mismatch/0088ab1e/stage
returncode_list_mismatch/0088ab1e: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/pass_returncode/returncode_list_mismatch/0088ab1e/returncode_list_mismatch_bui
ld.sh
returncode_int_match/e14c14cf: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/pass_returncode/returncode_int_match/e14c14cf
returncode_int_match/e14c14cf: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/pass_returncode/returncode_int_match/e14c14cf/stage
returncode_int_match/e14c14cf: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pa
ss_returncode/returncode_int_match/e14c14cf/returncode_int_match_build.sh
python_hello/749aba33: Creating test directory: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-
hello/python_hello/749aba33
python_hello/749aba33: Creating the stage directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/py
thon-hello/python_hello/749aba33/stage
python_hello/749aba33: Writing build script: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-hel
lo/python_hello/749aba33/python_hello_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
exit1_fail/8c7e6073 does not have any dependencies adding test to queue
returncode_list_mismatch/0088ab1e does not have any dependencies adding test to 
queue
returncode_int_match/e14c14cf does not have any dependencies adding test to 
queue
exit1_pass/2b484bca does not have any dependencies adding test to queue
python_hello/749aba33 does not have any dependencies adding test to queue
exit1_fail/8c7e6073: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_fail_build.sh
exit1_fail/8c7e6073: Test completed in 0.005611 seconds
exit1_fail/8c7e6073: Test completed with returncode: 1
exit1_fail/8c7e6073: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_return
code/exit1_fail/8c7e6073/exit1_fail.out
exit1_fail/8c7e6073: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnco
de/exit1_fail/8c7e6073/exit1_fail.err
returncode_list_mismatch/0088ab1e: Running Test via command: bash --norc 
--noprofile -eo pipefail returncode_list_mismatch_build.sh
returncode_list_mismatch/0088ab1e: Test completed in 0.005223 seconds
returncode_list_mismatch/0088ab1e: Test completed with returncode: 2
returncode_list_mismatch/0088ab1e: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/pass_returncode/returncode_list_mismatch/0088ab1e/returncode_list_mismatch.ou
t
returncode_list_mismatch/0088ab1e: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/pass_returncode/returncode_list_mismatch/0088ab1e/returncode_list_mismatch.err
returncode_list_mismatch/0088ab1e: Checking returncode - 2 is matched in list 
[1, 3]
returncode_int_match/e14c14cf: Running Test via command: bash --norc --noprofile
-eo pipefail returncode_int_match_build.sh
returncode_int_match/e14c14cf: Test completed in 0.005333 seconds
returncode_int_match/e14c14cf: Test completed with returncode: 128
returncode_int_match/e14c14cf: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/p
ass_returncode/returncode_int_match/e14c14cf/returncode_int_match.out
returncode_int_match/e14c14cf: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pas
s_returncode/returncode_int_match/e14c14cf/returncode_int_match.err
returncode_int_match/e14c14cf: Checking returncode - 128 is matched in list 
[128]
exit1_pass/2b484bca: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_pass_build.sh
exit1_pass/2b484bca: Test completed in 0.005166 seconds
exit1_pass/2b484bca: Test completed with returncode: 1
exit1_pass/2b484bca: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_return
code/exit1_pass/2b484bca/exit1_pass.out
exit1_pass/2b484bca: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnco
de/exit1_pass/2b484bca/exit1_pass.err
exit1_pass/2b484bca: Checking returncode - 1 is matched in list [1]
python_hello/749aba33: Running Test via command: bash --norc --noprofile -eo 
pipefail python_hello_build.sh
python_hello/749aba33: Test completed in 0.030342 seconds
python_hello/749aba33: Test completed with returncode: 0
python_hello/749aba33: Writing output file -  /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-he
llo/python_hello/749aba33/python_hello.out
python_hello/749aba33: Writing error file - /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-hell
o/python_hello/749aba33/python_hello.err
In this iteration we are going to run the following tests: [exit1_fail/8c7e6073, returncode_list_mismatch/0088ab1e, returncode_int_match/e14c14cf, exit1_pass/2b484bca, python_hello/749aba33]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ python_hello │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.030342 │
│ /749aba33    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_pass/2 │ generic.loc… │ PASS   │ True False    │ 1          │ 0.005166 │
│ b484bca      │              │        │ False         │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_fail/8 │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.005611 │
│ c7e6073      │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_l │ generic.loc… │ FAIL   │ False False   │ 2          │ 0.005223 │
│ ist_mismatch │              │        │ False         │            │          │
│ /0088ab1e    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_i │ generic.loc… │ PASS   │ True False    │ 128        │ 0.005333 │
│ nt_match/e14 │              │        │ False         │            │          │
│ c14cf        │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 3/5 Percentage: 60.000%
Failed Tests: 2/5 Percentage: 40.000%


Adding 5 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_20kyjt3f.log

As you may see, there are several ways to build buildspecs with buildtest. Tags is great way to build a whole collection of tests if you don’t know path to all the files. You can specify multiple tags per buildspecs to classify how test can be run.

Building by Executors

Every buildspec is associated to an executor which is responsible for running the test. You can instruct buildtest to run all tests by given executor via --executor option or short option -e. For instance, if you want to build all test associated to executor generic.local.csh you can run:

$ buildtest build --executor generic.local.csh

buildtest will query buildspec cache for the executor name and retrieve a list of buildspecs with matching executor name. To see a list of available executors in buildspec cache see querying buildspec executor.

Note

By default all tests are run in buildspec file. The buildtest build --executor option discovers buildspecs if one of the test matches the executor name. The --executor option is not filtering tests but only discovering buildspecs.

In this example we run all tests that are associated to generic.local.csh executor.

$ buildtest build --executor generic.local.csh
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:33                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build --executor generic.local.csh         │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                    Buildspecs by Executor=generic.local.csh                    
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  2
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  2
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 2 buildspecs
Valid Buildspecs: 2
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/environment.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/csh_shell_examples.yml: VALID
Total builder objects created: 4
Total compiler builder: 0
Total script builder: 4
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ bash_env_… │ generic.l… │ None     │ None  │ None  │ Declare    │ /home/doc… │
│            │            │          │       │       │ environme… │            │
│            │            │          │       │       │ variables  │            │
│            │            │          │       │       │ in default │            │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ (bash)     │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ csh_env_d… │ generic.l… │ None     │ None  │ None  │ csh shell  │ /home/doc… │
│            │            │          │       │       │ example to │            │
│            │            │          │       │       │ declare    │            │
│            │            │          │       │       │ environme… │            │
│            │            │          │       │       │ variables  │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ tcsh_env_… │ generic.l… │ None     │ None  │ None  │ tcsh shell │ /home/doc… │
│            │            │          │       │       │ example to │            │
│            │            │          │       │       │ declare    │            │
│            │            │          │       │       │ environme… │            │
│            │            │          │       │       │ variables  │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ csh_shell… │ generic.l… │ None     │ None  │ None  │ csh shell  │ /home/doc… │
│            │            │          │       │       │ example    │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
bash_env_variables/294db7ac: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/e
nvironment/bash_env_variables/294db7ac
bash_env_variables/294db7ac: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/environment/bash_env_variables/294db7ac/stage
bash_env_variables/294db7ac: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/envi
ronment/bash_env_variables/294db7ac/bash_env_variables_build.sh
csh_env_declaration/336e1326: Creating test directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/e
nvironment/csh_env_declaration/336e1326
csh_env_declaration/336e1326: Creating the stage directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
csh/environment/csh_env_declaration/336e1326/stage
csh_env_declaration/336e1326: Writing build script: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/envi
ronment/csh_env_declaration/336e1326/csh_env_declaration_build.sh
tcsh_env_declaration/cada48eb: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/
environment/tcsh_env_declaration/cada48eb
tcsh_env_declaration/cada48eb: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.csh/environment/tcsh_env_declaration/cada48eb/stage
tcsh_env_declaration/cada48eb: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/env
ironment/tcsh_env_declaration/cada48eb/tcsh_env_declaration_build.sh
csh_shell/0318d741: Creating test directory: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/csh_shell_e
xamples/csh_shell/0318d741
csh_shell/0318d741: Creating the stage directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/csh_sh
ell_examples/csh_shell/0318d741/stage
csh_shell/0318d741: Writing build script: /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/csh_shell_exam
ples/csh_shell/0318d741/csh_shell_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
csh_shell/0318d741 does not have any dependencies adding test to queue
bash_env_variables/294db7ac does not have any dependencies adding test to queue
csh_env_declaration/336e1326 does not have any dependencies adding test to queue
tcsh_env_declaration/cada48eb does not have any dependencies adding test to 
queue
bash_env_variables/294db7ac: Running Test via command: bash --norc --noprofile 
-eo pipefail bash_env_variables_build.sh
bash_env_variables/294db7ac: Test completed in 0.007402 seconds
bash_env_variables/294db7ac: Test completed with returncode: 0
bash_env_variables/294db7ac: Writing output file -  /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/env
ironment/bash_env_variables/294db7ac/bash_env_variables.out
bash_env_variables/294db7ac: Writing error file - /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/envir
onment/bash_env_variables/294db7ac/bash_env_variables.err
csh_shell/0318d741: Running Test via command: csh -e csh_shell_build.sh
csh_shell/0318d741: Test completed in 4.444113 seconds
csh_shell/0318d741: Test completed with returncode: 0
csh_shell/0318d741: Writing output file -  /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/csh_shell_exa
mples/csh_shell/0318d741/csh_shell.out
csh_shell/0318d741: Writing error file - /home/docs/checkouts/readthedocs.org/us
er_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/csh_shell_examp
les/csh_shell/0318d741/csh_shell.err
csh_env_declaration/336e1326: Running Test via command: csh -e 
csh_env_declaration_build.sh
csh_env_declaration/336e1326: Test completed in 4.44419 seconds
csh_env_declaration/336e1326: Test completed with returncode: 0
csh_env_declaration/336e1326: Writing output file -  /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/env
ironment/csh_env_declaration/336e1326/csh_env_declaration.out
csh_env_declaration/336e1326: Writing error file - /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/envir
onment/csh_env_declaration/336e1326/csh_env_declaration.err
tcsh_env_declaration/cada48eb: Running Test via command: csh -e 
tcsh_env_declaration_build.sh
tcsh_env_declaration/cada48eb: Test completed in 2.225484 seconds
tcsh_env_declaration/cada48eb: Test completed with returncode: 1
tcsh_env_declaration/cada48eb: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/en
vironment/tcsh_env_declaration/cada48eb/tcsh_env_declaration.out
tcsh_env_declaration/cada48eb: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/envi
ronment/tcsh_env_declaration/cada48eb/tcsh_env_declaration.err
In this iteration we are going to run the following tests: [bash_env_variables/294db7ac, csh_shell/0318d741, csh_env_declaration/336e1326, tcsh_env_declaration/cada48eb]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ csh_env_decl │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 4.44419  │
│ aration/336e │              │        │               │            │          │
│ 1326         │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ bash_env_var │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.007402 │
│ iables/294db │              │        │               │            │          │
│ 7ac          │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ tcsh_env_dec │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 2.225484 │
│ laration/cad │              │        │               │            │          │
│ a48eb        │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ csh_shell/03 │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 4.444113 │
│ 18d741       │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 3/4 Percentage: 75.000%
Failed Tests: 1/4 Percentage: 25.000%


Adding 4 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest__fakqwtr.log

Note

The --executor option can be appended to discover tests by multiple executors.

Filtering Buildspecs

buildtest has support for filtering buildspecs based on certain attributes defined in buildspec file. Upon Discover Buildspecs, buildtest will filter out tests or entire buildspec files. The buildtest build --filter option can be used to filter buildspecs which expects a single key=value pair. Currently, buildtest can filter tests based on tags, type and maintainers.

To see all available filter fields you can run buildtest build --helpfilter and buildtest will report the fields followed by description.

$ buildtest build --helpfilter
                 Buildtest Filters                  
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Field       ┃ Description                        ┃
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ tags        │ Filter tests by 'tag' field        │
│ type        │ Filter test by 'type' field        │
│ maintainers │ Filter test by 'maintainers' field │
└─────────────┴────────────────────────────────────┘

In this example, we will discover all buildspecs based on tagname pass and then filter each test by tagname pass specified by --filter tags=pass.

$ buildtest build -t pass --filter tags=pass
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:45                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -t pass --filter tags=pass           │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                             Buildspecs By Tag=pass                             
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
[exit1_fail][/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tutorials/test_status/pass_returncode.yml]: test is skipped because it is not in tag filter list: {'tags': 'pass'}
[returncode_list_mismatch][/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tutorials/test_status/pass_returncode.yml]: test is skipped because it is not in tag filter list: {'tags': 'pass'}
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/pass_returncode.yml: VALID
Total builder objects created: 2
Total compiler builder: 0
Total script builder: 2
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ exit1_pas… │ generic.l… │ None     │ None  │ None  │ report     │ /home/doc… │
│            │            │          │       │       │ exit 1 as  │            │
│            │            │          │       │       │ PASS       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ returncod… │ generic.l… │ None     │ None  │ None  │ exit 128   │ /home/doc… │
│            │            │          │       │       │ matches    │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 128        │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
exit1_pass/93d49d8b: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_retu
rncode/exit1_pass/93d49d8b
exit1_pass/93d49d8b: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass
_returncode/exit1_pass/93d49d8b/stage
exit1_pass/93d49d8b: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnc
ode/exit1_pass/93d49d8b/exit1_pass_build.sh
returncode_int_match/4951260f: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/pass_returncode/returncode_int_match/4951260f
returncode_int_match/4951260f: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/pass_returncode/returncode_int_match/4951260f/stage
returncode_int_match/4951260f: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pa
ss_returncode/returncode_int_match/4951260f/returncode_int_match_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
exit1_pass/93d49d8b does not have any dependencies adding test to queue
returncode_int_match/4951260f does not have any dependencies adding test to 
queue
exit1_pass/93d49d8b: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_pass_build.sh
exit1_pass/93d49d8b: Test completed in 0.005826 seconds
exit1_pass/93d49d8b: Test completed with returncode: 1
exit1_pass/93d49d8b: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_return
code/exit1_pass/93d49d8b/exit1_pass.out
exit1_pass/93d49d8b: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnco
de/exit1_pass/93d49d8b/exit1_pass.err
exit1_pass/93d49d8b: Checking returncode - 1 is matched in list [1]
returncode_int_match/4951260f: Running Test via command: bash --norc --noprofile
-eo pipefail returncode_int_match_build.sh
returncode_int_match/4951260f: Test completed in 0.005478 seconds
returncode_int_match/4951260f: Test completed with returncode: 128
returncode_int_match/4951260f: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/p
ass_returncode/returncode_int_match/4951260f/returncode_int_match.out
returncode_int_match/4951260f: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pas
s_returncode/returncode_int_match/4951260f/returncode_int_match.err
returncode_int_match/4951260f: Checking returncode - 128 is matched in list 
[128]
In this iteration we are going to run the following tests: [exit1_pass/93d49d8b, returncode_int_match/4951260f]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ exit1_pass/9 │ generic.loc… │ PASS   │ True False    │ 1          │ 0.005826 │
│ 3d49d8b      │              │        │ False         │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_i │ generic.loc… │ PASS   │ True False    │ 128        │ 0.005478 │
│ nt_match/495 │              │        │ False         │            │          │
│ 1260f        │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 2/2 Percentage: 100.000%
Failed Tests: 0/2 Percentage: 0.000%


Adding 2 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_9zni20of.log

buildtest can run filter tests by maintainers, this can be useful if you want to run tests that you are maintainer. The maintainers field is set per buildspec and not each test. You can filter maintiners via --filter maintainers=<MAINTAINER_NAME>. If the maintainers field is not specified the buildspec will be filtered out if --filter maintainers is specified. In this next example, we will build all tests for maintainer @shahzebsiddiqui.

$ buildtest build -b tutorials --filter maintainers=@shahzebsiddiqui
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:45                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b tutorials --filter                │
│ maintainers=@shahzebsiddiqui                                                 │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  32
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  32
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 32 buildspecs
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/shell_examples.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-hello.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/skip_tests.yml: skipping test because 'maintainers' field is not specified
in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/csh_shell_examples.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/gcc_version.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex4.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/metrics_regex.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/status_by_executors.yml: skipping test because 
'maintainers' field is not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex1.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/executors_var_env_declaration.yml: skipping test because 
'maintainers' field is not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-shell.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/executor_regex_script.yml: skipping test because 
'maintainers' field is not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/explicit_state.yml: skipping test because 'maintainers' field 
is not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/invalid_executor.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/vars.yml: skipping test because 'maintainers' field is not specified in 
buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/tags_example.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/runtime_status_test.yml: skipping test because 'maintainers' 
field is not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/environment.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/status_regex.yml: skipping test because 'maintainers' field is
not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/executor_scheduler.yml: skipping test because 
'maintainers' field is not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/sleep.yml: skipping test because 'maintainers' field is not specified in 
buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex2.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/pass_returncode.yml: skipping test because 'maintainers' field
is not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex3.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/summary_example.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/maintainers_example.yml: unable to find maintainer: @shahzebsiddiqui in 
buildspec which contains the following maintainers: ['@johndoe', '@bobsmith'] 
therefore we skip this test
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/shebang.yml: skipping test because 'maintainers' field is not specified in
buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/add_numbers.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
Valid Buildspecs: 29
Invalid Buildspecs: 3
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/shell_examples.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-hello.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/skip_tests.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/csh_shell_examples.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/gcc_version.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex4.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/metrics_regex.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/status_by_executors.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex1.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/executors_var_env_declaration.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-shell.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/executor_regex_script.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/explicit_state.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/invalid_executor.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/vars.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/tags_example.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/hello_world.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/runtime_status_test.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/environment.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/status_regex.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/executor_scheduler.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/sleep.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex2.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/pass_returncode.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex3.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/summary_example.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/maintainers_example.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/shebang.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/add_numbers.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/invalid_tags.yml: INVALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/invalid_buildspec_section.yml: INVALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/burstbuffer_datawarp_executors.yml: INVALID
                            Buildspecs Filtered out                             
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ buildspecs                                                                   ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
└──────────────────────────────────────────────────────────────────────────────┘
Total builder objects created: 1
Total compiler builder: 0
Total script builder: 1
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ hello_wor… │ generic.l… │ None     │ None  │ None  │ hello      │ /home/doc… │
│            │            │          │       │       │ world      │            │
│            │            │          │       │       │ example    │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
hello_world/07c976d1: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/hello_wo
rld/hello_world/07c976d1
hello_world/07c976d1: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/hel
lo_world/hello_world/07c976d1/stage
hello_world/07c976d1: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/hello_world
/hello_world/07c976d1/hello_world_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
hello_world/07c976d1 does not have any dependencies adding test to queue
hello_world/07c976d1: Running Test via command: bash --norc --noprofile -eo 
pipefail hello_world_build.sh
hello_world/07c976d1: Test completed in 0.005977 seconds
hello_world/07c976d1: Test completed with returncode: 0
hello_world/07c976d1: Writing output file -  /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/hello_worl
d/hello_world/07c976d1/hello_world.out
hello_world/07c976d1: Writing error file - /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/hello_world/
hello_world/07c976d1/hello_world.err
In this iteration we are going to run the following tests: [hello_world/07c976d1]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ hello_world/ │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.005977 │
│ 07c976d1     │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 1/1 Percentage: 100.000%
Failed Tests: 0/1 Percentage: 0.000%


Adding 1 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_71alkixj.log

Please see Query Maintainers (buildtest buildspec maintainers) on list of maintainers and breakdown of buildspecs by maintainers.

We can also filter tests by type field in the buildspec which corresponds to the schema type. In this next example, we filter all tests by script schema type by passing option --filter type=script. We inform buildtest to stop after build stage (--stage=build) for more details see Configure Build Stages.

$ buildtest build -b tutorials --filter type=script --stage=build
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:46                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b tutorials --filter type=script    │
│ --stage=build                                                                │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  32
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  32
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 32 buildspecs
skip: skipping test due to 'skip' property.
Valid Buildspecs: 29
Invalid Buildspecs: 3
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/tags_example.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex4.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex3.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/skip_tests.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/status_by_executors.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-hello.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/executor_regex_script.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/runtime_status_test.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/maintainers_example.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/sleep.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/add_numbers.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/vars.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/csh_shell_examples.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/invalid_executor.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/pass_returncode.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/explicit_state.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/shell_examples.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/shebang.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex1.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/hello_world.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/gcc_version.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/metrics_regex.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/job_dependency/ex2.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/executors_var_env_declaration.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/multi_executors/executor_scheduler.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/summary_example.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-shell.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/environment.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/status_regex.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/burstbuffer_datawarp_executors.yml: INVALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/invalid_tags.yml: INVALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/invalid_buildspec_section.yml: INVALID
                            Buildspecs Filtered out                             
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ buildspecs                                                                   ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
└──────────────────────────────────────────────────────────────────────────────┘
Total builder objects created: 60
Total compiler builder: 0
Total script builder: 60
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ string_ta… │ generic.l… │ None     │ None  │ None  │ tags can   │ /home/doc… │
│            │            │          │       │       │ be a       │            │
│            │            │          │       │       │ string     │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ list_of_s… │ generic.l… │ None     │ None  │ None  │ tags can   │ /home/doc… │
│            │            │          │       │       │ be a list  │            │
│            │            │          │       │       │ of strings │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ runtime_t… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will sleep │            │
│            │            │          │       │       │ 5 second   │            │
│            │            │          │       │       │ but will   │            │
│            │            │          │       │       │ fail due   │            │
│            │            │          │       │       │ to runtime │            │
│            │            │          │       │       │ 2sec       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ runtime_t… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will run   │            │
│            │            │          │       │       │ when       │            │
│            │            │          │       │       │ runtime_t… │            │
│            │            │          │       │       │ is PASS    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ runtime_t… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will run   │            │
│            │            │          │       │       │ when       │            │
│            │            │          │       │       │ runtime_t… │            │
│            │            │          │       │       │ is FAIL    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ pass_test… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will       │            │
│            │            │          │       │       │ always     │            │
│            │            │          │       │       │ pass       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ fail_test… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will run   │            │
│            │            │          │       │       │ if test    │            │
│            │            │          │       │       │ 'pass_tes… │            │
│            │            │          │       │       │ is in      │            │
│            │            │          │       │       │ state      │            │
│            │            │          │       │       │ 'PASS'     │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ pass_and_… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will run   │            │
│            │            │          │       │       │ if         │            │
│            │            │          │       │       │ pass_test  │            │
│            │            │          │       │       │ is 'PASS'  │            │
│            │            │          │       │       │ and        │            │
│            │            │          │       │       │ fail_test  │            │
│            │            │          │       │       │ is 'FAIL'  │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ final_tes… │ generic.l… │ None     │ None  │ None  │ Test will  │ /home/doc… │
│            │            │          │       │       │ run after  │            │
│            │            │          │       │       │ 'pass_tes… │            │
│            │            │          │       │       │ 'fail_tes… │            │
│            │            │          │       │       │ and        │            │
│            │            │          │       │       │ 'pass_and… │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ unskipped… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ is not     │            │
│            │            │          │       │       │ skipped    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ status_re… │ generic.l… │ None     │ None  │ None  │ define     │ /home/doc… │
│            │            │          │       │       │ status per │            │
│            │            │          │       │       │ executor   │            │
│            │            │          │       │       │ type.      │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ status_re… │ generic.l… │ None     │ None  │ None  │ define     │ /home/doc… │
│            │            │          │       │       │ status per │            │
│            │            │          │       │       │ executor   │            │
│            │            │          │       │       │ type.      │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ python_he… │ generic.l… │ None     │ None  │ None  │ Hello      │ /home/doc… │
│            │            │          │       │       │ World      │            │
│            │            │          │       │       │ python     │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ multiple_… │ generic.l… │ None     │ None  │ None  │ run test   │ /home/doc… │
│            │            │          │       │       │ with       │            │
│            │            │          │       │       │ executor   │            │
│            │            │          │       │       │ generic.l… │            │
│            │            │          │       │       │ and        │            │
│            │            │          │       │       │ generic.l… │            │
│            │            │          │       │       │ executor   │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ multiple_… │ generic.l… │ None     │ None  │ None  │ run test   │ /home/doc… │
│            │            │          │       │       │ with       │            │
│            │            │          │       │       │ executor   │            │
│            │            │          │       │       │ generic.l… │            │
│            │            │          │       │       │ and        │            │
│            │            │          │       │       │ generic.l… │            │
│            │            │          │       │       │ executor   │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ timelimit… │ generic.l… │ None     │ None  │ None  │ Run a      │ /home/doc… │
│            │            │          │       │       │ sleep job  │            │
│            │            │          │       │       │ for 2      │            │
│            │            │          │       │       │ seconds    │            │
│            │            │          │       │       │ and test   │            │
│            │            │          │       │       │ pass if    │            │
│            │            │          │       │       │ its within │            │
│            │            │          │       │       │ 1.0-3.0sec │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ timelimit… │ generic.l… │ None     │ None  │ None  │ Run a      │ /home/doc… │
│            │            │          │       │       │ sleep job  │            │
│            │            │          │       │       │ for 2      │            │
│            │            │          │       │       │ seconds    │            │
│            │            │          │       │       │ and test   │            │
│            │            │          │       │       │ pass if    │            │
│            │            │          │       │       │ its        │            │
│            │            │          │       │       │ exceeds    │            │
│            │            │          │       │       │ min time   │            │
│            │            │          │       │       │ of 1.0 sec │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ timelimit… │ generic.l… │ None     │ None  │ None  │ Run a      │ /home/doc… │
│            │            │          │       │       │ sleep job  │            │
│            │            │          │       │       │ for 2      │            │
│            │            │          │       │       │ seconds    │            │
│            │            │          │       │       │ and test   │            │
│            │            │          │       │       │ pass if    │            │
│            │            │          │       │       │ it's       │            │
│            │            │          │       │       │ within max │            │
│            │            │          │       │       │ time: 5.0  │            │
│            │            │          │       │       │ sec        │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ timelimit… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ fails      │            │
│            │            │          │       │       │ because it │            │
│            │            │          │       │       │ runs less  │            │
│            │            │          │       │       │ than       │            │
│            │            │          │       │       │ mintime of │            │
│            │            │          │       │       │ 10 second  │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ timelimit… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ fails      │            │
│            │            │          │       │       │ because it │            │
│            │            │          │       │       │ exceeds    │            │
│            │            │          │       │       │ maxtime of │            │
│            │            │          │       │       │ 1.0 second │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ foo_bar/f… │ generic.l… │ None     │ None  │ None  │ prints     │ /home/doc… │
│            │            │          │       │       │ variable   │            │
│            │            │          │       │       │ $FOO       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ sleep/8c5… │ generic.l… │ None     │ None  │ None  │ sleep 2    │ /home/doc… │
│            │            │          │       │       │ seconds    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ add_numbe… │ generic.l… │ None     │ None  │ None  │ Add X+Y    │ /home/doc… │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ variables… │ generic.l… │ None     │ None  │ None  │ Declare    │ /home/doc… │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ variables  │            │
│            │            │          │       │       │ in bash    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ csh_shell… │ generic.l… │ None     │ None  │ None  │ csh shell  │ /home/doc… │
│            │            │          │       │       │ example    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ exit1_fai… │ generic.l… │ None     │ None  │ None  │ exit 1 by  │ /home/doc… │
│            │            │          │       │       │ default is │            │
│            │            │          │       │       │ FAIL       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ exit1_pas… │ generic.l… │ None     │ None  │ None  │ report     │ /home/doc… │
│            │            │          │       │       │ exit 1 as  │            │
│            │            │          │       │       │ PASS       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ returncod… │ generic.l… │ None     │ None  │ None  │ exit 2     │ /home/doc… │
│            │            │          │       │       │ failed     │            │
│            │            │          │       │       │ since it   │            │
│            │            │          │       │       │ failed to  │            │
│            │            │          │       │       │ match      │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 1          │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ returncod… │ generic.l… │ None     │ None  │ None  │ exit 128   │ /home/doc… │
│            │            │          │       │       │ matches    │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 128        │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ always_pa… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will       │            │
│            │            │          │       │       │ always     │            │
│            │            │          │       │       │ 'PASS'     │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ always_fa… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will       │            │
│            │            │          │       │       │ always     │            │
│            │            │          │       │       │ 'FAIL'     │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ test_fail… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will       │            │
│            │            │          │       │       │ 'FAIL'     │            │
│            │            │          │       │       │ even if we │            │
│            │            │          │       │       │ have       │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ match      │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ test_pass… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will       │            │
│            │            │          │       │       │ 'PASS'     │            │
│            │            │          │       │       │ even if we │            │
│            │            │          │       │       │ have       │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ mismatch   │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ _bin_sh_s… │ generic.l… │ None     │ None  │ None  │ /bin/sh    │ /home/doc… │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ example    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ _bin_bash… │ generic.l… │ None     │ None  │ None  │ /bin/bash  │ /home/doc… │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ example    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ bash_shel… │ generic.l… │ None     │ None  │ None  │ bash shell │ /home/doc… │
│            │            │          │       │       │ example    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ sh_shell/… │ generic.l… │ None     │ None  │ None  │ sh shell   │ /home/doc… │
│            │            │          │       │       │ example    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ shell_opt… │ generic.l… │ None     │ None  │ None  │ shell      │ /home/doc… │
│            │            │          │       │       │ options    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ bash_logi… │ generic.l… │ None     │ None  │ None  │ customize  │ /home/doc… │
│            │            │          │       │       │ shebang    │            │
│            │            │          │       │       │ line with  │            │
│            │            │          │       │       │ bash login │            │
│            │            │          │       │       │ shell      │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ bash_nonl… │ generic.l… │ None     │ None  │ None  │ customize  │ /home/doc… │
│            │            │          │       │       │ shebang    │            │
│            │            │          │       │       │ line with  │            │
│            │            │          │       │       │ default    │            │
│            │            │          │       │       │ bash       │            │
│            │            │          │       │       │ (nonlogin) │            │
│            │            │          │       │       │ shell      │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ jobA/831c… │ generic.l… │ None     │ None  │ None  │ no job     │ /home/doc… │
│            │            │          │       │       │ dependency │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ jobB/1c6f… │ generic.l… │ None     │ None  │ None  │ job        │ /home/doc… │
│            │            │          │       │       │ dependency │            │
│            │            │          │       │       │ on jobA    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ jobC/1477… │ generic.l… │ None     │ None  │ None  │ job        │ /home/doc… │
│            │            │          │       │       │ dependency │            │
│            │            │          │       │       │ on jobA    │            │
│            │            │          │       │       │ and jobB   │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ hello_wor… │ generic.l… │ None     │ None  │ None  │ hello      │ /home/doc… │
│            │            │          │       │       │ world      │            │
│            │            │          │       │       │ example    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ gcc_versi… │ generic.l… │ None     │ None  │ None  │ Print gcc  │ /home/doc… │
│            │            │          │       │       │ version    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ metric_re… │ generic.l… │ None     │ None  │ None  │ capture    │ /home/doc… │
│            │            │          │       │       │ result     │            │
│            │            │          │       │       │ metric     │            │
│            │            │          │       │       │ from       │            │
│            │            │          │       │       │ output     │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ test1/ad3… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will pass  │            │
│            │            │          │       │       │ with exit  │            │
│            │            │          │       │       │ 1          │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ test2/9bc… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will run   │            │
│            │            │          │       │       │ if test1   │            │
│            │            │          │       │       │ has        │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 1          │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ test3/a1d… │ generic.l… │ None     │ None  │ None  │ This test  │ /home/doc… │
│            │            │          │       │       │ will run   │            │
│            │            │          │       │       │ if test1   │            │
│            │            │          │       │       │ has        │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 1 and      │            │
│            │            │          │       │       │ test2 has  │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 2          │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ executors… │ generic.l… │ None     │ None  │ None  │ Declaring  │ /home/doc… │
│            │            │          │       │       │ env and    │            │
│            │            │          │       │       │ vars by    │            │
│            │            │          │       │       │ executors  │            │
│            │            │          │       │       │ section    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ executors… │ generic.l… │ None     │ None  │ None  │ Declaring  │ /home/doc… │
│            │            │          │       │       │ env and    │            │
│            │            │          │       │       │ vars by    │            │
│            │            │          │       │       │ executors  │            │
│            │            │          │       │       │ section    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ executors… │ generic.l… │ None     │ None  │ None  │ Declaring  │ /home/doc… │
│            │            │          │       │       │ env and    │            │
│            │            │          │       │       │ vars by    │            │
│            │            │          │       │       │ executors  │            │
│            │            │          │       │       │ section    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ executors… │ generic.l… │ None     │ None  │ None  │ Declaring  │ /home/doc… │
│            │            │          │       │       │ env and    │            │
│            │            │          │       │       │ vars by    │            │
│            │            │          │       │       │ executors  │            │
│            │            │          │       │       │ section    │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ summary_e… │ generic.l… │ None     │ None  │ None  │ The        │ /home/doc… │
│            │            │          │       │       │ summary    │            │
│            │            │          │       │       │ field can  │            │
│            │            │          │       │       │ be a       │            │
│            │            │          │       │       │ multi-line │            │
│            │            │          │       │       │ string and │            │
│            │            │          │       │       │ exceed 80  │            │
│            │            │          │       │       │ char       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ circle_ar… │ generic.l… │ None     │ None  │ None  │ Calculate  │ /home/doc… │
│            │            │          │       │       │ circle of  │            │
│            │            │          │       │       │ area given │            │
│            │            │          │       │       │ a radius   │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ bash_env_… │ generic.l… │ None     │ None  │ None  │ Declare    │ /home/doc… │
│            │            │          │       │       │ environme… │            │
│            │            │          │       │       │ variables  │            │
│            │            │          │       │       │ in default │            │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ (bash)     │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ csh_env_d… │ generic.l… │ None     │ None  │ None  │ csh shell  │ /home/doc… │
│            │            │          │       │       │ example to │            │
│            │            │          │       │       │ declare    │            │
│            │            │          │       │       │ environme… │            │
│            │            │          │       │       │ variables  │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ tcsh_env_… │ generic.l… │ None     │ None  │ None  │ tcsh shell │ /home/doc… │
│            │            │          │       │       │ example to │            │
│            │            │          │       │       │ declare    │            │
│            │            │          │       │       │ environme… │            │
│            │            │          │       │       │ variables  │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ status_re… │ generic.l… │ None     │ None  │ None  │ Pass test  │ /home/doc… │
│            │            │          │       │       │ based on   │            │
│            │            │          │       │       │ regular    │            │
│            │            │          │       │       │ expression │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ status_re… │ generic.l… │ None     │ None  │ None  │ Pass test  │ /home/doc… │
│            │            │          │       │       │ based on   │            │
│            │            │          │       │       │ regular    │            │
│            │            │          │       │       │ expression │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
string_tag/a3bee34b: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/tags_exam
ple/string_tag/a3bee34b
string_tag/a3bee34b: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/tags
_example/string_tag/a3bee34b/stage
string_tag/a3bee34b: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/tags_example
/string_tag/a3bee34b/string_tag_build.sh
list_of_strings_tags/0e581964: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/tags_example/list_of_strings_tags/0e581964
list_of_strings_tags/0e581964: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/tags_example/list_of_strings_tags/0e581964/stage
list_of_strings_tags/0e581964: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ta
gs_example/list_of_strings_tags/0e581964/list_of_strings_tags_build.sh
runtime_test/ad097e9d: Creating test directory: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex4/run
time_test/ad097e9d
runtime_test/ad097e9d: Creating the stage directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex
4/runtime_test/ad097e9d/stage
runtime_test/ad097e9d: Writing build script: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex4/runtim
e_test/ad097e9d/runtime_test_build.sh
runtime_test_pass/b2b25342: Creating test directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex
4/runtime_test_pass/b2b25342
runtime_test_pass/b2b25342: Creating the stage directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/ex4/runtime_test_pass/b2b25342/stage
runtime_test_pass/b2b25342: Writing build script: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex4/r
untime_test_pass/b2b25342/runtime_test_pass_build.sh
runtime_test_fail/8941f662: Creating test directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex
4/runtime_test_fail/8941f662
runtime_test_fail/8941f662: Creating the stage directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/ex4/runtime_test_fail/8941f662/stage
runtime_test_fail/8941f662: Writing build script: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex4/r
untime_test_fail/8941f662/runtime_test_fail_build.sh
pass_test/dd8ade2f: Creating test directory: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex3/pass_t
est/dd8ade2f
pass_test/dd8ade2f: Creating the stage directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex3/p
ass_test/dd8ade2f/stage
pass_test/dd8ade2f: Writing build script: /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex3/pass_test
/dd8ade2f/pass_test_build.sh
fail_test/f351dbc6: Creating test directory: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex3/fail_t
est/f351dbc6
fail_test/f351dbc6: Creating the stage directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex3/f
ail_test/f351dbc6/stage
fail_test/f351dbc6: Writing build script: /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex3/fail_test
/f351dbc6/fail_test_build.sh
pass_and_fail_test/4bb88b2f: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/e
x3/pass_and_fail_test/4bb88b2f
pass_and_fail_test/4bb88b2f: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/ex3/pass_and_fail_test/4bb88b2f/stage
pass_and_fail_test/4bb88b2f: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex3/
pass_and_fail_test/4bb88b2f/pass_and_fail_test_build.sh
final_test/0ce36b06: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex3/final
_test/0ce36b06
final_test/0ce36b06: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex3/
final_test/0ce36b06/stage
final_test/0ce36b06: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex3/final_te
st/0ce36b06/final_test_build.sh
unskipped/a81d07b8: Creating test directory: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/skip_tests
/unskipped/a81d07b8
unskipped/a81d07b8: Creating the stage directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/skip_
tests/unskipped/a81d07b8/stage
unskipped/a81d07b8: Writing build script: /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/skip_tests/un
skipped/a81d07b8/unskipped_build.sh
status_returncode_by_executors/a2d4a487: Creating test directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.
local.bash/status_by_executors/status_returncode_by_executors/a2d4a487
status_returncode_by_executors/a2d4a487: Creating the stage directory: /home/doc
s/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/gen
eric.local.bash/status_by_executors/status_returncode_by_executors/a2d4a487/stag
e
status_returncode_by_executors/a2d4a487: Writing build script: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loc
al.bash/status_by_executors/status_returncode_by_executors/a2d4a487/status_retur
ncode_by_executors_build.sh
status_returncode_by_executors/837bf851: Creating test directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.
local.sh/status_by_executors/status_returncode_by_executors/837bf851
status_returncode_by_executors/837bf851: Creating the stage directory: /home/doc
s/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/gen
eric.local.sh/status_by_executors/status_returncode_by_executors/837bf851/stage
status_returncode_by_executors/837bf851: Writing build script: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loc
al.sh/status_by_executors/status_returncode_by_executors/837bf851/status_returnc
ode_by_executors_build.sh
python_hello/93ee2089: Creating test directory: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-
hello/python_hello/93ee2089
python_hello/93ee2089: Creating the stage directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/py
thon-hello/python_hello/93ee2089/stage
python_hello/93ee2089: Writing build script: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-hel
lo/python_hello/93ee2089/python_hello_build.sh
multiple_executors/cddd3e5b: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/e
xecutor_regex_script/multiple_executors/cddd3e5b
multiple_executors/cddd3e5b: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/executor_regex_script/multiple_executors/cddd3e5b/stage
multiple_executors/cddd3e5b: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/exec
utor_regex_script/multiple_executors/cddd3e5b/multiple_executors_build.sh
multiple_executors/57bbba74: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/exe
cutor_regex_script/multiple_executors/57bbba74
multiple_executors/57bbba74: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.s
h/executor_regex_script/multiple_executors/57bbba74/stage
multiple_executors/57bbba74: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/execut
or_regex_script/multiple_executors/57bbba74/multiple_executors_build.sh
timelimit_min_max/e30224d0: Creating test directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/runt
ime_status_test/timelimit_min_max/e30224d0
timelimit_min_max/e30224d0: Creating the stage directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh
/runtime_status_test/timelimit_min_max/e30224d0/stage
timelimit_min_max/e30224d0: Writing build script: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/runtime
_status_test/timelimit_min_max/e30224d0/timelimit_min_max_build.sh
timelimit_min/103955bd: Creating test directory: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/runtime_
status_test/timelimit_min/103955bd
timelimit_min/103955bd: Creating the stage directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/run
time_status_test/timelimit_min/103955bd/stage
timelimit_min/103955bd: Writing build script: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/runtime_sta
tus_test/timelimit_min/103955bd/timelimit_min_build.sh
timelimit_max/474c0006: Creating test directory: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/runtime_
status_test/timelimit_max/474c0006
timelimit_max/474c0006: Creating the stage directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/run
time_status_test/timelimit_max/474c0006/stage
timelimit_max/474c0006: Writing build script: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/runtime_sta
tus_test/timelimit_max/474c0006/timelimit_max_build.sh
timelimit_min_fail/def90841: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/run
time_status_test/timelimit_min_fail/def90841
timelimit_min_fail/def90841: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.s
h/runtime_status_test/timelimit_min_fail/def90841/stage
timelimit_min_fail/def90841: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/runtim
e_status_test/timelimit_min_fail/def90841/timelimit_min_fail_build.sh
timelimit_max_fail/22367f3a: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/run
time_status_test/timelimit_max_fail/22367f3a
timelimit_max_fail/22367f3a: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.s
h/runtime_status_test/timelimit_max_fail/22367f3a/stage
timelimit_max_fail/22367f3a: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/runtim
e_status_test/timelimit_max_fail/22367f3a/timelimit_max_fail_build.sh
foo_bar/ffec5a54: Creating test directory: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/maintainers_ex
ample/foo_bar/ffec5a54
foo_bar/ffec5a54: Creating the stage directory: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/maintaine
rs_example/foo_bar/ffec5a54/stage
foo_bar/ffec5a54: Writing build script: /home/docs/checkouts/readthedocs.org/use
r_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/maintainers_examp
le/foo_bar/ffec5a54/foo_bar_build.sh
sleep/8c5c518f: Creating test directory: /home/docs/checkouts/readthedocs.org/us
er_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sleep/8c
5c518f
sleep/8c5c518f: Creating the stage directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sle
ep/8c5c518f/stage
sleep/8c5c518f: Writing build script: /home/docs/checkouts/readthedocs.org/user_
builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sleep/8c5c5
18f/sleep_build.sh
add_numbers/9d51961c: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/add_numb
ers/add_numbers/9d51961c
add_numbers/9d51961c: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/add
_numbers/add_numbers/9d51961c/stage
add_numbers/9d51961c: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/add_numbers
/add_numbers/9d51961c/add_numbers_build.sh
variables_bash/e8fae1b0: Creating test directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/
variables_bash/e8fae1b0
variables_bash/e8fae1b0: Creating the stage directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
vars/variables_bash/e8fae1b0/stage
variables_bash/e8fae1b0: Writing build script: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/var
iables_bash/e8fae1b0/variables_bash_build.sh
csh_shell/07bca861: Creating test directory: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/csh_shell_e
xamples/csh_shell/07bca861
csh_shell/07bca861: Creating the stage directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/csh_sh
ell_examples/csh_shell/07bca861/stage
csh_shell/07bca861: Writing build script: /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/csh_shell_exam
ples/csh_shell/07bca861/csh_shell_build.sh
exit1_fail/2c684bff: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_retu
rncode/exit1_fail/2c684bff
exit1_fail/2c684bff: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass
_returncode/exit1_fail/2c684bff/stage
exit1_fail/2c684bff: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnc
ode/exit1_fail/2c684bff/exit1_fail_build.sh
exit1_pass/8f486a6e: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_retu
rncode/exit1_pass/8f486a6e
exit1_pass/8f486a6e: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass
_returncode/exit1_pass/8f486a6e/stage
exit1_pass/8f486a6e: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnc
ode/exit1_pass/8f486a6e/exit1_pass_build.sh
returncode_list_mismatch/f78dd7de: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/pass_returncode/returncode_list_mismatch/f78dd7de
returncode_list_mismatch/f78dd7de: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.l
ocal.bash/pass_returncode/returncode_list_mismatch/f78dd7de/stage
returncode_list_mismatch/f78dd7de: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/pass_returncode/returncode_list_mismatch/f78dd7de/returncode_list_mismatch_bui
ld.sh
returncode_int_match/863b1a47: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/pass_returncode/returncode_int_match/863b1a47
returncode_int_match/863b1a47: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/pass_returncode/returncode_int_match/863b1a47/stage
returncode_int_match/863b1a47: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pa
ss_returncode/returncode_int_match/863b1a47/returncode_int_match_build.sh
always_pass/aa7efa2a: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/explicit_s
tate/always_pass/aa7efa2a
always_pass/aa7efa2a: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/expli
cit_state/always_pass/aa7efa2a/stage
always_pass/aa7efa2a: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/explicit_stat
e/always_pass/aa7efa2a/always_pass_build.sh
always_fail/d66a9f83: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/explicit_s
tate/always_fail/d66a9f83
always_fail/d66a9f83: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/expli
cit_state/always_fail/d66a9f83/stage
always_fail/d66a9f83: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/explicit_stat
e/always_fail/d66a9f83/always_fail_build.sh
test_fail_returncode_match/435857a3: Creating test directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loca
l.sh/explicit_state/test_fail_returncode_match/435857a3
test_fail_returncode_match/435857a3: Creating the stage directory: /home/docs/ch
eckouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic
.local.sh/explicit_state/test_fail_returncode_match/435857a3/stage
test_fail_returncode_match/435857a3: Writing build script: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.s
h/explicit_state/test_fail_returncode_match/435857a3/test_fail_returncode_match_
build.sh
test_pass_returncode_mismatch/142e7f97: Creating test directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.l
ocal.sh/explicit_state/test_pass_returncode_mismatch/142e7f97
test_pass_returncode_mismatch/142e7f97: Creating the stage directory: /home/docs
/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/gene
ric.local.sh/explicit_state/test_pass_returncode_mismatch/142e7f97/stage
test_pass_returncode_mismatch/142e7f97: Writing build script: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loca
l.sh/explicit_state/test_pass_returncode_mismatch/142e7f97/test_pass_returncode_
mismatch_build.sh
_bin_sh_shell/ed4f5c8e: Creating test directory: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/shell_ex
amples/_bin_sh_shell/ed4f5c8e
_bin_sh_shell/ed4f5c8e: Creating the stage directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/she
ll_examples/_bin_sh_shell/ed4f5c8e/stage
_bin_sh_shell/ed4f5c8e: Writing build script: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/shell_examp
les/_bin_sh_shell/ed4f5c8e/_bin_sh_shell_build.sh
_bin_bash_shell/3f4a2cb5: Creating test directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/shel
l_examples/_bin_bash_shell/3f4a2cb5
_bin_bash_shell/3f4a2cb5: Creating the stage directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/shell_examples/_bin_bash_shell/3f4a2cb5/stage
_bin_bash_shell/3f4a2cb5: Writing build script: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/shell_e
xamples/_bin_bash_shell/3f4a2cb5/_bin_bash_shell_build.sh
bash_shell/de305f41: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/shell_exa
mples/bash_shell/de305f41
bash_shell/de305f41: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/shel
l_examples/bash_shell/de305f41/stage
bash_shell/de305f41: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/shell_exampl
es/bash_shell/de305f41/bash_shell_build.sh
sh_shell/bdf1378e: Creating test directory: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/shell_example
s/sh_shell/bdf1378e
sh_shell/bdf1378e: Creating the stage directory: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/shell_ex
amples/sh_shell/bdf1378e/stage
sh_shell/bdf1378e: Writing build script: /home/docs/checkouts/readthedocs.org/us
er_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/shell_examples/s
h_shell/bdf1378e/sh_shell_build.sh
shell_options/bdec79f6: Creating test directory: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/shell_ex
amples/shell_options/bdec79f6
shell_options/bdec79f6: Creating the stage directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/she
ll_examples/shell_options/bdec79f6/stage
shell_options/bdec79f6: Writing build script: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/shell_examp
les/shell_options/bdec79f6/shell_options_build.sh
bash_login_shebang/33ff38b2: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/s
hebang/bash_login_shebang/33ff38b2
bash_login_shebang/33ff38b2: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/shebang/bash_login_shebang/33ff38b2/stage
bash_login_shebang/33ff38b2: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sheb
ang/bash_login_shebang/33ff38b2/bash_login_shebang_build.sh
bash_nonlogin_shebang/94e670ef: Creating test directory: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/shebang/bash_nonlogin_shebang/94e670ef
bash_nonlogin_shebang/94e670ef: Creating the stage directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loca
l.bash/shebang/bash_nonlogin_shebang/94e670ef/stage
bash_nonlogin_shebang/94e670ef: Writing build script: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/s
hebang/bash_nonlogin_shebang/94e670ef/bash_nonlogin_shebang_build.sh
jobA/831c9a42: Creating test directory: /home/docs/checkouts/readthedocs.org/use
r_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex1/jobA/831c9a
42
jobA/831c9a42: Creating the stage directory: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex1/jobA/8
31c9a42/stage
jobA/831c9a42: Writing build script: /home/docs/checkouts/readthedocs.org/user_b
uilds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex1/jobA/831c9a42/
jobA_build.sh
jobB/1c6fb8cb: Creating test directory: /home/docs/checkouts/readthedocs.org/use
r_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex1/jobB/1c6fb8
cb
jobB/1c6fb8cb: Creating the stage directory: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex1/jobB/1
c6fb8cb/stage
jobB/1c6fb8cb: Writing build script: /home/docs/checkouts/readthedocs.org/user_b
uilds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex1/jobB/1c6fb8cb/
jobB_build.sh
jobC/1477279d: Creating test directory: /home/docs/checkouts/readthedocs.org/use
r_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex1/jobC/147727
9d
jobC/1477279d: Creating the stage directory: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex1/jobC/1
477279d/stage
jobC/1477279d: Writing build script: /home/docs/checkouts/readthedocs.org/user_b
uilds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex1/jobC/1477279d/
jobC_build.sh
hello_world/feac327e: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/hello_wo
rld/hello_world/feac327e
hello_world/feac327e: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/hel
lo_world/hello_world/feac327e/stage
hello_world/feac327e: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/hello_world
/hello_world/feac327e/hello_world_build.sh
gcc_version/26a64701: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/gcc_vers
ion/gcc_version/26a64701
gcc_version/26a64701: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/gcc
_version/gcc_version/26a64701/stage
gcc_version/26a64701: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/gcc_version
/gcc_version/26a64701/gcc_version_build.sh
metric_regex_example/f4752b8c: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/m
etrics_regex/metric_regex_example/f4752b8c
metric_regex_example/f4752b8c: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.sh/metrics_regex/metric_regex_example/f4752b8c/stage
metric_regex_example/f4752b8c: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.sh/metr
ics_regex/metric_regex_example/f4752b8c/metric_regex_example_build.sh
test1/ad31f02f: Creating test directory: /home/docs/checkouts/readthedocs.org/us
er_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex2/test1/ad31
f02f
test1/ad31f02f: Creating the stage directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex2/test1
/ad31f02f/stage
test1/ad31f02f: Writing build script: /home/docs/checkouts/readthedocs.org/user_
builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex2/test1/ad31f02
f/test1_build.sh
test2/9bc5e92a: Creating test directory: /home/docs/checkouts/readthedocs.org/us
er_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex2/test2/9bc5
e92a
test2/9bc5e92a: Creating the stage directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex2/test2
/9bc5e92a/stage
test2/9bc5e92a: Writing build script: /home/docs/checkouts/readthedocs.org/user_
builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex2/test2/9bc5e92
a/test2_build.sh
test3/a1d01a89: Creating test directory: /home/docs/checkouts/readthedocs.org/us
er_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex2/test3/a1d0
1a89
test3/a1d01a89: Creating the stage directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex2/test3
/a1d01a89/stage
test3/a1d01a89: Writing build script: /home/docs/checkouts/readthedocs.org/user_
builds/buildtest/checkouts/stable/var/tests/generic.local.bash/ex2/test3/a1d01a8
9/test3_build.sh
executors_vars_env_declaration/6dfa0fc9: Creating test directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.
local.bash/executors_var_env_declaration/executors_vars_env_declaration/6dfa0fc9
executors_vars_env_declaration/6dfa0fc9: Creating the stage directory: /home/doc
s/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/gen
eric.local.bash/executors_var_env_declaration/executors_vars_env_declaration/6df
a0fc9/stage
executors_vars_env_declaration/6dfa0fc9: Writing build script: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loc
al.bash/executors_var_env_declaration/executors_vars_env_declaration/6dfa0fc9/ex
ecutors_vars_env_declaration_build.sh
executors_vars_env_declaration/839e2c3e: Creating test directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.
local.sh/executors_var_env_declaration/executors_vars_env_declaration/839e2c3e
executors_vars_env_declaration/839e2c3e: Creating the stage directory: /home/doc
s/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/gen
eric.local.sh/executors_var_env_declaration/executors_vars_env_declaration/839e2
c3e/stage
executors_vars_env_declaration/839e2c3e: Writing build script: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.loc
al.sh/executors_var_env_declaration/executors_vars_env_declaration/839e2c3e/exec
utors_vars_env_declaration_build.sh
executors_sbatch_declaration/dcd1b21c: Creating test directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.lo
cal.bash/executor_scheduler/executors_sbatch_declaration/dcd1b21c
executors_sbatch_declaration/dcd1b21c: Creating the stage directory: /home/docs/
checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/gener
ic.local.bash/executor_scheduler/executors_sbatch_declaration/dcd1b21c/stage
executors_sbatch_declaration/dcd1b21c: Writing build script: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/executor_scheduler/executors_sbatch_declaration/dcd1b21c/executors_sbatch_
declaration_build.sh
executors_sbatch_declaration/1821cb69: Creating test directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.lo
cal.sh/executor_scheduler/executors_sbatch_declaration/1821cb69
executors_sbatch_declaration/1821cb69: Creating the stage directory: /home/docs/
checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/gener
ic.local.sh/executor_scheduler/executors_sbatch_declaration/1821cb69/stage
executors_sbatch_declaration/1821cb69: Writing build script: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.sh/executor_scheduler/executors_sbatch_declaration/1821cb69/executors_sbatch_de
claration_build.sh
summary_example/667d5891: Creating test directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/summ
ary_example/summary_example/667d5891
summary_example/667d5891: Creating the stage directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/summary_example/summary_example/667d5891/stage
summary_example/667d5891: Writing build script: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/summary
_example/summary_example/667d5891/summary_example_build.sh
circle_area/4c04abf7: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-s
hell/circle_area/4c04abf7
circle_area/4c04abf7: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pyt
hon-shell/circle_area/4c04abf7/stage
circle_area/4c04abf7: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-shel
l/circle_area/4c04abf7/circle_area_build.sh
bash_env_variables/056ac98f: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/e
nvironment/bash_env_variables/056ac98f
bash_env_variables/056ac98f: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.b
ash/environment/bash_env_variables/056ac98f/stage
bash_env_variables/056ac98f: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/envi
ronment/bash_env_variables/056ac98f/bash_env_variables_build.sh
csh_env_declaration/91a06121: Creating test directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/e
nvironment/csh_env_declaration/91a06121
csh_env_declaration/91a06121: Creating the stage directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
csh/environment/csh_env_declaration/91a06121/stage
csh_env_declaration/91a06121: Writing build script: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/envi
ronment/csh_env_declaration/91a06121/csh_env_declaration_build.sh
tcsh_env_declaration/1b822ede: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/
environment/tcsh_env_declaration/1b822ede
tcsh_env_declaration/1b822ede: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.csh/environment/tcsh_env_declaration/1b822ede/stage
tcsh_env_declaration/1b822ede: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.csh/env
ironment/tcsh_env_declaration/1b822ede/tcsh_env_declaration_build.sh
status_regex_pass/f06c1b3b: Creating test directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/st
atus_regex/status_regex_pass/f06c1b3b
status_regex_pass/f06c1b3b: Creating the stage directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/status_regex/status_regex_pass/f06c1b3b/stage
status_regex_pass/f06c1b3b: Writing build script: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/statu
s_regex/status_regex_pass/f06c1b3b/status_regex_pass_build.sh
status_regex_fail/5bf69439: Creating test directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/st
atus_regex/status_regex_fail/5bf69439
status_regex_fail/5bf69439: Creating the stage directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/status_regex/status_regex_fail/5bf69439/stage
status_regex_fail/5bf69439: Writing build script: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/statu
s_regex/status_regex_fail/5bf69439/status_regex_fail_build.sh

Filter By Executor Type

In a HPC environment, you may want to run test locally on a login node or perhaps you only want to run batch jobs given a list of buildspecs specified on command line. This can be done in buildtest via option buildtest build –executor-type which takes one of two values local or batch. If you want to filter all tests by local executor you can do buildtest build --executor-type local. buildtest will filter test based on the executor property defined in the buildspec. Let’s assume we want to run all test by python tag on local executor you can do the following:

$ buildtest build -t python --executor-type local
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:47                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -t python --executor-type local      │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                            Buildspecs By Tag=python                            
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  2
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  2
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 2 buildspecs
Valid Buildspecs: 2
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-shell.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-hello.yml: VALID
Total builder objects created: 2
Total compiler builder: 0
Total script builder: 2
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ circle_ar… │ generic.l… │ None     │ None  │ None  │ Calculate  │ /home/doc… │
│            │            │          │       │       │ circle of  │            │
│            │            │          │       │       │ area given │            │
│            │            │          │       │       │ a radius   │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ python_he… │ generic.l… │ None     │ None  │ None  │ Hello      │ /home/doc… │
│            │            │          │       │       │ World      │            │
│            │            │          │       │       │ python     │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
circle_area/874a2028: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-s
hell/circle_area/874a2028
circle_area/874a2028: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pyt
hon-shell/circle_area/874a2028/stage
circle_area/874a2028: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-shel
l/circle_area/874a2028/circle_area_build.sh
python_hello/26b40fa5: Creating test directory: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-
hello/python_hello/26b40fa5
python_hello/26b40fa5: Creating the stage directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/py
thon-hello/python_hello/26b40fa5/stage
python_hello/26b40fa5: Writing build script: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-hel
lo/python_hello/26b40fa5/python_hello_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
circle_area/874a2028 does not have any dependencies adding test to queue
python_hello/26b40fa5 does not have any dependencies adding test to queue
circle_area/874a2028: Running Test via command: bash --norc --noprofile -eo 
pipefail circle_area_build.sh
circle_area/874a2028: Test completed in 0.0322 seconds
circle_area/874a2028: Test completed with returncode: 0
circle_area/874a2028: Writing output file -  /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-she
ll/circle_area/874a2028/circle_area.out
circle_area/874a2028: Writing error file - /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-shell
/circle_area/874a2028/circle_area.err
python_hello/26b40fa5: Running Test via command: bash --norc --noprofile -eo 
pipefail python_hello_build.sh
python_hello/26b40fa5: Test completed in 0.031731 seconds
python_hello/26b40fa5: Test completed with returncode: 0
python_hello/26b40fa5: Writing output file -  /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-he
llo/python_hello/26b40fa5/python_hello.out
python_hello/26b40fa5: Writing error file - /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-hell
o/python_hello/26b40fa5/python_hello.err
In this iteration we are going to run the following tests: [circle_area/874a2028, python_hello/26b40fa5]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ python_hello │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.031731 │
│ /26b40fa5    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ circle_area/ │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.0322   │
│ 874a2028     │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 2/2 Percentage: 100.000%
Failed Tests: 0/2 Percentage: 0.000%


Adding 2 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_yxpkeb7i.log

Now let’s say we want to rerun same command but now only run test that are batch, we can specify --executor-type batch and buildtest will filter tests by executor and find all batch executors. In this case we see that all tests were filtered out and we have no test run.

$ buildtest build -t python --executor-type batch
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:48                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -t python --executor-type batch      │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                            Buildspecs By Tag=python                            
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  2
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  2
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 2 buildspecs
python_hello/3a9af655 is excluded since its not using batch executor
circle_area/e3a366a2 is excluded since its not using batch executor
Valid Buildspecs: 2
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-hello.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-shell.yml: VALID
                            Buildspecs Filtered out                             
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ buildspecs                                                                   ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
└──────────────────────────────────────────────────────────────────────────────┘

buildtest is unable to create any tests because there are no valid buildspecs. 

Please see logfile: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/buildtest.log

This option can be particularly useful if want to run a lot of tests and you are not sure which ones will run locally or batch. Let’s say you have all your buildspecs in a directory name tests and you want to run all test that will use local executor and you don’t want to run the batch jobs then you can do the following:

buildtest build -b tests --executor-type local

Discover Buildspecs

Now, let’s discuss how buildtest discovers buildspecs since there are several ways to build buildspecs.

The buildspec search resolution is described as follows:

  • If file or directory specified by -b option doesn’t exist we exit immediately.

  • If buildspec path is a directory, traverse directory recursively to find all .yml extensions

  • If buildspec path is a file, check if file extension is not .yml, exit immediately

  • If user specifies --tags or --executor we search in buildspec cache to discover buildspecs.

Shown below is a diagram on how buildtest discovers buildspecs. The user can build buildspecs by --buildspec, –tags, or –executor which will discover the buildspecs. You can exclude buildspecs using --exclude option which is processed after discovering buildspecs. The excluded buildspecs are removed from list if found and final list of buildspecs is processed.

../_images/DiscoverBuildspecs.jpg

Configure Build Stages

We can control behavior of buildtest build command to stop at certain phase using --stage option. The –stage option accepts parse or build, which will instruct buildtest to stop at parse or build phase of the pipeline.

Buildtest will validate all the buildspecs in the parse stage, so you can instruct buildtest to stop at parse stage via --stage=parse. This can be useful when debugging buildspecs that are invalid. In this example below, we instruct buildtest to stop after parse stage.

$ buildtest build -b tutorials/vars.yml --stage=parse
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:49                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b tutorials/vars.yml --stage=parse  │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/vars.yml: VALID
Total builder objects created: 1
Total compiler builder: 0
Total script builder: 1
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ variables… │ generic.l… │ None     │ None  │ None  │ Declare    │ /home/doc… │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ variables  │            │
│            │            │          │       │       │ in bash    │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘

Likewise, if you want to troubleshoot your test script without running them you can use --stage=build which will stop after build phase. This can be used when you are writing buildspec to troubleshoot how test is generated. In this next example, we inform buildtest to stop after build stage.

$ buildtest build -b tutorials/vars.yml --stage=build
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:49                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b tutorials/vars.yml --stage=build  │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/vars.yml: VALID
Total builder objects created: 1
Total compiler builder: 0
Total script builder: 1
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ variables… │ generic.l… │ None     │ None  │ None  │ Declare    │ /home/doc… │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ variables  │            │
│            │            │          │       │       │ in bash    │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
variables_bash/e744caf8: Creating test directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/
variables_bash/e744caf8
variables_bash/e744caf8: Creating the stage directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
vars/variables_bash/e744caf8/stage
variables_bash/e744caf8: Writing build script: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/var
iables_bash/e744caf8/variables_bash_build.sh

Invalid Buildspecs

buildtest will skip any buildspecs that fail to validate, in that case the test script will not be generated. Here is an example where we have an invalid buildspec.

$ buildtest build -b tutorials/invalid_buildspec_section.yml
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:50                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b                                   │
│ tutorials/invalid_buildspec_section.yml                                      │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 0
Invalid Buildspecs: 1
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/invalid_buildspec_section.yml: INVALID

buildtest is unable to create any tests because there are no valid buildspecs. 

Please see logfile: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/buildtest.log

buildtest may skip tests from running if buildspec specifies an invalid executor name since buildtest needs to know this in order to delegate test to Executor class responsible for running the test. Here is an example where test failed to run since we provided invalid executor.

$ buildtest build -b tutorials/invalid_executor.yml
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:50                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b tutorials/invalid_executor.yml    │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/invalid_executor.yml: VALID
                            Buildspecs Filtered out                             
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ buildspecs                                                                   ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
└──────────────────────────────────────────────────────────────────────────────┘

buildtest is unable to create any tests because there are no valid buildspecs. 

Please see logfile: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/buildtest.log

Rebuild Tests

buildtest can rebuild tests using the --rebuild option which can be useful if you want to test a particular test multiple times. The rebuild option works across all discovered buildspecs and create a new test instance (unique id) and test directory path. To demonstrate we will build tutorials/python-shell.yml three times using --rebuild=3.

$ buildtest build -b tutorials/python-shell.yml --rebuild=3
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:51                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b tutorials/python-shell.yml        │
│ --rebuild=3                                                                  │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/python-shell.yml: VALID
Total builder objects created: 3
Total compiler builder: 0
Total script builder: 3
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ circle_ar… │ generic.l… │ None     │ None  │ None  │ Calculate  │ /home/doc… │
│            │            │          │       │       │ circle of  │            │
│            │            │          │       │       │ area given │            │
│            │            │          │       │       │ a radius   │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ circle_ar… │ generic.l… │ None     │ None  │ None  │ Calculate  │ /home/doc… │
│            │            │          │       │       │ circle of  │            │
│            │            │          │       │       │ area given │            │
│            │            │          │       │       │ a radius   │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ circle_ar… │ generic.l… │ None     │ None  │ None  │ Calculate  │ /home/doc… │
│            │            │          │       │       │ circle of  │            │
│            │            │          │       │       │ area given │            │
│            │            │          │       │       │ a radius   │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
circle_area/12f15e31: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-s
hell/circle_area/12f15e31
circle_area/12f15e31: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pyt
hon-shell/circle_area/12f15e31/stage
circle_area/12f15e31: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-shel
l/circle_area/12f15e31/circle_area_build.sh
circle_area/9c84bf0a: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-s
hell/circle_area/9c84bf0a
circle_area/9c84bf0a: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pyt
hon-shell/circle_area/9c84bf0a/stage
circle_area/9c84bf0a: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-shel
l/circle_area/9c84bf0a/circle_area_build.sh
circle_area/74ef170c: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-s
hell/circle_area/74ef170c
circle_area/74ef170c: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pyt
hon-shell/circle_area/74ef170c/stage
circle_area/74ef170c: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-shel
l/circle_area/74ef170c/circle_area_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
circle_area/74ef170c does not have any dependencies adding test to queue
circle_area/12f15e31 does not have any dependencies adding test to queue
circle_area/9c84bf0a does not have any dependencies adding test to queue
circle_area/12f15e31: Running Test via command: bash --norc --noprofile -eo 
pipefail circle_area_build.sh
circle_area/12f15e31: Test completed in 0.032082 seconds
circle_area/12f15e31: Test completed with returncode: 0
circle_area/12f15e31: Writing output file -  /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-she
ll/circle_area/12f15e31/circle_area.out
circle_area/12f15e31: Writing error file - /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-shell
/circle_area/12f15e31/circle_area.err
circle_area/9c84bf0a: Running Test via command: bash --norc --noprofile -eo 
pipefail circle_area_build.sh
circle_area/9c84bf0a: Test completed in 0.032047 seconds
circle_area/9c84bf0a: Test completed with returncode: 0
circle_area/9c84bf0a: Writing output file -  /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-she
ll/circle_area/9c84bf0a/circle_area.out
circle_area/9c84bf0a: Writing error file - /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-shell
/circle_area/9c84bf0a/circle_area.err
circle_area/74ef170c: Running Test via command: bash --norc --noprofile -eo 
pipefail circle_area_build.sh
circle_area/74ef170c: Test completed in 0.031637 seconds
circle_area/74ef170c: Test completed with returncode: 0
circle_area/74ef170c: Writing output file -  /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-she
ll/circle_area/74ef170c/circle_area.out
circle_area/74ef170c: Writing error file - /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/python-shell
/circle_area/74ef170c/circle_area.err
In this iteration we are going to run the following tests: [circle_area/12f15e31, circle_area/9c84bf0a, circle_area/74ef170c]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ circle_area/ │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.032047 │
│ 9c84bf0a     │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ circle_area/ │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.032082 │
│ 12f15e31     │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ circle_area/ │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.031637 │
│ 74ef170c     │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 3/3 Percentage: 100.000%
Failed Tests: 0/3 Percentage: 0.000%


Adding 3 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_sabr4z_y.log

The rebuild works with all options including: --buildspec, --exclude, --tags and --executor. buildtest will perform rebuild for all discovered tests, for instance in this next example we will discover all tests by tag name fail and each test is rebuild twice.

$ buildtest build -t fail --rebuild 2
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:51                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -t fail --rebuild 2                  │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                             Buildspecs By Tag=fail                             
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  2
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  2
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 2 buildspecs
Valid Buildspecs: 2
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/test_status/pass_returncode.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/invalid_executor.yml: VALID
                            Buildspecs Filtered out                             
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ buildspecs                                                                   ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… │
└──────────────────────────────────────────────────────────────────────────────┘
Total builder objects created: 8
Total compiler builder: 0
Total script builder: 8
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ exit1_fai… │ generic.l… │ None     │ None  │ None  │ exit 1 by  │ /home/doc… │
│            │            │          │       │       │ default is │            │
│            │            │          │       │       │ FAIL       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ exit1_pas… │ generic.l… │ None     │ None  │ None  │ report     │ /home/doc… │
│            │            │          │       │       │ exit 1 as  │            │
│            │            │          │       │       │ PASS       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ returncod… │ generic.l… │ None     │ None  │ None  │ exit 2     │ /home/doc… │
│            │            │          │       │       │ failed     │            │
│            │            │          │       │       │ since it   │            │
│            │            │          │       │       │ failed to  │            │
│            │            │          │       │       │ match      │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 1          │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ returncod… │ generic.l… │ None     │ None  │ None  │ exit 128   │ /home/doc… │
│            │            │          │       │       │ matches    │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 128        │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ exit1_fai… │ generic.l… │ None     │ None  │ None  │ exit 1 by  │ /home/doc… │
│            │            │          │       │       │ default is │            │
│            │            │          │       │       │ FAIL       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ exit1_pas… │ generic.l… │ None     │ None  │ None  │ report     │ /home/doc… │
│            │            │          │       │       │ exit 1 as  │            │
│            │            │          │       │       │ PASS       │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ returncod… │ generic.l… │ None     │ None  │ None  │ exit 2     │ /home/doc… │
│            │            │          │       │       │ failed     │            │
│            │            │          │       │       │ since it   │            │
│            │            │          │       │       │ failed to  │            │
│            │            │          │       │       │ match      │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 1          │            │
├────────────┼────────────┼──────────┼───────┼───────┼────────────┼────────────┤
│ returncod… │ generic.l… │ None     │ None  │ None  │ exit 128   │ /home/doc… │
│            │            │          │       │       │ matches    │            │
│            │            │          │       │       │ returncode │            │
│            │            │          │       │       │ 128        │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
exit1_fail/f73827d9: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_retu
rncode/exit1_fail/f73827d9
exit1_fail/f73827d9: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass
_returncode/exit1_fail/f73827d9/stage
exit1_fail/f73827d9: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnc
ode/exit1_fail/f73827d9/exit1_fail_build.sh
exit1_pass/d98a2356: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_retu
rncode/exit1_pass/d98a2356
exit1_pass/d98a2356: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass
_returncode/exit1_pass/d98a2356/stage
exit1_pass/d98a2356: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnc
ode/exit1_pass/d98a2356/exit1_pass_build.sh
returncode_list_mismatch/24dd25ef: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/pass_returncode/returncode_list_mismatch/24dd25ef
returncode_list_mismatch/24dd25ef: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.l
ocal.bash/pass_returncode/returncode_list_mismatch/24dd25ef/stage
returncode_list_mismatch/24dd25ef: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/pass_returncode/returncode_list_mismatch/24dd25ef/returncode_list_mismatch_bui
ld.sh
returncode_int_match/6435a175: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/pass_returncode/returncode_int_match/6435a175
returncode_int_match/6435a175: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/pass_returncode/returncode_int_match/6435a175/stage
returncode_int_match/6435a175: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pa
ss_returncode/returncode_int_match/6435a175/returncode_int_match_build.sh
exit1_fail/d9927476: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_retu
rncode/exit1_fail/d9927476
exit1_fail/d9927476: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass
_returncode/exit1_fail/d9927476/stage
exit1_fail/d9927476: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnc
ode/exit1_fail/d9927476/exit1_fail_build.sh
exit1_pass/9e5c8311: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_retu
rncode/exit1_pass/9e5c8311
exit1_pass/9e5c8311: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass
_returncode/exit1_pass/9e5c8311/stage
exit1_pass/9e5c8311: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnc
ode/exit1_pass/9e5c8311/exit1_pass_build.sh
returncode_list_mismatch/b228b85d: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.
bash/pass_returncode/returncode_list_mismatch/b228b85d
returncode_list_mismatch/b228b85d: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.l
ocal.bash/pass_returncode/returncode_list_mismatch/b228b85d/stage
returncode_list_mismatch/b228b85d: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bas
h/pass_returncode/returncode_list_mismatch/b228b85d/returncode_list_mismatch_bui
ld.sh
returncode_int_match/f5ce9aae: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/pass_returncode/returncode_int_match/f5ce9aae
returncode_int_match/f5ce9aae: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local
.bash/pass_returncode/returncode_int_match/f5ce9aae/stage
returncode_int_match/f5ce9aae: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pa
ss_returncode/returncode_int_match/f5ce9aae/returncode_int_match_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
exit1_pass/d98a2356 does not have any dependencies adding test to queue
returncode_int_match/f5ce9aae does not have any dependencies adding test to 
queue
returncode_int_match/6435a175 does not have any dependencies adding test to 
queue
returncode_list_mismatch/b228b85d does not have any dependencies adding test to 
queue
exit1_pass/9e5c8311 does not have any dependencies adding test to queue
returncode_list_mismatch/24dd25ef does not have any dependencies adding test to 
queue
exit1_fail/f73827d9 does not have any dependencies adding test to queue
exit1_fail/d9927476 does not have any dependencies adding test to queue
returncode_int_match/f5ce9aae: Running Test via command: bash --norc --noprofile
-eo pipefail returncode_int_match_build.sh
returncode_int_match/f5ce9aae: Test completed in 0.005698 seconds
returncode_int_match/f5ce9aae: Test completed with returncode: 128
returncode_int_match/f5ce9aae: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/p
ass_returncode/returncode_int_match/f5ce9aae/returncode_int_match.out
returncode_int_match/f5ce9aae: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pas
s_returncode/returncode_int_match/f5ce9aae/returncode_int_match.err
returncode_int_match/f5ce9aae: Checking returncode - 128 is matched in list 
[128]
exit1_pass/d98a2356: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_pass_build.sh
exit1_pass/d98a2356: Test completed in 0.005736 seconds
exit1_pass/d98a2356: Test completed with returncode: 1
exit1_pass/d98a2356: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_return
code/exit1_pass/d98a2356/exit1_pass.out
exit1_pass/d98a2356: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnco
de/exit1_pass/d98a2356/exit1_pass.err
exit1_pass/d98a2356: Checking returncode - 1 is matched in list [1]
returncode_int_match/6435a175: Running Test via command: bash --norc --noprofile
-eo pipefail returncode_int_match_build.sh
returncode_int_match/6435a175: Test completed in 0.005562 seconds
returncode_int_match/6435a175: Test completed with returncode: 128
returncode_int_match/6435a175: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/p
ass_returncode/returncode_int_match/6435a175/returncode_int_match.out
returncode_int_match/6435a175: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pas
s_returncode/returncode_int_match/6435a175/returncode_int_match.err
returncode_int_match/6435a175: Checking returncode - 128 is matched in list 
[128]
returncode_list_mismatch/b228b85d: Running Test via command: bash --norc 
--noprofile -eo pipefail returncode_list_mismatch_build.sh
returncode_list_mismatch/b228b85d: Test completed in 0.005563 seconds
returncode_list_mismatch/b228b85d: Test completed with returncode: 2
returncode_list_mismatch/b228b85d: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/pass_returncode/returncode_list_mismatch/b228b85d/returncode_list_mismatch.ou
t
returncode_list_mismatch/b228b85d: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/pass_returncode/returncode_list_mismatch/b228b85d/returncode_list_mismatch.err
returncode_list_mismatch/b228b85d: Checking returncode - 2 is matched in list 
[1, 3]
exit1_pass/9e5c8311: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_pass_build.sh
exit1_pass/9e5c8311: Test completed in 0.00584 seconds
exit1_pass/9e5c8311: Test completed with returncode: 1
exit1_pass/9e5c8311: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_return
code/exit1_pass/9e5c8311/exit1_pass.out
exit1_pass/9e5c8311: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnco
de/exit1_pass/9e5c8311/exit1_pass.err
exit1_pass/9e5c8311: Checking returncode - 1 is matched in list [1]
returncode_list_mismatch/24dd25ef: Running Test via command: bash --norc 
--noprofile -eo pipefail returncode_list_mismatch_build.sh
returncode_list_mismatch/24dd25ef: Test completed in 0.005743 seconds
returncode_list_mismatch/24dd25ef: Test completed with returncode: 2
returncode_list_mismatch/24dd25ef: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.ba
sh/pass_returncode/returncode_list_mismatch/24dd25ef/returncode_list_mismatch.ou
t
returncode_list_mismatch/24dd25ef: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash
/pass_returncode/returncode_list_mismatch/24dd25ef/returncode_list_mismatch.err
returncode_list_mismatch/24dd25ef: Checking returncode - 2 is matched in list 
[1, 3]
exit1_fail/f73827d9: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_fail_build.sh
exit1_fail/f73827d9: Test completed in 0.006189 seconds
exit1_fail/f73827d9: Test completed with returncode: 1
exit1_fail/f73827d9: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_return
code/exit1_fail/f73827d9/exit1_fail.out
exit1_fail/f73827d9: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnco
de/exit1_fail/f73827d9/exit1_fail.err
exit1_fail/d9927476: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_fail_build.sh
exit1_fail/d9927476: Test completed in 0.005762 seconds
exit1_fail/d9927476: Test completed with returncode: 1
exit1_fail/d9927476: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_return
code/exit1_fail/d9927476/exit1_fail.out
exit1_fail/d9927476: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/pass_returnco
de/exit1_fail/d9927476/exit1_fail.err
In this iteration we are going to run the following tests: [returncode_int_match/f5ce9aae, exit1_pass/d98a2356, returncode_int_match/6435a175, returncode_list_mismatch/b228b85d, exit1_pass/9e5c8311, returncode_list_mismatch/24dd25ef, exit1_fail/f73827d9, exit1_fail/d9927476]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ returncode_i │ generic.loc… │ PASS   │ True False    │ 128        │ 0.005698 │
│ nt_match/f5c │              │        │ False         │            │          │
│ e9aae        │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_i │ generic.loc… │ PASS   │ True False    │ 128        │ 0.005562 │
│ nt_match/643 │              │        │ False         │            │          │
│ 5a175        │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_pass/9 │ generic.loc… │ PASS   │ True False    │ 1          │ 0.00584  │
│ e5c8311      │              │        │ False         │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_fail/d │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.005762 │
│ 9927476      │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_l │ generic.loc… │ FAIL   │ False False   │ 2          │ 0.005563 │
│ ist_mismatch │              │        │ False         │            │          │
│ /b228b85d    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_l │ generic.loc… │ FAIL   │ False False   │ 2          │ 0.005743 │
│ ist_mismatch │              │        │ False         │            │          │
│ /24dd25ef    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_fail/f │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.006189 │
│ 73827d9      │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_pass/d │ generic.loc… │ PASS   │ True False    │ 1          │ 0.005736 │
│ 98a2356      │              │        │ False         │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 4/8 Percentage: 50.000%
Failed Tests: 4/8 Percentage: 50.000%


Adding 8 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_ee7yadii.log

The rebuild option expects a range between 1-50, the --rebuild=1 is equivalent to running without --rebuild option. We set a max limit for rebuild option to avoid system degredation due to high workload.

If you try to exceed this bound you will get an error such as

$ buildtest build -b tutorials/test_status/pass_returncode.yml --rebuild 51
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/ │
│ bin/buildtest:36 in <module>                                                 │
│                                                                              │
│   33                                                                         │
│   34 import buildtest.main                                                   │
│   35                                                                         │
│ ❱ 36 buildtest.main.main()                                                   │
│   37                                                                         │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │ __annotations__ = {}                                                     │ │
│ │    __builtins__ = <module 'builtins' (built-in)>                         │ │
│ │      __cached__ = None                                                   │ │
│ │         __doc__ = ':"\n# preferred pythons for running                   │ │
│ │                   buildtest\nPREFERRED_PYTHONS="python3 python"\n'+365   │ │
│ │        __file__ = '/home/docs/checkouts/readthedocs.org/user_builds/bui… │ │
│ │      __loader__ = <_frozen_importlib_external.SourceFileLoader object at │ │
│ │                   0x7f325223e210>                                        │ │
│ │        __name__ = '__main__'                                             │ │
│ │     __package__ = None                                                   │ │
│ │        __spec__ = None                                                   │ │
│ │       buildtest = <module 'buildtest' from                               │ │
│ │                   '/home/docs/checkouts/readthedocs.org/user_builds/bui… │ │
│ │  buildtest_file = '/home/docs/checkouts/readthedocs.org/user_builds/bui… │ │
│ │              os = <module 'os' from                                      │ │
│ │                   '/home/docs/.asdf/installs/python/3.7.13/lib/python3.… │ │
│ │          prefix = '/home/docs/checkouts/readthedocs.org/user_builds/bui… │ │
│ │             sys = <module 'sys' (built-in)>                              │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
│                                                                              │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/ │
│ buildtest/main.py:148 in main                                                │
│                                                                              │
│   145 │   │   │   │   unload_modules=args.unload_modules,                    │
│   146 │   │   │   │   rerun=args.rerun,                                      │
│   147 │   │   │   │   executor_type=args.executor_type,                      │
│ ❱ 148 │   │   │   │   timeout=args.timeout,                                  │
│   149 │   │   │   )                                                          │
│   150 │   │   │   cmd.build()                                                │
│   151                                                                        │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │               args = Namespace(account=None,                             │ │
│ │                      buildspec=['tutorials/test_status/pass_returncode.… │ │
│ │                      configfile=None, debug=False,                       │ │
│ │                      disable_executor_check=True, editor=None,           │ │
│ │                      exclude=None, executor=None, executor_type=None,    │ │
│ │                      filter=None, helpfilter=False,                      │ │
│ │                      keep_stage_dir=False, lastlog=False,                │ │
│ │                      maxpendtime=None, module_purge=False, modules=None, │ │
│ │                      no_color=False, nodes=None, pollinterval=None,      │ │
│ │                      procs=None, rebuild=51, report=None, rerun=False,   │ │
│ │                      retry=1, stage=None, subcommands='build',           │ │
│ │                      tags=None, testdir=None, timeout=None,              │ │
│ │                      unload_modules=None)                                │ │
│ │   buildtest_editor = '/usr/bin/vim'                                      │ │
│ │        config_file = None                                                │ │
│ │      configuration = <buildtest.config.SiteConfiguration object at       │ │
│ │                      0x7f3250218f90>                                     │ │
│ │              fname = '/home/docs/checkouts/readthedocs.org/user_builds/… │ │
│ │             logger = <Logger buildtest (DEBUG)>                          │ │
│ │           no_color = False                                               │ │
│ │             parser = ArgumentParser(prog='buildtest', usage='%(prog)s    │ │
│ │                      [options] [COMMANDS]', description='buildtest is a  │ │
│ │                      HPC testing framework for building and running      │ │
│ │                      tests.', formatter_class=<class                     │ │
│ │                      'argparse.RawDescriptionHelpFormatter'>,            │ │
│ │                      conflict_handler='error', add_help=True)            │ │
│ │        report_file = None                                                │ │
│ │             system = <buildtest.system.BuildTestSystem object at         │ │
│ │                      0x7f3250598050>                                     │ │
│ │ validate_executors = True                                                │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
│                                                                              │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/ │
│ buildtest/cli/build.py:550 in __init__                                       │
│                                                                              │
│    547 │   │   │                                                             │
│    548 │   │   │   if rebuild > 50:                                          │
│    549 │   │   │   │   raise BuildTestError(                                 │
│ ❱  550 │   │   │   │   │   f"--rebuild {rebuild} exceeds maximum rebuild lim │
│    551 │   │   │   │   )                                                     │
│    552 │   │                                                                 │
│    553 │   │   if timeout:                                                   │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │            account = None                                                │ │
│ │         buildspecs = ['tutorials/test_status/pass_returncode.yml']       │ │
│ │   buildtest_system = <buildtest.system.BuildTestSystem object at         │ │
│ │                      0x7f3250598050>                                     │ │
│ │      configuration = <buildtest.config.SiteConfiguration object at       │ │
│ │                      0x7f3250218f90>                                     │ │
│ │ exclude_buildspecs = None                                                │ │
│ │      executor_type = None                                                │ │
│ │          executors = None                                                │ │
│ │  filter_buildspecs = None                                                │ │
│ │         helpfilter = False                                               │ │
│ │     keep_stage_dir = False                                               │ │
│ │        maxpendtime = None                                                │ │
│ │        modulepurge = False                                               │ │
│ │            modules = None                                                │ │
│ │           numnodes = None                                                │ │
│ │           numprocs = None                                                │ │
│ │      poll_interval = None                                                │ │
│ │            rebuild = 51                                                  │ │
│ │        report_file = None                                                │ │
│ │              rerun = False                                               │ │
│ │              retry = 1                                                   │ │
│ │               self = <buildtest.cli.build.BuildTest object at            │ │
│ │                      0x7f32501b2f50>                                     │ │
│ │              stage = None                                                │ │
│ │               tags = None                                                │ │
│ │            testdir = None                                                │ │
│ │            timeout = None                                                │ │
│ │     unload_modules = None                                                │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
BuildTestError: '--rebuild 51 exceeds maximum rebuild limit of 50'

Rerun Last command

The buildtest build --rerun command can be used to rerun last successful buildtest build command, this can be useful if you want to repeat a certain build without having to remember the command or going through your command history to find the command you ran. When using this option all other options passed to buildtest will be ignored. In order to use –rerun option you must run buildtest build command such that buildtest can rerun your last successful command.

Let’s start by building a simple test.

$ buildtest build -b tutorials/vars.yml
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:53                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b tutorials/vars.yml                │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/vars.yml: VALID
Total builder objects created: 1
Total compiler builder: 0
Total script builder: 1
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ variables… │ generic.l… │ None     │ None  │ None  │ Declare    │ /home/doc… │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ variables  │            │
│            │            │          │       │       │ in bash    │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
variables_bash/bc6b6255: Creating test directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/
variables_bash/bc6b6255
variables_bash/bc6b6255: Creating the stage directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
vars/variables_bash/bc6b6255/stage
variables_bash/bc6b6255: Writing build script: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/var
iables_bash/bc6b6255/variables_bash_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
variables_bash/bc6b6255 does not have any dependencies adding test to queue
variables_bash/bc6b6255: Running Test via command: bash --norc --noprofile -eo 
pipefail variables_bash_build.sh
variables_bash/bc6b6255: Test completed in 0.009395 seconds
variables_bash/bc6b6255: Test completed with returncode: 0
variables_bash/bc6b6255: Writing output file -  /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/va
riables_bash/bc6b6255/variables_bash.out
variables_bash/bc6b6255: Writing error file - /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/vari
ables_bash/bc6b6255/variables_bash.err
In this iteration we are going to run the following tests: [variables_bash/bc6b6255]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ variables_ba │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.009395 │
│ sh/bc6b6255  │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 1/1 Percentage: 100.000%
Failed Tests: 0/1 Percentage: 0.000%


Adding 1 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_x1fwh5uu.log

Next let’s rerun the same command via buildtest build --rerun and take note that it will rerun same command as before

$ buildtest build --rerun
Reading content of rerun file /home/docs/checkouts/readthedocs.org/user_builds/b
uildtest/checkouts/stable/var/rerun.json all other options will be ignored.
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:53                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build --rerun                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/vars.yml: VALID
Total builder objects created: 1
Total compiler builder: 0
Total script builder: 1
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ variables… │ generic.l… │ None     │ None  │ None  │ Declare    │ /home/doc… │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ variables  │            │
│            │            │          │       │       │ in bash    │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
variables_bash/72f2971d: Creating test directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/
variables_bash/72f2971d
variables_bash/72f2971d: Creating the stage directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
vars/variables_bash/72f2971d/stage
variables_bash/72f2971d: Writing build script: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/var
iables_bash/72f2971d/variables_bash_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
variables_bash/72f2971d does not have any dependencies adding test to queue
variables_bash/72f2971d: Running Test via command: bash --norc --noprofile -eo 
pipefail variables_bash_build.sh
variables_bash/72f2971d: Test completed in 0.009188 seconds
variables_bash/72f2971d: Test completed with returncode: 0
variables_bash/72f2971d: Writing output file -  /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/va
riables_bash/72f2971d/variables_bash.out
variables_bash/72f2971d: Writing error file - /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/vari
ables_bash/72f2971d/variables_bash.err
In this iteration we are going to run the following tests: [variables_bash/72f2971d]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ variables_ba │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.009188 │
│ sh/72f2971d  │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 1/1 Percentage: 100.000%
Failed Tests: 0/1 Percentage: 0.000%


Adding 1 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest__64stx1h.log

If you pass additional options with --rerun it will simply be ignored. In this case -t python --stage=build will not be read by buildtest instead we will rerun same command.

$ buildtest build --rerun -t python --stage=build
Reading content of rerun file /home/docs/checkouts/readthedocs.org/user_builds/b
uildtest/checkouts/stable/var/rerun.json all other options will be ignored.
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:54                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build --rerun -t python --stage=build      │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/vars.yml: VALID
Total builder objects created: 1
Total compiler builder: 0
Total script builder: 1
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ variables… │ generic.l… │ None     │ None  │ None  │ Declare    │ /home/doc… │
│            │            │          │       │       │ shell      │            │
│            │            │          │       │       │ variables  │            │
│            │            │          │       │       │ in bash    │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
variables_bash/20b02c3d: Creating test directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/
variables_bash/20b02c3d
variables_bash/20b02c3d: Creating the stage directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/
vars/variables_bash/20b02c3d/stage
variables_bash/20b02c3d: Writing build script: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/var
iables_bash/20b02c3d/variables_bash_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
variables_bash/20b02c3d does not have any dependencies adding test to queue
variables_bash/20b02c3d: Running Test via command: bash --norc --noprofile -eo 
pipefail variables_bash_build.sh
variables_bash/20b02c3d: Test completed in 0.009329 seconds
variables_bash/20b02c3d: Test completed with returncode: 0
variables_bash/20b02c3d: Writing output file -  /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/va
riables_bash/20b02c3d/variables_bash.out
variables_bash/20b02c3d: Writing error file - /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/vars/vari
ables_bash/20b02c3d/variables_bash.err
In this iteration we are going to run the following tests: [variables_bash/20b02c3d]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ variables_ba │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.009329 │
│ sh/20b02c3d  │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 1/1 Percentage: 100.000%
Failed Tests: 0/1 Percentage: 0.000%


Adding 1 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_2y9xmgls.log

Note

The buildtest clean will erase all history of builds and if you run buildtest build --rerun will raise an exception

Specify Modules in command line

If your system supports modules such as environment-modules or Lmod you can specify a list of modules to load (module load) in the test via buildtest build --modules. You can specify a comma separated list of modules to load, for example if you want to load gcc and python module in your test you can run buildtest build --modules gcc,python. You may specify full name of module with version for instance you want test to load gcc/9.3.0 and python/3.7 you can run buildtest build --modules gcc/9.3.0,python/3.7.

If you want test to run module purge before running test you can specify buildtest build --module-purge option. If you specify --module-purge and --modules then module purge will be run prior to loading any modules.

Similarly, you can unload modules before running any test via buildtest build --unload-modules which is a list of modules to run module unload command and works similar to --modules option. Buildtest will unload modules before loading modules if both –modules and –unload-modules are specified. If –module-purge is also specified then we run module purge first before loading/unloading any modules.

Use Alternate Configuration file

If you want to use an alternate configuration file when building test you can use buildtest -c <config> build. buildtest will prefer configuration file on command line over the user configuration ($HOME/.buildtest/config.yml). For more details see Which configuration file does buildtest read?.

Keeping Stage Directory

buildtest will create setup the test environment in the stage directory where test will be executed. Once test is complete, buildtest will remove the stage directory. If you want to preserve the stage directory you can use buildtest build --keep-stage-dir, this is only useful if you want to run the test manually

Specify Project Account for batch jobs

For batch jobs you typically require one to specify a project account in order to charge jobs depending on your scheduler you can use buildtest build --account option and specify an account name. The command line argument --account will override configuration setting. For more details see Specifying Project Account

Test Timeout

Buildtest can terminate test based on timeout value specified via --timeout option which can be used to terminate long running test. The timeout is in seconds and value must be a positive integer which is applied to all test that are run via buildtest build command. If test exceeds the timeout value, then process will be terminated.

To demonstrate this behavior, we will run the following test with a timeout of 1 sec which is expected to fail. Take note of the test returncode of test.

$ buildtest build -b tutorials/sleep.yml --timeout 1
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:55                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b tutorials/sleep.yml --timeout 1   │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/sleep.yml: VALID
Total builder objects created: 1
Total compiler builder: 0
Total script builder: 1
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ sleep/7ca… │ generic.l… │ None     │ None  │ None  │ sleep 2    │ /home/doc… │
│            │            │          │       │       │ seconds    │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
sleep/7cab661c: Creating test directory: /home/docs/checkouts/readthedocs.org/us
er_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sleep/7c
ab661c
sleep/7cab661c: Creating the stage directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sle
ep/7cab661c/stage
sleep/7cab661c: Writing build script: /home/docs/checkouts/readthedocs.org/user_
builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sleep/7cab6
61c/sleep_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
sleep/7cab661c does not have any dependencies adding test to queue
sleep/7cab661c: Running Test via command: bash --norc --noprofile -eo pipefail 
sleep_build.sh
sleep/7cab661c: Test completed in 1.003486 seconds
sleep/7cab661c: Test completed with returncode: -9
sleep/7cab661c: Writing output file -  /home/docs/checkouts/readthedocs.org/user
_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sleep/7cab
661c/sleep.out
sleep/7cab661c: Writing error file - /home/docs/checkouts/readthedocs.org/user_b
uilds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sleep/7cab66
1c/sleep.err
In this iteration we are going to run the following tests: [sleep/7cab661c]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ sleep/7cab66 │ generic.loc… │ FAIL   │ N/A N/A N/A   │ -9         │ 1.003486 │
│ 1c           │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 0/1 Percentage: 0.000%
Failed Tests: 1/1 Percentage: 100.000%


Adding 1 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest__kzbx4uh.log

Now if we run this test with a higher timeout value we will see this test will pass, if no timeout is specified then test will run until completion.

$ buildtest build -b tutorials/sleep.yml --timeout 10
╭───────────────────────────── buildtest summary ──────────────────────────────╮
│                                                                              │
│ User:               docs                                                     │
│ Hostname:           build-17326553-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/07/01 00:38:56                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest                                            │
│ buildtest version:  0.15.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/stable/bin/python3                                                   │
│ python version:     3.7.13                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/buildtest/settings/config.yml                            │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/tests                                                │
│ Report File:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/var/report.json                                          │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/stable/bin/buildtest build -b tutorials/sleep.yml --timeout 10  │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ buildspec                                                                    ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable… ║
╚══════════════════════════════════════════════════════════════════════════════╝


Total Discovered Buildspecs:  1
Total Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Buildtest will parse 1 buildspecs
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/tuto
rials/sleep.yml: VALID
Total builder objects created: 1
Total compiler builder: 0
Total script builder: 1
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ builder    ┃ executor   ┃ compiler ┃ nodes ┃ procs ┃ descripti… ┃ buildspecs ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ sleep/4c7… │ generic.l… │ None     │ None  │ None  │ sleep 2    │ /home/doc… │
│            │            │          │       │       │ seconds    │            │
└────────────┴────────────┴──────────┴───────┴───────┴────────────┴────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
sleep/4c76426f: Creating test directory: /home/docs/checkouts/readthedocs.org/us
er_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sleep/4c
76426f
sleep/4c76426f: Creating the stage directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sle
ep/4c76426f/stage
sleep/4c76426f: Writing build script: /home/docs/checkouts/readthedocs.org/user_
builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sleep/4c764
26f/sleep_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
Spawning 1 processes for processing builders
───────────────────────────────── Iteration 1 ──────────────────────────────────
sleep/4c76426f does not have any dependencies adding test to queue
sleep/4c76426f: Running Test via command: bash --norc --noprofile -eo pipefail 
sleep_build.sh
sleep/4c76426f: Test completed in 2.020233 seconds
sleep/4c76426f: Test completed with returncode: 0
sleep/4c76426f: Writing output file -  /home/docs/checkouts/readthedocs.org/user
_builds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sleep/4c76
426f/sleep.out
sleep/4c76426f: Writing error file - /home/docs/checkouts/readthedocs.org/user_b
uilds/buildtest/checkouts/stable/var/tests/generic.local.bash/sleep/sleep/4c7642
6f/sleep.err
In this iteration we are going to run the following tests: [sleep/4c76426f]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ builder      ┃ executor     ┃ status ┃ Runtime)      ┃ returnCode ┃ runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ sleep/4c7642 │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 2.020233 │
│ 6f           │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



Passed Tests: 1/1 Percentage: 100.000%
Failed Tests: 0/1 Percentage: 0.000%


Adding 1 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/stable/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/stable/var/logs/buildtest_zy1ogb6c.log