yams/scripts
Trevon d398556ee5
fix(tests): replace frozen expectations and harden release gates (#323)
* test(search,daemon,storage): assert behaviour instead of frozen literals

Several suites encoded exact internal values that legitimate tuning and
ranking changes are allowed to move: SCIENTIFIC-era profile weights and
rrfK values, corpus-statistic figures, and hardcoded timeout/cancellation
numbers. They failed on every platform after those changes landed, so the
real behaviour regressions they should catch were hidden behind noise.

Replace the frozen literals with contract assertions: weights are finite,
non-negative and normalize, state selection still holds, capability-gated
sources stay zeroed, and hybrid results keep matching canonical hash/path
sets. Deadlines are not widened and the daemon paths they cover are
unchanged.

Also add independent corpus and adapter oracles, deterministic collector
cancellation and late-result gates, and synchronize ServiceManager
shutdown observation, so the tests fail for the behaviour they name.

The portability allowlist keeps its two reviewed raw test-env reads; only
their line numbers moved.

Signed-off-by: trvon <git@trevon.dev>

* ci(tests): summarise Meson failures without flooding the log

A failing test run printed the whole Meson suite output, so the actual
failing test names and their assertion messages were buried and the
uploaded logs were dominated by passing-test chatter.

Add a bounded reporter that extracts the failing test names plus their
surrounding diagnostics, keeps an overall cap on emitted lines, and is
unit-tested against representative Meson output. Wire it into the Tests
workflow so failures stay readable.

Signed-off-by: trvon <git@trevon.dev>

* build(deb): validate candidate identity, mapping and upgrade ordering

The Debian packaging scripts took filenames and versions on trust, so a
misnamed candidate or a wrong package ordering could pass validation while
the real install path was never exercised.

Fail closed on candidate identity, version and architecture, verify the
package-to-source mapping, seed the legacy-only layout, wait on the actual
services, and assert install/upgrade/remove ordering for both Debian and
RPM in an offline container. Cases that cannot be proven on a host are
reported as skipped rather than silently passing.

Signed-off-by: trvon <git@trevon.dev>

---------

Signed-off-by: trvon <git@trevon.dev>
2026-10-19 19:16:57 -06:00
..
act fix(ci): stablize ci 2026-07-02 21:34:18 -04:00
ci fix: unblock the 0.20.5 release (aarch64 budget, MSVC linkage, mobile configure, Windows MSI) (#263) 2026-10-02 18:47:16 -06:00
dev build: install only the runtime set from meson install 2026-10-01 14:22:10 -06:00
local-ci fix(tests): replace frozen expectations and harden release gates (#323) 2026-10-19 19:16:57 -06:00
tools v0.6.12 experiemental 2025-09-11 11:28:42 -04:00
analyze_complexity.py perf(metadata): profile write-path batching (#49) 2026-06-12 14:11:49 -04:00
analyze_seed_fingerprints.py feat(search): make topology-assisted retrieval the default (#57) 2026-07-13 20:26:43 -04:00
build-arch-pkg.sh feat(packaging): ship the daemon as a systemd user unit 2026-10-02 07:55:01 -06:00
build-deb.sh fix(tests): replace frozen expectations and harden release gates (#323) 2026-10-19 19:16:57 -06:00
check-quality.sh build: standardize the Debug build dir on build/debug (#248) 2026-10-01 08:45:20 -06:00
check_tracy_capture.sh perf(metadata): profile write-path batching (#49) 2026-06-12 14:11:49 -04:00
cluster_hypothesis_check.py chore: stabilize CI, faiss, metadata, docker, and simeon (#25) 2026-05-07 21:07:59 -04:00
format-code.ps1 windows build fixes 2025-12-31 15:38:25 -05:00
format-code.sh refactor: simplify runtime paths and harden retrieval (#61) 2026-07-31 14:16:45 -04:00
generate_version_header.py fix: ci stabilizations for release 2026-07-04 09:28:59 -04:00
lint.sh test(portability): add cross-platform lint gate 2026-08-12 19:54:02 -06:00
list-onnxruntime-libs.py fix(build): install the bundled ONNX Runtime symlinks target-first 2026-10-02 00:18:42 -06:00
macos-rpath-install-names.sh build(macos): keep libyams_onnx_resource @rpath-relative after install 2026-10-01 20:29:46 -06:00
prepare_longmemeval_s.py feat(topology): typed event time and session for topology inputs (#305) 2026-10-14 08:47:04 -06:00
refresh_daemon_gcov_summary.py chore: stabilize CI, faiss, metadata, docker, and simeon (#25) 2026-05-07 21:07:59 -04:00
run-local-coverage.sh fix(docs): Replace 2026-06-27 16:28:08 -04:00
run_benchmark_profile_suite.py refactor(plugins)!: remove the symbol_extractor_v1 plugin ABI 2026-09-22 13:30:35 -06:00
run_metadata_stable_baselines.py perf(metadata): profile write-path batching (#49) 2026-06-12 14:11:49 -04:00
run_tracy_benchmark.sh perf(metadata): profile write-path batching (#49) 2026-06-12 14:11:49 -04:00
split-debug-symbols.sh build(packaging): bundle ONNX Runtime privately in <libdir>/yams/onnxruntime 2026-10-01 22:42:15 -06:00
update-licenses.py fix: license header file updates, mcp improvements, windows build fixes 2026-01-30 17:23:33 -05:00