Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(ci): match nextest override binaries by regex and fix test stub glob

Steven Enamakel18656765443e
diff --git a/scripts/__tests__/hosted-json-rpc-enumeration.test.mjs b/scripts/__tests__/hosted-json-rpc-enumeration.test.mjs
index fba5ed173c..2955611853 100644
--- a/scripts/__tests__/hosted-json-rpc-enumeration.test.mjs
+++ b/scripts/__tests__/hosted-json-rpc-enumeration.test.mjs
@@ -47,7 +47,7 @@ function runCoreStep(mode) {
writeFileSync(
join(root, "bin/cargo"),
`#!/bin/bash
-if [[ "$*" =~ --test\ json_rpc_[[:alnum:]_]+_e2e ]]; then
+if [[ "$*" == *"--test json_rpc_"*"_e2e"* ]]; then
[[ "$*" == *"--features voice,bin-tools"* ]] || exit 0
if [[ "$*" == *"--list"* ]]; then
case "$FIXTURE_MODE" in
diff --git a/scripts/ci/nextest-coverage.sh b/scripts/ci/nextest-coverage.sh
index 0c33128fdc..ed951fcbb5 100644
--- a/scripts/ci/nextest-coverage.sh
+++ b/scripts/ci/nextest-coverage.sh
@@ -32,8 +32,12 @@ const targets = new Set(metadata.packages.flatMap(pkg => pkg.targets.map(target
// resource-sensitive binaries, so omit only those inapplicable overrides.
const source = fs.readFileSync('.config/nextest.toml', 'utf8');
const configText = source.replace(/\n\[\[profile\.ci\.overrides\]\]\n[\s\S]*?(?=\n\[|$)/g, block => {
- const binary = block.match(/binary\(\/\^([a-zA-Z0-9_-]+)\$\/\)/) ?? block.match(/binary\(=([a-zA-Z0-9_-]+)\)/);
- return binary && !targets.has(binary[1]) ? '' : block;
+ const binary = block.match(/binary\(\/([^/]+)\/\)/);
+ const exact = block.match(/binary\(=([a-zA-Z0-9_-]+)\)/);
+ const present = binary
+ ? [...targets].some(name => new RegExp(binary[1]).test(name))
+ : exact && targets.has(exact[1]);
+ return (binary || exact) && !present ? '' : block;
});
fs.writeFileSync(config, configText + '\n[profile.ci.junit]\npath = ' + JSON.stringify(report) + '\n');
JS