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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user