Commit 3c07fba9

3c07fba9b1adMerged

Yusuke Endoh <[email protected]> · 6 months ago · 1 file · ~1 modified

Description

ci: run make optcarrot on the ubuntu-latest gcc job

make optcarrot exists as a Makefile target but isn't wired into CI, and as soon as it's left alone it breaks (#417 was an optcarrot regression that no test catches because the standalone make test doesn't cover the pack-for-spinel.rb flow + the Lan_Master.nes checksum 59662 contract).

One step on the existing ubuntu-latest gcc shard. Runs in ~10s clean. One shard is enough -- the codegen output is the same across compilers and OSes.

Closes #420

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

Details

Commit
3c07fba9b1ad
Parent
b1ab1b9f9f3a

.github/workflows/ci.ymlmodifiedView file

@@ -61,6 +61,16 @@
6161 # -j$(...) overlaps the per-test cc invocations.
6262 run: make -j$(getconf _NPROCESSORS_ONLN) test OPT=-O0
6363
64+ # End-to-end optcarrot integration test. Linux only — no
65+ # value in repeating it across compilers / on macOS, since
66+ # the codegen output is the same and the runtime cost
67+ # (~10s) is the same too. Catches regressions in the
68+ # `pack-for-spinel.rb` flow + Lan_Master.nes checksum 59662
69+ # contract that the standalone `make test` doesn't cover.
70+ - name: Run optcarrot integration test
71+ if: matrix.os == 'ubuntu-latest' && matrix.cc == 'gcc'
72+ run: make optcarrot
73+
6474 - name: sccache stats
6575 if: always()
6676 run: sccache --show-stats