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

Skip Spring version 2.1.1 #389

Merged
merged 2 commits into from
Jan 12, 2021
Merged

Skip Spring version 2.1.1 #389

merged 2 commits into from
Jan 12, 2021

Conversation

entcheva
Copy link
Contributor

@entcheva entcheva commented Jan 8, 2021

Changes introduced in Spring 2.1.1 (rails/spring#621) are breaking some tests. That change was reverted in rails/spring#629 but hasn't been released yet. Until rails/spring#629 is released, this PR skips Spring version 2.1.1.

Co-authored-by: Daniel J. Colson daniel.colson@hey.com

@composerinteralia
Copy link
Collaborator

composerinteralia commented Jan 9, 2021

I occurred to me we saw some recent failures in suspenders that are probably similar to this. For some reason commands that used to run in a test app directory started getting run in the top-level suspenders directory. I think that is what is happening here: the test is in factory_bot_rails/tmp/aruba/test_app/test, but for some reason something somewhere is looking for it in factory_bot_rails/test.

I don't think this is a good solution, but if we change bin/rails test to bin/rails test tmp/aruba/test_app/test/unit/user_test.rb it passes for me locally. Interestingly the bin/rails part works fine even though that is also in tmp/aruba/test_app.

I would love to know what library changed this behavior for us, but not sure how to find out. We were having some rake issues, so maybe something in there somewhere?

@composerinteralia
Copy link
Collaborator

composerinteralia commented Jan 9, 2021

Figured it out. It was introduced in spring 2.1.1 (rails/spring#621). That change was reverted in rails/spring#629, but hasn't been released yet. So I think the solution here is to avoid the broken version of spring. I think we can do that by adding a "!= 2.1.1" constraint to the Gemfile, updating the appraisals, and adding "gsub_file "Gemfile", /^ gem 'spring'$/, ' gem "spring", "!= 2.1.1"' to features/support/rails_template .

cc @garciadanny and @mike-burns in case this helps you with the suspenders tests. Or if you wait long enough they might fix themselves when a new version of spring comes out.

@@ -1,3 +1,4 @@
if Rails.gem_version < Gem::Version.new('6')
gsub_file "Gemfile", /^gem 'sqlite3'$/, 'gem "sqlite3", "~> 1.3.6"'
gsub_file "Gemfile", /^ gem 'spring'$/, ' gem "spring", "!= 2.1.1"'
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we want this outside the if Rails.gem_version < Gem::Version.new('6') check, since it is failing in every version.

Copy link
Contributor Author

@entcheva entcheva Jan 9, 2021

Choose a reason for hiding this comment

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

Good call! Updated in c301ff9.

I still see one local failing reloading.feature scenario that times out. Is it green for you? Let's see what CI has to say.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Although the rails 6 tests passed anyway so 🤷🏻‍♂️

Copy link
Collaborator

Choose a reason for hiding this comment

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

Pushed up an additional commit to fix the standard style violation.

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! We have a green test suite, should we squash & merge?

Copy link
Collaborator

Choose a reason for hiding this comment

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

🎉 Yippee! I'll leave it to you.

@composerinteralia
Copy link
Collaborator

composerinteralia commented Jan 9, 2021

BTW, this is the Travis announcement I was thinking of, specifically the part about OSS.

Christina Entcheva and others added 2 commits January 11, 2021 19:06
Changes introduced in spring 2.1.1
(rails/spring#621) are breaking some tests. That
change was reverted in rails/spring#629, but
hasn't been released yet. Until #629 is released, this PR skips Spring
version 2.1.1.

Co-authored-by: Daniel J. Colson <daniel.colson@hey.com>
We are using the latest standard on CI. This bumps the version in the
dev Gemfile to match, and fixes one violation.
@entcheva entcheva changed the title Use bin/rails instead of bundle exec rake Skip Spring version 2.1.1 Jan 12, 2021
@entcheva entcheva merged commit 9de5e2b into master Jan 12, 2021
@entcheva entcheva deleted the update-tests branch January 12, 2021 04:06
@composerinteralia
Copy link
Collaborator

@entcheva it seems like we may want to migrate from Travis to Circle at some point.

@entcheva
Copy link
Contributor Author

@composerinteralia Nice! I especially appreciate the performance comparison to Github Actions. This is a helpful breakdown, thank you!

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