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

When running in CI, do not fail if Rails frameworks with tables have not been fully installed #49509

Closed

Conversation

ghiculescu
Copy link
Member

@ghiculescu ghiculescu commented Oct 6, 2023

Fixes #49500

The Rails first run experience should not require installing Action Text/Active Storage/Action Mailbox so you can run tests in CI. You should only install these features if you actually use them. It also should not require changing the require of rails/all.

This config works in production when eager loaded, so we should support it in test too.

With this PR we keep the first run experience we had before 7.1.0 but you can still customise all these things if you want.

…not been activated

Fixes rails#49500

The Rails first run experience should not require installing Action Text/Active Storage/Action Mailbox so you can run tests in CI. You should only install these features if you actually use them. It also should not require changing the require of `rails/all`.

With this PR we keep the first run experience we had before `7.1.0` but you can still customise all these things if you want.
@ghiculescu ghiculescu force-pushed the eager-load-missing-frameworks branch from 8eda2a3 to dc8910c Compare October 6, 2023 01:09
@ghiculescu ghiculescu changed the title When running in CI, do not fail if Rails frameworks with tables have not been activated When running in CI, do not fail if Rails frameworks with tables have not been fully installed Oct 6, 2023
huacnlee added a commit to ruby-china/homeland that referenced this pull request Oct 6, 2023
@rafaelfranca
Copy link
Member

You are now coupling railtie to all those frameworks and causing Rails to not be able to remove Action Text, Active Storage or Action Mailbox from apps. This isn't a solution for that problem. Automatically running the install commands would be a better solution.

tomhughes added a commit to tomhughes/openstreetmap-website that referenced this pull request Oct 7, 2023
tomhughes added a commit to tomhughes/openstreetmap-website that referenced this pull request Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could not find table in CI even though db:test:prepare has been run
2 participants