From 565c100eda63ccf90486d552d3feb577a7d99c56 Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Mon, 10 Aug 2026 02:23:57 -0500 Subject: [PATCH] gate: run the dashboard test as a file; pin differential-oracle's upstream `python3 -m unittest tests/test_dashboard_contract.py` resolves the path to a module name and tests/ is not a package, so it imported on the author's 3.14 and not on the gate host's 3.10. The file resolves its own paths and has a main guard, so run it directly. differential-oracle was also the last suite not routed through {{upstream}}; it passed only because the caller happened to export STREAM_UPSTREAM_REPO. Co-Authored-By: Claude Opus 5 (1M context) --- justfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 28389a7..bbe4f6d 100644 --- a/justfile +++ b/justfile @@ -36,7 +36,10 @@ environment-contract: # Offline: validate the vendored upstream Grafana dashboard and its parser. dashboard-test: python3 tools/adapt_dashboard.py --check - python3 -m unittest tests/test_dashboard_contract.py + # Run the file, not `-m unittest `: that form resolves the path to a + # module name, and tests/ is not a package, so whether it imports depends on + # the python version. 3.14 accepts it, the gate host's 3.10 does not. + python3 tests/test_dashboard_contract.py # METRICS may be a saved scrape, localhost URL, or '-' for stdin. dashboard-contract METRICS: @@ -460,12 +463,13 @@ backfill-batch-contract: differential-oracle: zig build -Doptimize=ReleaseSafe - python3 tests/differential_oracle.py + STREAM_UPSTREAM_REPO='{{upstream}}' python3 tests/differential_oracle.py # Five seed-derived upstream predicate kills against real Stream children. differential-oracle-multiseed: zig build -Doptimize=ReleaseSafe JETSTREAM_ORACLE_SEED=7001 \ + STREAM_UPSTREAM_REPO='{{upstream}}' \ STREAM_ORACLE_RUN='^TestStreamRestartPredicateKillOracle$' \ python3 tests/differential_oracle.py -- 2.51.2