Smoke tests: split compaction test and use debug build (#6984)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jack Amadeo
2026-02-07 21:35:58 -05:00
committed by GitHub
parent a251fec55e
commit e670f348bd
5 changed files with 59 additions and 30 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ fi
if [ -z "$SKIP_BUILD" ]; then
echo "Building goose..."
cargo build --release --bin goose
cargo build --bin goose
echo ""
else
echo "Skipping build (SKIP_BUILD is set)..."
@@ -22,7 +22,7 @@ else
fi
SCRIPT_DIR=$(pwd)
GOOSE_BIN="$SCRIPT_DIR/target/release/goose"
GOOSE_BIN="$SCRIPT_DIR/target/debug/goose"
# Apply provider/model overrides if set
if [ -n "$COMPACTION_PROVIDER" ]; then
+2 -2
View File
@@ -3,7 +3,7 @@ set -e
if [ -z "$SKIP_BUILD" ]; then
echo "Building goose..."
cargo build --release --bin goose
cargo build --bin goose
echo ""
else
echo "Skipping build (SKIP_BUILD is set)..."
@@ -11,7 +11,7 @@ else
fi
SCRIPT_DIR=$(pwd)
GOOSE_BIN="$SCRIPT_DIR/target/release/goose"
GOOSE_BIN="$SCRIPT_DIR/target/debug/goose"
TEST_PROVIDER=${GOOSE_PROVIDER:-anthropic}
TEST_MODEL=${GOOSE_MODEL:-claude-haiku-4-5-20251001}
+2 -2
View File
@@ -31,7 +31,7 @@ fi
if [ -z "$SKIP_BUILD" ]; then
echo "Building goose..."
cargo build --release --bin goose
cargo build --bin goose
echo ""
else
echo "Skipping build (SKIP_BUILD is set)..."
@@ -247,7 +247,7 @@ run_test() {
(
export GOOSE_PROVIDER="$provider"
export GOOSE_MODEL="$model"
cd "$testdir" && "$SCRIPT_DIR/target/release/goose" run --text "Immediately use the shell tool to run 'ls'. Do not ask for confirmation." --with-builtin "$BUILTINS" 2>&1
cd "$testdir" && "$SCRIPT_DIR/target/debug/goose" run --text "Immediately use the shell tool to run 'ls'. Do not ask for confirmation." --with-builtin "$BUILTINS" 2>&1
) > "$output_file" 2>&1
# Check result
+5 -5
View File
@@ -7,7 +7,7 @@ fi
if [ -z "$SKIP_BUILD" ]; then
echo "Building goose..."
cargo build --release --bin goose
cargo build --bin goose
echo ""
else
echo "Skipping build (SKIP_BUILD is set)..."
@@ -17,7 +17,7 @@ fi
SCRIPT_DIR=$(pwd)
# Add goose binary to PATH so subagents can find it when spawning
export PATH="$SCRIPT_DIR/target/release:$PATH"
export PATH="$SCRIPT_DIR/target/debug:$PATH"
# Set default provider and model if not already set
# Use fast model for CI to speed up tests
@@ -76,7 +76,7 @@ RESULTS=()
check_recipe_output() {
local tmpfile=$1
local mode=$2
# Check for unified subagent tool invocation (new format: "─── subagent |")
if grep -q "─── subagent" "$tmpfile"; then
echo "✓ SUCCESS: Subagent tool invoked"
@@ -85,7 +85,7 @@ check_recipe_output() {
echo "✗ FAILED: No evidence of subagent tool invocation"
RESULTS+=("✗ Subagent tool invocation ($mode)")
fi
# Check that both subrecipes were called (shown as "subrecipe: <name>" in output)
if grep -q "subrecipe:.*file_stats\|file_stats.*subrecipe" "$tmpfile" && grep -q "subrecipe:.*code_patterns\|code_patterns.*subrecipe" "$tmpfile"; then
echo "✓ SUCCESS: Both subrecipes (file_stats, code_patterns) found in output"
@@ -98,7 +98,7 @@ check_recipe_output() {
echo "Running recipe with parallel subrecipes..."
TMPFILE=$(mktemp)
if (cd "$TESTDIR" && "$SCRIPT_DIR/target/release/goose" run --recipe project_analyzer_parallel.yaml --no-session 2>&1) | tee "$TMPFILE"; then
if (cd "$TESTDIR" && "$SCRIPT_DIR/target/debug/goose" run --recipe project_analyzer_parallel.yaml --no-session 2>&1) | tee "$TMPFILE"; then
echo "✓ SUCCESS: Recipe completed successfully"
RESULTS+=("✓ Recipe exit code")
check_recipe_output "$TMPFILE" "parallel"