Skip to content

Commit

Permalink
test: add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Oct 30, 2023
1 parent 5b4c74b commit 5bbd6e8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ jobs:
max_attempts: 100
retry_wait_seconds: 2
warning_on_retry: false
command: if (($(docker-compose ${{ env.COMPOSE_ARGS }} logs wdqs-updater | grep "org.wikidata.query.rdf.tool.Updater - Polled" | wc -l) >= 10)); then exit 0; else exit 1; fi
command: |
line_count=$($(docker-compose ${{ env.COMPOSE_ARGS }} logs wdqs-updater | grep "org.wikidata.query.rdf.tool.Updater - Polled" | wc -l)
echo "line count: $line_count"
if (($line_count) >= 10));
then exit 0;
else
exit 1;
fi
- name: Make a sparql request
run: |
NUM_BINDINGS=$(curl 'http://localhost:9999/bigdata/namespace/wdq/sparql' -H 'Accept: application/sparql-results+json' --data-raw 'query=SELECT+*+WHERE%7B+%3Fs+%3Fp+%3Fo+%7D' | jq '.results.bindings | length')
Expand Down

0 comments on commit 5bbd6e8

Please sign in to comment.