Skip to content

Fixes CI configuration and make tests passes #260

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

Merged
merged 1 commit into from
Dec 20, 2020

Conversation

pftg
Copy link
Contributor

@pftg pftg commented Dec 19, 2020

No description provided.

@pftg
Copy link
Contributor Author

pftg commented Dec 19, 2020

@jcupitt sorry, have not verified linter CI before the merge. Please check here, we now it should works
image

@pftg pftg marked this pull request as draft December 19, 2020 17:11
@pftg
Copy link
Contributor Author

pftg commented Dec 19, 2020

some tests are failing will fix them soon

@pftg pftg changed the title Fixes linter job configuration WIP: Fixes linter job configuration Dec 19, 2020
@jcupitt
Copy link
Member

jcupitt commented Dec 19, 2020

No problem, and thanks again for working on this.

@pftg pftg force-pushed the fix-ci branch 5 times, most recently from 11bbc6f to a7942cb Compare December 19, 2020 18:15
@pftg
Copy link
Contributor Author

pftg commented Dec 20, 2020

@jcupitt when I use libvips 8.9.1 there is warning like can't set metadata "offset" on shared image and for truffleruby it does not add the field to the image.

I thought this is only truffleruby problem only, but now I see that for ubuntu 20, libvips does not update the field for ruby 2.7.2 as well. Do you know why it could be?

@jcupitt
Copy link
Member

jcupitt commented Dec 20, 2020

Yes, there was a breaking change in the way metadata modification was handled in libvips 8.9, unfortunately :( 8.10 handles this more gracefully.

I should add something to the ruby-vips test suite to skip these tests on that version.

@jcupitt
Copy link
Member

jcupitt commented Dec 20, 2020

Off-topic, but I suppose rubocop can be removed now that you've switched it to standardrb, is that right?

@pftg
Copy link
Contributor Author

pftg commented Dec 20, 2020

@jcupitt so if I skip ti for 8.9 version that is expected behavior?

@pftg
Copy link
Contributor Author

pftg commented Dec 20, 2020

@jcupitt I'll remove rubocop in spearate pr, that will be epic PR with all files changes

@jcupitt
Copy link
Member

jcupitt commented Dec 20, 2020

Yes, sorry. I'll make a PR that fixes the test suite with 8.9.

@jcupitt
Copy link
Member

jcupitt commented Dec 20, 2020

(this is partly why the old travis CI script built a specific version of libvips ... it reduced the complexity from having ruby-vips and libvips versioning decoupled)

@pftg
Copy link
Contributor Author

pftg commented Dec 20, 2020

Cool fixed for ubuntu 20, found that 18 and 16 has some broken test, will handle them in different pr

@pftg pftg marked this pull request as ready for review December 20, 2020 14:44
@pftg
Copy link
Contributor Author

pftg commented Dec 20, 2020

@jcupitt please check and merge, all tests should be green. But I added some version verifications

@pftg pftg changed the title WIP: Fixes linter job configuration Fixes CI configuration and make tests passes Dec 20, 2020
RSpec.describe Vips::Source do
it 'can create a source from a descriptor' do
source = Vips::Source.new_from_descriptor(0)
RSpec.describe Vips::Source, version: [8, 9] do
Copy link
Member

Choose a reason for hiding this comment

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

Oh nice, I didn't know about that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just added ;)

@jcupitt jcupitt merged commit 0a4014d into libvips:master Dec 20, 2020
@jcupitt
Copy link
Member

jcupitt commented Dec 20, 2020

Nice, lots of useful fixups.

@pftg pftg deleted the fix-ci branch December 20, 2020 15:47
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 this pull request may close these issues.

2 participants