Skip to content
New issue

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

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

Already on GitHub? # to your account

GitHub testing with virtuoso service #16

Merged
merged 13 commits into from
Apr 15, 2021

Conversation

stuzart
Copy link
Member

@stuzart stuzart commented Apr 14, 2021

I'll submit this now as a PR towards addressing issue #15

It includes an extension to the Github CI workflow to include the virtuoso docker service. There is then also a new spec (named integration_spec.rb, but maybe this should go in repository_spec.rb with its own concern, I'm not clear on rspec conventions with these types of integration tests) which is configured to setup an RDF::Virtuoso::Repository to connect to the docker service.

There are a couple of sanity tests to check that a select and insert can be successfully made against the docker service.

I've also added a call to it_behaves_like "an RDF::Repository" for the conformance tests - however this is currently commented out as it raised many errors. It may take some time to fix all of these, but since many seem to have a similar error it is possible they all have a common cause.

The tests are skipped unless the env variable VIRTUOSO_INTEGRATION_TESTS exists, which is set in the CI workflow, and there are instructions on how to run locally within the spec file.

stuzart added 12 commits April 12, 2021 14:29
include the tenforce/virutoso docker container as a service in the github ci.yml
however, currently just the service, not yet included in any tests #15
a simple check that the repo is connecting and querying within the Github CI environment
after the container starts, it needs just a couple of seconds to initialise. Hopefully 3s is enough to avoid any sporadic errors #15
the previous one gave a warning
check with a single select which is unlikely to change, and also include a simple insert #15
explicity setting the let(:repository) caused an infinite loop and stack overflow, because the subject is already named it works without #15
@stuzart stuzart requested a review from gkellogg April 14, 2021 15:11
@CLAassistant
Copy link

CLAassistant commented Apr 14, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@gkellogg gkellogg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! Please sign the CLA for your public domain commitment to the project and we can merge.

spec/integration_spec.rb Outdated Show resolved Hide resolved
Co-authored-by: Gregg Kellogg <gregg@greggkellogg.net>
@gkellogg gkellogg merged commit fdae248 into develop Apr 15, 2021
@gkellogg gkellogg deleted the github-action-virtuoso-service branch April 15, 2021 20:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants