Skip to content
Closed
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
IMPORTANT: To run tests, **alwasy** run the following command This command take a long time to return. Wait at least 5 minutes
askds --system-prompt="./prompts/fix-tests.txt" cargo test

WAIT A LONG TIME FOR askds to run the tests and find the issues.

use the output of the command to fix the tests.

IMPORTANT: Before committing, run `cargo fmt` and `cargo clippy` and `askds --system-prompt="./prompts/fix-tests.txt" cargo test` to ensure code is formatted and linted correctly.

IMPORTANT never commit without running the tests.
16 changes: 6 additions & 10 deletions .github/workflows/ailoop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
permissions:
contents: write
pull-requests: write
issues: write

jobs:
loop:
Expand Down Expand Up @@ -67,6 +68,7 @@ jobs:

- name: Run AI Fix
timeout-minutes: 360
continue-on-error: true
id: ai_fix
env:
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
Expand All @@ -83,19 +85,13 @@ jobs:
name: attempts-log
path: attempts.txt

- name: Push changes
if: always() && ${{ github.event.inputs.pr-on-fail }}
run: |
git checkout -b ${{ env.BRANCH }}-ai-fix-${{ env.SHORT_DATE }}
git push origin ${{ env.BRANCH }}-ai-fix-${{ env.SHORT_DATE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create PR
- name: Create PR or Issue
if: always() && ${{ github.event.inputs.pr-on-fail }}
uses: peter-evans/create-pull-request@v5
env:
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ env.GH_TOKEN }}
commit-message: "AI Fix"
title: "AI Fix for ${{ env.BRANCH }} (Attempts: ${{ env.MAX_ATTEMPTS }})"
body: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
exit 1
}
# Verify output exists
test -f repo-serialized/chunk-0.txt || {
test -f repo-serialized/output.txt || {
echo "Error: Output file not found"
ls -la repo-serialized/ || true
exit 1
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
exit 1
}
# Verify output exists
if (-not (Test-Path repo-serialized/chunk-0.txt)) {
if (-not (Test-Path repo-serialized/output.txt)) {
Write-Error "Output file not found"
Get-ChildItem repo-serialized -ErrorAction SilentlyContinue
exit 1
Expand Down Expand Up @@ -299,7 +299,7 @@ jobs:
exit 1
}
# Verify output exists
test -f repo-serialized/chunk-0.txt || {
test -f repo-serialized/output.txt || {
echo "Error: Output file not found"
ls -la repo-serialized/ || true
exit 1
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ yek.toml
repo-serialized/
dist/
/*.txt
/*.diff
/*.sh
Loading
Loading