Skip to content

thunderjar run ​

Run a test case: one execution, with a new ID. Builds any missing prerun image, then runs each iteration of each permutation in a container from its prerun image, commits it into its postrun image, takes the task's measurements of it, in a container from its postrun image, and records it in the run data store. With an image store in thunderjar.config.ts, checks your docker login for its registry first, and pushes each prerun and postrun image there. With a runtime in thunderjar.config.ts, builds the prerun images on it and runs the containers there, up to its concurrency at once, or THUNDERJAR_CONCURRENCY, or --concurrency. --iterations overrides the test case's iterations.

text
Usage: thunderjar run [options] <test case>

Run a test case: one execution, with a new ID. Builds any missing prerun image,
then runs each iteration of each permutation in a container from its prerun
image, commits it into its postrun image, takes the task's measurements of it,
in a container from its postrun image, and records it in the run data store.
With an image store in thunderjar.config.ts, checks your docker login for its
registry first, and pushes each prerun and postrun image there. With a runtime
in thunderjar.config.ts, builds the prerun images on it and runs the containers
there, up to its concurrency at once, or THUNDERJAR_CONCURRENCY, or
--concurrency. --iterations overrides the test case's iterations.

Arguments:
  test case                 the name of a test case, declared in
                            .thunderjar/test-cases/<test case>.ts

Options:
  --base-image <names>      use these base images, comma-separated, instead of
                            the test case's
  --code-state <names>      use these code states, comma-separated, instead of
                            the test case's
  --prompt-set <names>      use these prompt sets, comma-separated, instead of
                            the test case's
  --harness-model <names>   use these harness model pairs, comma-separated,
                            instead of the test case's
  --initial-prompt <names>  use these initial prompts, comma-separated, instead
                            of the test case's
  --iterations <n>          run <n> iterations of each permutation, instead of
                            the test case's iterations
  --dry-run                 show the manifest: every permutation, run and image,
                            without building or running anything
  --build-only              build the missing prerun images, and push them to
                            the image store if there's one, without running
                            anything
  --concurrency <n>         run up to <n> containers at once, instead of the
                            runtime's concurrency, or one at a time
  --timings                 once the execution ends, show how long each of its
                            phases took: builds, pushes, pulls, agents, commits
                            and measuring
  --image-prefix <name>     start every image name with <name>, e.g.
                            <name>-prerun:<hash>, instead of thunderjar
                            (default: "thunderjar")
  --data-dir <dir>          the folder holding the run data store, as
                            runs.sqlite, instead of the runDataStore of
                            .thunderjar/thunderjar.config.ts
  --json                    print the results on stdout as JSON, for scripts.
                            Progress goes to stderr
  -h, --help                display help for command