-
Notifications
You must be signed in to change notification settings - Fork 114
Description
I'm seeing 404s when running feature specs when the Propshaft::Sprockets engine should be serving these assets, but only when I run the test with CI=true. When I remove the CI environment variable, all works as it should.
I believe this is because the server doesn't load when config.eager_load = true which is what happens when you test on CI with the default Rails config rails/rails@db0ee28#diff-13d14d23ff07f6440e79bbc7aeae164cc103f39f2a5172e6cbbc3d299c848f8dR17
I'm not sure by what mechanism this is happening, but I have a breakpoint in lib/propshaft/server.rb in #call that only hits when change config.eager_load = false.
This seems to be something new in how rails handles eager loading, because it works with eager_load = true when testing on Rails 7.0.8.4 and 7.2.1
Using rails 8.0.0.beta1, propshaft 1.1.0