Archived
ci+vendor: pin the lifted tree by hash, and run the suite on every push
Two standing gaps in how this tree is guarded. vendor/ records what every lifted file is and what we changed, in prose -- prose nothing enforces. vendor/SHA256SUMS is the mechanical half: all 73 files under vendor/, the lifts, the patch series and the record itself, hashed; tests/vendor_sums.sh recomputes both directions -- a file whose content drifted from its record, and a file that arrived without being recorded -- and fails the suite (ctest: vendor_sums, in the fast tier). An unrecorded change to a lifted dependency now has to survive being a committed manifest update to ship, instead of slipping through a rebase the way 33108e4's silent reverts did through this branch's history. And no CI ran the suite at all. .woodpecker.yml (Codeberg CI) builds CPU-only with the media codecs present and runs the host preset -- everything but the gpu and oot tiers. The runner is the current Ubuntu LTS deliberately: the mp4 writer binds FFmpeg's >= 7 AVIO callbacks and 24.04's 6.1 does not compile it. Rehearsed on a native Ubuntu 26.04 box -- the same gcc 15.2 the image carries -- the host preset fails eight cases on this branch, and the same eight on plain upstream/main: arch, chatparse, engine_e2e, two gbnf shards, place, quant_ggml and avx_check. Pre-existing under gcc 15, partly machine-dependent (avx_check compares kernels op by op on the CPU it finds, and the gbnf shards flip under load); this branch adds none of them. CI's first red is upstream's to see.
This commit is contained in:
1 parent
1577854d00
commit
8e65e1a302
5 files changed
+146
No files matched your search
@@ -0,0 +1,22 @@
|
||||
# Codeberg CI (Woodpecker): the full suite on a machine without ROCm -- the CPU-only build, the
|
||||
# same posture as `./build.sh --no-hip` -- on the current Ubuntu LTS. The LTS is chosen, not
|
||||
# assumed: the media codecs must be new enough for the FFmpeg >= 7 callback signatures the mp4
|
||||
# writer binds (24.04's 6.1 does not compile), and the card suites (`*_card`, LABELS "gpu") want
|
||||
# hardware this runner does not have, so the run is the host preset -- everything but gpu and oot.
|
||||
# vendor_sums runs here as everywhere: a changed lift that the vendor record does not carry fails
|
||||
# CI before it fails a user.
|
||||
when:
|
||||
- event: [push, pull_request, tag]
|
||||
|
||||
steps:
|
||||
test:
|
||||
image: ubuntu:26.04
|
||||
commands:
|
||||
- export DEBIAN_FRONTEND=noninteractive
|
||||
- apt-get update -qq
|
||||
- apt-get install -y -qq --no-install-recommends git cmake ninja-build g++ pkg-config jq
|
||||
ca-certificates libavformat-dev libavcodec-dev libavutil-dev libswscale-dev
|
||||
libswresample-dev
|
||||
- cmake -S . -B build -G Ninja -DRAD_WITH_HIP=OFF -DRAD_WITH_FFMPEG=AUTO
|
||||
- cmake --build build -j "$(nproc)"
|
||||
- ctest --preset host # everything but gpu and oot, in the configured build dir
|
||||
@@ -937,3 +937,12 @@ if(TARGET r4d_bf16_capacity_test)
|
||||
ENVIRONMENT "RADIANCE_HOME=${RAD_PLUGIN_OUT};RAD_TEST_CPU_BUDGET=0" TIMEOUT 300)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# The vendor record, verified: every file under vendor/ -- the lifts, the patch series, the record
|
||||
# itself -- hashed against vendor/SHA256SUMS. A changed file the record does not carry, or one that
|
||||
# arrived unrecorded, is an unrecorded change to a lifted dependency, which is the thing UPSTREAM
|
||||
# exists to prevent and nothing else notices. It reads the source tree only: no build inputs, no
|
||||
# machine state, so it runs wherever the suite runs.
|
||||
add_test(NAME vendor_sums
|
||||
COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/vendor_sums.sh ${CMAKE_SOURCE_DIR})
|
||||
set_tests_properties(vendor_sums PROPERTIES LABELS "fast;unit" TIMEOUT 120)
|
||||
Executable
+34
@@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
# vendor_sums.sh -- checks the vendor tree, byte for byte, against vendor/SHA256SUMS.
|
||||
#
|
||||
# vendor/UPSTREAM records what every lifted file is, from which commit, and what we changed. This
|
||||
# script is the mechanical half of that record: every file under vendor/ -- the lifts, our patch
|
||||
# series, the record itself -- is hashed, and anything that differs from its recorded hash or
|
||||
# arrived without being recorded is an unrecorded change to a lifted dependency, which is exactly
|
||||
# what the record exists to catch. The build does not consult it; a test does (ctest:
|
||||
# vendor_sums), so it runs wherever the suite runs.
|
||||
#
|
||||
# tests/vendor_sums.sh <repo-root>
|
||||
#
|
||||
# Regenerate the manifest in the same commit that changes vendor/:
|
||||
# find vendor -type f ! -name SHA256SUMS | sort | xargs sha256sum > vendor/SHA256SUMS
|
||||
set -e
|
||||
root=${1:?usage: vendor_sums.sh <repo-root>}
|
||||
cd "$root"
|
||||
command -v sha256sum >/dev/null || { echo "vendor_sums: sha256sum is required" >&2; exit 1; }
|
||||
[ -f vendor/SHA256SUMS ] || { echo "vendor_sums: vendor/SHA256SUMS is missing" >&2; exit 1; }
|
||||
sha256sum -c --status vendor/SHA256SUMS || {
|
||||
echo "vendor_sums: a vendor file differs from its recorded hash;" \
|
||||
"run sha256sum -c vendor/SHA256SUMS to see which" >&2
|
||||
exit 1; }
|
||||
# The other direction: sha256sum -c never notices a file the manifest does not name -- an added
|
||||
# header sliding into a lift is silent without this half.
|
||||
tmp=$(mktemp -d)
|
||||
trap 'rm -rf "$tmp"' EXIT INT TERM
|
||||
find vendor -type f ! -name SHA256SUMS | sort > "$tmp/have"
|
||||
awk '{print $2}' vendor/SHA256SUMS | sort > "$tmp/want"
|
||||
diff "$tmp/want" "$tmp/have" || {
|
||||
echo "vendor_sums: the vendor tree and the manifest name different files;" \
|
||||
"regenerate the manifest in the commit that changes vendor/" >&2
|
||||
exit 1; }
|
||||
echo "vendor_sums: $(wc -l < "$tmp/have") files, every hash matches"
|
||||
Vendored
+73
@@ -0,0 +1,73 @@
|
||||
87a6f818226255250162f36768a2349fe97c92a0fb64bf261828740ad0e3412d vendor/CMakeLists.txt
|
||||
236682df34eb4219b2fa48105e818656a952abe74a2a771cd3b23b2be0b97fe9 vendor/cpp-httplib/httplib.cpp
|
||||
85dc9d95fbfb6d55dc927d52db73089654dc52f7376c67334392239bb3fe6842 vendor/cpp-httplib/httplib.h
|
||||
4b45cbe16d7b71b89ae6127e26e0d90a029198ca5e958ad8e3d0b8bbed364d8b vendor/cpp-httplib/LICENSE
|
||||
4491c18fe222d5d486ddf770efbf280b108caa1e680ed799661120a1f1a240e6 vendor/llama/common/chat-auto-parser-generator.cpp
|
||||
eaac4504c9c36e4c6452158eb05b19423ec80a274f442368198cdbc51e5a05f5 vendor/llama/common/chat-auto-parser.h
|
||||
e1d5ce28501aa564fdd49103b13dd61a43c84d11e37517b4d216f029b17ec595 vendor/llama/common/chat-auto-parser-helpers.cpp
|
||||
a2866e5411ab5c23171db7214fa9aa60171b52ed4737bd37ce66f828d8683998 vendor/llama/common/chat-auto-parser-helpers.h
|
||||
226e4ae215224020529e30c8f829b23839a7bd4f8aaef9aac909ffbdcbb6782b vendor/llama/common/chat.cpp
|
||||
6667d0ea6cd0a73655d780cdf9ac4e41b866a1bf1abdc625ae8adcb5704d2cf6 vendor/llama/common/chat-diff-analyzer.cpp
|
||||
a6c718f2f332ea0d9d9a3b0b671bb120ec9942535009794ed11d354bae79a257 vendor/llama/common/chat.h
|
||||
eabe9f3c52e0585e2536d868487300badb0481a2e2e35bb5019741581c720f29 vendor/llama/common/chat-peg-parser.cpp
|
||||
601ece524b39716bf8da2f4bc91f796cd3ee159ad40878acac365f32518cb1c7 vendor/llama/common/chat-peg-parser.h
|
||||
b8b7d61bd4d89f816b053317f387f4483d9bff79c3b822758aa33d7af5c82b05 vendor/llama/common/jinja/caps.cpp
|
||||
a0a79b4c22f4e73cca9eeeb89b093bd31387c5548086201c419e13df7db1bb69 vendor/llama/common/jinja/caps.h
|
||||
3d6774bc2dac477e10ddbee69eff403df36f5925c8512ccf8a249bde5c26dbd7 vendor/llama/common/jinja/lexer.cpp
|
||||
93aecd72cc952fab08f657aa2a70e9f58421672b19d3179f8bdf555e683a1cc7 vendor/llama/common/jinja/lexer.h
|
||||
284c3dcc92cfcbdb3391f4b251bdc2bd5191899973bf665e9351aca3b795c724 vendor/llama/common/jinja/parser.cpp
|
||||
6225eb759da910f3dd7753aed71c6938131cfa04c609d744e6f1390396422316 vendor/llama/common/jinja/parser.h
|
||||
345767ad59a6e193751e57d5b46d7c3bcdfa761c337aa4e2c94f0c06328e9361 vendor/llama/common/jinja/README.md
|
||||
d2fe5e4198608320ae362b3611499e6c0900df007e626dfe19d96831bc3c1225 vendor/llama/common/jinja/runtime.cpp
|
||||
7f1fe4751aef4f8eea1fd7957ad61f267e9796f376c1f72f986cd01c0184594e vendor/llama/common/jinja/runtime.h
|
||||
baf915bfb220f54fb1238e8b6b634c69221577691ed18f9c3190e8c5d832fa5b vendor/llama/common/jinja/string.cpp
|
||||
4cbff76daf9c9e23da83310cf1b667b710777f074598277222e4650e055c8bd7 vendor/llama/common/jinja/string.h
|
||||
61ae8bc57a7a551bdfb294a23a0ef8b5ba8e3cf4d695389f0f0797e2d7689781 vendor/llama/common/jinja/utils.h
|
||||
c70e50c139322abcb5800e5bf72aa16a708605fa93799d1fe9f46cc0309071cd vendor/llama/common/jinja/value.cpp
|
||||
1690f51b5948e72270016a2e087c56b572dcd925db2f15ab3264f606ce650b3c vendor/llama/common/jinja/value.h
|
||||
9b39cf1464f856dfd7c7e49ede93c6b10c8387ee06ce76f69bdd54cfee3fc526 vendor/llama/common/json-partial.cpp
|
||||
938863feab004b56ce8530393a98dffc838cd958847e39eaec42b246739eb934 vendor/llama/common/json-partial.h
|
||||
32b036b2ce62886cc2e5705a6fd5d7345278b9e1cf938c0ed7362a337f1020ae vendor/llama/common/json-schema-to-grammar.cpp
|
||||
6030771287c82eced7ea225033e61ccf2836195c3146e34041a6cd507719ab80 vendor/llama/common/json-schema-to-grammar.h
|
||||
01900c427f10f9fa50650acb25a80e4abc6077637a6332aafa1d67935a4ab27a vendor/llama/common/peg-parser.cpp
|
||||
be6572602d0795e545ae5bf8c4871663c7d2acb7105234d80b0e2e72658e05e8 vendor/llama/common/peg-parser.h
|
||||
40f1cd28206abfd16e8ec9716d08f1455b74e55cbfef1d581fce08b7984775f8 vendor/llama/common/regex-partial.cpp
|
||||
c4198e922a2a889668e3e03fabfc7d2ab0ae7d54b324bbda490831d8f8d5748d vendor/llama/common/regex-partial.h
|
||||
a07137a4fe6a657acf0d4b16ee5fa4ba388f7e9c8d3c98993410b28720b69b6d vendor/llama/common/unicode.cpp
|
||||
b88c29194f028c27988c05a64bd72948ff55081dc1b07e5ff9c3bb72601c62b5 vendor/llama/common/unicode.h
|
||||
94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d vendor/llama/LICENSE
|
||||
228ae6466cd7efc9196bbc2b5eedbe94fa6acd37a706fe514b518213a6fb4a6b vendor/llama/src/unicode.cpp
|
||||
95170cd1c105a5b41a1b2dce73b0fae8ce8011ef7897600828bb2babe8b26e5d vendor/llama/src/unicode-data.cpp
|
||||
1854f4494e5666db6036f0bf4cf818e01588b40b48a89e3372e775c4d5174402 vendor/llama/src/unicode-data.h
|
||||
f1562388d5b9d2dac1152ad8eda56e0bcae25dd407cf15d9dd2e96fe0124f4e7 vendor/llama/src/unicode.h
|
||||
fb6aa70cbece087f37ab4685c182b287c53be54f785f981b9db9d30d2d028b37 vendor/nlohmann/json_fwd.hpp
|
||||
aaf127c04cb31c406e5b04a63f1ae89369fccde6d8fa7cdda1ed4f32dfc5de63 vendor/nlohmann/json.hpp
|
||||
46a65cffd1ea955132d95a8dd921640714a8d6b537d2e4e482d31145ae95b603 vendor/nlohmann/LICENSE.MIT
|
||||
e9115a6b8ba3388b271beb76c06a5d322305957650e0898a7bc83d12a169bb1e vendor/patches/0001-unicode-reject-codepoints-above-U-10FFFF.patch
|
||||
eba995aa49294e3e5a9f2133abcb73b9287e2f043133a4b324c94ce1942d8ae2 vendor/patches/0002-chat-unclosed-reasoning-must-not-swallow-a-tool-call.patch
|
||||
242c9bd080552bb0faf36983712e852909f1543b806834a08462ee8ce4b2381b vendor/patches/0003-json-schema-pattern-must-not-hang-or-index-empty.patch
|
||||
61af2caa76bed5322ea2668a49d9b89d6e5ab97b07acf302de7b29569bda4ce8 vendor/patches/0004-json-schema-refuse-what-it-cannot-enforce.patch
|
||||
38991cf830781feeee2a0bfee7b6cf04a1515f27308e7d1bc4ec7a06a1e59e74 vendor/patches/0005-chat-an-xml-argument-value-owns-its-indentation.patch
|
||||
1287289401a9a13d8de4d35d6c58c9c0ce420e53b617935800c7bd2ade8c928a vendor/patches/0006-jinja-min-and-max-over-a-sequence.patch
|
||||
7495ca4835bf26e2c4a8682a28e4257aa0d83c265a73abaf9c92b34ff127e83f vendor/patches/0007-autoparser-split-the-per-argument-suffix-from-the-call-close.patch
|
||||
a8a55507fff3ac3ad615e681439c5cdfdbec0008612a6f3023672488b1b6685e vendor/patches/0008-autoparser-tagged-calls-separate-on-space-and-named-args-in-any-order.patch
|
||||
f6570067a3ad2f88e27b863ff712b1e6b521af003d1109bc069aef377fc98741 vendor/patches/0009-chat-a-cdata-section-is-punctuation-not-content.patch
|
||||
40bbf124e3cf04a11a67689c8a856b2a375355c1514cb5d10fd22b9ce2b8e130 vendor/patches/0010-autoparser-an-undeclared-argument-must-not-lose-the-call.patch
|
||||
ced5c703b83d611adf679d04d2e55096ec6b23324801ed61909569161e274eb5 vendor/patches/0011-chat-add_bos-must-come-from-the-inputs.patch
|
||||
86ab83f452e9a7e1d0eab9c9fc9bd45286222bea496b9bc6807f450b737073a3 vendor/patches/0012-json-schema-a-schema-no-value-satisfies.patch
|
||||
73d43aca338a7e95cac2c6bc4cfd92ff1aee189d8f91216240a5eb0382b17f50 vendor/patches/0013-json-schema-a-count-past-int-is-no-bound.patch
|
||||
deec83cf499003c57079788146c90c5daf7f890450a5f5fbc9464c0173f45041 vendor/patches/0014-json-schema-a-not-of-every-type-is-never.patch
|
||||
cc3a01794f96cbd4b220d7fca7af71caf4f92292aceedf5a75e0db200a57e6c3 vendor/patches/0015-jinja-print-a-list-or-a-dict-as-its-repr.patch
|
||||
b65f151faa7b7d2352e912abef7a1481612b886850ca9ab0c300c6699cae5311 vendor/patches/0016-chat-analyse-a-template-once.patch
|
||||
e9ba1c95b3b282e603e1522771e102e1ab4dc53a014f0b63a8fd1b05a6d94bd8 vendor/patches/0017-json-schema-a-pattern-without-anchors-searches.patch
|
||||
38ad0dba18ea563aad64ebee37d0d334fbd672a4abdef5aff9feb249c74dd436 vendor/patches/0018-json-schema-shorthand-classes-are-written-out.patch
|
||||
b6c8d0d83f9be852f232cb006cf1a8475e10def6e609d0ebfba9162342016e6b vendor/patches/0019-json-schema-identity-escapes-of-punctuation.patch
|
||||
e089be9c985d0ada3451d8abf211c6d11a9ca280eee67c2d968979bcd592460c vendor/patches/0020-json-schema-control-escapes-and-unloadable-class-escapes.patch
|
||||
ce99a693521103110c6ff99cad447664083e2c1872127a4ba9984ff5bc641aac vendor/patches/0021-jinja-a-dotted-integer-is-an-index.patch
|
||||
aff7dde39f0a7404a4ad47f33b4e2730334923f7bf1bfec64a6c064cdf9581ad vendor/patches/0022-httplib-a-refusal-closes-the-socket-and-the-drain-keeps-a-deadline.patch
|
||||
2970cf5b064edfd93581f0f1e027cff69ab328a60bb8ab23eaeb4854c841a412 vendor/shim/common.h
|
||||
699953eab99abd173ee2b3b16f540b3c72dff103dbe92f1ac733bc9e26a798e7 vendor/shim/ggml.h
|
||||
d5104362705e687271807f499481db6033d85988e13fac12f36e370c6fce0551 vendor/shim/llama.h
|
||||
5d556a22069133f7931850a13094d7390ba091051f0dc98cb1cfca824142a705 vendor/shim/llama_shim.cpp
|
||||
628efd8a88524082c4736d3bc52790aa459b40728f213246c54550011f2754a2 vendor/shim/log.h
|
||||
07ef981f3376451ad9af87a14800c6b7368aff5e41f2a282f1dea75ff55124c0 vendor/UPSTREAM
|
||||
Vendored
+8
@@ -7,6 +7,14 @@ patch was REWRITTEN into core/ under our own name instead, so this directory sta
|
||||
The bottom half of this file is the list of things that went the other way, and why -- that list
|
||||
is as much a part of the record as the lifts are.
|
||||
|
||||
The mechanical half of the promise is vendor/SHA256SUMS: every file under this directory -- lifts,
|
||||
patch series, this record -- hashed, recomputed by tests/vendor_sums.sh (ctest: vendor_sums). A
|
||||
file that differs, or arrived unrecorded, fails the suite: an unrecorded change to a lifted
|
||||
dependency has to survive being a committed, hashed manifest update to ship, not slip through a
|
||||
rebase. Regenerate the manifest in the same commit that changes vendor/:
|
||||
|
||||
find vendor -type f ! -name SHA256SUMS | sort | xargs sha256sum > vendor/SHA256SUMS
|
||||
|
||||
UPSTREAM
|
||||
--------
|
||||
|
||||
|
||||
Reference in new issue
Block a user