|
28 | 28 |
|
29 | 29 | jobs: |
30 | 30 | evals: |
31 | | - name: "Evals" |
| 31 | + name: Evals |
32 | 32 | runs-on: ubuntu-latest |
33 | 33 | environment: seeder |
34 | 34 | services: |
|
42 | 42 | --health-timeout 5s |
43 | 43 | --health-retries 5 |
44 | 44 | steps: |
| 45 | + - name: ✏️ Log Eval Run Metadata |
| 46 | + run: | |
| 47 | + echo "Running Evals:" |
| 48 | + echo "- Size: ${{ env.test_size }} charms" |
| 49 | + echo "- SHA: ${{ env.target_sha }}" |
| 50 | +
|
45 | 51 | # TODO Upload `seeder` as a deno executable to avoid |
46 | 52 | # running from source. |
47 | 53 | - name: 📥 Checkout repository |
@@ -100,6 +106,13 @@ jobs: |
100 | 106 | key: llm-cache-${{ github.run_id }} |
101 | 107 | restore-keys: llm-cache |
102 | 108 |
|
| 109 | + - name: ✏️ List LLM Cache Load |
| 110 | + run: | |
| 111 | + mkdir -p ./llm_cache_dir/llm-api-cache |
| 112 | + ls -1 ./llm_cache_dir/llm-api-cache > ./cache-log-pre |
| 113 | + echo "$(cat ./cache-log-pre | wc -l) items found in cache." |
| 114 | + cat ./cache-log-pre |
| 115 | +
|
103 | 116 | - name: 🚀 Start Toolshed server |
104 | 117 | run: | |
105 | 118 | mkdir -p ./llm_cache_dir |
@@ -129,6 +142,25 @@ jobs: |
129 | 142 | OPENAI_API_KEY=${{ secrets.CTTS_AI_LLM_OPENAI_API_KEY }} \ |
130 | 143 | deno task start --name ${{ env.target_sha }} $FLAGS |
131 | 144 |
|
| 145 | + - name: ✏️ List LLM Cache Save |
| 146 | + run: | |
| 147 | + mkdir -p ./llm_cache_dir/llm-api-cache |
| 148 | + ls -1 ./llm_cache_dir/llm-api-cache > ./cache-log-post |
| 149 | + echo "$(cat ./cache-log-post | wc -l) items found in cache." |
| 150 | + cat ./cache-log-post |
| 151 | + |
| 152 | + - name: 📦 LLM Cache Status |
| 153 | + run: | |
| 154 | + diff ./cache-log-pre ./cache-log-post > ./cache-analysis-diff |
| 155 | + RESULT=$? |
| 156 | + if [ $RESULT -eq 0 ]; then |
| 157 | + echo "No new LLM cache entries added!" |
| 158 | + else |
| 159 | + # `diff` outputs two lines per diff, one for location, one for content |
| 160 | + ADDITIONS=$(cat ./cache_analysis-diff | wc -l) |
| 161 | + echo "LLM cache has added $((ADDITIONS / 2)) entries." |
| 162 | + fi |
| 163 | + |
132 | 164 | - name: 📤 Upload reports |
133 | 165 | uses: actions/upload-artifact@v4 |
134 | 166 | with: |
|
0 commit comments