-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Smoke tests: split compaction test and use debug build #6984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,15 +14,15 @@ 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)..." | ||
| echo "" | ||
| fi | ||
|
|
||
| SCRIPT_DIR=$(pwd) | ||
| GOOSE_BIN="$SCRIPT_DIR/target/release/goose" | ||
| GOOSE_BIN="$SCRIPT_DIR/target/debug/goose" | ||
|
|
||
|
Comment on lines
24
to
26
|
||
| # Apply provider/model overrides if set | ||
| if [ -n "$COMPACTION_PROVIDER" ]; then | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,15 +3,15 @@ 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)..." | ||||||||||||||||||||||||||||
| echo "" | ||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| SCRIPT_DIR=$(pwd) | ||||||||||||||||||||||||||||
| GOOSE_BIN="$SCRIPT_DIR/target/release/goose" | ||||||||||||||||||||||||||||
| GOOSE_BIN="$SCRIPT_DIR/target/debug/goose" | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
Comment on lines
+14
to
15
|
||||||||||||||||||||||||||||
| GOOSE_BIN="$SCRIPT_DIR/target/debug/goose" | |
| # Allow callers to override the goose binary, and fall back to common build outputs. | |
| if [ -z "$GOOSE_BIN" ]; then | |
| if [ -x "$SCRIPT_DIR/target/debug/goose" ]; then | |
| GOOSE_BIN="$SCRIPT_DIR/target/debug/goose" | |
| elif [ -x "$SCRIPT_DIR/target/release/goose" ]; then | |
| GOOSE_BIN="$SCRIPT_DIR/target/release/goose" | |
| else | |
| # Preserve previous default even if it does not exist yet. | |
| GOOSE_BIN="$SCRIPT_DIR/target/debug/goose" | |
| fi | |
| fi |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
Comment on lines
249
to
+250
|
||
| ) > "$output_file" 2>&1 | ||
|
|
||
| # Check result | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -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" | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
| export PATH="$SCRIPT_DIR/target/debug:$PATH" | |
| if [ -n "$GOOSE_BIN" ]; then | |
| GOOSE_DIR="$(dirname "$GOOSE_BIN")" | |
| elif [ -n "$GOOSE_TARGET_DIR" ]; then | |
| GOOSE_DIR="$GOOSE_TARGET_DIR" | |
| elif [ -x "$SCRIPT_DIR/target/debug/goose" ]; then | |
| GOOSE_DIR="$SCRIPT_DIR/target/debug" | |
| elif [ -x "$SCRIPT_DIR/target/release/goose" ]; then | |
| GOOSE_DIR="$SCRIPT_DIR/target/release" | |
| else | |
| echo "Error: goose binary not found. Set GOOSE_BIN or GOOSE_TARGET_DIR, or build goose (debug or release)." >&2 | |
| exit 1 | |
| fi | |
| export PATH="$GOOSE_DIR:$PATH" |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This invocation assumes the binary is always at target/debug/goose; when SKIP_BUILD=1 and only a release build exists locally, the test will error—consider deriving the path from an env var or auto-detecting debug vs release based on what exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow now builds and uploads a debug binary from target/debug/goose, but the test scripts (test_compaction.sh, test_providers.sh, test_subrecipes.sh, test_mcp.sh) all have hardcoded paths to target/release/goose. Since SKIP_BUILD=1 is set, these scripts won't rebuild the binary but will look for it in the wrong location, causing the tests to fail.
The scripts need to be updated to use target/debug instead of target/release, or an environment variable like GOOSE_BIN should be passed to override the default path.