Skip to content

update test gems and dependencies#543

Merged
mockdeep merged 1 commit into
stringer-rss:masterfrom
dperson:update-test-gems
Feb 28, 2021
Merged

update test gems and dependencies#543
mockdeep merged 1 commit into
stringer-rss:masterfrom
dperson:update-test-gems

Conversation

@dperson
Copy link
Copy Markdown
Contributor

@dperson dperson commented Feb 27, 2021

fix a rubocop alert from the newer version faker
work around a capybara change

Comment thread Gemfile
gem "rspec-html-matchers", "~> 0.7"
gem "shotgun", "~> 0.9"
gem "capybara"
gem "coveralls", "> 0.8", require: false
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we not remove the version constraint here, too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, because there is some recoverable conflict in dependencies. If it's not specified to be greater than 0.8 it installs a 0.7.2 (if I recall correctly) from 2014, and it doesn't support all the features implemented in the code base.

It's selected (or so I believe) because that was the last version that doesn't have a dependency on an older version of another gem we use.

Comment thread Gemfile.lock Outdated
delayed_job (4.1.8)
activesupport (>= 3.0, < 6.1)
delayed_job_active_record (4.1.0)
activerecord (>= 3.0, < 5)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@dperson have you by any chance been making manual edits to Gemfile.lock or selectively committing lines? There's some weird stuff happening when I try to add/change gems. Based on this line, it looks like you shouldn't have been able to update activerecord to 5.2.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The final version (from the big update you wanted split up) was updated by bundle lock --update but I was trying to do these updates by hand to update just the ones effected by this change. Did I fat finger something?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It looks like #533 should not have been possible without also updating delayed_job_active_record. I'm a little surprised bundler let it happen. If you run bundle update --group=test on master it will throw an error. #546 should fix it.

It's not a huge deal, but in general, I would avoid manually updating Gemfile.lock or selectively adding lines via something like git add -p. Instead, it's best to let bundler resolve any updates to make sure everything is in a consistent state. I'm not familiar with bundle lock --update, but when I'm updating gems I'll general use some variation on bundle update. You can use bundle update group=test or bundle update --minor or bundle update activerecord.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry, looks like you'll need to rebase this one.

Copy link
Copy Markdown
Contributor Author

@dperson dperson Feb 28, 2021

Choose a reason for hiding this comment

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

Ah, sorry about that. I'm not a ruby expert, and appreciate the pointer on bundle. I was using CI to make sure I hadn't messed things up too bad with the manual updates.

The rebase is complete. Thanks!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah, this kind of shakes my faith in Bundler. I poked around for a while but wasn't able to find a good way to get it to throw an error, aside from trying to add a new gem.

Comment thread Gemfile.lock Outdated
tins (1.28.0)
sync
tzinfo (1.2.5)
>>>>>>> a3d2b33 (update test gems and dependencies)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like some git conflicts snuck in here. For this, I'd probably:

git checkout master Gemfile.lock
bundle update --group=test

fix a rubocop alert from the newer version faker
work around a capybara change
@mockdeep mockdeep merged commit b0424bb into stringer-rss:master Feb 28, 2021
@dperson dperson deleted the update-test-gems branch February 28, 2021 21:34
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