Commit 62242d38
62242d383aedMerged
Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 1 file · ~1 modified
Description
ci: run make bench on the ubuntu/clang job
make bench compiles every benchmark/*.rb through the full pipeline and diffs the output against CRuby, but it was the one gate absent from CI, bootstrap, optcarrot, and make test. A holder-specialization regression reached master green on all of those while breaking two bench programs (a cons-cell interpreter and binary trees), because nothing ran bench.
Gate it on ubuntu/clang: the output is deterministic across compilers and OS so one Linux job suffices, and clang has headroom while gcc carries optcarrot + bootstrap. Verified green under CRuby 3.2 and 4.0, so the 3.4 runner will pass.
Co-Authored-By: Claude Opus 4.8 [email protected]
Details
- Commit
- 62242d383aed
- Parent
- b556c5a9d0ab
.github/workflows/ci.ymlmodifiedView file
# -j$(...) overlaps the per-test cc invocations. run: make -j$(getconf _NPROCESSORS_ONLN) test OPT=-O0 # Benchmark integration test. Compiles every benchmark/*.rb through # the full pipeline (cc -Werror) and diffs the output against CRuby. # The bench programs are larger and more realistic than the test/*.rb # fixtures, so they exercise object-graph shapes (cons cells, tree # nodes, linked structures) that `make test` misses -- a holder # specialization regression once slipped past test + optcarrot + # bootstrap precisely because bench wasn't gated. Linux/clang only: # the output is deterministic across compilers/OS, and clang carries # this while gcc carries optcarrot + bootstrap, balancing the two # ubuntu jobs. - name: Run benchmark integration test if: matrix.os == 'ubuntu-latest' && matrix.cc == 'clang' run: make bench # End-to-end optcarrot integration test. Linux only — no # value in repeating it across compilers / on macOS, since # the codegen output is the same and the runtime cost