-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
[rails] disable eager loading in make_basic_app #2434
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2434 +/- ##
=======================================
Coverage 98.97% 98.97%
=======================================
Files 231 231
Lines 15094 15094
=======================================
Hits 14939 14939
Misses 155 155
|
8a5fa5a
to
e061593
Compare
@st0012 hey so eager loading makes the suite super slow under rails 7.1+ - do you know why we have it enabled by default? Specs are passing when it's disabled and the test coverage remains the same. |
@solnic The idea was to mimic the production app as much as possible, which usually have eager loading enabled. But if it's causing issues and aren't really relied on by particular tests, it's fine to turn it off too 👍 |
@st0012 oh I see! I think it's a good strategy actually. In fact, I'm a fan of using actual test apps that you run tests against. Even with our setup we don't really mimic a real app setup. In some of my other projects I have test rails apps generated under |
I think we can add a few more expensive "end-to-end" tests that way, but I wouldn't ditch the current test suites just yet. |
This addresses the issue with very slow test suite when running under Ruby 3.1+ and Rails 7.1+
#skip-changelog