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

Specify that TestCase transaction should not be lazy #38531

Merged
merged 1 commit into from Jan 13, 2021

Conversation

Hamms
Copy link
Contributor

@Hamms Hamms commented Jan 12, 2021

According to rails/rails#35082, Rails transactions were at some point made lazy, which started causing problems for test transactions.

When trying to upgrade to Rail 6, we saw similar problems with our custom implementation of transactions for test cases rather than just individual tests. Mirroring the fixes in the linked PR in our own implementation seems to resolve those problems.

Testing story

N/A

Links

Reviewer Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

According to rails/rails#35082, Rails transactions were at some point made lazy, which started causing problems for test transactions.

When trying to upgrade to Rail 6, we saw similar problems with our custom implementation of transactions for test _cases_ rather than just individual tests. Mirroring the fixes in the linked PR in our own implementation seems to work.
@Hamms Hamms changed the title Specify that test case transaction should not be lazy Specify that TestCase transaction should not be lazy Jan 12, 2021
@Hamms Hamms added the Rails Upgrade All work related to upgrading the version of Ruby on Rails we use. label Jan 12, 2021
@Hamms Hamms requested a review from wjordan January 12, 2021 23:29
@Hamms Hamms marked this pull request as ready for review January 12, 2021 23:29
@Hamms Hamms merged commit 742be84 into staging Jan 13, 2021
@Hamms Hamms deleted the unlazy-transactional-test-case branch January 13, 2021 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rails Upgrade All work related to upgrading the version of Ruby on Rails we use.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants