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

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