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

@@ -85,6 +85,20 @@
8585 # -j$(...) overlaps the per-test cc invocations.
8686 run: make -j$(getconf _NPROCESSORS_ONLN) test OPT=-O0
8787
88+ # Benchmark integration test. Compiles every benchmark/*.rb through
89+ # the full pipeline (cc -Werror) and diffs the output against CRuby.
90+ # The bench programs are larger and more realistic than the test/*.rb
91+ # fixtures, so they exercise object-graph shapes (cons cells, tree
92+ # nodes, linked structures) that `make test` misses -- a holder
93+ # specialization regression once slipped past test + optcarrot +
94+ # bootstrap precisely because bench wasn't gated. Linux/clang only:
95+ # the output is deterministic across compilers/OS, and clang carries
96+ # this while gcc carries optcarrot + bootstrap, balancing the two
97+ # ubuntu jobs.
98+ - name: Run benchmark integration test
99+ if: matrix.os == 'ubuntu-latest' && matrix.cc == 'clang'
100+ run: make bench
101+
88102 # End-to-end optcarrot integration test. Linux only — no
89103 # value in repeating it across compilers / on macOS, since
90104 # the codegen output is the same and the runtime cost