Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/test-finder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
options: --user root
env:
GOOSE_PROVIDER: ${{ vars.GOOSE_PROVIDER || 'openai' }}
GOOSE_MODEL: ${{ vars.GOOSE_MODEL || 'gpt-4o' }}
GOOSE_MODEL: ${{ vars.GOOSE_MODEL || 'gpt-5' }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
HOME: /tmp/goose-home

Expand All @@ -34,10 +34,10 @@ jobs:
with:
fetch-depth: 0

- name: Install analysis tools
- name: Install build and analysis tools
run: |
apt-get update
apt-get install -y jq ripgrep
apt-get install -y jq ripgrep build-essential

- name: Find untested code and create working test
id: find_untested
Expand All @@ -58,7 +58,7 @@ jobs:
5. Focus on the goose crate first, then goose-cli, then others

Process:
1. Find a suitable untested function
1. Find a suitable untested function (use your `analyze` tool and ripgrep)
2. Write a comprehensive unit test for it
3. Apply your changes to the codebase
4. Run the test with: cargo test --test <test_name>
Expand Down Expand Up @@ -178,9 +178,9 @@ jobs:
PATCH_CREATED: ${{ steps.find_untested.outputs.patch_created }}
FUNCTION_NAME: ${{ steps.find_untested.outputs.function_name }}
run: |
if [ "$PATCH_CREATED" == "true" ]; then
if [ "$PATCH_CREATED" = "true" ]; then
echo "✅ Successfully found untested code and created a test"
echo "📝 Function tested: $FUNCTION_NAME"
else
echo "ℹ️ No suitable untested code found today"
fi
fi
Loading