Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuseki tests not running on drone #1475

Closed
aucampia opened this issue Nov 24, 2021 · 0 comments · Fixed by #1476
Closed

Fuseki tests not running on drone #1475

aucampia opened this issue Nov 24, 2021 · 0 comments · Fixed by #1476

Comments

@aucampia
Copy link
Member

aucampia commented Nov 24, 2021

Currently fuseki tests are being skipped on master with drone. This is in part I think because there is no java installed in the containers used in drone.

logs

Without fuseki running:

20211124T210339 iwana@teekai.zoic.eu.org:~/sw/d/github.com/iafork/rdflib
$ .venv/bin/pytest ./test/test_sparqlupdatestore.py test/test_dataset.py 
============================================================================ test session starts ============================================================================
platform linux -- Python 3.7.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/iwana/sw/d/github.com/iafork/rdflib, configfile: setup.cfg
plugins: subtests-0.5.0, cov-3.0.0
collected 20 items                                                                                                                                                          

test/test_sparqlupdatestore.py ssssssssssss                                                                                                                           [ 60%]
test/test_dataset.py ........                                                                                                                                         [100%]

======================================================================= 8 passed, 12 skipped in 4.06s =======================================================================

With fuseki running:

20211124T210636 iwana@teekai.zoic.eu.org:~/sw/d/github.com/iafork/rdflib
$ ./with-fuseki.sh .venv/bin/pytest ./test/test_sparqlupdatestore.py test/test_dataset.py 
declare -- jena_uri="https://archive.apache.org/dist/jena/binaries/apache-jena-fuseki-3.17.0.tar.gz"
declare -- jena_archive="/home/iwana/.cache/apache-jena-fuseki-3.17.0.tar.gz"
declare -- XDG_CACHE_HOME="/home/iwana/.cache"
declare -- LOCALSTATEDIR="./var"
apache-jena-fuseki-3.17.0.tar.gz: OK
declare -- FUSEKI_HOME="./var/apache-jena-fuseki-3.17.0"
declare -- fuseki_base_normal="./var/apache-jena-fuseki-3.17.0/run-normal"
declare -- fuseki_base_tdb="./var/apache-jena-fuseki-3.17.0/run-tdb"
declare -- fuseki_pidfile_normal="./var/apache-jena-fuseki-3.17.0/run-normal/server.pid"
declare -- fuseki_pidfile_tdb="./var/apache-jena-fuseki-3.17.0/run-tdb/server.pid"
declare -- fuseki_port_normal="3030"
declare -- fuseki_port_tdb="3031"
declare -- fuseki_log_normal="./var/apache-jena-fuseki-3.17.0/run-normal/out.log"
declare -- fuseki_log_tdb="./var/apache-jena-fuseki-3.17.0/run-tdb/out.log"
INFO: starting fuseki: normal
INFO: starting fuseki: tdb
declare -- fuseki_pid_tdb="1659732"
declare -- fuseki_pid_normal="1659731"
INFO: checking if http://localhost:3030/ (fuseki-normal) is okay
INFO: url http://localhost:3030/ (fuseki-normal) not okay, waiting ...
INFO: url http://localhost:3030/ (fuseki-normal) is okay
INFO: checking if http://localhost:3031/ (fuseki-tdb) is okay
INFO: url http://localhost:3031/ (fuseki-tdb) is okay
INFO: pid 1659732 (fuseki-tdb) running
INFO: pid 1659731 (fuseki-normal) running
running: .venv/bin/pytest ./test/test_sparqlupdatestore.py test/test_dataset.py
============================================================================ test session starts ============================================================================
platform linux -- Python 3.7.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/iwana/sw/d/github.com/iafork/rdflib, configfile: setup.cfg
plugins: subtests-0.5.0, cov-3.0.0
collected 24 items                                                                                                                                                          

test/test_sparqlupdatestore.py ............                                                                                                                           [ 50%]
test/test_dataset.py ............                                                                                                                                     [100%]

============================================================================= warnings summary ==============================================================================
test/test_sparqlupdatestore.py::TestSparql11::testConjunctiveDefault
  /home/iwana/sw/d/github.com/iafork/rdflib/rdflib/plugins/sparql/__init__.py:52: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
    for ep in all_entry_points.get(PLUGIN_ENTRY_POINT, []):

test/test_sparqlupdatestore.py::TestSparql11::testUpdateWithBlankNodeSerializeAndParse
  /home/iwana/sw/d/github.com/iafork/rdflib/rdflib/plugins/serializers/nt.py:28: UserWarning: NTSerializer does not use custom encoding.
    warnings.warn("NTSerializer does not use custom encoding.")

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 24 passed, 2 warnings in 4.96s =======================================================================
declare -- fuseki_pid_normal="1659731"
declare -- fuseki_pid_tdb="1659732"
INFO: killing pid 1659731 (fuseki-normal)
INFO: pid 1659731 (fuseki-normal) is not dead, waiting ...
INFO: pid 1659731 (fuseki-normal) is dead 
INFO: killing pid 1659732 (fuseki-tdb)
INFO: pid 1659732 (fuseki-tdb) is not dead, waiting ...
INFO: pid 1659732 (fuseki-tdb) is dead 

And checking drone logs:

https://drone.rdflib.ashs.dev/RDFLib/rdflib/588/1/2

test/test_sparqlupdatestore.py ssssssssssss                              [ 70%]
test/test_dataset.py ........                                            [  4%]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant