Skip to content

Commit a2737aa

Browse files
committed
Fix export seed step
1 parent 408a4a9 commit a2737aa

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

.github/workflows/export-seed.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
echo "model.onnx: $(du -h "$MODEL_DIR/model.onnx" | cut -f1)"
5858
echo "tokenizer.json: $(du -h "$MODEL_DIR/tokenizer.json" | cut -f1)"
5959
60-
- name: Start guide with auto-seed
60+
- name: Start guide
6161
env:
6262
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
6363
ANTHROPIC_API_KEY: dummy-key
@@ -66,28 +66,39 @@ jobs:
6666
-DNEO4J_URI=bolt://localhost:7687 \
6767
-DNEO4J_USERNAME=neo4j \
6868
-DNEO4J_PASSWORD=testpassword \
69-
-Dguide.reload-content-on-startup=true \
7069
-jar target/*.jar > /tmp/guide.log 2>&1 &
7170
echo "GUIDE_PID=$!" >> $GITHUB_ENV
7271
73-
- name: Wait for guide to be ready (ingestion completes in constructor)
72+
- name: Wait for guide to be ready
7473
run: |
75-
echo "Waiting for guide to start and finish ingestion..."
76-
for i in $(seq 1 120); do
74+
echo "Waiting for guide to start..."
75+
for i in $(seq 1 60); do
7776
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:1337/api/v1/data/stats 2>/dev/null || echo "000")
7877
if [ "$HTTP_CODE" = "200" ]; then
79-
echo "Guide is ready after ~${i}0 seconds (HTTP $HTTP_CODE)"
78+
echo "Guide is ready after ~${i}0 seconds"
8079
exit 0
8180
fi
82-
# Show recent log output for progress
8381
echo "--- Attempt $i (${i}0s elapsed) HTTP=$HTTP_CODE ---"
8482
tail -5 /tmp/guide.log 2>/dev/null || true
8583
sleep 10
8684
done
87-
echo "ERROR: Guide did not become ready within 20 minutes"
88-
echo "=== Full guide log ==="
85+
echo "ERROR: Guide did not start within 10 minutes"
8986
cat /tmp/guide.log
9087
exit 1
88+
timeout-minutes: 12
89+
90+
- name: Trigger ingestion and wait for completion
91+
run: |
92+
echo "Triggering ingestion via load-references endpoint..."
93+
HTTP_CODE=$(curl -s -o /tmp/ingestion-response.txt -w "%{http_code}" \
94+
-X POST http://localhost:1337/api/v1/data/load-references)
95+
echo "Ingestion completed with HTTP $HTTP_CODE"
96+
cat /tmp/ingestion-response.txt
97+
if [ "$HTTP_CODE" != "200" ]; then
98+
echo "ERROR: Ingestion failed"
99+
tail -100 /tmp/guide.log
100+
exit 1
101+
fi
91102
timeout-minutes: 25
92103

93104
- name: Tag all nodes with managedBy

0 commit comments

Comments
 (0)