Development
How it is tested, and what CI runs. To work on it, start with AGENTS.md.
Tests
make check runs all of them. Each is a program or a script that exits 0 to pass, 77 to report SKIP when something it needs is missing (a browser, groff, mandoc), and anything else to fail. Each says what it checks in the words of its own source.
The benchmarks
test_bmb_bench.csrc/c/common- Checks what the benchmark driver does with a benchmark no routine is: one without a check of its result. --verify, which is on by default, must refuse to run it rather than time numbers nobody checked; with -C it runs. Every real benchmark has its check (test_bmb_verify.sh), so only a stub reaches the refusal. The quartiles, on samples a real run cannot be made to give. And --cache cold (#160), on stubs that count what is done to their copies: as many copies as the last-level cache of the x86 fixture calls for, each call on the next one, each restored after its call and before the next on it — after --verify's call too, that copy going last — none called right after its restore, every copy torn down; at most 16384 copies; refused for a benchmark that does not say what its operands take. --align and --ld-pad (#163), on a stub whose setup() asks for an operand and a leading dimension: the operand aligned as asked, the leading dimension padded. And the time-based warm-up and sampling (#164), on stubs whose calls take a known time or none to speak of: --warmup-time once a thread count, --min-time and --max-time in the calls they allow, --max-spread judged on 10 samples at least, or -i, then at each doubling, and never more than 100000, on a clock the test moves itself (#218). And the default size of each level (#165), on stubs that only record * the size they are set up for.
test_bmb_fill.csrc/c/common- The fill most operands get (bmb_fill, bmb_prec.h) is the same bytes whatever the build (#340): each element its multiply and its subtract rounded apart, as the formula reads, an exact 0 every hundred elements. A fused multiply-add, which GCC and Clang make of them by default where the target has one, rounds once and changed the values; configure turns contraction off (-ffp-contract=off). Compiled once in single precision and once in double (BMB_PREC_S, BMB_PREC_D); a complex element's parts use the same expression. It guards something where the compiler would fuse: an aarch64 build, which always has FMA, or an x86 one built with -march; and it fails when a user's CFLAGS turns contraction back on.
test_bmb_machine.csrc/c/common- Checks the machine probe.
test_bmb_options.csrc/c/common- Unit tests for the command-line layer.
test_bmb_print.csrc/c/common- Checks what the output layer makes of inputs no benchmark gives it: a CSV column name rewritten from a label with every kind of character around its words (punctuation first, braces, brackets, @, ~, digits), the columns of a routine with no operation count, a command line whose words a shell would need quoted (a quote, a newline, a DEL, an empty word) and a variable's value with a space, in the run lines and the JSON, and a stream already in error, or whose flush fails, when its writes are checked. The rest of the output is checked end to end by * test_bmb_output_formats.sh.
test_bmb_star.csrc/c/common- Checks which CPUs --star pins its instances to (#173): one per core, the first of each in the affinity, read from sysfs trees generated here; and what it does outside an instance. Running instances is * ../test_bmb_star.sh's.
test_bmb_verify.csrc/c/common- Unit tests for the building blocks of --verify: the reference products on small matrices worked out by hand, real and complex, in double and single precision, the comparison and its message, the tolerances, the probe vector, and the corruption hooks the benchmark tests use to prove each check can fail.
fuzz_bmb_options.csrc/c/common- Fuzzes the command-line parser: each input, split on its NUL bytes, is an argv given to bmb_options_parse(), and whatever it accepts is held to what the benchmarks rely on — every point between 1 and the size ceiling, at most BMB_MAX_SWEEP_POINTS of them, at least one iteration, a printable label, the output format a .json file implies, an alignment posix_memalign() takes and a padding that keeps every matrix size within the ceiling (#163), times within an hour, a spread within 100 %, a --min-time not past --max-time (#164), a peak up to 10^6 (#249), a fill it can name (#335) — then described into buffers of every small size. A crash, a sanitizer report or a broken promise aborts.
test_netlib_cblas.csrc/c/netlib- Checks the netlib CBLAS shim against naive reference implementations.
test_bmb_alloc_failures.shsrc/c- Every allocation a benchmark makes can fail, and each failure ends the run cleanly: exit status 1 and "out of memory" on stderr, never a crash and never a run that passes short. Each benchmark is run once to count its own allocations (setup, --verify's check, the timing buffer, the results, with -o), then once per allocation, that one made to fail by libbmb_failalloc.so (bmb_failalloc.c), preloaded; dgemm once more under --cache cold, on a machine whose last-level cache takes it 3 copies of its operands: the list of copies, and a copy's setup with the others already made; and, where the library has cblas_?gemm_batch, a batch of dgemm in a group call, whose arrays of pointers are allocations too (#159). SKIPs where it cannot be preloaded: under AddressSanitizer, whose allocator must come first, and outside glibc.
test_bmb_batch.shsrc/c- Checks that -b cannot batch the routines whose operand is restored before every call (the trmv, trsv, tpsv, tbsv, trmm and trsm families, every precision the table lists): N calls in a row would run on an operand drifting towards infinity or denormals, and the timing would stop meaning anything (#48). They stay at one call per sample, which the JSON gives as calls_per_sample and as the run block's batch, with a warning; another routine keeps the batch it was given, without one. Tiny sizes only.
test_bmb_cache.shsrc/c- --cache cold (#160) on real benchmarks, over a generated machine whose last-level cache is a 64K L2 (an instruction cache above it does not count): the copies of the operands each point rotates over, enough that the others reach twice that cache, from what the operands take (level 3 says it, levels 1 and 2 half their bytes); 1 once the operands alone are past it; at most 16384, with one warning, on the x86 fixture's 32M L3; in the text, the CSV and the JSON; a run of a routine whose operand is restored, checked by --verify, and every benchmark run cold and checked; refused where the cache size cannot be read. Tiny sizes only.
test_bmb_colors.shsrc/c- Warnings and errors are coloured on a terminal and nowhere else: in red and yellow when stderr is one, plain when NO_COLOR is set and not empty, plain when stderr goes to a file or a pipe, where an escape sequence would end up in what the user is collecting. The terminal is util-linux's script(1), which runs the benchmark on a pseudo-terminal; SKIPs without it.
test_bmb_counts.shsrc/c- Every routine's counts are the BLAS conventions, to the unit (#205): its FLOPs, the bytes of levels 1 and 2 (each operand read once, each result written once, as STREAM counts them) and the footprint of level 3 (the bytes of its operands), and none of those a routine must not declare: no FLOPs for copy, swap and iamax, no bytes at level 3, no footprint below it. Written here from the operation, the element's size and whether it is complex (a complex multiply-add is 4 real ones, a complex alpha times an element 6; asum and nrm2 count each real part), independently of the sources, so that a family made of several routines (#166) keeps the counts each had; GEMM's with a K of its own too (-K, #215). The operation is the routine's family, from the table: scasum is asum. BMB_COUNTS makes a benchmark write each point's counts instead of measuring it: nothing is allocated, and one size is large.
test_bmb_fill.shsrc/c- --fill (#335) on real benchmarks: every benchmark run with each fill, row- and column-major, and checked by --verify, which has to pass on random, subnormal and zero operands as it does on the pattern, and still catch a wrong result (BMB_VERIFY_CORRUPT) under each; the fill recorded in the text and the JSON, pattern when not given; a run with operands of another fill computes another result (the values did change), in every benchmark (sbgemm once kept its own, #352), the same one twice over (a fixed seed); an unknown fill refused. Tiny sizes only.
test_bmb_gemm_batch.shsrc/c- Batched GEMM (#159): each of sgemm, dgemm, cgemm and zgemm, a batch of matrices in each --batch-mode the library has (loop everywhere, group where config.h says cblas_?gemm_batch is there, strided where cblas_?gemm_batch_strided is), passes --verify, every matrix of it, in both layouts, transposed or not, and its check catches a corrupted result; a mode the library has not is skipped, exit 77 and a message, nothing measured; a batch of small matrices a library would crash on is refused (#330), and one past them measured. The count and the mode are in every output; a routine without a batched form refuses the options; a batch too large for size_t is refused before anything is allocated. Tiny sizes only.
test_bmb_ignored_options.shsrc/c- An option a benchmark has no use for is ignored with a warning naming it, never silently: --layout and --ld-pad on a vector routine (#7, #163), --ld-pad on a packed matrix, which has no leading dimension and records no padding (#244), --vector-size on a matrix one, --matrix-dim1 on a vector one, --matrix-dim2 on a routine with a single dimension, --matrix-dim3 on any but GEMM (#215). An argument a routine does not have (--trans, --uplo, --side, --diag, #221), or a letter it does not take, is refused, never ignored: the run stops with a message naming it. The run still succeeds. Where the option does apply, there is no such warning. Tiny sizes only.
test_bmb_kernels.shsrc/c- The kernels the library's dispatch chose at run time (#162), for the backend built (read from config.h): OpenBLAS's core, BLIS's and AOCL-BLAS's configuration, MKL's code branch, in -V, the text and the JSON, the same in all three; what the library is told to choose, when it can be told (OPENBLAS_CORETYPE on a DYNAMIC_ARCH OpenBLAS, MKL_ENABLE_INSTRUCTIONS on an Intel CPU), is what is recorded; nothing for a library that does not say (Netlib, NVPL, ArmPL, FlexiBLAS).
test_bmb_levels.shsrc/c- Every benchmark declares the BLAS level of the directory it is in (bench.level), which is the default size it takes when no size is given (#165): 10000000 at level 1, 5000 at level 2, 2000 at level 3. A level 2 routine declared level 3 would measure 2000 x 2000 by default, where its matrix fits in a cache. Read from the source each program of the level's Makefile.am is built from, its own or its family's (#166), or the one that source includes, so nothing is run.
test_bmb_output_formats.shsrc/c- The --output files are not covered by the per-routine smoke tests, which only look at stdout. dgemm is the routine used here because its "Matrix dim1 (M=K)" label is the one that exercises the CSV column-name rewriting hardest.
test_bmb_star.shsrc/c- --star (#173): -t's counts as instances of one thread, each a process pinned to a core of its own, all measured at once. Small vectors only: every instance allocates its own operands.
test_bmb_threads_env.shsrc/c- Checks how a benchmark takes its thread count from the environment, for the variables of the backend it was built with, in that backend's order: without -t the first one set to a number of threads is used; with -t, -t wins and a variable that disagrees is reported; a value that is not a number of threads (0, -2, "3 ", 2,1, ...) is ignored with a warning, where it used to label a run with 4294967294 threads; another backend's variables are not read. The thread count is read back from the table and the JSON, where a wrong one would end up in the report. Under MKL, a count per domain (MKL_DOMAIN_NUM_THREADS) is overridden with a warning. More threads than the CPUs the process may run on (its affinity, its cgroup's quota) are warned about, on a fixture.
test_bmb_verify.shsrc/c- Runs every benchmark with --verify (on by default), and proves each check can fail: with BMB_VERIFY_CORRUPT set, every benchmark's check sees its result altered (by a relative 1e-6 in double precision; doubled in single, see bmb_verify.h), and has to stop with exit status 2, say what is wrong, and write no results file; with BMB_VERIFY_SKIP set, every check of a routine that updates its operands sees no call, and has to stop the same way (#239).
test_bmb_write_errors.shsrc/c- A run whose results cannot be written must fail, not pass with a short or missing file (doc/dev/benchmarks.md, "Write failures"): a -o file that cannot be opened, a -o file on a full disk, in JSON and in CSV, small and larger than the stream's buffer, and stdout on a full disk. Each exits non-zero and says what was lost. /dev/full, a device on which every write fails, stands for the full disk; where there is none, those checks are left out with a note.
test_helper.shsrc/c- shellcheck shell=sh Shared assertions for the per-routine smoke tests, sourced as: . "${srcdir:-.}/../test_helper.sh"
test_bmb_size_limits.shsrc/c/level1- A size whose square wraps size_t must be refused by the parser, not turned into a small allocation the setup loop then overruns. 1518500250 is the smallest such value: 1518500250^2 * 8 comes back down to 291 MB. A vector, in a build whose library takes 32-bit integers, stops below INT_MAX too; in an ILP64 build (#172) it may go past 2^31, up to what two vectors of 16-byte elements can be sized to.
test_bmb_square_default.shsrc/c/level3- Without -M, a two-dimension routine measures square matrices: dim2 follows dim1 point by point. It used to copy -m's range instead and measure the whole cross product — nine runs for
-m 8:32, where --help promised three square ones. test_bmb_<routine>.shsrc/c/level1–3/<precision>, 113 of them- One per benchmark: each runs its benchmark on tiny sizes, and the assertions of
src/c/test_helper.shcheck what it printed.
The report
test_assemble.shsrc/report- Checks assemble.awk, which builds bmb_report by inserting report.html into bmb_report.sh: that it copies the template byte for byte, and that it refuses to build in each case where the result would be broken.
test_bmb_report.shsrc/report- Checks bmb_report: what it refuses, and that what it writes is one self-contained page carrying every result.
test_bmb_report_js.shsrc/report- Runs the unit tests of the page's logic (test_report.js) in a headless browser.
test_bmb_report_render.shsrc/report- Renders a report in a headless browser and checks that every chart drew.
test_report.jssrc/report- Unit tests for the page's logic: the functions report.html exposes as window.bmbReport, fed small hand-built results so that each decision of #1 is pinned by a check that names it.
The suite
test_bmb_suite.shsrc/suite- Checks bmb_suite (#254): every benchmark of the build tree run at tiny sizes through a profile file, into one directory that bmb_report then takes whole; what --level, --precision and --routine select; the shipped profiles and a routine's line winning over its level's, through -n; every command of those profiles run under BMB_COUNTS, which measures nothing, without a warning (#280); the options passed on, after the profile's, -f and -o last, --peak-gbs among them; and what it refuses before anything runs. On stand-in trees, an install's layout and a build tree's, made of a few scripts: a benchmark that fails, the next one still run, one that skips, one missing. With --blas (#255): the build tree given twice under two names, a directory and a label each; the forms a suite takes; a result recording another backend than its suite's; and what --blas refuses. With --blas flexiblas: (#256), on a stand-in FlexiBLAS: FLEXIBLAS set a library, a library it does not know refused, a suite not built against it refused; on this build, the library loaded now when it is built against FlexiBLAS, else refused.
The project files
test_actions_pinned.shtests- Checks that every action the workflows use is pinned to a full commit SHA, with its version in a comment (actions/checkout@<40 hex> # v7.0.1). A tag can be moved to other code, by its owner or by whoever takes over the repository; a commit cannot. Dependabot updates the SHA and the comment together.
test_configure_paths.shtests- --with-blas-incpath and --with-blas-libpath are the most specific way to name a BLAS, so they come first in the search: ahead of a module's variables (BLIS_LIBDIR, ...) and of the directories configure finds by itself in a distribution's install (/usr/lib/*/blis-openmp, ...). They used to be applied before both and come last, and a library named on the command line lost to the system's (#58).
test_coverage_exclusions.shtests- Checks the C code's coverage exclusions: each gcovr marker (GCOVR_EXCL_LINE, _BR_LINE, _START, _BR_START) says on the same line, after a colon, why no test can reach what it excludes, in a few words at least; every START has its STOP. An exclusion is for a line that cannot run in the coverage jobs' builds (a call that does not fail, a clock that does not stop, a library they do not build), never for one nobody wrote a test for (doc/dev/ci.md, Coverage).
test_doc_links.shtests- Checks every relative link in the Markdown files in git: the file or directory it points to is in git too, and so is the heading its #anchor names, spelt the way GitHub spells anchors. The developer guide is split across AGENTS.md and doc/dev/, and a section moved or renamed in one file breaks links in the others without a word.
test_editorconfig.shtests- Checks every file in git against .editorconfig, so that what it promises an editor is also true of the files already there: UTF-8, LF line ends, a final newline, no trailing whitespace, and indentation with spaces — a tab first in Makefile.am, where make needs it (spaces may follow, to align a continuation line).
test_plugin.shtests- Checks the Claude Code plugin (#264), the repository as a plugin marketplace: .claude-plugin/marketplace.json and plugin.json are JSON with the fields Claude Code reads, the marketplace's one plugin is the repository's root under the plugin's own name, every path in them exists, its skills are there, and its MCP server is bmb_mcp. The version is test_release_files.sh's to check.
test_release_files.shtests- Checks that CHANGELOG.md and CITATION.cff agree with the version being built: a -dev version has an [Unreleased] section; a release has its own dated section, and is the version CITATION.cff cites, on the same date. Between releases, CITATION.cff cites the latest released version. The Claude Code plugin's manifest gives the version being built.
test_routines.shtests- Every list of the routines is the one src/c/routines.txt gives (#199): the levels' Makefile.am, man/Makefile.am, the man page's NAME and its two tables, the README's, the report's LEVEL, the ReFrame tests' ROUTINES and bmb_suite's, as src/c/routines.sh writes them. On a copy of those files, a routine added to the table alone makes each list it belongs in stale, until routines.sh writes them again; a malformed line, a routine listed twice and a missing marker each stop it with a message.
test_spack_repo_index.shtests- Checks that spack-repo-index.yaml, where Spack looks when the repository is added by its git URL, leads to a Spack repository: each of its paths holds a repo.yaml whose namespace is the directory's name, and a packages/ directory. The spack CI job adds the repository by its path, so nothing else reads this file before a user does (#283).
The manual pages and this site
test_man_content.shman- Checks what the man pages say against what the programs do: the routines and their dimensions, the sweeps and their limit, the JSON fields, the environment variables, the exit statuses, and the commands in the examples. A page can render perfectly and still describe last year's program; each check here runs the program and compares.
test_man_html.shman- Checks the documentation site html.sh builds: every page of its menu is there and in every page's menu, no section of the manual is lost when it is cut into pages, every link on the site leads somewhere — to a file and an anchor that exist, or to https — nothing is loaded from elsewhere, the pages link to each other, the site holds what the man pages do (every option of --help, the version), and the guides' commands run programs that exist, with options they take.
test_man_install.shman- Installs the man pages into a staging root and opens them the way a user would: man blas-microbenchmark, man bmb_report, man bmb_suite, man bmb_mcp, and man bmb_<routine> for every benchmark, through its alias. Then uninstalls, and checks nothing is left behind.
test_man_options.shman- Checks that the man pages document exactly the options --help lists, and give the same defaults. --help is the summary and the man page the reference; this is what notices when one moves without the other.
test_man_render.shman- Checks that the man pages render cleanly: every placeholder substituted, a date, no groff warning, nothing mandoc's lint objects to, and no command, option or path that would come out as a typographic hyphen.
test_man_skills.shman- Checks the skills (#263), skills/<name>/SKILL.md, which tell an agent how to measure, compare and read results as the project would: each has the front matter of the Agent Skills format (a name, its directory's, and a description of when to use it), every command in its code blocks runs a program that exists with options it takes, and every bmb_mcp tool it names is one bmb_mcp lists.
Continuous integration
GitHub Actions runs six workflows: CI, the fuzzing and CodeQL on every pull request and push to main (the fuzzing longer on main, and it and CodeQL weekly as well), the site and OpenSSF Scorecard on every push to main (Scorecard weekly as well), the release on a version tag and, publishing nothing, on a pull request that changes it. Each job is described by its workflow file: the comment above it, where it runs, how it configures the build, and its steps in order.
CI
.github/workflows/ci.yml
The jobs only read the repository; nothing they run gets a token that could write to it. A pull request's run is cancelled when a new push supersedes it, to free the runners for the others (#305); a run on main never is.
changesubuntu-latestWhether a pull request changes documentation only (#305): Markdown, doc/dev and doc/images, the man pages and the site's guides. Then the openblas job, whose make check reads every page and link, and the man job run, and the jobs that build and test a library are skipped. If this job fails, they all run: a skipped job would pass a required check. The matrix jobs (browsers, docker, spack) always run: a matrix job skipped whole reports under its bare name, and the checks required under its matrix names would wait for ever.
Changed files
openblasubuntu-latestOpenBLAS, the default backend and the BLAS most distributions ship, from Ubuntu's libopenblas-dev. Besides make check and the verify sweep every library job runs, this one checks what needs doing once: that the browser tests did run (the runner has Chrome), the files and their links, what make install puts where, and make distcheck.
../configure --enable-werrorInstall build dependencies → autoreconf → configure → The extensions it has, found → make → Provenance → make check → Verified at real sizes → The page was checked in a browser → The files and their links were checked → Install layout → Upload test logs → make distcheck → The tarball, built in place
blisubuntu-latestBLIS, from Ubuntu's libblis-openmp-dev, whose cblas.h is in a directory of its own (/usr/include/<triplet>/blis-openmp) that configure finds by itself, and whose threads -t sets through bli_thread_set_num_threads().
../configure --with-blas-backend=blis --enable-werrorInstall build dependencies → autoreconf → configure → The extensions it has, found → make → Provenance → make check → Verified at real sizes → bmb_suite across two libraries → Upload test logs
netlibubuntu-latestNetlib's reference BLAS, from Ubuntu's libblas-dev: Fortran routines with no C interface, which the benchmarks reach through their own CBLAS layer (src/c/netlib); the yardstick every optimised library is measured against.
../configure --with-blas-backend=netlib --enable-werrorInstall build dependencies → autoreconf → configure → make → Provenance → make check → Verified at real sizes → Upload test logs
browsersubuntu-latest, once for each of firefox, microsoft-edgeThe report page in the browsers the Chrome-based jobs above do not cover: Firefox, which the README tells users to open it with, and Edge. Firefox has no --dump-dom, so browser.sh drives it through geckodriver; Edge is driven like Chrome. The runner image ships Firefox, geckodriver and, normally, Edge.
../configure --enable-werrorInstall build dependencies → Firefox and geckodriver → Edge → autoreconf → configure → make → Report tests in browser → doc/screenshots.sh takes every image → The page was checked in browser → Upload test logs
manubuntu-latest, in fedora:latestThe man pages, on another distribution than the other jobs: Fedora, with its own groff and man-db builds, and mandoc, whose lint is stricter than groff. BMB_MAN_STRICT turns a missing tool into a failure rather than a SKIP, so this job cannot pass without checking everything. No --enable-werror: Fedora's newer GCC is not what this job is testing. util-linux: man runs col, which man-db pulls in only as a weak dependency from Fedora 45 on (#330).
OPENBLAS_INCDIR=/usr/include/openblas ../configureInstall build dependencies → autoreconf → configure → make → Batched GEMM, on a library that may crash on small ones → Tools → Man page tests, nothing skipped → make html → Upload test logs
nvplubuntu-24.04-armNVPL and ArmPL both target aarch64 (NVIDIA Grace / Arm servers), so these two jobs run on GitHub's arm64-hosted runners (free for public repos) instead of ubuntu-latest.
../configure --with-blas-backend=nvpl --enable-werrorInstall build dependencies → Install NVPL BLAS → autoreconf → configure → The extensions it has, found → make → Provenance → make check → Verified at real sizes → Upload test logs
armplubuntu-24.04-armArm Performance Libraries, from Arm's own apt repository (the package that adds it is fetched from developer.arm.com), on the arm64 runner: see the comment above nvpl.
../configure --with-blas-backend=armpl --enable-werrorInstall build dependencies → Install Arm Performance Libraries → autoreconf → configure → The extensions it has, found → make → Provenance → make check → Verified at real sizes → Upload test logs
sanitizersubuntu-latestBuilt at -O1 with AddressSanitizer and UndefinedBehaviorSanitizer. This is not a duplicate of the openblas job: it catches what a plain build cannot see at all (out-of-bounds accesses, signed overflow), and the lower optimisation level makes GCC's diagnostics land differently -- the first -Werror failure this job ever produced was a format-truncation warning invisible at -O2.
../configure --enable-werror CFLAGS="-O1 -g -fsanitize=address,undefined -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address,undefined"Install build dependencies → autoreconf → configure → make → Provenance → make check → Verified at real sizes → Upload test logs
coverageubuntu-latest, once for each of openblas, netlib, blisWhich lines of the C code make check runs, and which it never reaches: each test was seen to fail, but that says nothing of the paths no test takes. No threshold -- the report is there to be read. The per-file summary is on the run's page; the line-by-line HTML report, an lcov and a Cobertura file are in the coverage-<backend> artifact. The Cobertura one goes to Codecov, for the README's badge, authenticated by the job's OIDC token rather than a stored secret; Codecov being down does not fail the job. Once per backend Ubuntu packages, each uploaded with its own flag: code that only runs under one (a library with no version string, a single-threaded one) counts where it runs, and Codecov merges the reports of a commit.
../configure --with-blas-backend="$BACKEND" --enable-werror CFLAGS="-O0 -g --coverage -fprofile-exclude-files=frame/include/" LDFLAGS="--coverage"Install build dependencies → autoreconf → configure → make → make check → Coverage report → Upload the coverage report → Upload to Codecov → Upload test logs
cppcheckubuntu-latestcppcheck over the C code: what -Wall -Wextra does not see, on paths no test takes -- its first run found pointer arithmetic on a failed malloc in every verify(). Any finding fails the job; a wrong one is suppressed where it is, with the reason (.github/scripts/cppcheck.sh). CodeQL runs in its own workflow, codeql.yml.
../configureInstall build dependencies → autoreconf → configure → cppcheck → shellcheck
flexiblasubuntu-latest, in fedora:latestFlexiBLAS loads the BLAS library at run time (FLEXIBLAS=...), so one build measures several. Debian and Ubuntu do not package it; Fedora does, as its default BLAS, with OpenBLAS, BLIS and Netlib as backends. Everything runs once per backend from the same build, and the results of two of them must name the library each loaded: two series.
../configure --with-blas-backend=flexiblas --enable-werrorInstall build dependencies → Backends → autoreconf → configure → make → Provenance → make check, once per backend → Verified at real sizes, once per backend → One build, two libraries → bmb_suite, two libraries → Upload test logs
aoclubuntu-latestAOCL-BLAS, AMD's fork of BLIS and what AMD EPYC clusters measure against. No distribution packages it, so it is built from AMD's sources, a release pinned by commit, as AMD builds it (the amdzen configuration, OpenMP, CBLAS), and cached; configure finds it through AOCL_ROOT, as a module would set it. The benchmarks must link its threaded libblis-mt, and -t must change the time.
AOCL_ROOT="$HOME/aocl" ../configure --with-blas-backend=aocl --enable-werrorInstall build dependencies → Build AOCL-BLAS → autoreconf → configure → The extensions it has, found → make → Provenance → make check → Verified at real sizes → Threads are used → Upload test logs
ilp64ubuntu-latestThe ILP64 build (#172): OpenBLAS's 64-bit integer interface, from Ubuntu's libopenblas64-pthread-dev, whose cblas.h includes an openblas64_config.h the package does not ship -- it ships the same file as openblas_config.h -- so it is linked under the name asked for. make check and the real-size sweep, as the openblas job runs them; the version must say 64-bit integers.
../configure --with-blas-backend=openblas --enable-ilp64 --enable-werrorInstall build dependencies → autoreconf → configure → make → Provenance → make check → Verified at real sizes → Upload test logs
mklubuntu-latestIntel oneAPI MKL, the BLAS most x86 clusters measure against, from Intel's apt repository: its current release, as sites install it. The benchmarks link its GNU OpenMP threading layer and set its BLAS thread count (mkl_domain_set_num_threads); the runner's CPU, Intel or AMD, is whatever GitHub gives.
../configure --with-blas-backend=mkl --enable-werrorInstall build dependencies → Install oneAPI MKL → autoreconf → configure → The extensions it has, found → make → Provenance → make check → Verified at real sizes → ILP64, make check → Upload test logs
dockerubuntu-latest, once for each of openblas, blis, netlib, mklThe Docker image (packaging/docker), per backend, as a user builds it; its last stage already runs one tiny benchmark per level. From the image: every benchmark verified, the man pages, a result written to a mounted directory as the host's user and turned into a report, and the warning that a CPU quota or affinity smaller than -t gets. Once, the Dockerfile's lint, and the image converted and run by Apptainer.
hadolint → Build the image → Provenance → Every benchmark, verified in the image → Man pages → Results to a mounted directory, then the report → bmb_suite to a mounted directory, then its report → bmb_mcp, its tools and a benchmark through it → A CPU quota or affinity smaller than -t is warned about → Apptainer
reframeubuntu-latestThe ReFrame tests (packaging/reframe), as a site runs them, on ReFrame's generic system (this runner, no scheduler) at small sizes: bmb_run on an install, every routine, with references it meets; one it cannot meet, and a run that was not verified (-C), each failing it; bmb_build_run on this commit's tarball; their results read by bmb_report; and the copy make install puts beside the benchmarks, running that install with no option. ReFrame's list of routines must be the benchmarks the build installs. ReFrame is pinned to a release.
../configure --prefix="$PWD/../inst"Install build dependencies → Install ReFrame → Build, install, and make the tarball → The routines are the benchmarks installed → bmb_run, every routine, with references it meets → The installed tests run their own install → A reference it cannot meet, and an unverified run, fail it → bmb_build_run on this commit's tarball → Their results make a report
spackubuntu-latest, once for each of openblas, blis, amdblis, netlib-lapack, flexiblas, intel-oneapi-mklThe Spack package (packaging/spack), as an HPC user installs it: built by Spack against each BLAS it can build on x86_64, from this commit's tarball and from the latest release's, then checked by its own tests (spack test run). The distribution's BLIS (for BLIS and for AOCL-BLAS, its fork) or Netlib is installed as well, so that linking it instead of Spack's would fail test_linked_library (#58). MKL is Intel's apt package, declared to Spack as an external: Spack's own would download Intel's installer, gigabytes, on every cache miss. Spack and its package recipes are pinned to commits, as the actions are; what Spack builds is cached, keyed on both and on the recipe.
(cd build && ../configure && make dist)Install build dependencies → This commit's tarball → Spack → spack install and spack test
Fuzz
.github/workflows/fuzz.yml
The command-line parser fuzzed, on inputs no test wrote: ClusterFuzzLite builds src/c/common/fuzz_bmb_options.c with libFuzzer (.clusterfuzzlite/), from its seed corpus and dictionary, then fuzzes it, once under AddressSanitizer and once under UndefinedBehaviorSanitizer. A crash, a sanitizer report or a promise of the parser broken fails the job, with the input that did it. Every job of ci.yml that runs make check replays the corpus. On a pull request, five minutes, when the change reaches the target's code (code-change mode): the jobs are required checks. On main, after each merge and every week, longer runs from the seeds (batch mode), so that the parser as merged is fuzzed past a pull request's five minutes (#276). No corpus is kept between runs: that needs a repository to keep it in and a token that writes to it. A pull request's run is cancelled when a new push supersedes it; a run on main or on the schedule never is.
fuzzubuntu-latest, once for each of address, undefinedBuild the fuzz targets → Fuzz
CodeQL
.github/workflows/codeql.yml
GitHub's static analysis of the C code, with its security and quality queries: data flow across functions, which cppcheck (in ci.yml) does not follow. Findings go to the repository's Security tab (code scanning), where each one is fixed or dismissed with a reason. Weekly as well, since the queries are updated without any change here.
analyzeubuntu-latest../configureInstall build dependencies → Build → No alert left open
Scorecard
.github/workflows/scorecard.yml
OpenSSF Scorecard: the project's security practices, checked against OpenSSF's criteria (pinned actions, token permissions, branch protection, code review, ...), published to the Scorecard API for the README's badge and its viewer. Its SARIF is kept as an artifact, not uploaded to code scanning: the CodeQL workflow fails on any open alert there, and Scorecard's findings are a score to read, not defects to dismiss one by one. The job is what publish_results allows: the scorecard action, the checkout before it and the upload after, nothing else.
analysisubuntu-latest
Pages
.github/workflows/pages.yml
The documentation site (make html, in man/): the guides, the man pages a page per part, what a run produces, and the development page, published on GitHub Pages from main. It is published only once the man page tests pass on the same commit, so the site never shows a page they would have refused. One deployment at a time; a newer push replaces one still waiting.
buildubuntu-latest../configureInstall build dependencies → Build → Man page tests → Build the site
deployubuntu-latest
Release
.github/workflows/release.yml
Builds the distribution tarball and attaches it to the GitHub release for a pushed tag. GitHub's own auto-generated "Source code" archives are plain git exports with no pre-generated `configure`, so end users need this one. The tarball carries a signed attestation of where it was built: gh attestation verify checks it came from this workflow, in this repository, and so does cosign with the attestation's bundle, attached to the release beside the tarball. A pull request that changes this file runs it too, publishing nothing, so that a broken release is found before the tag rather than at it.
tarballubuntu-latestThe tarball (make dist), built and checked with no Autotools present, attested, the attestation checked with gh and with cosign, then uploaded with SHA256SUMS, the attestation's bundle and the provenance as an in-toto file, creating the release if the tag has none. A pull request stops before the upload; one without an OIDC token (Dependabot's, a fork's) also skips the attestation and its checks.
../configureInstall build dependencies → Build the distribution tarball → Verify the tarball builds with no Autotools → Checksums → Attest where the tarball was built → Verify the attestation → The attestation bundle, checked with cosign → The provenance, as an in-toto file → Upload the tarball to the release
imageubuntu-latest, once for each of openblas, blis, netlibThe Docker image (packaging/docker) on ghcr.io, for the backends whose libraries can be redistributed: OpenBLAS, BLIS, Netlib. Not MKL, whose image would redistribute Intel's libraries (#108). On a version tag, each image is pushed, attested like the tarball (the attestation stored in the registry beside it), then pulled back by its digest, run, and its attestation checked, as the README says; only after the tarball's job passed. A pull request builds and runs them, pushing nothing.
Build the image, and run it → Push to ghcr.io → Attest where the image was built → Pull it back, run it, verify its attestation