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]
                                            [-f FILTER] [--helpfilter]
                                            [--account ACCOUNT]
                                            [--disable-executor-check] [-k]
                                            [--maxpendtime MAXPENDTIME]
                                            [--pollinterval POLLINTERVAL]
                                            [--rebuild REBUILD] [-r REPORT]
                                            [--retry RETRY] [-s {parse,build}]
                                            [--testdir TESTDIR]
                                            [--procs PROCS [PROCS ...]]
                                            [--nodes NODES [NODES ...]]

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

discover:
  select buildspecs

  -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

filter:
  Filter tests

  -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

extra:
  All extra options

  --account ACCOUNT     Specify project account used to charge batch jobs
                        (applicable for batch jobs only)
  --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.
  --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
  --rebuild REBUILD     Rebuild test X number of times. Must be a positive
                        number between [1-50]
  -r REPORT, --report REPORT
                        Specify a report file where tests will be written.
  --retry RETRY         Retry failed jobs
  -s {parse,build}, --stage {parse,build}
                        control behavior of buildtest build
  --testdir TESTDIR     Specify a custom test directory where to write tests.
                        This overrides configuration file and default
                        location.
  --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.

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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:04:39                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -b /home/docs/checkouts/readthedocs │
│ .org/user_builds/buildtest/checkouts/v0.13.0/tutorials/vars.yml              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  1
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/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          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ variables_bash/8f │ generic.local.bas │ Declare shell    │ /home/docs/checko │
│ a0348c            │ h                 │ variables in     │ uts/readthedocs.o │
│                   │                   │ bash             │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/vars.yml        │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
variables_bash/8fa0348c: Creating test directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars
/variables_bash/8fa0348c
variables_bash/8fa0348c: Creating the stage directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash
/vars/variables_bash/8fa0348c/stage
variables_bash/8fa0348c: Writing build script: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars/va
riables_bash/8fa0348c/variables_bash_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: variables_bash/8fa0348c
variables_bash/8fa0348c: Running Test via command: bash --norc --noprofile -eo 
pipefail variables_bash_build.sh
variables_bash/8fa0348c: Test completed with returncode: 0
variables_bash/8fa0348c: Test completed in 0.014538 seconds
variables_bash/8fa0348c: Writing output file -  /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars/v
ariables_bash/8fa0348c/variables_bash.out
variables_bash/8fa0348c: Writing error file - /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars/var
iables_bash/8fa0348c/variables_bash.err
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ Checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ Builder      ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ variables_ba │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.014538 │
│ sh/8fa0348c  │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



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/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_012phyp0.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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:15                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -b general_tests/configuration/     │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  4
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  4
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 4
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/gen
eral_tests/configuration/disk_usage.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/gen
eral_tests/configuration/ulimits.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/gen
eral_tests/configuration/kernel_state.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/gen
eral_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          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ root_disk_usage/e │ generic.local.bas │ Check root disk  │ /home/docs/checko │
│ 441b2aa           │ h                 │ usage and report │ uts/readthedocs.o │
│                   │                   │ if it exceeds    │ rg/user_builds/bu │
│                   │                   │ threshold        │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/disk_usage.yml │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_filelock_u │ generic.local.bas │ Check if file    │ /home/docs/checko │
│ nlimited/dea06ead │ h                 │ lock is set to   │ uts/readthedocs.o │
│                   │                   │ unlimited in     │ rg/user_builds/bu │
│                   │                   │ ulimits          │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_cputime_un │ generic.local.bas │ Check if cputime │ /home/docs/checko │
│ limited/f495b422  │ h                 │ is set to        │ uts/readthedocs.o │
│                   │                   │ unlimited in     │ rg/user_builds/bu │
│                   │                   │ ulimits          │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_stacksize_ │ generic.local.bas │ Check if stack   │ /home/docs/checko │
│ unlimited/5ee6213 │ h                 │ size is set to   │ uts/readthedocs.o │
│ 9                 │                   │ unlimited in     │ rg/user_builds/bu │
│                   │                   │ ulimits          │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_vmsize_unl │ generic.local.bas │ Check virtual    │ /home/docs/checko │
│ imited/5ee10347   │ h                 │ memory size and  │ uts/readthedocs.o │
│                   │                   │ check if its set │ rg/user_builds/bu │
│                   │                   │ to unlimited     │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_filedescri │ generic.local.bas │ Check if open    │ /home/docs/checko │
│ ptor_4096/87108c3 │ h                 │ file descriptors │ uts/readthedocs.o │
│ 5                 │                   │ limit is set to  │ rg/user_builds/bu │
│                   │                   │ 4096             │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_max_user_p │ generic.local.bas │ Check max number │ /home/docs/checko │
│ rocess_2048/9364d │ h                 │ of user process  │ uts/readthedocs.o │
│ d8c               │                   │ limit is set to  │ rg/user_builds/bu │
│                   │                   │ 2048             │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ kernel_swapusage/ │ generic.local.bas │ Retrieve Kernel  │ /home/docs/checko │
│ 08334721          │ h                 │ Swap Usage       │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/kernel_state.y │
│                   │                   │                  │ ml                │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ systemd_default_t │ generic.local.bas │ check if default │ /home/docs/checko │
│ arget/ab81e929    │ h                 │ target is multi- │ uts/readthedocs.o │
│                   │                   │ user.target      │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/systemd-defaul │
│                   │                   │                  │ t-target.yml      │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
root_disk_usage/e441b2aa: Creating test directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/dis
k_usage/root_disk_usage/e441b2aa
root_disk_usage/e441b2aa: Creating the stage directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/disk_usage/root_disk_usage/e441b2aa/stage
root_disk_usage/e441b2aa: Writing build script: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/disk_u
sage/root_disk_usage/e441b2aa/root_disk_usage_build.sh
ulimit_filelock_unlimited/dea06ead: Creating test directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/ulimits/ulimit_filelock_unlimited/dea06ead
ulimit_filelock_unlimited/dea06ead: Creating the stage directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic
.local.bash/ulimits/ulimit_filelock_unlimited/dea06ead/stage
ulimit_filelock_unlimited/dea06ead: Writing build script: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/ulimits/ulimit_filelock_unlimited/dea06ead/ulimit_filelock_unlimited_build.s
h
ulimit_cputime_unlimited/f495b422: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/ulimits/ulimit_cputime_unlimited/f495b422
ulimit_cputime_unlimited/f495b422: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.
local.bash/ulimits/ulimit_cputime_unlimited/f495b422/stage
ulimit_cputime_unlimited/f495b422: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/ulimits/ulimit_cputime_unlimited/f495b422/ulimit_cputime_unlimited_build.sh
ulimit_stacksize_unlimited/5ee62139: Creating test directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loc
al.bash/ulimits/ulimit_stacksize_unlimited/5ee62139
ulimit_stacksize_unlimited/5ee62139: Creating the stage directory: /home/docs/ch
eckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generi
c.local.bash/ulimits/ulimit_stacksize_unlimited/5ee62139/stage
ulimit_stacksize_unlimited/5ee62139: Writing build script: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/ulimits/ulimit_stacksize_unlimited/5ee62139/ulimit_stacksize_unlimited_buil
d.sh
ulimit_vmsize_unlimited/5ee10347: Creating test directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/ulimits/ulimit_vmsize_unlimited/5ee10347
ulimit_vmsize_unlimited/5ee10347: Creating the stage directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.l
ocal.bash/ulimits/ulimit_vmsize_unlimited/5ee10347/stage
ulimit_vmsize_unlimited/5ee10347: Writing build script: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/ulimits/ulimit_vmsize_unlimited/5ee10347/ulimit_vmsize_unlimited_build.sh
ulimit_filedescriptor_4096/87108c35: Creating test directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loc
al.bash/ulimits/ulimit_filedescriptor_4096/87108c35
ulimit_filedescriptor_4096/87108c35: Creating the stage directory: /home/docs/ch
eckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generi
c.local.bash/ulimits/ulimit_filedescriptor_4096/87108c35/stage
ulimit_filedescriptor_4096/87108c35: Writing build script: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/ulimits/ulimit_filedescriptor_4096/87108c35/ulimit_filedescriptor_4096_buil
d.sh
ulimit_max_user_process_2048/9364dd8c: Creating test directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.l
ocal.bash/ulimits/ulimit_max_user_process_2048/9364dd8c
ulimit_max_user_process_2048/9364dd8c: Creating the stage directory: /home/docs/
checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/gene
ric.local.bash/ulimits/ulimit_max_user_process_2048/9364dd8c/stage
ulimit_max_user_process_2048/9364dd8c: Writing build script: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/ulimits/ulimit_max_user_process_2048/9364dd8c/ulimit_max_user_process_204
8_build.sh
kernel_swapusage/08334721: Creating test directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/ke
rnel_state/kernel_swapusage/08334721
kernel_swapusage/08334721: Creating the stage directory: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/kernel_state/kernel_swapusage/08334721/stage
kernel_swapusage/08334721: Writing build script: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/kerne
l_state/kernel_swapusage/08334721/kernel_swapusage_build.sh
systemd_default_target/ab81e929: Creating test directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/systemd-default-target/systemd_default_target/ab81e929
systemd_default_target/ab81e929: Creating the stage directory: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.lo
cal.bash/systemd-default-target/systemd_default_target/ab81e929/stage
systemd_default_target/ab81e929: Writing build script: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash
/systemd-default-target/systemd_default_target/ab81e929/systemd_default_target_b
uild.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: root_disk_usage/e441b2aa
______________________________
Launching test: ulimit_filelock_unlimited/dea06ead
______________________________
Launching test: ulimit_cputime_unlimited/f495b422
______________________________
Launching test: ulimit_stacksize_unlimited/5ee62139
______________________________
Launching test: ulimit_vmsize_unlimited/5ee10347
______________________________
Launching test: ulimit_filedescriptor_4096/87108c35
root_disk_usage/e441b2aa: Running Test via command: bash --norc --noprofile -eo 
pipefail root_disk_usage_build.sh
______________________________
Launching test: ulimit_max_user_process_2048/9364dd8c
______________________________
Launching test: kernel_swapusage/08334721
______________________________
Launching test: systemd_default_target/ab81e929
ulimit_filelock_unlimited/dea06ead: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_filelock_unlimited_build.sh
ulimit_filelock_unlimited/dea06ead: Test completed with returncode: 0
ulimit_filelock_unlimited/dea06ead: Test completed in 0.025458 seconds
ulimit_filelock_unlimited/dea06ead: Writing output file -  /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/ulimits/ulimit_filelock_unlimited/dea06ead/ulimit_filelock_unlimited.out
ulimit_filelock_unlimited/dea06ead: Writing error file - /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/ulimits/ulimit_filelock_unlimited/dea06ead/ulimit_filelock_unlimited.err
ulimit_filelock_unlimited/dea06ead: performing regular expression - 
'^unlimited$' on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtes
t/checkouts/v0.13.0/var/tests/generic.local.bash/ulimits/ulimit_filelock_unlimit
ed/dea06ead/ulimit_filelock_unlimited.out
ulimit_filelock_unlimited/dea06ead: Regular Expression Match - Success!
root_disk_usage/e441b2aa: Test completed with returncode: 0
root_disk_usage/e441b2aa: Test completed in 0.05043 seconds
ulimit_cputime_unlimited/f495b422: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_cputime_unlimited_build.sh
root_disk_usage/e441b2aa: Writing output file -  /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/disk_
usage/root_disk_usage/e441b2aa/root_disk_usage.out
root_disk_usage/e441b2aa: Writing error file - /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/disk_us
age/root_disk_usage/e441b2aa/root_disk_usage.err
ulimit_stacksize_unlimited/5ee62139: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_stacksize_unlimited_build.sh
ulimit_cputime_unlimited/f495b422: Test completed with returncode: 0
ulimit_cputime_unlimited/f495b422: Test completed in 0.02248 seconds
ulimit_cputime_unlimited/f495b422: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/ulimits/ulimit_cputime_unlimited/f495b422/ulimit_cputime_unlimited.out
ulimit_cputime_unlimited/f495b422: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/ulimits/ulimit_cputime_unlimited/f495b422/ulimit_cputime_unlimited.err
ulimit_cputime_unlimited/f495b422: performing regular expression - '^unlimited$'
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0
.13.0/var/tests/generic.local.bash/ulimits/ulimit_cputime_unlimited/f495b422/uli
mit_cputime_unlimited.out
ulimit_cputime_unlimited/f495b422: Regular Expression Match - Success!
ulimit_stacksize_unlimited/5ee62139: Test completed with returncode: 0
ulimit_stacksize_unlimited/5ee62139: Test completed in 0.025696 seconds
ulimit_vmsize_unlimited/5ee10347: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_vmsize_unlimited_build.sh
ulimit_stacksize_unlimited/5ee62139: Writing output file -  /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/ulimits/ulimit_stacksize_unlimited/5ee62139/ulimit_stacksize_unlimited.out
ulimit_stacksize_unlimited/5ee62139: Writing error file - /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/ulimits/ulimit_stacksize_unlimited/5ee62139/ulimit_stacksize_unlimited.err
ulimit_stacksize_unlimited/5ee62139: performing regular expression - 
'^unlimited$' on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtes
t/checkouts/v0.13.0/var/tests/generic.local.bash/ulimits/ulimit_stacksize_unlimi
ted/5ee62139/ulimit_stacksize_unlimited.out
ulimit_stacksize_unlimited/5ee62139: Regular Expression Match - Failed!
ulimit_filedescriptor_4096/87108c35: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_filedescriptor_4096_build.sh
ulimit_vmsize_unlimited/5ee10347: Test completed with returncode: 0
ulimit_vmsize_unlimited/5ee10347: Test completed in 0.018511 seconds
ulimit_vmsize_unlimited/5ee10347: Writing output file -  /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/ulimits/ulimit_vmsize_unlimited/5ee10347/ulimit_vmsize_unlimited.out
ulimit_vmsize_unlimited/5ee10347: Writing error file - /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash
/ulimits/ulimit_vmsize_unlimited/5ee10347/ulimit_vmsize_unlimited.err
ulimit_vmsize_unlimited/5ee10347: performing regular expression - '^unlimited$' 
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0
.13.0/var/tests/generic.local.bash/ulimits/ulimit_vmsize_unlimited/5ee10347/ulim
it_vmsize_unlimited.out
ulimit_vmsize_unlimited/5ee10347: Regular Expression Match - Success!
ulimit_max_user_process_2048/9364dd8c: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_max_user_process_2048_build.sh
ulimit_filedescriptor_4096/87108c35: Test completed with returncode: 0
ulimit_filedescriptor_4096/87108c35: Test completed in 0.023145 seconds
ulimit_filedescriptor_4096/87108c35: Writing output file -  /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/ulimits/ulimit_filedescriptor_4096/87108c35/ulimit_filedescriptor_4096.out
ulimit_filedescriptor_4096/87108c35: Writing error file - /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/ulimits/ulimit_filedescriptor_4096/87108c35/ulimit_filedescriptor_4096.err
ulimit_filedescriptor_4096/87108c35: performing regular expression - '^4096$' on
file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13
.0/var/tests/generic.local.bash/ulimits/ulimit_filedescriptor_4096/87108c35/ulim
it_filedescriptor_4096.out
ulimit_filedescriptor_4096/87108c35: Regular Expression Match - Failed!
kernel_swapusage/08334721: Running Test via command: bash --norc --noprofile -eo
pipefail kernel_swapusage_build.sh
ulimit_max_user_process_2048/9364dd8c: Test completed with returncode: 0
ulimit_max_user_process_2048/9364dd8c: Test completed in 0.027786 seconds
ulimit_max_user_process_2048/9364dd8c: Writing output file -  /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loc
al.bash/ulimits/ulimit_max_user_process_2048/9364dd8c/ulimit_max_user_process_20
48.out
ulimit_max_user_process_2048/9364dd8c: Writing error file - /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/ulimits/ulimit_max_user_process_2048/9364dd8c/ulimit_max_user_process_2048
.err
ulimit_max_user_process_2048/9364dd8c: performing regular expression - '^2048$' 
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0
.13.0/var/tests/generic.local.bash/ulimits/ulimit_max_user_process_2048/9364dd8c
/ulimit_max_user_process_2048.out
ulimit_max_user_process_2048/9364dd8c: Regular Expression Match - Failed!
systemd_default_target/ab81e929: Running Test via command: bash --norc 
--noprofile -eo pipefail systemd_default_target_build.sh
kernel_swapusage/08334721: Test completed with returncode: 255
kernel_swapusage/08334721: Test completed in 0.092532 seconds
kernel_swapusage/08334721: Writing output file -  /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/kern
el_state/kernel_swapusage/08334721/kernel_swapusage.out
kernel_swapusage/08334721: Writing error file - /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/kernel
_state/kernel_swapusage/08334721/kernel_swapusage.err
systemd_default_target/ab81e929: Test completed with returncode: 1
systemd_default_target/ab81e929: Test completed in 0.104447 seconds
systemd_default_target/ab81e929: Writing output file -  /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/systemd-default-target/systemd_default_target/ab81e929/systemd_default_target.
out
systemd_default_target/ab81e929: Writing error file - /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
systemd-default-target/systemd_default_target/ab81e929/systemd_default_target.er
r
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ Checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ Builder      ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ root_disk_us │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.05043  │
│ age/e441b2aa │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_filel │ generic.loc… │ PASS   │ False True    │ 0          │ 0.025458 │
│ ock_unlimite │              │        │ False         │            │          │
│ d/dea06ead   │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_cputi │ generic.loc… │ PASS   │ False True    │ 0          │ 0.02248  │
│ me_unlimited │              │        │ False         │            │          │
│ /f495b422    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_stack │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.025696 │
│ size_unlimit │              │        │ False         │            │          │
│ ed/5ee62139  │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_vmsiz │ generic.loc… │ PASS   │ False True    │ 0          │ 0.018511 │
│ e_unlimited/ │              │        │ False         │            │          │
│ 5ee10347     │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_filed │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.023145 │
│ escriptor_40 │              │        │ False         │            │          │
│ 96/87108c35  │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_max_u │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.027786 │
│ ser_process_ │              │        │ False         │            │          │
│ 2048/9364dd8 │              │        │               │            │          │
│ c            │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ kernel_swapu │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 255        │ 0.092532 │
│ sage/0833472 │              │        │               │            │          │
│ 1            │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ systemd_defa │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.104447 │
│ ult_target/a │              │        │               │            │          │
│ b81e929      │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



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/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_pgcoqd7c.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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:16                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -b general_tests/configuration/ -b  │
│ tutorials/vars.yml                                                           │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  5
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  5
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 5
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/gen
eral_tests/configuration/kernel_state.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/gen
eral_tests/configuration/systemd-default-target.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/gen
eral_tests/configuration/disk_usage.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/vars.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/gen
eral_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          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ kernel_swapusage/ │ generic.local.bas │ Retrieve Kernel  │ /home/docs/checko │
│ 60a10212          │ h                 │ Swap Usage       │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/kernel_state.y │
│                   │                   │                  │ ml                │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ systemd_default_t │ generic.local.bas │ check if default │ /home/docs/checko │
│ arget/8bc031d3    │ h                 │ target is multi- │ uts/readthedocs.o │
│                   │                   │ user.target      │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/systemd-defaul │
│                   │                   │                  │ t-target.yml      │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ root_disk_usage/1 │ generic.local.bas │ Check root disk  │ /home/docs/checko │
│ 2cdb8fa           │ h                 │ usage and report │ uts/readthedocs.o │
│                   │                   │ if it exceeds    │ rg/user_builds/bu │
│                   │                   │ threshold        │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/disk_usage.yml │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ variables_bash/80 │ generic.local.bas │ Declare shell    │ /home/docs/checko │
│ 2f2b5e            │ h                 │ variables in     │ uts/readthedocs.o │
│                   │                   │ bash             │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/vars.yml        │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_filelock_u │ generic.local.bas │ Check if file    │ /home/docs/checko │
│ nlimited/e5589166 │ h                 │ lock is set to   │ uts/readthedocs.o │
│                   │                   │ unlimited in     │ rg/user_builds/bu │
│                   │                   │ ulimits          │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_cputime_un │ generic.local.bas │ Check if cputime │ /home/docs/checko │
│ limited/a89a341b  │ h                 │ is set to        │ uts/readthedocs.o │
│                   │                   │ unlimited in     │ rg/user_builds/bu │
│                   │                   │ ulimits          │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_stacksize_ │ generic.local.bas │ Check if stack   │ /home/docs/checko │
│ unlimited/cc020dd │ h                 │ size is set to   │ uts/readthedocs.o │
│ e                 │                   │ unlimited in     │ rg/user_builds/bu │
│                   │                   │ ulimits          │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_vmsize_unl │ generic.local.bas │ Check virtual    │ /home/docs/checko │
│ imited/b747d16a   │ h                 │ memory size and  │ uts/readthedocs.o │
│                   │                   │ check if its set │ rg/user_builds/bu │
│                   │                   │ to unlimited     │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_filedescri │ generic.local.bas │ Check if open    │ /home/docs/checko │
│ ptor_4096/3e03bcd │ h                 │ file descriptors │ uts/readthedocs.o │
│ c                 │                   │ limit is set to  │ rg/user_builds/bu │
│                   │                   │ 4096             │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ ulimit_max_user_p │ generic.local.bas │ Check max number │ /home/docs/checko │
│ rocess_2048/c075b │ h                 │ of user process  │ uts/readthedocs.o │
│ c2a               │                   │ limit is set to  │ rg/user_builds/bu │
│                   │                   │ 2048             │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/ulimits.yml    │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
kernel_swapusage/60a10212: Creating test directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/ke
rnel_state/kernel_swapusage/60a10212
kernel_swapusage/60a10212: Creating the stage directory: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/kernel_state/kernel_swapusage/60a10212/stage
kernel_swapusage/60a10212: Writing build script: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/kerne
l_state/kernel_swapusage/60a10212/kernel_swapusage_build.sh
systemd_default_target/8bc031d3: Creating test directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/systemd-default-target/systemd_default_target/8bc031d3
systemd_default_target/8bc031d3: Creating the stage directory: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.lo
cal.bash/systemd-default-target/systemd_default_target/8bc031d3/stage
systemd_default_target/8bc031d3: Writing build script: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash
/systemd-default-target/systemd_default_target/8bc031d3/systemd_default_target_b
uild.sh
root_disk_usage/12cdb8fa: Creating test directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/dis
k_usage/root_disk_usage/12cdb8fa
root_disk_usage/12cdb8fa: Creating the stage directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/disk_usage/root_disk_usage/12cdb8fa/stage
root_disk_usage/12cdb8fa: Writing build script: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/disk_u
sage/root_disk_usage/12cdb8fa/root_disk_usage_build.sh
variables_bash/802f2b5e: Creating test directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars
/variables_bash/802f2b5e
variables_bash/802f2b5e: Creating the stage directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash
/vars/variables_bash/802f2b5e/stage
variables_bash/802f2b5e: Writing build script: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars/va
riables_bash/802f2b5e/variables_bash_build.sh
ulimit_filelock_unlimited/e5589166: Creating test directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/ulimits/ulimit_filelock_unlimited/e5589166
ulimit_filelock_unlimited/e5589166: Creating the stage directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic
.local.bash/ulimits/ulimit_filelock_unlimited/e5589166/stage
ulimit_filelock_unlimited/e5589166: Writing build script: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/ulimits/ulimit_filelock_unlimited/e5589166/ulimit_filelock_unlimited_build.s
h
ulimit_cputime_unlimited/a89a341b: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/ulimits/ulimit_cputime_unlimited/a89a341b
ulimit_cputime_unlimited/a89a341b: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.
local.bash/ulimits/ulimit_cputime_unlimited/a89a341b/stage
ulimit_cputime_unlimited/a89a341b: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/ulimits/ulimit_cputime_unlimited/a89a341b/ulimit_cputime_unlimited_build.sh
ulimit_stacksize_unlimited/cc020dde: Creating test directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loc
al.bash/ulimits/ulimit_stacksize_unlimited/cc020dde
ulimit_stacksize_unlimited/cc020dde: Creating the stage directory: /home/docs/ch
eckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generi
c.local.bash/ulimits/ulimit_stacksize_unlimited/cc020dde/stage
ulimit_stacksize_unlimited/cc020dde: Writing build script: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/ulimits/ulimit_stacksize_unlimited/cc020dde/ulimit_stacksize_unlimited_buil
d.sh
ulimit_vmsize_unlimited/b747d16a: Creating test directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/ulimits/ulimit_vmsize_unlimited/b747d16a
ulimit_vmsize_unlimited/b747d16a: Creating the stage directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.l
ocal.bash/ulimits/ulimit_vmsize_unlimited/b747d16a/stage
ulimit_vmsize_unlimited/b747d16a: Writing build script: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/ulimits/ulimit_vmsize_unlimited/b747d16a/ulimit_vmsize_unlimited_build.sh
ulimit_filedescriptor_4096/3e03bcdc: Creating test directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loc
al.bash/ulimits/ulimit_filedescriptor_4096/3e03bcdc
ulimit_filedescriptor_4096/3e03bcdc: Creating the stage directory: /home/docs/ch
eckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generi
c.local.bash/ulimits/ulimit_filedescriptor_4096/3e03bcdc/stage
ulimit_filedescriptor_4096/3e03bcdc: Writing build script: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/ulimits/ulimit_filedescriptor_4096/3e03bcdc/ulimit_filedescriptor_4096_buil
d.sh
ulimit_max_user_process_2048/c075bc2a: Creating test directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.l
ocal.bash/ulimits/ulimit_max_user_process_2048/c075bc2a
ulimit_max_user_process_2048/c075bc2a: Creating the stage directory: /home/docs/
checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/gene
ric.local.bash/ulimits/ulimit_max_user_process_2048/c075bc2a/stage
ulimit_max_user_process_2048/c075bc2a: Writing build script: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/ulimits/ulimit_max_user_process_2048/c075bc2a/ulimit_max_user_process_204
8_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: kernel_swapusage/60a10212
______________________________
Launching test: systemd_default_target/8bc031d3
______________________________
Launching test: root_disk_usage/12cdb8fa
______________________________
Launching test: variables_bash/802f2b5e
______________________________
Launching test: ulimit_filelock_unlimited/e5589166
______________________________
Launching test: ulimit_cputime_unlimited/a89a341b
______________________________
Launching test: ulimit_stacksize_unlimited/cc020dde
______________________________
Launching test: ulimit_vmsize_unlimited/b747d16a
kernel_swapusage/60a10212: Running Test via command: bash --norc --noprofile -eo
pipefail kernel_swapusage_build.sh
______________________________
Launching test: ulimit_filedescriptor_4096/3e03bcdc
______________________________
Launching test: ulimit_max_user_process_2048/c075bc2a
systemd_default_target/8bc031d3: Running Test via command: bash --norc 
--noprofile -eo pipefail systemd_default_target_build.sh
kernel_swapusage/60a10212: Test completed with returncode: 255
kernel_swapusage/60a10212: Test completed in 0.032469 seconds
systemd_default_target/8bc031d3: Test completed with returncode: 1
systemd_default_target/8bc031d3: Test completed in 0.032099 seconds
kernel_swapusage/60a10212: Writing output file -  /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/kern
el_state/kernel_swapusage/60a10212/kernel_swapusage.out
kernel_swapusage/60a10212: Writing error file - /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/kernel
_state/kernel_swapusage/60a10212/kernel_swapusage.err
systemd_default_target/8bc031d3: Writing output file -  /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/systemd-default-target/systemd_default_target/8bc031d3/systemd_default_target.
out
systemd_default_target/8bc031d3: Writing error file - /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
systemd-default-target/systemd_default_target/8bc031d3/systemd_default_target.er
r
root_disk_usage/12cdb8fa: Running Test via command: bash --norc --noprofile -eo 
pipefail root_disk_usage_build.sh
variables_bash/802f2b5e: Running Test via command: bash --norc --noprofile -eo 
pipefail variables_bash_build.sh
root_disk_usage/12cdb8fa: Test completed with returncode: 0
variables_bash/802f2b5e: Test completed with returncode: 0
root_disk_usage/12cdb8fa: Test completed in 0.049611 seconds
variables_bash/802f2b5e: Test completed in 0.048165 seconds
root_disk_usage/12cdb8fa: Writing output file -  /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/disk_
usage/root_disk_usage/12cdb8fa/root_disk_usage.out
variables_bash/802f2b5e: Writing output file -  /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars/v
ariables_bash/802f2b5e/variables_bash.out
root_disk_usage/12cdb8fa: Writing error file - /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/disk_us
age/root_disk_usage/12cdb8fa/root_disk_usage.err
variables_bash/802f2b5e: Writing error file - /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars/var
iables_bash/802f2b5e/variables_bash.err
ulimit_filelock_unlimited/e5589166: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_filelock_unlimited_build.sh
ulimit_cputime_unlimited/a89a341b: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_cputime_unlimited_build.sh
ulimit_filelock_unlimited/e5589166: Test completed with returncode: 0
ulimit_filelock_unlimited/e5589166: Test completed in 0.02169 seconds
ulimit_filelock_unlimited/e5589166: Writing output file -  /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/ulimits/ulimit_filelock_unlimited/e5589166/ulimit_filelock_unlimited.out
ulimit_filelock_unlimited/e5589166: Writing error file - /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/ulimits/ulimit_filelock_unlimited/e5589166/ulimit_filelock_unlimited.err
ulimit_cputime_unlimited/a89a341b: Test completed with returncode: 0
ulimit_cputime_unlimited/a89a341b: Test completed in 0.024447 seconds
ulimit_filelock_unlimited/e5589166: performing regular expression - 
'^unlimited$' on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtes
t/checkouts/v0.13.0/var/tests/generic.local.bash/ulimits/ulimit_filelock_unlimit
ed/e5589166/ulimit_filelock_unlimited.out
ulimit_filelock_unlimited/e5589166: Regular Expression Match - Success!
ulimit_cputime_unlimited/a89a341b: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/ulimits/ulimit_cputime_unlimited/a89a341b/ulimit_cputime_unlimited.out
ulimit_cputime_unlimited/a89a341b: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/ulimits/ulimit_cputime_unlimited/a89a341b/ulimit_cputime_unlimited.err
ulimit_cputime_unlimited/a89a341b: performing regular expression - '^unlimited$'
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0
.13.0/var/tests/generic.local.bash/ulimits/ulimit_cputime_unlimited/a89a341b/uli
mit_cputime_unlimited.out
ulimit_cputime_unlimited/a89a341b: Regular Expression Match - Success!
ulimit_stacksize_unlimited/cc020dde: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_stacksize_unlimited_build.sh
ulimit_vmsize_unlimited/b747d16a: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_vmsize_unlimited_build.sh
ulimit_stacksize_unlimited/cc020dde: Test completed with returncode: 0
ulimit_stacksize_unlimited/cc020dde: Test completed in 0.024804 seconds
ulimit_vmsize_unlimited/b747d16a: Test completed with returncode: 0
ulimit_stacksize_unlimited/cc020dde: Writing output file -  /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/ulimits/ulimit_stacksize_unlimited/cc020dde/ulimit_stacksize_unlimited.out
ulimit_vmsize_unlimited/b747d16a: Test completed in 0.021444 seconds
ulimit_stacksize_unlimited/cc020dde: Writing error file - /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/ulimits/ulimit_stacksize_unlimited/cc020dde/ulimit_stacksize_unlimited.err
ulimit_stacksize_unlimited/cc020dde: performing regular expression - 
'^unlimited$' on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtes
t/checkouts/v0.13.0/var/tests/generic.local.bash/ulimits/ulimit_stacksize_unlimi
ted/cc020dde/ulimit_stacksize_unlimited.out
ulimit_stacksize_unlimited/cc020dde: Regular Expression Match - Failed!
ulimit_vmsize_unlimited/b747d16a: Writing output file -  /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/ulimits/ulimit_vmsize_unlimited/b747d16a/ulimit_vmsize_unlimited.out
ulimit_vmsize_unlimited/b747d16a: Writing error file - /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash
/ulimits/ulimit_vmsize_unlimited/b747d16a/ulimit_vmsize_unlimited.err
ulimit_vmsize_unlimited/b747d16a: performing regular expression - '^unlimited$' 
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0
.13.0/var/tests/generic.local.bash/ulimits/ulimit_vmsize_unlimited/b747d16a/ulim
it_vmsize_unlimited.out
ulimit_vmsize_unlimited/b747d16a: Regular Expression Match - Success!
ulimit_filedescriptor_4096/3e03bcdc: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_filedescriptor_4096_build.sh
ulimit_filedescriptor_4096/3e03bcdc: Test completed with returncode: 0
ulimit_filedescriptor_4096/3e03bcdc: Test completed in 0.008187 seconds
ulimit_filedescriptor_4096/3e03bcdc: Writing output file -  /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/ulimits/ulimit_filedescriptor_4096/3e03bcdc/ulimit_filedescriptor_4096.out
ulimit_filedescriptor_4096/3e03bcdc: Writing error file - /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/ulimits/ulimit_filedescriptor_4096/3e03bcdc/ulimit_filedescriptor_4096.err
ulimit_filedescriptor_4096/3e03bcdc: performing regular expression - '^4096$' on
file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13
.0/var/tests/generic.local.bash/ulimits/ulimit_filedescriptor_4096/3e03bcdc/ulim
it_filedescriptor_4096.out
ulimit_filedescriptor_4096/3e03bcdc: Regular Expression Match - Failed!
ulimit_max_user_process_2048/c075bc2a: Running Test via command: bash --norc 
--noprofile -eo pipefail ulimit_max_user_process_2048_build.sh
ulimit_max_user_process_2048/c075bc2a: Test completed with returncode: 0
ulimit_max_user_process_2048/c075bc2a: Test completed in 0.015304 seconds
ulimit_max_user_process_2048/c075bc2a: Writing output file -  /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loc
al.bash/ulimits/ulimit_max_user_process_2048/c075bc2a/ulimit_max_user_process_20
48.out
ulimit_max_user_process_2048/c075bc2a: Writing error file - /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/ulimits/ulimit_max_user_process_2048/c075bc2a/ulimit_max_user_process_2048
.err
ulimit_max_user_process_2048/c075bc2a: performing regular expression - '^2048$' 
on file: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0
.13.0/var/tests/generic.local.bash/ulimits/ulimit_max_user_process_2048/c075bc2a
/ulimit_max_user_process_2048.out
ulimit_max_user_process_2048/c075bc2a: Regular Expression Match - Failed!
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ Checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ Builder      ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ kernel_swapu │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 255        │ 0.032469 │
│ sage/60a1021 │              │        │               │            │          │
│ 2            │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ systemd_defa │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.032099 │
│ ult_target/8 │              │        │               │            │          │
│ bc031d3      │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ root_disk_us │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.049611 │
│ age/12cdb8fa │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ variables_ba │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.048165 │
│ sh/802f2b5e  │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_filel │ generic.loc… │ PASS   │ False True    │ 0          │ 0.02169  │
│ ock_unlimite │              │        │ False         │            │          │
│ d/e5589166   │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_cputi │ generic.loc… │ PASS   │ False True    │ 0          │ 0.024447 │
│ me_unlimited │              │        │ False         │            │          │
│ /a89a341b    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_stack │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.024804 │
│ size_unlimit │              │        │ False         │            │          │
│ ed/cc020dde  │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_vmsiz │ generic.loc… │ PASS   │ False True    │ 0          │ 0.021444 │
│ e_unlimited/ │              │        │ False         │            │          │
│ b747d16a     │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_filed │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.008187 │
│ escriptor_40 │              │        │ False         │            │          │
│ 96/3e03bcdc  │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ ulimit_max_u │ generic.loc… │ FAIL   │ False False   │ 0          │ 0.015304 │
│ ser_process_ │              │        │ False         │            │          │
│ 2048/c075bc2 │              │        │               │            │          │
│ a            │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



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/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_xjh4latq.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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:17                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:18                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest bd -b general_tests/configuration/ -x     │
│ general_tests/configuration/ulimits.yml                                      │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  4
Excluded Buildspecs:  1
Detected Buildspecs after exclusion:  3
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                              Excluded buildspecs                               
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 3
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/gen
eral_tests/configuration/disk_usage.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/gen
eral_tests/configuration/kernel_state.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/gen
eral_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          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ root_disk_usage/e │ generic.local.bas │ Check root disk  │ /home/docs/checko │
│ 33e442a           │ h                 │ usage and report │ uts/readthedocs.o │
│                   │                   │ if it exceeds    │ rg/user_builds/bu │
│                   │                   │ threshold        │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/disk_usage.yml │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ kernel_swapusage/ │ generic.local.bas │ Retrieve Kernel  │ /home/docs/checko │
│ 1390babc          │ h                 │ Swap Usage       │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/kernel_state.y │
│                   │                   │                  │ ml                │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ systemd_default_t │ generic.local.bas │ check if default │ /home/docs/checko │
│ arget/3c0e9521    │ h                 │ target is multi- │ uts/readthedocs.o │
│                   │                   │ user.target      │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/general_ │
│                   │                   │                  │ tests/configurati │
│                   │                   │                  │ on/systemd-defaul │
│                   │                   │                  │ t-target.yml      │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
root_disk_usage/e33e442a: Creating test directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/dis
k_usage/root_disk_usage/e33e442a
root_disk_usage/e33e442a: Creating the stage directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/disk_usage/root_disk_usage/e33e442a/stage
root_disk_usage/e33e442a: Writing build script: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/disk_u
sage/root_disk_usage/e33e442a/root_disk_usage_build.sh
kernel_swapusage/1390babc: Creating test directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/ke
rnel_state/kernel_swapusage/1390babc
kernel_swapusage/1390babc: Creating the stage directory: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/kernel_state/kernel_swapusage/1390babc/stage
kernel_swapusage/1390babc: Writing build script: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/kerne
l_state/kernel_swapusage/1390babc/kernel_swapusage_build.sh
systemd_default_target/3c0e9521: Creating test directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/systemd-default-target/systemd_default_target/3c0e9521
systemd_default_target/3c0e9521: Creating the stage directory: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.lo
cal.bash/systemd-default-target/systemd_default_target/3c0e9521/stage
systemd_default_target/3c0e9521: Writing build script: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash
/systemd-default-target/systemd_default_target/3c0e9521/systemd_default_target_b
uild.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: root_disk_usage/e33e442a
______________________________
Launching test: kernel_swapusage/1390babc
______________________________
Launching test: systemd_default_target/3c0e9521
kernel_swapusage/1390babc: Running Test via command: bash --norc --noprofile -eo
pipefail kernel_swapusage_build.sh
root_disk_usage/e33e442a: Running Test via command: bash --norc --noprofile -eo 
pipefail root_disk_usage_build.sh
kernel_swapusage/1390babc: Test completed with returncode: 255
kernel_swapusage/1390babc: Test completed in 0.029661 seconds
kernel_swapusage/1390babc: Writing output file -  /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/kern
el_state/kernel_swapusage/1390babc/kernel_swapusage.out
kernel_swapusage/1390babc: Writing error file - /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/kernel
_state/kernel_swapusage/1390babc/kernel_swapusage.err
root_disk_usage/e33e442a: Test completed with returncode: 0
root_disk_usage/e33e442a: Test completed in 0.038823 seconds
systemd_default_target/3c0e9521: Running Test via command: bash --norc 
--noprofile -eo pipefail systemd_default_target_build.sh
root_disk_usage/e33e442a: Writing output file -  /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/disk_
usage/root_disk_usage/e33e442a/root_disk_usage.out
root_disk_usage/e33e442a: Writing error file - /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/disk_us
age/root_disk_usage/e33e442a/root_disk_usage.err
systemd_default_target/3c0e9521: Test completed with returncode: 1
systemd_default_target/3c0e9521: Test completed in 0.012425 seconds
systemd_default_target/3c0e9521: Writing output file -  /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/systemd-default-target/systemd_default_target/3c0e9521/systemd_default_target.
out
systemd_default_target/3c0e9521: Writing error file - /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
systemd-default-target/systemd_default_target/3c0e9521/systemd_default_target.er
r
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ Checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ Builder      ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ root_disk_us │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.038823 │
│ age/e33e442a │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ kernel_swapu │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 255        │ 0.029661 │
│ sage/1390bab │              │        │               │            │          │
│ c            │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ systemd_defa │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.012425 │
│ ult_target/3 │              │        │               │            │          │
│ c0e9521      │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



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/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_kbe3ku0q.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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:18                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -t network                          │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  1
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                           Buildspecs By Tag=network                            
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/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          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ string_tag/de9d8c │ generic.local.bas │ tags can be a    │ /home/docs/checko │
│ 10                │ h                 │ string           │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/tags_example.ym │
│                   │                   │                  │ l                 │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ list_of_strings_t │ generic.local.bas │ tags can be a    │ /home/docs/checko │
│ ags/1c84633b      │ h                 │ list of strings  │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/tags_example.ym │
│                   │                   │                  │ l                 │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
string_tag/de9d8c10: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/tags_exa
mple/string_tag/de9d8c10
string_tag/de9d8c10: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/tag
s_example/string_tag/de9d8c10/stage
string_tag/de9d8c10: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/tags_exampl
e/string_tag/de9d8c10/string_tag_build.sh
list_of_strings_tags/1c84633b: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/tags_example/list_of_strings_tags/1c84633b
list_of_strings_tags/1c84633b: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/tags_example/list_of_strings_tags/1c84633b/stage
list_of_strings_tags/1c84633b: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/t
ags_example/list_of_strings_tags/1c84633b/list_of_strings_tags_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: string_tag/de9d8c10
______________________________
Launching test: list_of_strings_tags/1c84633b
string_tag/de9d8c10: Running Test via command: bash --norc --noprofile -eo 
pipefail string_tag_build.sh
list_of_strings_tags/1c84633b: Running Test via command: bash --norc --noprofile
-eo pipefail list_of_strings_tags_build.sh
string_tag/de9d8c10: Test completed with returncode: 0
string_tag/de9d8c10: Test completed in 0.030317 seconds
string_tag/de9d8c10: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/tags_examp
le/string_tag/de9d8c10/string_tag.out
string_tag/de9d8c10: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/tags_example
/string_tag/de9d8c10/string_tag.err
list_of_strings_tags/1c84633b: Test completed with returncode: 0
list_of_strings_tags/1c84633b: Test completed in 3.054186 seconds
list_of_strings_tags/1c84633b: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
tags_example/list_of_strings_tags/1c84633b/list_of_strings_tags.out
list_of_strings_tags/1c84633b: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/ta
gs_example/list_of_strings_tags/1c84633b/list_of_strings_tags.err
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ Checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ Builder      ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ string_tag/d │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.030317 │
│ e9d8c10      │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ list_of_stri │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 3.054186 │
│ ngs_tags/1c8 │              │        │               │            │          │
│ 4633b        │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



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/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_wax5g0ej.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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:22                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -t python -t pass                   │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  3
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  3
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                            Buildspecs By Tag=python                            
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13… ║
║  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                             Buildspecs By Tag=pass                             
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 3
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/python-shell.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/python-hello.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/pass_returncode.yml: VALID
Total builder objects created: 6
Total compiler builder: 0
Total script builder: 6
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓
┃ Builder           ┃ Executor          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ circle_area/fc938 │ generic.local.bas │ Calculate circle │ /home/docs/checko │
│ 63b               │ h                 │ of area given a  │ uts/readthedocs.o │
│                   │                   │ radius           │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/python-shell.ym │
│                   │                   │                  │ l                 │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ python_hello/093d │ generic.local.bas │ Hello World      │ /home/docs/checko │
│ 2ac6              │ h                 │ python           │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/python-hello.ym │
│                   │                   │                  │ l                 │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ exit1_fail/7f744a │ generic.local.bas │ exit 1 by        │ /home/docs/checko │
│ 3a                │ h                 │ default is FAIL  │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ exit1_pass/8ee81b │ generic.local.bas │ report exit 1 as │ /home/docs/checko │
│ 79                │ h                 │ PASS             │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ returncode_list_m │ generic.local.bas │ exit 2 failed    │ /home/docs/checko │
│ ismatch/c332505e  │ h                 │ since it failed  │ uts/readthedocs.o │
│                   │                   │ to match         │ rg/user_builds/bu │
│                   │                   │ returncode 1     │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ returncode_int_ma │ generic.local.bas │ exit 128 matches │ /home/docs/checko │
│ tch/2282baf6      │ h                 │ returncode 128   │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
circle_area/fc93863b: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-
shell/circle_area/fc93863b
circle_area/fc93863b: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/py
thon-shell/circle_area/fc93863b/stage
circle_area/fc93863b: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-she
ll/circle_area/fc93863b/circle_area_build.sh
python_hello/093d2ac6: Creating test directory: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python
-hello/python_hello/093d2ac6
python_hello/093d2ac6: Creating the stage directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/p
ython-hello/python_hello/093d2ac6/stage
python_hello/093d2ac6: Writing build script: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-he
llo/python_hello/093d2ac6/python_hello_build.sh
exit1_fail/7f744a3a: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_ret
urncode/exit1_fail/7f744a3a
exit1_fail/7f744a3a: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pas
s_returncode/exit1_fail/7f744a3a/stage
exit1_fail/7f744a3a: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_return
code/exit1_fail/7f744a3a/exit1_fail_build.sh
exit1_pass/8ee81b79: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_ret
urncode/exit1_pass/8ee81b79
exit1_pass/8ee81b79: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pas
s_returncode/exit1_pass/8ee81b79/stage
exit1_pass/8ee81b79: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_return
code/exit1_pass/8ee81b79/exit1_pass_build.sh
returncode_list_mismatch/c332505e: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/pass_returncode/returncode_list_mismatch/c332505e
returncode_list_mismatch/c332505e: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.
local.bash/pass_returncode/returncode_list_mismatch/c332505e/stage
returncode_list_mismatch/c332505e: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/pass_returncode/returncode_list_mismatch/c332505e/returncode_list_mismatch_bu
ild.sh
returncode_int_match/2282baf6: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/pass_returncode/returncode_int_match/2282baf6
returncode_int_match/2282baf6: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/pass_returncode/returncode_int_match/2282baf6/stage
returncode_int_match/2282baf6: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/p
ass_returncode/returncode_int_match/2282baf6/returncode_int_match_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: circle_area/fc93863b
______________________________
Launching test: python_hello/093d2ac6
______________________________
Launching test: exit1_fail/7f744a3a
______________________________
Launching test: exit1_pass/8ee81b79
______________________________
Launching test: returncode_list_mismatch/c332505e
______________________________
Launching test: returncode_int_match/2282baf6
circle_area/fc93863b: Running Test via command: bash --norc --noprofile -eo 
pipefail circle_area_build.sh
python_hello/093d2ac6: Running Test via command: bash --norc --noprofile -eo 
pipefail python_hello_build.sh
circle_area/fc93863b: Test completed with returncode: 0
circle_area/fc93863b: Test completed in 0.095116 seconds
circle_area/fc93863b: Writing output file -  /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-sh
ell/circle_area/fc93863b/circle_area.out
circle_area/fc93863b: Writing error file - /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-shel
l/circle_area/fc93863b/circle_area.err
exit1_fail/7f744a3a: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_fail_build.sh
python_hello/093d2ac6: Test completed with returncode: 0
python_hello/093d2ac6: Test completed in 0.115529 seconds
python_hello/093d2ac6: Writing output file -  /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-h
ello/python_hello/093d2ac6/python_hello.out
python_hello/093d2ac6: Writing error file - /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-hel
lo/python_hello/093d2ac6/python_hello.err
exit1_fail/7f744a3a: Test completed with returncode: 1
exit1_fail/7f744a3a: Test completed in 0.02082 seconds
exit1_pass/8ee81b79: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_pass_build.sh
exit1_fail/7f744a3a: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_retur
ncode/exit1_fail/7f744a3a/exit1_fail.out
exit1_fail/7f744a3a: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_returnc
ode/exit1_fail/7f744a3a/exit1_fail.err
returncode_list_mismatch/c332505e: Running Test via command: bash --norc 
--noprofile -eo pipefail returncode_list_mismatch_build.sh
exit1_pass/8ee81b79: Test completed with returncode: 1
exit1_pass/8ee81b79: Test completed in 0.011957 seconds
exit1_pass/8ee81b79: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_retur
ncode/exit1_pass/8ee81b79/exit1_pass.out
exit1_pass/8ee81b79: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_returnc
ode/exit1_pass/8ee81b79/exit1_pass.err
exit1_pass/8ee81b79: Checking returncode - 1 is matched in list [1]
returncode_int_match/2282baf6: Running Test via command: bash --norc --noprofile
-eo pipefail returncode_int_match_build.sh
returncode_list_mismatch/c332505e: Test completed with returncode: 2
returncode_list_mismatch/c332505e: Test completed in 0.021699 seconds
returncode_int_match/2282baf6: Test completed with returncode: 128
returncode_int_match/2282baf6: Test completed in 0.009403 seconds
returncode_list_mismatch/c332505e: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/pass_returncode/returncode_list_mismatch/c332505e/returncode_list_mismatch.o
ut
returncode_int_match/2282baf6: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
pass_returncode/returncode_int_match/2282baf6/returncode_int_match.out
returncode_list_mismatch/c332505e: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/pass_returncode/returncode_list_mismatch/c332505e/returncode_list_mismatch.err
returncode_int_match/2282baf6: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pa
ss_returncode/returncode_int_match/2282baf6/returncode_int_match.err
returncode_list_mismatch/c332505e: Checking returncode - 2 is matched in list 
[1, 3]
returncode_int_match/2282baf6: Checking returncode - 128 is matched in list 
[128]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ Checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ Builder      ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ python_hello │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.115529 │
│ /093d2ac6    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_fail/7 │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.02082  │
│ f744a3a      │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_pass/8 │ generic.loc… │ PASS   │ True False    │ 1          │ 0.011957 │
│ ee81b79      │              │        │ False         │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_l │ generic.loc… │ FAIL   │ False False   │ 2          │ 0.021699 │
│ ist_mismatch │              │        │ False         │            │          │
│ /c332505e    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_i │ generic.loc… │ PASS   │ True False    │ 128        │ 0.009403 │
│ nt_match/228 │              │        │ False         │            │          │
│ 2baf6        │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ circle_area/ │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.095116 │
│ fc93863b     │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



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/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_mcr4h4dd.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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:23                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build --tags pass --buildspec             │
│ tutorials/python-hello.yml                                                   │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  2
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  2
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                             Buildspecs By Tag=pass                             
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 2
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/pass_returncode.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/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          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ exit1_fail/212cb2 │ generic.local.bas │ exit 1 by        │ /home/docs/checko │
│ 37                │ h                 │ default is FAIL  │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ exit1_pass/3e56b2 │ generic.local.bas │ report exit 1 as │ /home/docs/checko │
│ d6                │ h                 │ PASS             │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ returncode_list_m │ generic.local.bas │ exit 2 failed    │ /home/docs/checko │
│ ismatch/292ec7a6  │ h                 │ since it failed  │ uts/readthedocs.o │
│                   │                   │ to match         │ rg/user_builds/bu │
│                   │                   │ returncode 1     │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ returncode_int_ma │ generic.local.bas │ exit 128 matches │ /home/docs/checko │
│ tch/92d01c80      │ h                 │ returncode 128   │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ python_hello/41e1 │ generic.local.bas │ Hello World      │ /home/docs/checko │
│ a8b3              │ h                 │ python           │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/python-hello.ym │
│                   │                   │                  │ l                 │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
exit1_fail/212cb237: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_ret
urncode/exit1_fail/212cb237
exit1_fail/212cb237: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pas
s_returncode/exit1_fail/212cb237/stage
exit1_fail/212cb237: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_return
code/exit1_fail/212cb237/exit1_fail_build.sh
exit1_pass/3e56b2d6: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_ret
urncode/exit1_pass/3e56b2d6
exit1_pass/3e56b2d6: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pas
s_returncode/exit1_pass/3e56b2d6/stage
exit1_pass/3e56b2d6: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_return
code/exit1_pass/3e56b2d6/exit1_pass_build.sh
returncode_list_mismatch/292ec7a6: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/pass_returncode/returncode_list_mismatch/292ec7a6
returncode_list_mismatch/292ec7a6: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.
local.bash/pass_returncode/returncode_list_mismatch/292ec7a6/stage
returncode_list_mismatch/292ec7a6: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/pass_returncode/returncode_list_mismatch/292ec7a6/returncode_list_mismatch_bu
ild.sh
returncode_int_match/92d01c80: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/pass_returncode/returncode_int_match/92d01c80
returncode_int_match/92d01c80: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/pass_returncode/returncode_int_match/92d01c80/stage
returncode_int_match/92d01c80: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/p
ass_returncode/returncode_int_match/92d01c80/returncode_int_match_build.sh
python_hello/41e1a8b3: Creating test directory: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python
-hello/python_hello/41e1a8b3
python_hello/41e1a8b3: Creating the stage directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/p
ython-hello/python_hello/41e1a8b3/stage
python_hello/41e1a8b3: Writing build script: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-he
llo/python_hello/41e1a8b3/python_hello_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: exit1_fail/212cb237
______________________________
Launching test: exit1_pass/3e56b2d6
______________________________
Launching test: returncode_list_mismatch/292ec7a6
______________________________
Launching test: returncode_int_match/92d01c80
______________________________
Launching test: python_hello/41e1a8b3
exit1_fail/212cb237: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_fail_build.sh
exit1_pass/3e56b2d6: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_pass_build.sh
exit1_fail/212cb237: Test completed with returncode: 1
exit1_fail/212cb237: Test completed in 0.021395 seconds
exit1_fail/212cb237: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_retur
ncode/exit1_fail/212cb237/exit1_fail.out
exit1_fail/212cb237: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_returnc
ode/exit1_fail/212cb237/exit1_fail.err
exit1_pass/3e56b2d6: Test completed with returncode: 1
exit1_pass/3e56b2d6: Test completed in 0.027434 seconds
returncode_list_mismatch/292ec7a6: Running Test via command: bash --norc 
--noprofile -eo pipefail returncode_list_mismatch_build.sh
exit1_pass/3e56b2d6: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_retur
ncode/exit1_pass/3e56b2d6/exit1_pass.out
exit1_pass/3e56b2d6: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_returnc
ode/exit1_pass/3e56b2d6/exit1_pass.err
exit1_pass/3e56b2d6: Checking returncode - 1 is matched in list [1]
returncode_int_match/92d01c80: Running Test via command: bash --norc --noprofile
-eo pipefail returncode_int_match_build.sh
returncode_list_mismatch/292ec7a6: Test completed with returncode: 2
returncode_list_mismatch/292ec7a6: Test completed in 0.020576 seconds
returncode_list_mismatch/292ec7a6: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/pass_returncode/returncode_list_mismatch/292ec7a6/returncode_list_mismatch.o
ut
returncode_int_match/92d01c80: Test completed with returncode: 128
returncode_list_mismatch/292ec7a6: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/pass_returncode/returncode_list_mismatch/292ec7a6/returncode_list_mismatch.err
returncode_int_match/92d01c80: Test completed in 0.020406 seconds
returncode_list_mismatch/292ec7a6: Checking returncode - 2 is matched in list 
[1, 3]
returncode_int_match/92d01c80: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
pass_returncode/returncode_int_match/92d01c80/returncode_int_match.out
python_hello/41e1a8b3: Running Test via command: bash --norc --noprofile -eo 
pipefail python_hello_build.sh
returncode_int_match/92d01c80: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pa
ss_returncode/returncode_int_match/92d01c80/returncode_int_match.err
returncode_int_match/92d01c80: Checking returncode - 128 is matched in list 
[128]
python_hello/41e1a8b3: Test completed with returncode: 0
python_hello/41e1a8b3: Test completed in 0.046966 seconds
python_hello/41e1a8b3: Writing output file -  /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-h
ello/python_hello/41e1a8b3/python_hello.out
python_hello/41e1a8b3: Writing error file - /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-hel
lo/python_hello/41e1a8b3/python_hello.err
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ Checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ Builder      ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ exit1_fail/2 │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.021395 │
│ 12cb237      │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_pass/3 │ generic.loc… │ PASS   │ True False    │ 1          │ 0.027434 │
│ e56b2d6      │              │        │ False         │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_l │ generic.loc… │ FAIL   │ False False   │ 2          │ 0.020576 │
│ ist_mismatch │              │        │ False         │            │          │
│ /292ec7a6    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_i │ generic.loc… │ PASS   │ True False    │ 128        │ 0.020406 │
│ nt_match/92d │              │        │ False         │            │          │
│ 01c80        │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ python_hello │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.046966 │
│ /41e1a8b3    │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



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/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_sxd_yu8f.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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:24                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build --executor generic.local.csh        │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  2
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  2
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                    Buildspecs by Executor=generic.local.csh                    
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 2
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/environment.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/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          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ bash_env_variable │ generic.local.bas │ Declare          │ /home/docs/checko │
│ s/a7b4ddd7        │ h                 │ environment      │ uts/readthedocs.o │
│                   │                   │ variables in     │ rg/user_builds/bu │
│                   │                   │ default shell    │ ildtest/checkouts │
│                   │                   │ (bash)           │ /v0.13.0/tutorial │
│                   │                   │                  │ s/environment.yml │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ csh_env_declarati │ generic.local.csh │ csh shell        │ /home/docs/checko │
│ on/8c8d769c       │                   │ example to       │ uts/readthedocs.o │
│                   │                   │ declare          │ rg/user_builds/bu │
│                   │                   │ environment      │ ildtest/checkouts │
│                   │                   │ variables        │ /v0.13.0/tutorial │
│                   │                   │                  │ s/environment.yml │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ tcsh_env_declarat │ generic.local.csh │ tcsh shell       │ /home/docs/checko │
│ ion/5a5c84c8      │                   │ example to       │ uts/readthedocs.o │
│                   │                   │ declare          │ rg/user_builds/bu │
│                   │                   │ environment      │ ildtest/checkouts │
│                   │                   │ variables        │ /v0.13.0/tutorial │
│                   │                   │                  │ s/environment.yml │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ csh_shell/f9a9437 │ generic.local.csh │ csh shell        │ /home/docs/checko │
│ 6                 │                   │ example          │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/csh_shell_examp │
│                   │                   │                  │ les.yml           │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
bash_env_variables/a7b4ddd7: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
environment/bash_env_variables/a7b4ddd7
bash_env_variables/a7b4ddd7: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/environment/bash_env_variables/a7b4ddd7/stage
bash_env_variables/a7b4ddd7: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/env
ironment/bash_env_variables/a7b4ddd7/bash_env_variables_build.sh
csh_env_declaration/8c8d769c: Creating test directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/
environment/csh_env_declaration/8c8d769c
csh_env_declaration/8c8d769c: Creating the stage directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.csh/environment/csh_env_declaration/8c8d769c/stage
csh_env_declaration/8c8d769c: Writing build script: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/env
ironment/csh_env_declaration/8c8d769c/csh_env_declaration_build.sh
tcsh_env_declaration/5a5c84c8: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh
/environment/tcsh_env_declaration/5a5c84c8
tcsh_env_declaration/5a5c84c8: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.csh/environment/tcsh_env_declaration/5a5c84c8/stage
tcsh_env_declaration/5a5c84c8: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/en
vironment/tcsh_env_declaration/5a5c84c8/tcsh_env_declaration_build.sh
csh_shell/f9a94376: Creating test directory: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/csh_shell_
examples/csh_shell/f9a94376
csh_shell/f9a94376: Creating the stage directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/csh_s
hell_examples/csh_shell/f9a94376/stage
csh_shell/f9a94376: Writing build script: /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/csh_shell_exa
mples/csh_shell/f9a94376/csh_shell_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: bash_env_variables/a7b4ddd7
______________________________
Launching test: csh_env_declaration/8c8d769c
______________________________
Launching test: tcsh_env_declaration/5a5c84c8
______________________________
Launching test: csh_shell/f9a94376
bash_env_variables/a7b4ddd7: Running Test via command: bash --norc --noprofile 
-eo pipefail bash_env_variables_build.sh
csh_env_declaration/8c8d769c: Running Test via command: csh -e 
csh_env_declaration_build.sh
bash_env_variables/a7b4ddd7: Test completed with returncode: 0
bash_env_variables/a7b4ddd7: Test completed in 0.065045 seconds
bash_env_variables/a7b4ddd7: Writing output file -  /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/en
vironment/bash_env_variables/a7b4ddd7/bash_env_variables.out
bash_env_variables/a7b4ddd7: Writing error file - /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/envi
ronment/bash_env_variables/a7b4ddd7/bash_env_variables.err
tcsh_env_declaration/5a5c84c8: Running Test via command: csh -e 
tcsh_env_declaration_build.sh
csh_env_declaration/8c8d769c: Test completed with returncode: 1
csh_env_declaration/8c8d769c: Test completed in 5.900663 seconds
tcsh_env_declaration/5a5c84c8: Test completed with returncode: 1
tcsh_env_declaration/5a5c84c8: Test completed in 5.821633 seconds
csh_env_declaration/8c8d769c: Writing output file -  /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/en
vironment/csh_env_declaration/8c8d769c/csh_env_declaration.out
csh_env_declaration/8c8d769c: Writing error file - /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/envi
ronment/csh_env_declaration/8c8d769c/csh_env_declaration.err
tcsh_env_declaration/5a5c84c8: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/e
nvironment/tcsh_env_declaration/5a5c84c8/tcsh_env_declaration.out
tcsh_env_declaration/5a5c84c8: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/env
ironment/tcsh_env_declaration/5a5c84c8/tcsh_env_declaration.err
csh_shell/f9a94376: Running Test via command: csh -e csh_shell_build.sh
csh_shell/f9a94376: Test completed with returncode: 1
csh_shell/f9a94376: Test completed in 2.614364 seconds
csh_shell/f9a94376: Writing output file -  /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/csh_shell_ex
amples/csh_shell/f9a94376/csh_shell.out
csh_shell/f9a94376: Writing error file - /home/docs/checkouts/readthedocs.org/us
er_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/csh_shell_exam
ples/csh_shell/f9a94376/csh_shell.err
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ Checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ Builder      ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ bash_env_var │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.065045 │
│ iables/a7b4d │              │        │               │            │          │
│ dd7          │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ tcsh_env_dec │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 5.821633 │
│ laration/5a5 │              │        │               │            │          │
│ c84c8        │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ csh_env_decl │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 5.900663 │
│ aration/8c8d │              │        │               │            │          │
│ 769c         │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ csh_shell/f9 │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 2.614364 │
│ a94376       │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



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


Adding 4 test results to /home/docs/checkouts/readthedocs.org/user_builds/buildt
est/checkouts/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_8smod6p2.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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:33                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -t pass --filter tags=pass          │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  1
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                             Buildspecs By Tag=pass                             
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
[exit1_fail][/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tutorials/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/v0.13.0/tutorials/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/v0.13.0/tut
orials/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          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ exit1_pass/610a85 │ generic.local.bas │ report exit 1 as │ /home/docs/checko │
│ 55                │ h                 │ PASS             │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ returncode_int_ma │ generic.local.bas │ exit 128 matches │ /home/docs/checko │
│ tch/5b118440      │ h                 │ returncode 128   │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
exit1_pass/610a8555: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_ret
urncode/exit1_pass/610a8555
exit1_pass/610a8555: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pas
s_returncode/exit1_pass/610a8555/stage
exit1_pass/610a8555: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_return
code/exit1_pass/610a8555/exit1_pass_build.sh
returncode_int_match/5b118440: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/pass_returncode/returncode_int_match/5b118440
returncode_int_match/5b118440: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/pass_returncode/returncode_int_match/5b118440/stage
returncode_int_match/5b118440: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/p
ass_returncode/returncode_int_match/5b118440/returncode_int_match_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: exit1_pass/610a8555
______________________________
Launching test: returncode_int_match/5b118440
exit1_pass/610a8555: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_pass_build.sh
returncode_int_match/5b118440: Running Test via command: bash --norc --noprofile
-eo pipefail returncode_int_match_build.sh
returncode_int_match/5b118440: Test completed with returncode: 128
exit1_pass/610a8555: Test completed with returncode: 1
returncode_int_match/5b118440: Test completed in 0.02902 seconds
exit1_pass/610a8555: Test completed in 0.02905 seconds
exit1_pass/610a8555: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_retur
ncode/exit1_pass/610a8555/exit1_pass.out
returncode_int_match/5b118440: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
pass_returncode/returncode_int_match/5b118440/returncode_int_match.out
exit1_pass/610a8555: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_returnc
ode/exit1_pass/610a8555/exit1_pass.err
returncode_int_match/5b118440: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pa
ss_returncode/returncode_int_match/5b118440/returncode_int_match.err
exit1_pass/610a8555: Checking returncode - 1 is matched in list [1]
returncode_int_match/5b118440: Checking returncode - 128 is matched in list 
[128]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━┓
┃               ┃              ┃        ┃ Checks        ┃            ┃         ┃
┃               ┃              ┃        ┃ (ReturnCode,  ┃            ┃         ┃
┃               ┃              ┃        ┃ Regex,        ┃            ┃         ┃
┃ Builder       ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━┩
│ exit1_pass/61 │ generic.loc… │ PASS   │ True False    │ 1          │ 0.02905 │
│ 0a8555        │              │        │ False         │            │         │
├───────────────┼──────────────┼────────┼───────────────┼────────────┼─────────┤
│ returncode_in │ generic.loc… │ PASS   │ True False    │ 128        │ 0.02902 │
│ t_match/5b118 │              │        │ False         │            │         │
│ 440           │              │        │               │            │         │
└───────────────┴──────────────┴────────┴───────────────┴────────────┴─────────┘



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/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_t07_axtg.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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:34                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -b tutorials --filter               │
│ maintainers=@shahzebsiddiqui                                                 │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  31
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  31
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/root_user.yml: skipping test because 'maintainers' field is not specified
in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/sleep.yml: skipping test because 'maintainers' field is not specified in 
buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/tags_example.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/python-hello.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/script/executor_scheduler.yml: skipping test because 'maintainers' field 
is not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/environment.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/status_regex.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/skip_tests.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/selinux.yml: skipping test because 'maintainers' field is not specified 
in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/script/status_by_executors.yml: skipping test because 'maintainers' field
is not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/metrics_variable.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/run_only_platform.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/shebang.yml: skipping test because 'maintainers' field is not specified 
in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/metrics_regex.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/add_numbers.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/pass_returncode.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/runtime_status_test.yml: skipping test because 'maintainers' field is not
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/vars.yml: skipping test because 'maintainers' field is not specified in 
buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/shell_examples.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/executor_regex_script.yml: skipping test because 'maintainers' field is 
not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/script/multiple_executors.yml: skipping test because 'maintainers' field 
is not specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/csh_shell_examples.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/run_only_distro.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/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/v0.13.0/tut
orials/explicit_state.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/python-shell.yml: skipping test because 'maintainers' field is not 
specified in buildspec.
Valid Buildspecs: 27
Invalid Buildspecs: 4
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/root_user.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/sleep.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/tags_example.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/python-hello.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/script/executor_scheduler.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/environment.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/hello_world.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/status_regex.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/skip_tests.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/selinux.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/script/status_by_executors.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/metrics_variable.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/run_only_platform.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/shebang.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/metrics_regex.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/add_numbers.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/pass_returncode.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/runtime_status_test.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/vars.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/shell_examples.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/executor_regex_script.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/script/multiple_executors.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/csh_shell_examples.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/run_only_distro.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/maintainers_example.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/explicit_state.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/python-shell.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/invalid_tags.yml: INVALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/burstbuffer_datawarp_executors.yml: INVALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/invalid_buildspec_section.yml: INVALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/invalid_executor.yml: INVALID
                            Buildspecs Filtered out                             
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Buildspecs                                                                   ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
└──────────────────────────────────────────────────────────────────────────────┘
Total builder objects created: 1
Total compiler builder: 0
Total script builder: 1
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓
┃ Builder           ┃ Executor          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ hello_world/1c08c │ generic.local.bas │ hello world      │ /home/docs/checko │
│ 271               │ h                 │ example          │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/hello_world.yml │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
hello_world/1c08c271: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/hello_w
orld/hello_world/1c08c271
hello_world/1c08c271: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/he
llo_world/hello_world/1c08c271/stage
hello_world/1c08c271: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/hello_worl
d/hello_world/1c08c271/hello_world_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: hello_world/1c08c271
hello_world/1c08c271: Running Test via command: bash --norc --noprofile -eo 
pipefail hello_world_build.sh
hello_world/1c08c271: Test completed with returncode: 0
hello_world/1c08c271: Test completed in 0.00791 seconds
hello_world/1c08c271: Writing output file -  /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/hello_wor
ld/hello_world/1c08c271/hello_world.out
hello_world/1c08c271: Writing error file - /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/hello_world
/hello_world/1c08c271/hello_world.err
                                  Test Summary                                  
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━┓
┃               ┃              ┃        ┃ Checks        ┃            ┃         ┃
┃               ┃              ┃        ┃ (ReturnCode,  ┃            ┃         ┃
┃               ┃              ┃        ┃ Regex,        ┃            ┃         ┃
┃ Builder       ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━┩
│ hello_world/1 │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.00791 │
│ c08c271       │              │        │               │            │         │
└───────────────┴──────────────┴────────┴───────────────┴────────────┴─────────┘



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/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_ri6wenh5.log

Please see Query 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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:35                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -b tutorials --filter type=script   │
│ --stage=build                                                                │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  31
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  31
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
[run_only_as_root][/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tutorials/root_user.yml]: test is skipped because this test is expected to run as user: root but detected user: None.
[run_only_macos_distro][/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tutorials/run_only_distro.yml]: test is skipped because this test is expected to run on linux distro: ['darwin'] but detected linux distro: ubuntu.
[run_only_linux_distro][/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tutorials/run_only_distro.yml]: test is skipped because this test is expected to run on linux distro: ['centos'] but detected linux distro: ubuntu.
skip: skipping test due to 'skip' property.
[run_only_platform_darwin][/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tutorials/run_only_platform.yml]: test is skipped because this test is expected to run on platform: Darwin but detected platform: Linux.
Valid Buildspecs: 27
Invalid Buildspecs: 4
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/hello_world.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/shell_examples.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/tags_example.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/explicit_state.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/executor_regex_script.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/status_regex.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/metrics_variable.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/pass_returncode.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/python-hello.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/script/status_by_executors.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/root_user.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/add_numbers.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/sleep.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/maintainers_example.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/metrics_regex.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/selinux.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/runtime_status_test.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/run_only_distro.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/vars.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/csh_shell_examples.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/script/executor_scheduler.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/environment.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/shebang.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/script/multiple_executors.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/skip_tests.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/python-shell.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/run_only_platform.yml: VALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/burstbuffer_datawarp_executors.yml: INVALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/invalid_buildspec_section.yml: INVALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/invalid_executor.yml: INVALID
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/invalid_tags.yml: INVALID
                            Buildspecs Filtered out                             
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Buildspecs                                                                   ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… │
└──────────────────────────────────────────────────────────────────────────────┘
Total builder objects created: 48
Total compiler builder: 0
Total script builder: 48
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓
┃ Builder           ┃ Executor          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ hello_world/946f1 │ generic.local.bas │ hello world      │ /home/docs/checko │
│ 137               │ h                 │ example          │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/hello_world.yml │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ _bin_sh_shell/aba │ generic.local.sh  │ /bin/sh shell    │ /home/docs/checko │
│ be823             │                   │ example          │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/shell_examples. │
│                   │                   │                  │ yml               │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ _bin_bash_shell/7 │ generic.local.bas │ /bin/bash shell  │ /home/docs/checko │
│ d5317d0           │ h                 │ example          │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/shell_examples. │
│                   │                   │                  │ yml               │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ bash_shell/75cab4 │ generic.local.bas │ bash shell       │ /home/docs/checko │
│ 4b                │ h                 │ example          │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/shell_examples. │
│                   │                   │                  │ yml               │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ sh_shell/17416a6f │ generic.local.sh  │ sh shell example │ /home/docs/checko │
│                   │                   │                  │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/shell_examples. │
│                   │                   │                  │ yml               │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ shell_options/f0e │ generic.local.sh  │ shell options    │ /home/docs/checko │
│ eff88             │                   │                  │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/shell_examples. │
│                   │                   │                  │ yml               │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ string_tag/c95c69 │ generic.local.bas │ tags can be a    │ /home/docs/checko │
│ fe                │ h                 │ string           │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/tags_example.ym │
│                   │                   │                  │ l                 │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ list_of_strings_t │ generic.local.bas │ tags can be a    │ /home/docs/checko │
│ ags/a72c3f44      │ h                 │ list of strings  │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/tags_example.ym │
│                   │                   │                  │ l                 │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ always_pass/aef08 │ generic.local.sh  │ This test will   │ /home/docs/checko │
│ db0               │                   │ always 'PASS'    │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/explicit_state. │
│                   │                   │                  │ yml               │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ always_fail/14139 │ generic.local.sh  │ This test will   │ /home/docs/checko │
│ 93b               │                   │ always 'FAIL'    │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/explicit_state. │
│                   │                   │                  │ yml               │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ test_fail_returnc │ generic.local.sh  │ This test will   │ /home/docs/checko │
│ ode_match/545d7ba │                   │ 'FAIL' even if   │ uts/readthedocs.o │
│ 2                 │                   │ we have          │ rg/user_builds/bu │
│                   │                   │ returncode match │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/explicit_state. │
│                   │                   │                  │ yml               │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ test_pass_returnc │ generic.local.sh  │ This test will   │ /home/docs/checko │
│ ode_mismatch/cb3c │                   │ 'PASS' even if   │ uts/readthedocs.o │
│ 6c46              │                   │ we have          │ rg/user_builds/bu │
│                   │                   │ returncode       │ ildtest/checkouts │
│                   │                   │ mismatch         │ /v0.13.0/tutorial │
│                   │                   │                  │ s/explicit_state. │
│                   │                   │                  │ yml               │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ executor_regex_sc │ generic.local.bas │ regular          │ /home/docs/checko │
│ ript_schema/44a86 │ h                 │ expression test  │ uts/readthedocs.o │
│ e11               │                   │ with executor    │ rg/user_builds/bu │
│                   │                   │ using script     │ ildtest/checkouts │
│                   │                   │ schema           │ /v0.13.0/tutorial │
│                   │                   │                  │ s/executor_regex_ │
│                   │                   │                  │ script.yml        │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ executor_regex_sc │ generic.local.sh  │ regular          │ /home/docs/checko │
│ ript_schema/0362d │                   │ expression test  │ uts/readthedocs.o │
│ c6a               │                   │ with executor    │ rg/user_builds/bu │
│                   │                   │ using script     │ ildtest/checkouts │
│                   │                   │ schema           │ /v0.13.0/tutorial │
│                   │                   │                  │ s/executor_regex_ │
│                   │                   │                  │ script.yml        │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ status_regex_pass │ generic.local.bas │ Pass test based  │ /home/docs/checko │
│ /05dc2184         │ h                 │ on regular       │ uts/readthedocs.o │
│                   │                   │ expression       │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/status_regex.ym │
│                   │                   │                  │ l                 │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ status_regex_fail │ generic.local.bas │ Pass test based  │ /home/docs/checko │
│ /52fa4d50         │ h                 │ on regular       │ uts/readthedocs.o │
│                   │                   │ expression       │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/status_regex.ym │
│                   │                   │                  │ l                 │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ metric_variable_a │ generic.local.sh  │ capture result   │ /home/docs/checko │
│ ssignment/4e4a3e0 │                   │ metric based on  │ uts/readthedocs.o │
│ 6                 │                   │ variables and    │ rg/user_builds/bu │
│                   │                   │ environment      │ ildtest/checkouts │
│                   │                   │ variable         │ /v0.13.0/tutorial │
│                   │                   │                  │ s/metrics_variabl │
│                   │                   │                  │ e.yml             │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ exit1_fail/e31da8 │ generic.local.bas │ exit 1 by        │ /home/docs/checko │
│ a2                │ h                 │ default is FAIL  │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ exit1_pass/e8ed63 │ generic.local.bas │ report exit 1 as │ /home/docs/checko │
│ 34                │ h                 │ PASS             │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ returncode_list_m │ generic.local.bas │ exit 2 failed    │ /home/docs/checko │
│ ismatch/584961df  │ h                 │ since it failed  │ uts/readthedocs.o │
│                   │                   │ to match         │ rg/user_builds/bu │
│                   │                   │ returncode 1     │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ returncode_int_ma │ generic.local.bas │ exit 128 matches │ /home/docs/checko │
│ tch/46ae4b37      │ h                 │ returncode 128   │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ python_hello/e50c │ generic.local.bas │ Hello World      │ /home/docs/checko │
│ db68              │ h                 │ python           │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/python-hello.ym │
│                   │                   │                  │ l                 │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ status_returncode │ generic.local.bas │ define status    │ /home/docs/checko │
│ _by_executors/75c │ h                 │ and metrics per  │ uts/readthedocs.o │
│ e6469             │                   │ executor type.   │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/script/status_b │
│                   │                   │                  │ y_executors.yml   │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ status_returncode │ generic.local.sh  │ define status    │ /home/docs/checko │
│ _by_executors/61e │                   │ and metrics per  │ uts/readthedocs.o │
│ 4dacc             │                   │ executor type.   │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/script/status_b │
│                   │                   │                  │ y_executors.yml   │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ add_numbers/59a73 │ generic.local.bas │ Add X+Y          │ /home/docs/checko │
│ 96f               │ h                 │                  │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/add_numbers.yml │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ sleep/bbf23f47    │ generic.local.bas │ sleep 2 seconds  │ /home/docs/checko │
│                   │ h                 │                  │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/sleep.yml       │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ foo_bar/636498aa  │ generic.local.sh  │ prints variable  │ /home/docs/checko │
│                   │                   │ $FOO             │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/maintainers_exa │
│                   │                   │                  │ mple.yml          │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ metric_regex_exam │ generic.local.sh  │ capture result   │ /home/docs/checko │
│ ple/cdc99a76      │                   │ metric from      │ uts/readthedocs.o │
│                   │                   │ output           │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/metrics_regex.y │
│                   │                   │                  │ ml                │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ selinux_disable/9 │ generic.local.bas │ Check if SELinux │ /home/docs/checko │
│ 9b906c9           │ h                 │ is Disabled      │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/selinux.yml     │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ timelimit_min_max │ generic.local.sh  │ Run a sleep job  │ /home/docs/checko │
│ /c0f36a09         │                   │ for 2 seconds    │ uts/readthedocs.o │
│                   │                   │ and test pass if │ rg/user_builds/bu │
│                   │                   │ its within       │ ildtest/checkouts │
│                   │                   │ 1.0-3.0sec       │ /v0.13.0/tutorial │
│                   │                   │                  │ s/runtime_status_ │
│                   │                   │                  │ test.yml          │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ timelimit_min/d6f │ generic.local.sh  │ Run a sleep job  │ /home/docs/checko │
│ d971a             │                   │ for 2 seconds    │ uts/readthedocs.o │
│                   │                   │ and test pass if │ rg/user_builds/bu │
│                   │                   │ its exceeds min  │ ildtest/checkouts │
│                   │                   │ time of 1.0 sec  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/runtime_status_ │
│                   │                   │                  │ test.yml          │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ timelimit_max/4a2 │ generic.local.sh  │ Run a sleep job  │ /home/docs/checko │
│ 3a13a             │                   │ for 2 seconds    │ uts/readthedocs.o │
│                   │                   │ and test pass if │ rg/user_builds/bu │
│                   │                   │ it's within max  │ ildtest/checkouts │
│                   │                   │ time: 5.0 sec    │ /v0.13.0/tutorial │
│                   │                   │                  │ s/runtime_status_ │
│                   │                   │                  │ test.yml          │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ timelimit_min_fai │ generic.local.sh  │ This test fails  │ /home/docs/checko │
│ l/6368d889        │                   │ because it runs  │ uts/readthedocs.o │
│                   │                   │ less than        │ rg/user_builds/bu │
│                   │                   │ mintime of 10    │ ildtest/checkouts │
│                   │                   │ second           │ /v0.13.0/tutorial │
│                   │                   │                  │ s/runtime_status_ │
│                   │                   │                  │ test.yml          │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ timelimit_max_fai │ generic.local.sh  │ This test fails  │ /home/docs/checko │
│ l/b2676141        │                   │ because it       │ uts/readthedocs.o │
│                   │                   │ exceeds maxtime  │ rg/user_builds/bu │
│                   │                   │ of 1.0 second    │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/runtime_status_ │
│                   │                   │                  │ test.yml          │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ variables_bash/ae │ generic.local.bas │ Declare shell    │ /home/docs/checko │
│ abf508            │ h                 │ variables in     │ uts/readthedocs.o │
│                   │                   │ bash             │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/vars.yml        │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ csh_shell/18dc2e6 │ generic.local.csh │ csh shell        │ /home/docs/checko │
│ 6                 │                   │ example          │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/csh_shell_examp │
│                   │                   │                  │ les.yml           │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ executors_sbatch_ │ generic.local.bas │ Declaring env    │ /home/docs/checko │
│ declaration/51b8d │ h                 │ and vars by      │ uts/readthedocs.o │
│ b57               │                   │ executors        │ rg/user_builds/bu │
│                   │                   │ section          │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/script/executor │
│                   │                   │                  │ _scheduler.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ executors_sbatch_ │ generic.local.sh  │ Declaring env    │ /home/docs/checko │
│ declaration/58d91 │                   │ and vars by      │ uts/readthedocs.o │
│ 31c               │                   │ executors        │ rg/user_builds/bu │
│                   │                   │ section          │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/script/executor │
│                   │                   │                  │ _scheduler.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ bash_env_variable │ generic.local.bas │ Declare          │ /home/docs/checko │
│ s/ac88a0bb        │ h                 │ environment      │ uts/readthedocs.o │
│                   │                   │ variables in     │ rg/user_builds/bu │
│                   │                   │ default shell    │ ildtest/checkouts │
│                   │                   │ (bash)           │ /v0.13.0/tutorial │
│                   │                   │                  │ s/environment.yml │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ csh_env_declarati │ generic.local.csh │ csh shell        │ /home/docs/checko │
│ on/ce3e458e       │                   │ example to       │ uts/readthedocs.o │
│                   │                   │ declare          │ rg/user_builds/bu │
│                   │                   │ environment      │ ildtest/checkouts │
│                   │                   │ variables        │ /v0.13.0/tutorial │
│                   │                   │                  │ s/environment.yml │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ tcsh_env_declarat │ generic.local.csh │ tcsh shell       │ /home/docs/checko │
│ ion/770e183c      │                   │ example to       │ uts/readthedocs.o │
│                   │                   │ declare          │ rg/user_builds/bu │
│                   │                   │ environment      │ ildtest/checkouts │
│                   │                   │ variables        │ /v0.13.0/tutorial │
│                   │                   │                  │ s/environment.yml │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ bash_login_sheban │ generic.local.bas │ customize        │ /home/docs/checko │
│ g/26682185        │ h                 │ shebang line     │ uts/readthedocs.o │
│                   │                   │ with bash login  │ rg/user_builds/bu │
│                   │                   │ shell            │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/shebang.yml     │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ bash_nonlogin_she │ generic.local.bas │ customize        │ /home/docs/checko │
│ bang/e577147f     │ h                 │ shebang line     │ uts/readthedocs.o │
│                   │                   │ with default     │ rg/user_builds/bu │
│                   │                   │ bash (nonlogin)  │ ildtest/checkouts │
│                   │                   │ shell            │ /v0.13.0/tutorial │
│                   │                   │                  │ s/shebang.yml     │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ executors_vars_en │ generic.local.bas │ Declaring env    │ /home/docs/checko │
│ v_declaration/f53 │ h                 │ and vars by      │ uts/readthedocs.o │
│ 3dee8             │                   │ executors        │ rg/user_builds/bu │
│                   │                   │ section          │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/script/multiple │
│                   │                   │                  │ _executors.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ executors_vars_en │ generic.local.sh  │ Declaring env    │ /home/docs/checko │
│ v_declaration/15b │                   │ and vars by      │ uts/readthedocs.o │
│ 3c9e8             │                   │ executors        │ rg/user_builds/bu │
│                   │                   │ section          │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/script/multiple │
│                   │                   │                  │ _executors.yml    │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ unskipped/3218c01 │ generic.local.bas │ This test is not │ /home/docs/checko │
│ 1                 │ h                 │ skipped          │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/skip_tests.yml  │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ circle_area/73ccc │ generic.local.bas │ Calculate circle │ /home/docs/checko │
│ 64b               │ h                 │ of area given a  │ uts/readthedocs.o │
│                   │                   │ radius           │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/python-shell.ym │
│                   │                   │                  │ l                 │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ run_only_platform │ generic.local.bas │ This test will   │ /home/docs/checko │
│ _linux/764e2ad7   │ h                 │ only run if      │ uts/readthedocs.o │
│                   │                   │ target platform  │ rg/user_builds/bu │
│                   │                   │ is Linux         │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/run_only_platfo │
│                   │                   │                  │ rm.yml            │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
hello_world/946f1137: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/hello_w
orld/hello_world/946f1137
hello_world/946f1137: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/he
llo_world/hello_world/946f1137/stage
hello_world/946f1137: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/hello_worl
d/hello_world/946f1137/hello_world_build.sh
_bin_sh_shell/ababe823: Creating test directory: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/shell_e
xamples/_bin_sh_shell/ababe823
_bin_sh_shell/ababe823: Creating the stage directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/sh
ell_examples/_bin_sh_shell/ababe823/stage
_bin_sh_shell/ababe823: Writing build script: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/shell_exam
ples/_bin_sh_shell/ababe823/_bin_sh_shell_build.sh
_bin_bash_shell/7d5317d0: Creating test directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/she
ll_examples/_bin_bash_shell/7d5317d0
_bin_bash_shell/7d5317d0: Creating the stage directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/shell_examples/_bin_bash_shell/7d5317d0/stage
_bin_bash_shell/7d5317d0: Writing build script: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/shell_
examples/_bin_bash_shell/7d5317d0/_bin_bash_shell_build.sh
bash_shell/75cab44b: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/shell_ex
amples/bash_shell/75cab44b
bash_shell/75cab44b: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/she
ll_examples/bash_shell/75cab44b/stage
bash_shell/75cab44b: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/shell_examp
les/bash_shell/75cab44b/bash_shell_build.sh
sh_shell/17416a6f: Creating test directory: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/shell_exampl
es/sh_shell/17416a6f
sh_shell/17416a6f: Creating the stage directory: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/shell_e
xamples/sh_shell/17416a6f/stage
sh_shell/17416a6f: Writing build script: /home/docs/checkouts/readthedocs.org/us
er_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/shell_examples/
sh_shell/17416a6f/sh_shell_build.sh
shell_options/f0eeff88: Creating test directory: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/shell_e
xamples/shell_options/f0eeff88
shell_options/f0eeff88: Creating the stage directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/sh
ell_examples/shell_options/f0eeff88/stage
shell_options/f0eeff88: Writing build script: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/shell_exam
ples/shell_options/f0eeff88/shell_options_build.sh
string_tag/c95c69fe: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/tags_exa
mple/string_tag/c95c69fe
string_tag/c95c69fe: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/tag
s_example/string_tag/c95c69fe/stage
string_tag/c95c69fe: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/tags_exampl
e/string_tag/c95c69fe/string_tag_build.sh
list_of_strings_tags/a72c3f44: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/tags_example/list_of_strings_tags/a72c3f44
list_of_strings_tags/a72c3f44: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/tags_example/list_of_strings_tags/a72c3f44/stage
list_of_strings_tags/a72c3f44: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/t
ags_example/list_of_strings_tags/a72c3f44/list_of_strings_tags_build.sh
always_pass/aef08db0: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/explicit_
state/always_pass/aef08db0
always_pass/aef08db0: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/expl
icit_state/always_pass/aef08db0/stage
always_pass/aef08db0: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/explicit_sta
te/always_pass/aef08db0/always_pass_build.sh
always_fail/1413993b: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/explicit_
state/always_fail/1413993b
always_fail/1413993b: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/expl
icit_state/always_fail/1413993b/stage
always_fail/1413993b: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/explicit_sta
te/always_fail/1413993b/always_fail_build.sh
test_fail_returncode_match/545d7ba2: Creating test directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loc
al.sh/explicit_state/test_fail_returncode_match/545d7ba2
test_fail_returncode_match/545d7ba2: Creating the stage directory: /home/docs/ch
eckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generi
c.local.sh/explicit_state/test_fail_returncode_match/545d7ba2/stage
test_fail_returncode_match/545d7ba2: Writing build script: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
sh/explicit_state/test_fail_returncode_match/545d7ba2/test_fail_returncode_match
_build.sh
test_pass_returncode_mismatch/cb3c6c46: Creating test directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.
local.sh/explicit_state/test_pass_returncode_mismatch/cb3c6c46
test_pass_returncode_mismatch/cb3c6c46: Creating the stage directory: /home/docs
/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/gen
eric.local.sh/explicit_state/test_pass_returncode_mismatch/cb3c6c46/stage
test_pass_returncode_mismatch/cb3c6c46: Writing build script: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loc
al.sh/explicit_state/test_pass_returncode_mismatch/cb3c6c46/test_pass_returncode
_mismatch_build.sh
executor_regex_script_schema/44a86e11: Creating test directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.l
ocal.bash/executor_regex_script/executor_regex_script_schema/44a86e11
executor_regex_script_schema/44a86e11: Creating the stage directory: /home/docs/
checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/gene
ric.local.bash/executor_regex_script/executor_regex_script_schema/44a86e11/stage
executor_regex_script_schema/44a86e11: Writing build script: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/executor_regex_script/executor_regex_script_schema/44a86e11/executor_rege
x_script_schema_build.sh
executor_regex_script_schema/0362dc6a: Creating test directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.l
ocal.sh/executor_regex_script/executor_regex_script_schema/0362dc6a
executor_regex_script_schema/0362dc6a: Creating the stage directory: /home/docs/
checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/gene
ric.local.sh/executor_regex_script/executor_regex_script_schema/0362dc6a/stage
executor_regex_script_schema/0362dc6a: Writing build script: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.sh/executor_regex_script/executor_regex_script_schema/0362dc6a/executor_regex_
script_schema_build.sh
status_regex_pass/05dc2184: Creating test directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/s
tatus_regex/status_regex_pass/05dc2184
status_regex_pass/05dc2184: Creating the stage directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/status_regex/status_regex_pass/05dc2184/stage
status_regex_pass/05dc2184: Writing build script: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/stat
us_regex/status_regex_pass/05dc2184/status_regex_pass_build.sh
status_regex_fail/52fa4d50: Creating test directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/s
tatus_regex/status_regex_fail/52fa4d50
status_regex_fail/52fa4d50: Creating the stage directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/status_regex/status_regex_fail/52fa4d50/stage
status_regex_fail/52fa4d50: Writing build script: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/stat
us_regex/status_regex_fail/52fa4d50/status_regex_fail_build.sh
metric_variable_assignment/4e4a3e06: Creating test directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loc
al.sh/metrics_variable/metric_variable_assignment/4e4a3e06
metric_variable_assignment/4e4a3e06: Creating the stage directory: /home/docs/ch
eckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generi
c.local.sh/metrics_variable/metric_variable_assignment/4e4a3e06/stage
metric_variable_assignment/4e4a3e06: Writing build script: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
sh/metrics_variable/metric_variable_assignment/4e4a3e06/metric_variable_assignme
nt_build.sh
exit1_fail/e31da8a2: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_ret
urncode/exit1_fail/e31da8a2
exit1_fail/e31da8a2: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pas
s_returncode/exit1_fail/e31da8a2/stage
exit1_fail/e31da8a2: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_return
code/exit1_fail/e31da8a2/exit1_fail_build.sh
exit1_pass/e8ed6334: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_ret
urncode/exit1_pass/e8ed6334
exit1_pass/e8ed6334: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pas
s_returncode/exit1_pass/e8ed6334/stage
exit1_pass/e8ed6334: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_return
code/exit1_pass/e8ed6334/exit1_pass_build.sh
returncode_list_mismatch/584961df: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/pass_returncode/returncode_list_mismatch/584961df
returncode_list_mismatch/584961df: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.
local.bash/pass_returncode/returncode_list_mismatch/584961df/stage
returncode_list_mismatch/584961df: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/pass_returncode/returncode_list_mismatch/584961df/returncode_list_mismatch_bu
ild.sh
returncode_int_match/46ae4b37: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/pass_returncode/returncode_int_match/46ae4b37
returncode_int_match/46ae4b37: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/pass_returncode/returncode_int_match/46ae4b37/stage
returncode_int_match/46ae4b37: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/p
ass_returncode/returncode_int_match/46ae4b37/returncode_int_match_build.sh
python_hello/e50cdb68: Creating test directory: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python
-hello/python_hello/e50cdb68
python_hello/e50cdb68: Creating the stage directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/p
ython-hello/python_hello/e50cdb68/stage
python_hello/e50cdb68: Writing build script: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-he
llo/python_hello/e50cdb68/python_hello_build.sh
status_returncode_by_executors/75ce6469: Creating test directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic
.local.bash/status_by_executors/status_returncode_by_executors/75ce6469
status_returncode_by_executors/75ce6469: Creating the stage directory: /home/doc
s/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/ge
neric.local.bash/status_by_executors/status_returncode_by_executors/75ce6469/sta
ge
status_returncode_by_executors/75ce6469: Writing build script: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.lo
cal.bash/status_by_executors/status_returncode_by_executors/75ce6469/status_retu
rncode_by_executors_build.sh
status_returncode_by_executors/61e4dacc: Creating test directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic
.local.sh/status_by_executors/status_returncode_by_executors/61e4dacc
status_returncode_by_executors/61e4dacc: Creating the stage directory: /home/doc
s/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/ge
neric.local.sh/status_by_executors/status_returncode_by_executors/61e4dacc/stage
status_returncode_by_executors/61e4dacc: Writing build script: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.lo
cal.sh/status_by_executors/status_returncode_by_executors/61e4dacc/status_return
code_by_executors_build.sh
add_numbers/59a7396f: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/add_num
bers/add_numbers/59a7396f
add_numbers/59a7396f: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/ad
d_numbers/add_numbers/59a7396f/stage
add_numbers/59a7396f: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/add_number
s/add_numbers/59a7396f/add_numbers_build.sh
sleep/bbf23f47: Creating test directory: /home/docs/checkouts/readthedocs.org/us
er_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/sleep/sleep/b
bf23f47
sleep/bbf23f47: Creating the stage directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/sleep/sl
eep/bbf23f47/stage
sleep/bbf23f47: Writing build script: /home/docs/checkouts/readthedocs.org/user_
builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/sleep/sleep/bbf2
3f47/sleep_build.sh
foo_bar/636498aa: Creating test directory: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/maintainers_e
xample/foo_bar/636498aa
foo_bar/636498aa: Creating the stage directory: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/maintain
ers_example/foo_bar/636498aa/stage
foo_bar/636498aa: Writing build script: /home/docs/checkouts/readthedocs.org/use
r_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/maintainers_exam
ple/foo_bar/636498aa/foo_bar_build.sh
metric_regex_example/cdc99a76: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/
metrics_regex/metric_regex_example/cdc99a76
metric_regex_example/cdc99a76: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.sh/metrics_regex/metric_regex_example/cdc99a76/stage
metric_regex_example/cdc99a76: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/met
rics_regex/metric_regex_example/cdc99a76/metric_regex_example_build.sh
selinux_disable/99b906c9: Creating test directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/sel
inux/selinux_disable/99b906c9
selinux_disable/99b906c9: Creating the stage directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/selinux/selinux_disable/99b906c9/stage
selinux_disable/99b906c9: Writing build script: /home/docs/checkouts/readthedocs
.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/selinu
x/selinux_disable/99b906c9/selinux_disable_build.sh
timelimit_min_max/c0f36a09: Creating test directory: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/run
time_status_test/timelimit_min_max/c0f36a09
timelimit_min_max/c0f36a09: Creating the stage directory: /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.s
h/runtime_status_test/timelimit_min_max/c0f36a09/stage
timelimit_min_max/c0f36a09: Writing build script: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/runtim
e_status_test/timelimit_min_max/c0f36a09/timelimit_min_max_build.sh
timelimit_min/d6fd971a: Creating test directory: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/runtime
_status_test/timelimit_min/d6fd971a
timelimit_min/d6fd971a: Creating the stage directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/ru
ntime_status_test/timelimit_min/d6fd971a/stage
timelimit_min/d6fd971a: Writing build script: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/runtime_st
atus_test/timelimit_min/d6fd971a/timelimit_min_build.sh
timelimit_max/4a23a13a: Creating test directory: /home/docs/checkouts/readthedoc
s.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/runtime
_status_test/timelimit_max/4a23a13a
timelimit_max/4a23a13a: Creating the stage directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/ru
ntime_status_test/timelimit_max/4a23a13a/stage
timelimit_max/4a23a13a: Writing build script: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/runtime_st
atus_test/timelimit_max/4a23a13a/timelimit_max_build.sh
timelimit_min_fail/6368d889: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/ru
ntime_status_test/timelimit_min_fail/6368d889
timelimit_min_fail/6368d889: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
sh/runtime_status_test/timelimit_min_fail/6368d889/stage
timelimit_min_fail/6368d889: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/runti
me_status_test/timelimit_min_fail/6368d889/timelimit_min_fail_build.sh
timelimit_max_fail/b2676141: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/ru
ntime_status_test/timelimit_max_fail/b2676141
timelimit_max_fail/b2676141: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
sh/runtime_status_test/timelimit_max_fail/b2676141/stage
timelimit_max_fail/b2676141: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.sh/runti
me_status_test/timelimit_max_fail/b2676141/timelimit_max_fail_build.sh
variables_bash/aeabf508: Creating test directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars
/variables_bash/aeabf508
variables_bash/aeabf508: Creating the stage directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash
/vars/variables_bash/aeabf508/stage
variables_bash/aeabf508: Writing build script: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars/va
riables_bash/aeabf508/variables_bash_build.sh
csh_shell/18dc2e66: Creating test directory: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/csh_shell_
examples/csh_shell/18dc2e66
csh_shell/18dc2e66: Creating the stage directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/csh_s
hell_examples/csh_shell/18dc2e66/stage
csh_shell/18dc2e66: Writing build script: /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/csh_shell_exa
mples/csh_shell/18dc2e66/csh_shell_build.sh
executors_sbatch_declaration/51b8db57: Creating test directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.l
ocal.bash/executor_scheduler/executors_sbatch_declaration/51b8db57
executors_sbatch_declaration/51b8db57: Creating the stage directory: /home/docs/
checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/gene
ric.local.bash/executor_scheduler/executors_sbatch_declaration/51b8db57/stage
executors_sbatch_declaration/51b8db57: Writing build script: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/executor_scheduler/executors_sbatch_declaration/51b8db57/executors_sbatch
_declaration_build.sh
executors_sbatch_declaration/58d9131c: Creating test directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.l
ocal.sh/executor_scheduler/executors_sbatch_declaration/58d9131c
executors_sbatch_declaration/58d9131c: Creating the stage directory: /home/docs/
checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/gene
ric.local.sh/executor_scheduler/executors_sbatch_declaration/58d9131c/stage
executors_sbatch_declaration/58d9131c: Writing build script: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.sh/executor_scheduler/executors_sbatch_declaration/58d9131c/executors_sbatch_d
eclaration_build.sh
bash_env_variables/ac88a0bb: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
environment/bash_env_variables/ac88a0bb
bash_env_variables/ac88a0bb: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/environment/bash_env_variables/ac88a0bb/stage
bash_env_variables/ac88a0bb: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/env
ironment/bash_env_variables/ac88a0bb/bash_env_variables_build.sh
csh_env_declaration/ce3e458e: Creating test directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/
environment/csh_env_declaration/ce3e458e
csh_env_declaration/ce3e458e: Creating the stage directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.csh/environment/csh_env_declaration/ce3e458e/stage
csh_env_declaration/ce3e458e: Writing build script: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/env
ironment/csh_env_declaration/ce3e458e/csh_env_declaration_build.sh
tcsh_env_declaration/770e183c: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh
/environment/tcsh_env_declaration/770e183c
tcsh_env_declaration/770e183c: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.csh/environment/tcsh_env_declaration/770e183c/stage
tcsh_env_declaration/770e183c: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.csh/en
vironment/tcsh_env_declaration/770e183c/tcsh_env_declaration_build.sh
bash_login_shebang/26682185: Creating test directory: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
shebang/bash_login_shebang/26682185
bash_login_shebang/26682185: Creating the stage directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/shebang/bash_login_shebang/26682185/stage
bash_login_shebang/26682185: Writing build script: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/she
bang/bash_login_shebang/26682185/bash_login_shebang_build.sh
bash_nonlogin_shebang/e577147f: Creating test directory: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/shebang/bash_nonlogin_shebang/e577147f
bash_nonlogin_shebang/e577147f: Creating the stage directory: /home/docs/checkou
ts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loc
al.bash/shebang/bash_nonlogin_shebang/e577147f/stage
bash_nonlogin_shebang/e577147f: Writing build script: /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
shebang/bash_nonlogin_shebang/e577147f/bash_nonlogin_shebang_build.sh
executors_vars_env_declaration/f533dee8: Creating test directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic
.local.bash/multiple_executors/executors_vars_env_declaration/f533dee8
executors_vars_env_declaration/f533dee8: Creating the stage directory: /home/doc
s/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/ge
neric.local.bash/multiple_executors/executors_vars_env_declaration/f533dee8/stag
e
executors_vars_env_declaration/f533dee8: Writing build script: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.lo
cal.bash/multiple_executors/executors_vars_env_declaration/f533dee8/executors_va
rs_env_declaration_build.sh
executors_vars_env_declaration/15b3c9e8: Creating test directory: /home/docs/che
ckouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic
.local.sh/multiple_executors/executors_vars_env_declaration/15b3c9e8
executors_vars_env_declaration/15b3c9e8: Creating the stage directory: /home/doc
s/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/ge
neric.local.sh/multiple_executors/executors_vars_env_declaration/15b3c9e8/stage
executors_vars_env_declaration/15b3c9e8: Writing build script: /home/docs/checko
uts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.lo
cal.sh/multiple_executors/executors_vars_env_declaration/15b3c9e8/executors_vars
_env_declaration_build.sh
unskipped/3218c011: Creating test directory: /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/skip_test
s/unskipped/3218c011
unskipped/3218c011: Creating the stage directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/skip
_tests/unskipped/3218c011/stage
unskipped/3218c011: Writing build script: /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/skip_tests/u
nskipped/3218c011/unskipped_build.sh
circle_area/73ccc64b: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-
shell/circle_area/73ccc64b
circle_area/73ccc64b: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/py
thon-shell/circle_area/73ccc64b/stage
circle_area/73ccc64b: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-she
ll/circle_area/73ccc64b/circle_area_build.sh
run_only_platform_linux/764e2ad7: Creating test directory: /home/docs/checkouts/
readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.
bash/run_only_platform/run_only_platform_linux/764e2ad7
run_only_platform_linux/764e2ad7: Creating the stage directory: /home/docs/check
outs/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.l
ocal.bash/run_only_platform/run_only_platform_linux/764e2ad7/stage
run_only_platform_linux/764e2ad7: Writing build script: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/run_only_platform/run_only_platform_linux/764e2ad7/run_only_platform_linux_bui
ld.sh

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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:36                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -b tutorials/vars.yml --stage=parse │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  1
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/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          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ variables_bash/30 │ generic.local.bas │ Declare shell    │ /home/docs/checko │
│ cce0d5            │ h                 │ variables in     │ uts/readthedocs.o │
│                   │                   │ bash             │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/vars.yml        │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘

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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:36                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -b tutorials/vars.yml --stage=build │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  1
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/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          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ variables_bash/87 │ generic.local.bas │ Declare shell    │ /home/docs/checko │
│ 42122f            │ h                 │ variables in     │ uts/readthedocs.o │
│                   │                   │ bash             │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/vars.yml        │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
variables_bash/8742122f: Creating test directory: /home/docs/checkouts/readthedo
cs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars
/variables_bash/8742122f
variables_bash/8742122f: Creating the stage directory: /home/docs/checkouts/read
thedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash
/vars/variables_bash/8742122f/stage
variables_bash/8742122f: Writing build script: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/vars/va
riables_bash/8742122f/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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:37                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -b                                  │
│ tutorials/invalid_buildspec_section.yml                                      │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  1
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 0
Invalid Buildspecs: 1
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/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/v0.13.0/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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:37                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -b tutorials/invalid_executor.yml   │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  1
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 0
Invalid Buildspecs: 1
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/invalid_executor.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/v0.13.0/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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:38                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -b tutorials/python-shell.yml       │
│ --rebuild=3                                                                  │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  1
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/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          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ circle_area/2d4f9 │ generic.local.bas │ Calculate circle │ /home/docs/checko │
│ 598               │ h                 │ of area given a  │ uts/readthedocs.o │
│                   │                   │ radius           │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/python-shell.ym │
│                   │                   │                  │ l                 │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ circle_area/00069 │ generic.local.bas │ Calculate circle │ /home/docs/checko │
│ 700               │ h                 │ of area given a  │ uts/readthedocs.o │
│                   │                   │ radius           │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/python-shell.ym │
│                   │                   │                  │ l                 │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ circle_area/fc6b8 │ generic.local.bas │ Calculate circle │ /home/docs/checko │
│ d8a               │ h                 │ of area given a  │ uts/readthedocs.o │
│                   │                   │ radius           │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/python-shell.ym │
│                   │                   │                  │ l                 │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
circle_area/2d4f9598: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-
shell/circle_area/2d4f9598
circle_area/2d4f9598: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/py
thon-shell/circle_area/2d4f9598/stage
circle_area/2d4f9598: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-she
ll/circle_area/2d4f9598/circle_area_build.sh
circle_area/00069700: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-
shell/circle_area/00069700
circle_area/00069700: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/py
thon-shell/circle_area/00069700/stage
circle_area/00069700: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-she
ll/circle_area/00069700/circle_area_build.sh
circle_area/fc6b8d8a: Creating test directory: /home/docs/checkouts/readthedocs.
org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-
shell/circle_area/fc6b8d8a
circle_area/fc6b8d8a: Creating the stage directory: /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/py
thon-shell/circle_area/fc6b8d8a/stage
circle_area/fc6b8d8a: Writing build script: /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-she
ll/circle_area/fc6b8d8a/circle_area_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: circle_area/2d4f9598
______________________________
Launching test: circle_area/00069700
______________________________
Launching test: circle_area/fc6b8d8a
circle_area/2d4f9598: Running Test via command: bash --norc --noprofile -eo 
pipefail circle_area_build.sh
circle_area/00069700: Running Test via command: bash --norc --noprofile -eo 
pipefail circle_area_build.sh
circle_area/00069700: Test completed with returncode: 0
circle_area/2d4f9598: Test completed with returncode: 0
circle_area/00069700: Test completed in 0.110983 seconds
circle_area/2d4f9598: Test completed in 0.112065 seconds
circle_area/00069700: Writing output file -  /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-sh
ell/circle_area/00069700/circle_area.out
circle_area/2d4f9598: Writing output file -  /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-sh
ell/circle_area/2d4f9598/circle_area.out
circle_area/00069700: Writing error file - /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-shel
l/circle_area/00069700/circle_area.err
circle_area/2d4f9598: Writing error file - /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-shel
l/circle_area/2d4f9598/circle_area.err
circle_area/fc6b8d8a: Running Test via command: bash --norc --noprofile -eo 
pipefail circle_area_build.sh
circle_area/fc6b8d8a: Test completed with returncode: 0
circle_area/fc6b8d8a: Test completed in 0.047615 seconds
circle_area/fc6b8d8a: Writing output file -  /home/docs/checkouts/readthedocs.or
g/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-sh
ell/circle_area/fc6b8d8a/circle_area.out
circle_area/fc6b8d8a: Writing error file - /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/python-shel
l/circle_area/fc6b8d8a/circle_area.err
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ Checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ Builder      ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ circle_area/ │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.110983 │
│ 00069700     │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ circle_area/ │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.047615 │
│ fc6b8d8a     │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ circle_area/ │ generic.loc… │ PASS   │ N/A N/A N/A   │ 0          │ 0.112065 │
│ 2d4f9598     │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



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/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_0nxk8qa_.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-15835065-project-280831-buildtest                  │
│ Platform:           Linux                                                    │
│ Current Time:       2022/01/20 22:05:38                                      │
│ buildtest path:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest                                           │
│ buildtest version:  0.13.0                                                   │
│ python path:        /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/envs/v0.13.0/bin/python3                                                  │
│ python version:     3.7.12                                                   │
│ Configuration File: /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/buildtest/settings/config.yml                           │
│ Test Directory:     /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/var/tests                                               │
│ Command:            /home/docs/checkouts/readthedocs.org/user_builds/buildte │
│ st/checkouts/v0.13.0/bin/buildtest build -t fail --rebuild 2                 │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
───────────────────────────  Discovering Buildspecs ────────────────────────────
Discovered Buildspecs:  1
Excluded Buildspecs:  0
Detected Buildspecs after exclusion:  1
                             Discovered buildspecs                              
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.… ║
╚══════════════════════════════════════════════════════════════════════════════╝
                             Buildspecs By Tag=fail                             
╔══════════════════════════════════════════════════════════════════════════════╗
║ Buildspecs                                                                   ║
╟──────────────────────────────────────────────────────────────────────────────╢
║  /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13… ║
╚══════════════════════════════════════════════════════════════════════════════╝
────────────────────────────── Parsing Buildspecs ──────────────────────────────
Valid Buildspecs: 1
Invalid Buildspecs: 0
/home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/tut
orials/pass_returncode.yml: VALID
Total builder objects created: 8
Total compiler builder: 0
Total script builder: 8
Total spack builder: 0
                             Script Builder Details                             
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓
┃ Builder           ┃ Executor          ┃ description      ┃ buildspecs        ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ exit1_fail/aa62c4 │ generic.local.bas │ exit 1 by        │ /home/docs/checko │
│ 75                │ h                 │ default is FAIL  │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ exit1_pass/76017f │ generic.local.bas │ report exit 1 as │ /home/docs/checko │
│ 5d                │ h                 │ PASS             │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ returncode_list_m │ generic.local.bas │ exit 2 failed    │ /home/docs/checko │
│ ismatch/ce8226a2  │ h                 │ since it failed  │ uts/readthedocs.o │
│                   │                   │ to match         │ rg/user_builds/bu │
│                   │                   │ returncode 1     │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ returncode_int_ma │ generic.local.bas │ exit 128 matches │ /home/docs/checko │
│ tch/70ebdc31      │ h                 │ returncode 128   │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ exit1_fail/4b2009 │ generic.local.bas │ exit 1 by        │ /home/docs/checko │
│ 49                │ h                 │ default is FAIL  │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ exit1_pass/9aa690 │ generic.local.bas │ report exit 1 as │ /home/docs/checko │
│ cd                │ h                 │ PASS             │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ returncode_list_m │ generic.local.bas │ exit 2 failed    │ /home/docs/checko │
│ ismatch/28ee985f  │ h                 │ since it failed  │ uts/readthedocs.o │
│                   │                   │ to match         │ rg/user_builds/bu │
│                   │                   │ returncode 1     │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
├───────────────────┼───────────────────┼──────────────────┼───────────────────┤
│ returncode_int_ma │ generic.local.bas │ exit 128 matches │ /home/docs/checko │
│ tch/59324a2c      │ h                 │ returncode 128   │ uts/readthedocs.o │
│                   │                   │                  │ rg/user_builds/bu │
│                   │                   │                  │ ildtest/checkouts │
│                   │                   │                  │ /v0.13.0/tutorial │
│                   │                   │                  │ s/pass_returncode │
│                   │                   │                  │ .yml              │
└───────────────────┴───────────────────┴──────────────────┴───────────────────┘
──────────────────────────────── Building Test ─────────────────────────────────
exit1_fail/aa62c475: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_ret
urncode/exit1_fail/aa62c475
exit1_fail/aa62c475: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pas
s_returncode/exit1_fail/aa62c475/stage
exit1_fail/aa62c475: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_return
code/exit1_fail/aa62c475/exit1_fail_build.sh
exit1_pass/76017f5d: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_ret
urncode/exit1_pass/76017f5d
exit1_pass/76017f5d: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pas
s_returncode/exit1_pass/76017f5d/stage
exit1_pass/76017f5d: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_return
code/exit1_pass/76017f5d/exit1_pass_build.sh
returncode_list_mismatch/ce8226a2: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/pass_returncode/returncode_list_mismatch/ce8226a2
returncode_list_mismatch/ce8226a2: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.
local.bash/pass_returncode/returncode_list_mismatch/ce8226a2/stage
returncode_list_mismatch/ce8226a2: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/pass_returncode/returncode_list_mismatch/ce8226a2/returncode_list_mismatch_bu
ild.sh
returncode_int_match/70ebdc31: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/pass_returncode/returncode_int_match/70ebdc31
returncode_int_match/70ebdc31: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/pass_returncode/returncode_int_match/70ebdc31/stage
returncode_int_match/70ebdc31: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/p
ass_returncode/returncode_int_match/70ebdc31/returncode_int_match_build.sh
exit1_fail/4b200949: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_ret
urncode/exit1_fail/4b200949
exit1_fail/4b200949: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pas
s_returncode/exit1_fail/4b200949/stage
exit1_fail/4b200949: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_return
code/exit1_fail/4b200949/exit1_fail_build.sh
exit1_pass/9aa690cd: Creating test directory: /home/docs/checkouts/readthedocs.o
rg/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_ret
urncode/exit1_pass/9aa690cd
exit1_pass/9aa690cd: Creating the stage directory: /home/docs/checkouts/readthed
ocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pas
s_returncode/exit1_pass/9aa690cd/stage
exit1_pass/9aa690cd: Writing build script: /home/docs/checkouts/readthedocs.org/
user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_return
code/exit1_pass/9aa690cd/exit1_pass_build.sh
returncode_list_mismatch/28ee985f: Creating test directory: /home/docs/checkouts
/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local
.bash/pass_returncode/returncode_list_mismatch/28ee985f
returncode_list_mismatch/28ee985f: Creating the stage directory: /home/docs/chec
kouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.
local.bash/pass_returncode/returncode_list_mismatch/28ee985f/stage
returncode_list_mismatch/28ee985f: Writing build script: /home/docs/checkouts/re
adthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.ba
sh/pass_returncode/returncode_list_mismatch/28ee985f/returncode_list_mismatch_bu
ild.sh
returncode_int_match/59324a2c: Creating test directory: /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/pass_returncode/returncode_int_match/59324a2c
returncode_int_match/59324a2c: Creating the stage directory: /home/docs/checkout
s/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.loca
l.bash/pass_returncode/returncode_int_match/59324a2c/stage
returncode_int_match/59324a2c: Writing build script: /home/docs/checkouts/readth
edocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/p
ass_returncode/returncode_int_match/59324a2c/returncode_int_match_build.sh
──────────────────────────────── Running Tests ─────────────────────────────────
______________________________
Launching test: exit1_fail/aa62c475
______________________________
Launching test: exit1_pass/76017f5d
______________________________
Launching test: returncode_list_mismatch/ce8226a2
______________________________
Launching test: returncode_int_match/70ebdc31
______________________________
Launching test: exit1_fail/4b200949
______________________________
Launching test: exit1_pass/9aa690cd
______________________________
Launching test: returncode_list_mismatch/28ee985f
______________________________
Launching test: returncode_int_match/59324a2c
exit1_fail/aa62c475: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_fail_build.sh
exit1_pass/76017f5d: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_pass_build.sh
exit1_fail/aa62c475: Test completed with returncode: 1
exit1_fail/aa62c475: Test completed in 0.020715 seconds
exit1_fail/aa62c475: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_retur
ncode/exit1_fail/aa62c475/exit1_fail.out
exit1_fail/aa62c475: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_returnc
ode/exit1_fail/aa62c475/exit1_fail.err
exit1_pass/76017f5d: Test completed with returncode: 1
exit1_pass/76017f5d: Test completed in 0.026706 seconds
returncode_list_mismatch/ce8226a2: Running Test via command: bash --norc 
--noprofile -eo pipefail returncode_list_mismatch_build.sh
exit1_pass/76017f5d: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_retur
ncode/exit1_pass/76017f5d/exit1_pass.out
exit1_pass/76017f5d: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_returnc
ode/exit1_pass/76017f5d/exit1_pass.err
exit1_pass/76017f5d: Checking returncode - 1 is matched in list [1]
returncode_int_match/70ebdc31: Running Test via command: bash --norc --noprofile
-eo pipefail returncode_int_match_build.sh
returncode_list_mismatch/ce8226a2: Test completed with returncode: 2
returncode_list_mismatch/ce8226a2: Test completed in 0.021852 seconds
returncode_list_mismatch/ce8226a2: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/pass_returncode/returncode_list_mismatch/ce8226a2/returncode_list_mismatch.o
ut
returncode_list_mismatch/ce8226a2: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/pass_returncode/returncode_list_mismatch/ce8226a2/returncode_list_mismatch.err
returncode_int_match/70ebdc31: Test completed with returncode: 128
returncode_list_mismatch/ce8226a2: Checking returncode - 2 is matched in list 
[1, 3]
returncode_int_match/70ebdc31: Test completed in 0.024206 seconds
returncode_int_match/70ebdc31: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
pass_returncode/returncode_int_match/70ebdc31/returncode_int_match.out
exit1_fail/4b200949: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_fail_build.sh
returncode_int_match/70ebdc31: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pa
ss_returncode/returncode_int_match/70ebdc31/returncode_int_match.err
returncode_int_match/70ebdc31: Checking returncode - 128 is matched in list 
[128]
exit1_pass/9aa690cd: Running Test via command: bash --norc --noprofile -eo 
pipefail exit1_pass_build.sh
exit1_fail/4b200949: Test completed with returncode: 1
exit1_fail/4b200949: Test completed in 0.020927 seconds
exit1_fail/4b200949: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_retur
ncode/exit1_fail/4b200949/exit1_fail.out
exit1_fail/4b200949: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_returnc
ode/exit1_fail/4b200949/exit1_fail.err
exit1_pass/9aa690cd: Test completed with returncode: 1
exit1_pass/9aa690cd: Test completed in 0.021745 seconds
exit1_pass/9aa690cd: Writing output file -  /home/docs/checkouts/readthedocs.org
/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_retur
ncode/exit1_pass/9aa690cd/exit1_pass.out
exit1_pass/9aa690cd: Writing error file - /home/docs/checkouts/readthedocs.org/u
ser_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pass_returnc
ode/exit1_pass/9aa690cd/exit1_pass.err
exit1_pass/9aa690cd: Checking returncode - 1 is matched in list [1]
returncode_list_mismatch/28ee985f: Running Test via command: bash --norc 
--noprofile -eo pipefail returncode_list_mismatch_build.sh
returncode_int_match/59324a2c: Running Test via command: bash --norc --noprofile
-eo pipefail returncode_int_match_build.sh
returncode_list_mismatch/28ee985f: Test completed with returncode: 2
returncode_list_mismatch/28ee985f: Test completed in 0.020411 seconds
returncode_list_mismatch/28ee985f: Writing output file -  /home/docs/checkouts/r
eadthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.b
ash/pass_returncode/returncode_list_mismatch/28ee985f/returncode_list_mismatch.o
ut
returncode_list_mismatch/28ee985f: Writing error file - /home/docs/checkouts/rea
dthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bas
h/pass_returncode/returncode_list_mismatch/28ee985f/returncode_list_mismatch.err
returncode_list_mismatch/28ee985f: Checking returncode - 2 is matched in list 
[1, 3]
returncode_int_match/59324a2c: Test completed with returncode: 128
returncode_int_match/59324a2c: Test completed in 0.021611 seconds
returncode_int_match/59324a2c: Writing output file -  /home/docs/checkouts/readt
hedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/
pass_returncode/returncode_int_match/59324a2c/returncode_int_match.out
returncode_int_match/59324a2c: Writing error file - /home/docs/checkouts/readthe
docs.org/user_builds/buildtest/checkouts/v0.13.0/var/tests/generic.local.bash/pa
ss_returncode/returncode_int_match/59324a2c/returncode_int_match.err
returncode_int_match/59324a2c: Checking returncode - 128 is matched in list 
[128]
                                  Test Summary                                  
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
┃              ┃              ┃        ┃ Checks        ┃            ┃          ┃
┃              ┃              ┃        ┃ (ReturnCode,  ┃            ┃          ┃
┃              ┃              ┃        ┃ Regex,        ┃            ┃          ┃
┃ Builder      ┃ executor     ┃ status ┃ Runtime)      ┃ ReturnCode ┃ Runtime  ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩
│ exit1_fail/a │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.020715 │
│ a62c475      │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_pass/7 │ generic.loc… │ PASS   │ True False    │ 1          │ 0.026706 │
│ 6017f5d      │              │        │ False         │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_l │ generic.loc… │ FAIL   │ False False   │ 2          │ 0.021852 │
│ ist_mismatch │              │        │ False         │            │          │
│ /ce8226a2    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_i │ generic.loc… │ PASS   │ True False    │ 128        │ 0.024206 │
│ nt_match/70e │              │        │ False         │            │          │
│ bdc31        │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_fail/4 │ generic.loc… │ FAIL   │ N/A N/A N/A   │ 1          │ 0.020927 │
│ b200949      │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ exit1_pass/9 │ generic.loc… │ PASS   │ True False    │ 1          │ 0.021745 │
│ aa690cd      │              │        │ False         │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_l │ generic.loc… │ FAIL   │ False False   │ 2          │ 0.020411 │
│ ist_mismatch │              │        │ False         │            │          │
│ /28ee985f    │              │        │               │            │          │
├──────────────┼──────────────┼────────┼───────────────┼────────────┼──────────┤
│ returncode_i │ generic.loc… │ PASS   │ True False    │ 128        │ 0.021611 │
│ nt_match/593 │              │        │ False         │            │          │
│ 24a2c        │              │        │               │            │          │
└──────────────┴──────────────┴────────┴───────────────┴────────────┴──────────┘



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/v0.13.0/var/report.json
Writing Logfile to: /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0/var/logs/buildtest_ctdpq9s0.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/pass_returncode.yml --rebuild 51
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│                                                                              │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0 │
│ /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 │ │
│ │                   0x7f798c6c3190>                                        │ │
│ │        __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.12/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/v0.13.0 │
│ /buildtest/main.py:125 in main                                               │
│                                                                              │
│   122 │   │   │   │   account=args.account,                                  │
│   123 │   │   │   │   helpfilter=args.helpfilter,                            │
│   124 │   │   │   │   numprocs=args.procs,                                   │
│ ❱ 125 │   │   │   │   numnodes=args.nodes,                                   │
│   126 │   │   │   )                                                          │
│   127 │   │   │   cmd.build()                                                │
│   128                                                                        │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │               args = Namespace(account=None,                             │ │
│ │                      buildspec=['tutorials/pass_returncode.yml'],        │ │
│ │                      configfile=None, debug=False,                       │ │
│ │                      disable_executor_check=True, exclude=None,          │ │
│ │                      executor=None, filter=None, helpfilter=False,       │ │
│ │                      keep_stage_dir=False, maxpendtime=None,             │ │
│ │                      no_color=False, nodes=None, pollinterval=None,      │ │
│ │                      procs=None, rebuild=51, report=None, retry=1,       │ │
│ │                      stage=None, subcommands='build', tags=None,         │ │
│ │                      testdir=None)                                       │ │
│ │        config_file = None                                                │ │
│ │      configuration = <buildtest.config.SiteConfiguration object at       │ │
│ │                      0x7f798a88b4d0>                                     │ │
│ │              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)            │ │
│ │             system = <buildtest.system.BuildTestSystem object at         │ │
│ │                      0x7f798a4fc1d0>                                     │ │
│ │ validate_executors = True                                                │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
│                                                                              │
│ /home/docs/checkouts/readthedocs.org/user_builds/buildtest/checkouts/v0.13.0 │
│ /buildtest/cli/build.py:541 in __init__                                      │
│                                                                              │
│    538 │   │   │                                                             │
│    539 │   │   │   if rebuild > 50:                                          │
│    540 │   │   │   │   raise BuildTestError(                                 │
│ ❱  541 │   │   │   │   │   f"--rebuild {rebuild} exceeds maximum rebuild lim │
│    542 │   │   │   │   )                                                     │
│    543 │   │                                                                 │
│    544 │   │   self.keep_stage_dir = keep_stage_dir                          │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │            account = None                                                │ │
│ │         buildspecs = ['tutorials/pass_returncode.yml']                   │ │
│ │   buildtest_system = <buildtest.system.BuildTestSystem object at         │ │
│ │                      0x7f798a4fc1d0>                                     │ │
│ │      configuration = <buildtest.config.SiteConfiguration object at       │ │
│ │                      0x7f798a88b4d0>                                     │ │
│ │ exclude_buildspecs = None                                                │ │
│ │          executors = None                                                │ │
│ │  filter_buildspecs = None                                                │ │
│ │         helpfilter = False                                               │ │
│ │     keep_stage_dir = False                                               │ │
│ │      max_pend_time = None                                                │ │
│ │           numnodes = None                                                │ │
│ │           numprocs = None                                                │ │
│ │      poll_interval = None                                                │ │
│ │            rebuild = 51                                                  │ │
│ │        report_file = None                                                │ │
│ │              retry = 1                                                   │ │
│ │               self = <buildtest.cli.build.BuildTest object at            │ │
│ │                      0x7f798a4be810>                                     │ │
│ │              stage = None                                                │ │
│ │               tags = None                                                │ │
│ │            testdir = None                                                │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
BuildTestError: '--rebuild 51 exceeds maximum rebuild limit of 50'

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