OILS / soil / worker.sh View on Github | oils.pub

658 lines, 208 significant
1#!/usr/bin/env bash
2#
3# Run continuous build tasks.
4#
5# Usage:
6# soil/worker.sh <function name>
7
8set -o nounset
9set -o pipefail
10set -o errexit
11
12REPO_ROOT=$(cd "$(dirname $0)/.."; pwd) # tsv-lib.sh uses this
13readonly REPO_ROOT
14
15source soil/common.sh
16source test/tsv-lib.sh
17
18py-all-and-ninja() {
19 ### baseline for most tasks
20
21 build/py.sh all
22 ./NINJA-config.sh
23}
24
25ninja-config() {
26 ./NINJA-config.sh
27}
28
29dummy-tasks() {
30 ### Print tasks that execute quickly
31
32 # (task_name, script, action, result_html)
33 cat <<EOF
34os-info soil/diagnose.sh os-info -
35dump-env soil/diagnose.sh dump-env -
36EOF
37}
38
39raw-vm-tasks() {
40 # The perf tool depends on a specific version of a kernel, so run it outside
41 # a container.
42
43 # (task_name, script, action, result_html)
44 cat <<EOF
45os-info soil/diagnose.sh os-info -
46dump-env soil/diagnose.sh dump-env -
47perf-install benchmarks/perf.sh soil-install -
48wait-for-tarball soil/wait.sh for-cpp-tarball -
49test-install-tar devtools/release-native.sh test-install-tar -
50perf-profiles benchmarks/perf.sh soil-run _tmp/perf/index.html
51EOF
52}
53
54# Oh there is a large list of pre-installed software
55# https://github.com/actions/runner-images#available-images
56# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2004-Readme.md
57# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md
58#
59# 1. System deps for building wedges - ninja, cmake, libreadline-dev, etc.
60# 2. fetch wedges - re2c, cmark, python2, python3, MyPy, pyflakes
61# - Python 3.10 desired for "pea"
62# 3. build them
63# 4. build Oils with them
64
65dev-setup-for() {
66 local distro=$1
67 # (task_name, script, action, result_html)
68
69 cat <<EOF
70os-info soil/diagnose.sh os-info -
71dump-env soil/diagnose.sh dump-env -
72wedge-deps build/deps.sh wedge-deps-$distro -
73fetch build/deps.sh fetch -
74install-wedges build/deps.sh install-wedges-soil _build/wedge/logs/index.html
75py-all-and-ninja soil/worker.sh py-all-and-ninja -
76smoke-test build/dev-setup-test.sh smoke-test -
77wedge-report build/deps.sh wedge-report -
78EOF
79}
80
81spec-bin-for() {
82 local distro=$1
83 cat <<EOF
84os-info soil/diagnose.sh os-info -
85dump-env soil/diagnose.sh dump-env -
86wedge-deps build/deps.sh wedge-deps-$distro -
87fetch build/deps.sh fetch -
88spec-bin build/deps.sh install-spec-bin-fast _build/wedge/logs/index.html
89EOF
90}
91
92dev-setup-debian-tasks() {
93 # (task_name, script, action, result_html)
94
95 dev-setup-for debian
96}
97
98dev-setup-fedora-tasks() {
99 # (task_name, script, action, result_html)
100
101 dev-setup-for fedora
102}
103
104dev-setup-alpine-tasks() {
105 # (task_name, script, action, result_html)
106
107 dev-setup-for alpine
108}
109
110pea-tasks() {
111 ### Print tasks for the 'pea' build
112
113 # We need a later version of Python 3 / MyPy both to type check and
114 # to parse
115
116 # Run py-source so we can type check generated code
117 # We need to type check more than we translate
118
119 # (task_name, script, action, result_html)
120 cat <<EOF
121os-info soil/diagnose.sh os-info -
122dump-env soil/diagnose.sh dump-env -
123py-source build/py.sh py-source -
124typecheck pea/TEST.sh check-with-latest-mypy -
125parse-all pea/TEST.sh parse-all -
126EOF
127
128# Moved this to cpp-small, because it depends on py-all-and-ninja
129# run-tests pea/TEST.sh run-tests -
130}
131
132dev-minimal-tasks() {
133 ### Print tasks for the 'dev-minimal' build
134
135 # repo overview is suggested by README.md
136
137 # (task_name, script, action, result_html)
138 cat <<EOF
139os-info soil/diagnose.sh os-info -
140dump-env soil/diagnose.sh dump-env -
141build-minimal build/py.sh minimal -
142repo-overview metrics/source-code.sh overview -
143lint test/lint.sh soil-run -
144asdl-types asdl/TEST.sh check-types -
145oil-types devtools/types.sh soil-run -
146unit test/unit.sh minimal _test/py-unit/
147lossless test/lossless.sh soil-run -
148parse-errors test/parse-errors.sh soil-run-py -
149runtime-errors test/runtime-errors.sh soil-run-py -
150ysh-parse-errors test/ysh-parse-errors.sh soil-run-py -
151ysh-runtime-errors test/ysh-runtime-errors.sh soil-run-py -
152ysh-every-string test/ysh-every-string.sh soil-run-py -
153ysh-large ysh/run.sh soil-run -
154j8-errors data_lang/j8-errors.sh soil-run-py -
155error-catalog doc/error-catalog.sh soil-run-py -
156link-busybox-ash test/spec-bin.sh link-busybox-ash -
157osh-minimal test/spec-py.sh osh-minimal _tmp/spec/osh-minimal/index.html
158headless client/run.sh soil-run-py -
159stdlib-test stdlib/TEST.sh soil-run -
160EOF
161}
162
163interactive-tasks() {
164 ### Print tasks for the 'interactive' build
165
166 # TODO: also run interactive suite with osh-cpp
167
168# TODO: Why does the needs-terminal suite hang in Docker? It doesn't hang in an interactive Docker session.
169#
170# needs-terminal test/spec-py.sh needs-terminal-all _tmp/spec/needs-terminal-py/index.html
171#
172# https://oilshell.zulipchat.com/#narrow/stream/121539-oil-dev/topic/Spec.20Tests.20for.20Interactive.20Parsing
173
174 cat <<EOF
175os-info soil/diagnose.sh os-info -
176dump-env soil/diagnose.sh dump-env -
177py-all-and-ninja soil/worker.sh py-all-and-ninja -
178interactive-osh test/spec-py.sh interactive-osh _tmp/spec/interactive-osh/index.html
179nohup test/nohup.sh soil-run -
180process-table test/process-table.sh soil-run _tmp/process-table/index.html
181stateful test/stateful.sh soil-run _tmp/spec/stateful/index.html
182EOF
183
184}
185
186wild-tasks() {
187 ### Print tasks for the 'wild' build
188
189 # (task_name, script, action, result_html)
190 cat <<EOF
191os-info soil/diagnose.sh os-info -
192dump-env soil/diagnose.sh dump-env -
193wait-for-tarball soil/wait.sh for-cpp-tarball -
194test-tar devtools/release-native.sh test-tar -
195linecount metrics/tarball.sh linecount-oils-cpp -
196wild test/wild.sh soil-run _tmp/wild-www/index.html
197EOF
198}
199
200benchmarks-tasks() {
201 # (task_name, script, action, result_html)
202
203 cat <<EOF
204os-info soil/diagnose.sh os-info -
205dump-env soil/diagnose.sh dump-env -
206py-all-and-ninja soil/worker.sh py-all-and-ninja -
207dev-shell-test build/dev-shell-test.sh soil-run -
208id-test benchmarks/id-test.sh soil-run -
209osh-parser benchmarks/osh-parser.sh soil-run _tmp/osh-parser/index.html
210osh-runtime benchmarks/osh-runtime.sh soil-run _tmp/osh-runtime/index.html
211vm-baseline benchmarks/vm-baseline.sh soil-run _tmp/vm-baseline/index.html
212compute benchmarks/compute.sh soil-run _tmp/compute/index.html
213gc benchmarks/gc.sh soil-run _tmp/gc/index.html
214mycpp-benchmarks benchmarks/mycpp.sh soil-run _tmp/mycpp-examples/index.html
215EOF
216}
217
218bloaty-tasks() {
219 cat <<EOF
220os-info soil/diagnose.sh os-info -
221dump-env soil/diagnose.sh dump-env -
222wait-for-tarball soil/wait.sh for-cpp-tarball -
223test-tar devtools/release-native.sh test-tar -
224native-code metrics/native-code.sh oils-for-unix _tmp/metrics/oils-for-unix/
225EOF
226}
227
228benchmarks2-tasks() {
229 # Note: id-test doesn't run in 'other-tests' because 'gawk' isn't in that image
230 cat <<EOF
231os-info soil/diagnose.sh os-info -
232dump-env soil/diagnose.sh dump-env -
233wait-for-tarball soil/wait.sh for-cpp-tarball -
234test-tar devtools/release-native.sh test-tar -
235py-source build/py.sh py-source -
236uftrace benchmarks/uftrace.sh soil-run _tmp/uftrace/index.html
237gc-cachegrind benchmarks/gc-cachegrind.sh soil-run _tmp/gc-cachegrind/index.html
238EOF
239 # 2025-01: added py-source because benchmarks use cmark.py, which uses
240 # htm8_asdl to ExpandLinks() and so forth
241}
242
243cpp-spec-tasks() {
244 # (task_name, script, action, result_html)
245
246 cat <<EOF
247os-info soil/diagnose.sh os-info -
248dump-env soil/diagnose.sh dump-env -
249py-all-and-ninja soil/worker.sh py-all-and-ninja -
250oils-cpp-smoke build/native.sh soil-run -
251osh-all test/spec-cpp.sh osh-all _tmp/spec/osh-cpp/compare.html
252ysh-all test/spec-cpp.sh ysh-all _tmp/spec/ysh-cpp/compare.html
253ysh-py test/spec-py.sh ysh-all-serial _tmp/spec/ysh-py/index.html
254EOF
255}
256
257cpp-tarball-tasks() {
258
259 # Note: build-times task requires _build/oils.sh
260 # It's a bit redundant with test-tar
261
262 cat <<EOF
263os-info soil/diagnose.sh os-info -
264dump-env soil/diagnose.sh dump-env -
265py-all-and-ninja soil/worker.sh py-all-and-ninja -
266oils-cpp-smoke build/native.sh soil-run -
267make-tar devtools/release-native.sh make-tar _release/oils-for-unix.tar
268xshar-hello devtools/xshar.sh soil-run-hello _release/hello-xshar.xshar
269xshar-test-oils devtools/xshar.sh soil-run-test-oils _release/test-oils.xshar
270build-times build/native.sh measure-build-times -
271EOF
272
273# build-times is a good enough test
274# test-tar devtools/release-native.sh test-tar -
275#
276# Note: tarball is deployed outside the container
277
278}
279
280cpp-small-tasks() {
281
282 # yaks could be moved to pea/ image once it has python2-dev
283 cat <<EOF
284os-info soil/diagnose.sh os-info -
285dump-env soil/diagnose.sh dump-env -
286py-all-and-ninja soil/worker.sh py-all-and-ninja -
287py-unit test/unit.sh all _test/py-unit/
288yaks yaks/TEST.sh soil-run -
289pea pea/TEST.sh run-tests -
290oils-cpp-smoke build/native.sh soil-run -
291cpp-unit test/cpp-unit.sh soil-run _test/-wwz-index
292headless client/run.sh soil-run-cpp -
293asan test/asan.sh soil-run -
294ltrace test/ltrace.sh soil-run -
295micro-syntax doctools/micro-syntax.sh soil-run -
296src-tree doctools/src-tree.sh soil-run _tmp/src-tree-www/index.html
297line-counts metrics/source-code.sh write-reports _tmp/metrics/line-counts/-wwz-index
298preprocessed metrics/source-code.sh preprocessed _tmp/metrics/preprocessed/-wwz-index
299mycpp-examples mycpp/TEST.sh soil-run _test/-wwz-index
300parse-errors test/parse-errors.sh soil-run-cpp -
301runtime-errors test/runtime-errors.sh soil-run-cpp -
302ysh-parse-errors test/ysh-parse-errors.sh soil-run-cpp -
303ysh-runtime-errors test/ysh-runtime-errors.sh soil-run-cpp -
304ysh-every-string test/ysh-every-string.sh soil-run-cpp -
305ysh-large ysh/run.sh soil-run-cpp -
306j8-errors data_lang/j8-errors.sh soil-run-cpp -
307error-catalog doc/error-catalog.sh soil-run-cpp -
308houston-fp demo/houston-fp/run.sh soil-run -
309souffle-smoke-test test/souffle-smoke.sh soil-run -
310EOF
311}
312
313cpp-coverage-tasks() {
314 # dep notes: hnode_asdl.h required by expr_asdl.h in mycpp/examples
315
316 # TODO: make this work
317#tar-compile benchmarks/ovm-build.sh soil-run -
318 cat <<EOF
319os-info soil/diagnose.sh os-info -
320dump-env soil/diagnose.sh dump-env -
321py-all-and-ninja soil/worker.sh py-all-and-ninja -
322extract-clang deps/from-binary.sh extract-clang-in-container -
323mycpp-unit-coverage mycpp/TEST.sh unit-test-coverage _test/clang-coverage/mycpp/html/index.html
324mycpp-examples-coverage mycpp/TEST.sh examples-coverage _test/clang-coverage/mycpp/examples/html/index.html
325cpp-coverage cpp/TEST.sh coverage _test/clang-coverage/cpp/html/index.html
326unified-coverage test/coverage.sh unified-report _test/clang-coverage/unified/html/index.html
327compare-gcc-clang metrics/native-code.sh compare-gcc-clang _tmp/metrics/compare-gcc-clang.txt
328EOF
329}
330
331ovm-tarball-tasks() {
332 ### Print tasks for the 'ovm-tarball' build
333
334 # notes:
335 # - py-all needed to crawl dependencies to make tarball.
336
337 # (task_name, script, action, result_html)
338 cat <<EOF
339os-info soil/diagnose.sh os-info -
340dump-env soil/diagnose.sh dump-env -
341py-all build/py.sh all -
342configure devtools/release.sh configure-for-release -
343make-tarball devtools/release.sh py-tarball _release/oil.tar
344ysh-ovm-tarball test/spec-py.sh ysh-ovm-tarball _tmp/spec/ysh-py/index.html
345syscall test/syscall.sh soil-run _tmp/syscall/-wwz-index
346osh-spec test/spec-py.sh osh-all-serial _tmp/spec/osh-py/index.html
347gold test/gold.sh soil-run -
348osh-usage test/osh-usage.sh soil-run -
349tools-deps test/tools-deps.sh soil-run -
350ninja-config soil/worker.sh ninja-config -
351docs build/doc.sh soil-run _release/VERSION/index.html
352doc-metrics echo no-op _release/VERSION/doc/metrics.txt
353check-docs data_lang/htm8-test.sh soil-run -
354EOF
355# Notes:
356# - 'docs' depends on 'ninja-config' to run build/ninja_main.py, which makes
357# _build/oils.sh. Maybe all the docs need to be in Ninja
358# - doc-metrics is a no-op, just for the link. Because soil-run just runs the
359# release, which creates metrics.
360}
361
362# Reuse ovm-tarball container
363app-tests-tasks() {
364
365 cat <<EOF
366os-info soil/diagnose.sh os-info -
367dump-env soil/diagnose.sh dump-env -
368py-all build/py.sh all -
369ble-clone test/ble.sh clone -
370ble-build test/ble.sh build -
371ble-bash-suite test/ble.sh bash-suite -
372ble-test-osh-py test/ble.sh run-tests-osh-py -
373wait-for-tarball soil/wait.sh for-cpp-tarball -
374test-tar devtools/release-native.sh test-tar -
375ble-test-osh-cpp test/ble.sh run-tests-osh-cpp -
376EOF
377
378# This doesn't work
379# ble-test-osh-bash test/ble.sh run-tests-osh-bash -
380}
381
382# TODO: Most of these should be Ninja tasks.
383# Other tests:
384# find-test, xargs-test, pgen2-test, web/table/csv2html-test.sh
385# Probably should start using a shell test framework too.
386other-tests-tasks() {
387 cat <<EOF
388os-info soil/diagnose.sh os-info -
389dump-env soil/diagnose.sh dump-env -
390build-minimal build/py.sh minimal -
391configure-test ./configure-test.sh soil_run -
392time-test benchmarks/time-test.sh soil-run -
393tsv-lib-test test/tsv-lib-test.sh soil-run -
394ysh-ify test/ysh-ify.sh soil-run -
395R-test devtools/R-test.sh soil-run -
396xargs-test test/other.sh xargs-test -
397csv2html-test test/other.sh csv2html-test -
398oil-python-symbols metrics/source-code.sh oil-python-symbols -
399opyc test/opyc.sh soil-run -
400opy-count-lines opy/soil.sh count-lines -
401test-gold opy/soil.sh test-gold -
402build-oil-repo opy/soil.sh build-oil-repo -
403regtest-compile opy/soil.sh regtest-compile -
404EOF
405
406# TODO: add this back after fixing transitive test enumeration problem
407# We shouldn't use
408
409# web-remote-test soil/web-remote-test.sh soil-run -
410}
411
412tests-todo() {
413 ### More tests to add
414 find . -name '_*' -a -prune -o -name '*-test.sh' -a -print
415
416 # pgen2/pgen2-test.sh seems mostly broken
417}
418
419# Redefinition for quicker cloud debugging
420maybe-merge-tasks() {
421 cat <<EOF
422os-info soil/diagnose.sh os-info -
423dump-env soil/diagnose.sh dump-env -
424maybe-merge soil/maybe-merge.sh soil-run -
425EOF
426}
427
428run-tasks() {
429 ### Run the tasks on stdin and write _tmp/soil/INDEX.tsv.
430 local job_name=$1
431 local out_dir=$2 # should already exist
432 local tty=$3
433
434 mkdir -p $out_dir/logs
435
436 # So we can run benchmarks/time_.py.
437 # 2023-02-28: Images like soil-wild based off the new soil-common no longer
438 # have 'cc'. Instead they use a wedge.
439 if command -v cc > /dev/null; then
440 build/py.sh time-helper
441 else
442 echo 'test time-tsv3'
443 time-tsv3 -o /tmp/echo.tsv --append -- echo hi
444
445 echo '/tmp/echo.tsv:'
446 cat /tmp/echo.tsv
447 fi
448
449 # For the later deploy step to pick up
450 date +%s > $out_dir/task-run-start-time.txt
451
452 # This data can go on the dashboard index
453 local tsv=$out_dir/INDEX.tsv
454 rm -f $tsv
455
456 local status
457 local max_status=0
458
459 while read task_name script action result_html; do
460 log "--- task: $task_name ---"
461
462 local log_path=$out_dir/logs/$task_name.txt
463
464 # 15 minutes per task
465 # One of the longest tasks is test/spec-cpp, which takes around 420 seconds
466 # TODO: should have a configurable timeout
467 local -a timeout=(timeout 900)
468 local stdin_tty=''
469
470 case $script in
471 test/process-table.sh)
472 # Workaround for weird interaction, see
473 # $ test/process-table.sh timeout-issue
474 timeout=()
475 ;;
476 test/nohup.sh)
477 # Only run test/nohup.sh with TTY. For some reason build/py.sh all hangs
478 # with $tty?
479 stdin_tty=$tty
480 ;;
481 esac
482
483 local -a argv=(
484 time-tsv3 -o $tsv --append
485 --field $task_name --field $script --field $action
486 --field $result_html --
487 "${timeout[@]}" "$script" "$action"
488 )
489
490 # Run task and save status
491 set +o errexit
492 if test -n "$stdin_tty"; then
493 # explicitly connect TTY, e.g. for soil/interactive
494 "${argv[@]}" > $log_path 2>&1 < $stdin_tty
495 else
496 # Temporary fix: build/doc.sh soil-run reads from stdin!
497 "${argv[@]}" > $log_path 2>&1 < /dev/null
498 fi
499 status=$?
500 set -o errexit
501
502 if test "$status" -gt "$max_status"; then
503 max_status=$status
504 fi
505
506 # Show the last line
507 echo
508 tsv-row status elapsed task script action result_html
509 tail -n 1 $tsv
510 echo
511 log "status=$status max_status=$max_status"
512 done
513
514 log '--- done ---'
515 ls -l $out_dir
516 wc -l $out_dir/logs/*
517
518 # This suppressed the deployment of logs, which we don't want. So all our
519 # Travis builds succeed? But then we can't use their failure notifications
520 # (which might be OK).
521 if false; then
522 # exit with the maximum exit code.
523 awk '
524 BEGIN { max = 0 }
525 { if ($1 > max) { max = $1 } }
526 END { exit(max) }
527 ' $tsv
528 fi
529
530 # To fail later. Important: this dir persists across jobs; it's NOT removed
531 # by 'host-shim.sh job-reset'.
532 mkdir -p _soil-jobs
533
534 # Hack: Assign job_id and write it to the status file. Other jobs can poll
535 # for completion of this job and access its resources.
536
537 local job_id
538 job_id="$(date +%Y-%m-%d__%H-%M-%S)"
539
540 # e.g. _soil-jobs/dummy.status.txt
541 echo "$max_status $job_id" > _soil-jobs/$job_name.status.txt
542}
543
544save-metadata() {
545 ### Write metadata files to be saved as JSON
546
547 # NOTE: host-shim.sh also writes image-pull-time.txt
548
549 local job_name=$1
550 local meta_dir=$2
551
552 echo "$job_name" > $meta_dir/job-name.txt
553
554 # command to show current branch
555 # This does NOT work in detached HEAD! Travis puts the branch in an env
556 # variable, but sr.ht doesn't.
557 # git rev-parse --abbrev-ref HEAD > $meta_dir/git-branch.txt
558
559 git log -n 1 --pretty='format:%H' > $meta_dir/commit-hash.txt
560
561 # ISO 8601 format
562 # Note: this can get confused with rebases. Two different commits can have
563 # the same date.
564 git log -n 1 --pretty='format:%aI' > $meta_dir/commit-date.txt
565
566 git log -n 1 --pretty='format:%s' > $meta_dir/commit-line.txt # "subject"
567}
568
569disable-git-errors() {
570
571 # 2023-02: The build started failing because of the permissions we set in
572 # soil/host-shim.sh mount-perms.
573 #
574 # The issue is that the guest needs to be able to write to the Docker mount
575 # of the repo. I think it may have been related to podman vs. Docker.
576 # Should check if mount-perms is necessary in both places.
577 #
578 # git fails unless we have this workaround.
579
580 # https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-repositor
581
582 # https://github.blog/2022-04-12-git-security-vulnerability-announced/
583
584 #git config --global --add safe.directory '*'
585
586 git config --global --add safe.directory /home/uke/oil
587}
588
589job-main() {
590 local job_name=$1
591
592 local out_dir=_tmp/soil
593
594 # Report for debugging
595 export EXTRA_MYCPP_ARGS='--stack-roots-warn 16'
596
597 log-context 'job-main'
598 mkdir -v -p $out_dir
599 ls -l -d $out_dir
600
601 disable-git-errors
602
603 save-metadata $job_name $out_dir
604
605 local captured
606
607 set +o errexit
608 captured=$(tty)
609 status=$?
610 set -o errexit
611
612 if test $status -eq 0; then
613 echo "TTY = $captured"
614 local tty=$captured
615 else
616 echo "captured = $captured"
617 local tty='' # clear the output
618 fi
619 echo
620
621 ${job_name}-tasks | run-tasks $job_name $out_dir "$tty"
622}
623
624JOB-dummy() { job-main 'dummy'; }
625JOB-raw-vm() { job-main 'raw-vm'; }
626JOB-dev-setup-debian() { job-main 'dev-setup-debian'; }
627JOB-dev-setup-fedora() { job-main 'dev-setup-fedora'; }
628JOB-dev-setup-alpine() { job-main 'dev-setup-alpine'; }
629
630JOB-dev-minimal() { job-main 'dev-minimal'; }
631JOB-interactive() { job-main 'interactive'; }
632
633JOB-other-tests() { job-main 'other-tests'; }
634
635JOB-pea() { job-main 'pea'; }
636
637JOB-ovm-tarball() { job-main 'ovm-tarball'; }
638JOB-app-tests() { job-main 'app-tests'; }
639
640JOB-cpp-coverage() { job-main 'cpp-coverage'; }
641JOB-cpp-small() { job-main 'cpp-small'; }
642JOB-cpp-tarball() { job-main 'cpp-tarball'; }
643JOB-cpp-spec() { job-main 'cpp-spec'; }
644
645JOB-bloaty() { job-main 'bloaty'; }
646JOB-benchmarks() { job-main 'benchmarks'; }
647JOB-benchmarks2() { job-main 'benchmarks2'; }
648
649JOB-wild() { job-main 'wild'; }
650
651JOB-maybe-merge() { job-main 'maybe-merge'; }
652
653list-jobs() {
654 # dev-setup-fedora for Fedora, disable
655 compgen -A function | grep -- '^JOB-' | sed 's/^JOB-//g' | egrep -v 'maybe-merge|dev-setup-fedora|dev-setup-alpine'
656}
657
658"$@"