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

RSpec Rails 6.0 Release Plan #2560

Closed
21 tasks done
JonRowe opened this issue Jan 18, 2022 · 13 comments
Closed
21 tasks done

RSpec Rails 6.0 Release Plan #2560

JonRowe opened this issue Jan 18, 2022 · 13 comments
Labels
Milestone

Comments

@JonRowe
Copy link
Member

JonRowe commented Jan 18, 2022

@pirj @benoittgt we need to get some rspec-rails releases out, these are the steps we need to complete to do this:

This is because major version changes are required for new rails versions for us under our release policy, but this means a bunch of branch wrangling, we could drop some of the changes for main in the name of expediency, thoughts?

@pirj
Copy link
Member

pirj commented Jan 19, 2022

we could drop some of the changes for main in the name of expediency

Sounds good.
I've restored the branch for #2546, those who want to have support for Rails 7 right now can use combo-have_enqueued_mail-fixes branch meanwhile.

@JonRowe
Copy link
Member Author

JonRowe commented Jan 19, 2022

I've restored the branch for #2546, those who want to have support for Rails 7 right now can use combo-have_enqueued_mail-fixes branch meanwhile.

Why? It's still merged in main. Only the new 5-1-maintenance skips it?

@pirj
Copy link
Member

pirj commented Jan 20, 2022

Because I've suggested using this branch 🙈 thinking that this commit will be taken out of main.

@JonRowe
Copy link
Member Author

JonRowe commented Jan 20, 2022

Please feel free to merge any rails 7 fixes to main as I intend to release this within a reasonable timeframe, if we were developing a longer term stable (like rspec 4) i'd revert but for rspec-rails its just as easy to pull the commits out of the stable 5.x series.

@pirj pirj added this to the 6.0 milestone Jan 20, 2022
@pirj pirj changed the title RSpec Rails Release Plan RSpec Rails 6.0 Release Plan Jan 21, 2022
@pirj
Copy link
Member

pirj commented Jan 22, 2022

I'd prefer merging #2508 to main after releasing 5.1.x for simplicity.
Edited the description.

@pirj
Copy link
Member

pirj commented Jan 22, 2022

5-1-development is ready for 5.1.0 release, @JonRowe

@pirj pirj added the rails7 label Jan 22, 2022
@JonRowe
Copy link
Member Author

JonRowe commented Jan 23, 2022

I'm afraid its not @pirj, you merged my PR prematurely.

@JonRowe
Copy link
Member Author

JonRowe commented Jan 26, 2022

5.0.3 and 5.1.0 are released

@leboshi
Copy link

leboshi commented Mar 17, 2022

FYI, #2325 is moot now; 3 commits, the last of them 3ccd1f on 1/20/2022, made it obsolete.

@JonRowe
Copy link
Member Author

JonRowe commented Apr 3, 2022

I've released 6.0.0.rc1 with the changes so far in order to help those who need a release without a git dependency. Theres mostly the mailer behaviour changes to sort out before releasing a final version, and the tagged logging pr.

@pirj
Copy link
Member

pirj commented Jul 27, 2022

@JonRowe Speaking of sorting out the mailer merges, it appears to me that we didn't introduce any breaking changes, on the contrary, we've fixed a deficiency when with ActionMailer::MailDeliveryJob, users had to add args:.

Everyone seems happy so far with 6.0.0-rc1, and I have several theories for that:

  1. It is not widespread enough with just 80K downloads compared to 2.5M downloads of 5.1.2. A counterargument is that it is specifically used by those early adopters who needed the fix, and the fix worked.

  2. There are very, very few usages of mailer matchers in the wild:

$ cd ~/source/real-world-rspec
$ rg --hidden --no-ignore --files-with-matches 'have_enqueued_mail|enqueue_mail|have_enqueued_email|enqueue_email'
rspec-rails/lib/rspec/rails/matchers/have_enqueued_mail.rb
rspec-rails/lib/rspec/rails/matchers.rb
rspec-rails/spec/rspec/rails/matchers/have_enqueued_mail_spec.rb
rspec-rails/Changelog.md
rspec-rails/features/matchers/have_enqueued_mail_matcher.feature
chatwoot/spec/controllers/platform/api/v1/users_controller_spec.rb
gitlabhq/spec/services/users/approve_service_spec.rb
gitlabhq/spec/services/notification_service_spec.rb
gitlabhq/spec/controllers/admin/users_controller_spec.rb
gitlabhq/spec/controllers/registrations_controller_spec.rb
gitlabhq/spec/support/helpers/notification_helpers.rb
gitlabhq/spec/requests/api/users_spec.rb
gitlabhq/spec/models/user_spec.rb
  1. The fix worked for all combinations of Rails versions and delivery job class.

Basing on this, I suggest considering this item complete.

@jrochkind
Copy link
Contributor

jrochkind commented Sep 29, 2022

Hi, 6.0.0.rc1 has been out for 6 months now; is there any chance of a 6.0.0 non-rc final release soon? Anything anyone else can do to help? I would love to have a non-pre-release in which Rails 7 (out for 9 months) is supported; pre-releases like rc1 are handled differently by bundler/rubygems in some ways, which makes some tooling more confusing.

@JonRowe
Copy link
Member Author

JonRowe commented Oct 10, 2022

I think it makes sense to move on and release 6.0.0 as it is, we can address any resulting breaking changes in 7.0.0

@JonRowe JonRowe closed this as completed Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants