@@ -183,56 +183,6 @@ jobs:
183183
184184 exit 1
185185
186- - name : Error
187- working-directory : ./services
188- run : |
189- echo "---------------------------------------------------"
190- echo "1. PROBING: Can we reach the API at all?"
191- timeout 60s bash -c 'until curl -sSf http://localhost:8000/api/v1/xml/data/1 > /dev/null; do sleep 5; done' || echo "WARNING: Main API is slow/down"
192-
193- echo "---------------------------------------------------"
194- echo "2. PROBING: Waiting for Task 119 Splits (The Failure Point)..."
195- # We wait 60s. If it works, great. If not, we want the logs.
196- timeout 60s bash -c 'until curl -sSf http://localhost:8000/api_splits/get/119/Task_119_splits.arff > /dev/null; do
197- echo " ... file not ready yet"
198- sleep 5
199- done' || echo "FAILURE: Task 119 splits were NOT generated."
200-
201- echo "---------------------------------------------------"
202- echo "3.DUMPING EVALUATION ENGINE LOGS (STDOUT)"
203- docker logs openml-evaluation-engine
204-
205- echo "---------------------------------------------------"
206- echo "4.DUMPING INTERNAL CRON LOGS (The Hidden Logs)"
207- # The engine runs via cron, so the real errors are often in this file, NOT in docker logs
208- docker exec openml-evaluation-engine cat /cron.log || echo "Could not read /cron.log"
209-
210- echo "---------------------------------------------------"
211- echo "5.DUMPING PHP API LOGS (Why did it throw 412?)"
212- docker logs openml-php-rest-api | grep "412" -B 5 -A 5 || echo "No 412 errors found in logs?"
213-
214- echo "---------------------------------------------------"
215- echo "6.CHECKING NETWORK (Can the container see Nginx?)"
216- # This checks if the container can actually resolve 'localhost' to the host machine
217- docker exec openml-evaluation-engine curl -v http://localhost:8000/api/v1/xml/data/1 || echo "Container cannot connect to localhost:8000"
218-
219- # Force fail so you see the red X and check logs
220- exit 1
221- - name : Verify API and Splits
222- if : matrix.os == 'ubuntu-latest'
223- run : |
224- echo "Checking Data API..."
225- timeout 60s bash -c 'until [ "$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8000/api/v1/xml/data/1)" == "200" ]; do sleep 5; done'
226-
227- echo "Checking Task Splits (The 412 Killer)..."
228- # If this fails, the evaluation engine is broken
229- timeout 120s bash -c 'until [ "$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8000/api_splits/get/1/Task_1_splits.arff)" == "200" ]; do
230- echo "Splits not ready yet. Waiting..."
231- sleep 5
232- done'
233-
234- echo "System is fully operational."
235-
236186 - name : Show installed dependencies
237187 run : python -m pip list
238188
0 commit comments