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

Replacing derby with lamprey (the integration test suite harness from rdf-ldp) #136

Closed
wants to merge 10 commits into from

Conversation

jrgriffiniii
Copy link
Contributor

Resolves #131

@jrgriffiniii
Copy link
Contributor Author

I am opening this as a draft PR given that the test coverage may well not be sufficient.

@jrgriffiniii jrgriffiniii force-pushed the issues-131-jrgriffiniii-ruby3.0 branch 2 times, most recently from 450708e to 12a4405 Compare March 8, 2022 19:29
@jrgriffiniii
Copy link
Contributor Author

Please disregard this, inspecting https://app.circleci.com/pipelines/github/samvera/ldp/74/workflows/2e4b1ded-40ce-4117-bfbe-454fd0d93c4e/jobs/670/steps, I have found the following to be the current code coverage analysis results:

Coverage report generated for RSpec to /home/circleci/project/coverage. 492 / 571 LOC (86.16%) covered.

@jrgriffiniii jrgriffiniii marked this pull request as ready for review March 8, 2022 19:58
@jrgriffiniii jrgriffiniii marked this pull request as draft April 7, 2022 14:55
@jrgriffiniii jrgriffiniii force-pushed the issues-131-jrgriffiniii-ruby3.0 branch from c843617 to cfe5fb4 Compare April 7, 2022 15:05
@coveralls
Copy link

coveralls commented Apr 7, 2022

Coverage Status

Coverage decreased (-7.3%) to 78.561% when pulling 13c2312 on issues-131-jrgriffiniii-ruby3.0 into 1d6eac1 on main.

@jrgriffiniii
Copy link
Contributor Author

Support for Ruby 2.5 was droppped for rdf 3.2.z releases (please compare https://rubygems.org/gems/rdf/versions/3.2.0 to https://rubygems.org/gems/rdf/versions/3.1.15)

@jrgriffiniii jrgriffiniii force-pushed the issues-131-jrgriffiniii-ruby3.0 branch from 1add5e4 to 4466368 Compare April 7, 2022 17:20
@jrgriffiniii jrgriffiniii force-pushed the issues-131-jrgriffiniii-ruby3.0 branch from 4466368 to 8c81e28 Compare April 7, 2022 17:26
@jrgriffiniii jrgriffiniii force-pushed the issues-131-jrgriffiniii-ruby3.0 branch from 2c5d4fe to c881e59 Compare April 8, 2022 19:49
@jrgriffiniii jrgriffiniii marked this pull request as ready for review April 8, 2022 19:50
@jrgriffiniii
Copy link
Contributor Author

jrgriffiniii commented Apr 18, 2022

Thank you very much for the review @bess! Following a discussion regarding the substantive changes, I can proceed with adding this with a request for review to the Samvera Tech Call scheduled for this week: https://samvera.atlassian.net/wiki/spaces/samvera/pages/1954250753/Samvera+Tech+Call+2022-04-20

Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

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

This all looks really well done! Thanks for your effort on this!

I see that you've preserved the old functionality (utilizing derby?) by testing if the client has a repository set. Does it make sense to keep this support or can it be removed entirely? I guess asking differently, it looks like these changes are meant to be backwards-compatible, but should this just be a major release and drop the prior way of doing things? If not, do you think there is sufficient test coverage of both code paths? (I see there is testing of the new paths in the integration test and the old paths in the unit tests.)

I think it would also be good to run ActiveFedora's and Valkyrie's test suites against this branch as a smoke test.

end

it 'raises an ArgumentError with bad arguments' do
expect { Ldp::Client.new(nil, nil, nil) }.to raise_error ArgumentError
context 'with addition client options' do
Copy link
Member

Choose a reason for hiding this comment

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

It looks like this context label was copied from the previous and should be renamed. Here's a suggestion.

Suggested change
context 'with addition client options' do
context 'with invalid arguments' do

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you very much for this thorough review and guidance! I did indeed intend to preserve what I could of the method signatures and invocations in order to preserve backwards-compatibility for those adopters who cannot completely remove the derby dependency.

As such, I can now look to increase the test coverage for these proposed changes.

@jrgriffiniii jrgriffiniii marked this pull request as draft April 20, 2022 19:16
@jrgriffiniii jrgriffiniii changed the title Upgrading to support Ruby 3.0.3 (this required that derby be replaced by rdf-ldp) Replacing derby with lamprey (the integration test suite harness from rdf-ldp) Jun 24, 2022
@cjcolvar
Copy link
Member

Superseded by #149

@cjcolvar cjcolvar closed this Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Support Ruby 3.0.3
4 participants