Skip to content

Commit 4086730

Browse files
committed
test
1 parent fad1ee7 commit 4086730

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ jobs:
148148
- name: Finalize Setup & Verify Splits
149149
if: matrix.os == 'ubuntu-latest'
150150
run: |
151-
echo "1. Forcing Elasticsearch Indexing Sync..."
152-
# This helps clear the 412 errors the Engine is hitting
153-
curl -s http://nginx:8000/api/v1/xml/admin/index/sync || echo "Sync endpoint not found, skipping..."
151+
echo "1. Forcing Elasticsearch Indexing Sync (With Auth)..."
152+
# We append the default test API Key (AD0...0) to authorized the admin action
153+
curl -s "http://nginx:8000/api/v1/xml/admin/index/sync?api_key=AD000000000000000000000000000000" || echo "Sync request failed"
154154
155155
echo "2. Waiting for Evaluation Engine to process Task 119..."
156156
echo "Targeting Task 119 (The primary failure point)."
157157
158-
# Give it 5 minutes (300s). Java + indexing + splits generation is heavy.
158+
# We give it 5 minutes (300s) to handle the queue.
159159
count=0
160160
while [ $count -lt 30 ]; do
161161
code=$(curl -s -o /dev/null -w "%{http_code}" http://nginx:8000/api_splits/get/119/Task_119_splits.arff)
@@ -169,8 +169,17 @@ jobs:
169169
done
170170
171171
echo "❌ ERROR: Evaluation Engine timed out."
172-
# Dump logs only if this step fails
173-
docker exec openml-evaluation-engine cat /logs/evaluation.log || echo "Could not read log file"
172+
173+
echo "=== DEBUG: LISTING LOG DIR ==="
174+
docker exec openml-evaluation-engine ls -R /logs/ || echo "Dir empty"
175+
176+
echo "=== DEBUG: DUMPING ALL LOGS ==="
177+
# Use wildcard to catch whatever the filename actually is
178+
docker exec openml-evaluation-engine sh -c "cat /logs/*.log" || echo "Could not read logs"
179+
180+
# Also check the cron log again, just in case
181+
docker exec openml-evaluation-engine cat /cron.log || echo "Cron log empty"
182+
174183
exit 1
175184
176185
- name: Error

0 commit comments

Comments
 (0)