Skip to content

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

feat(ci): add ignored TinyJuice tool-output regression test to CI pipeline

Steven Enamakel2bea08bd4979
diff --git a/.github/workflows/ci-lite.yml b/.github/workflows/ci-lite.yml
index 19dcad38da..5a69155ff3 100644
--- a/.github/workflows/ci-lite.yml
+++ b/.github/workflows/ci-lite.yml
@@ -724,6 +724,15 @@ jobs:
env:
CARGO_BUILD_JOBS: "1"
+ - name: Run ignored TinyJuice tool-output regression
+ run: >-
+ bash scripts/ci-cancel-aware.sh cargo test -p openhuman --lib
+ --features modules
+ agent::tinyagents::middleware_tool_output_compaction_tests::tool_output_tabulates_a_large_graph_for_a_non_exempt_tool
+ -- --ignored --exact --test-threads=1
+ env:
+ CARGO_BUILD_JOBS: "1"
+
- name: Run complete root Rust suite with cargo llvm-cov
run: bash scripts/ci/rust-coverage.sh
env:
diff --git a/scripts/__tests__/module-test-runner.test.mjs b/scripts/__tests__/module-test-runner.test.mjs
index 5e589272fd..6f9b757e61 100644
--- a/scripts/__tests__/module-test-runner.test.mjs
+++ b/scripts/__tests__/module-test-runner.test.mjs
@@ -27,7 +27,7 @@ printf '%s\n' one two
`#!/usr/bin/env bash
printf '%s\n' "$*" >> "${log}"
if [[ "$*" == *"--list"* ]]; then
- printf '%s\n' 'openhuman::memory::tests::one: test' 'openhuman::memory::tests::two: test'
+ printf '%s\n' 'openhuman::memory::tests::one: test' 'openhuman::memory::tests::one_extra: test' 'openhuman::memory::tests::two: test'
fi
`,
{ mode: 0o755 },
@@ -42,6 +42,7 @@ fi
assert.match(result.stdout, /skipped: 0/);
assert.match(calls, /--ignored --list/);
assert.match(calls, /openhuman::memory::tests::one -- --ignored --exact --test-threads=1/);
+ assert.doesNotMatch(calls, /openhuman::memory::tests::one_extra -- --ignored/);
assert.match(calls, /openhuman::memory::tests::two -- --ignored --exact --test-threads=1/);
});
diff --git a/scripts/ci/run-module-gated-tests.sh b/scripts/ci/run-module-gated-tests.sh
index 291ae294e4..46c756a135 100755
--- a/scripts/ci/run-module-gated-tests.sh
+++ b/scripts/ci/run-module-gated-tests.sh
@@ -16,11 +16,15 @@ if [ "${#TEST_NAMES[@]}" -eq 0 ]; then
exit 1
fi
+for name in "${SKIPPED_NAMES[@]}"; do
+ echo "module-gated Rust test skipped: $name (tinydocs artifact is not staged in this lane)"
+done
+
bash scripts/ci-cancel-aware.sh cargo test -p openhuman --lib --features "$FEATURES" -- --ignored --list >"$LIST_OUTPUT"
run_count=0
for name in "${TEST_NAMES[@]}"; do
- matches="$(sed -n 's/: test$//p' "$LIST_OUTPUT" | grep -F "::${name}" || true)"
+ matches="$(sed -n 's/: test$//p' "$LIST_OUTPUT" | grep -F "::${name}" | grep -E "::${name}$" || true)"
match_count="$(printf '%s\n' "$matches" | sed '/^$/d' | wc -l | tr -d ' ')"
if [ "$match_count" -eq 0 ]; then
echo "::error::module-gated test '$name' resolved to $match_count tests" >&2