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

Add Rails integration test #459

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add Rails integration test #459

wants to merge 1 commit into from

Conversation

sambostock
Copy link
Contributor

The purpose of this test is to exercise the happy path of running a job in the context of a full Rails app, including the upcoming Railtie we'll be adding in #441.

The purpose of this test is to exercise the happy path of running a job
in the context of a full Rails app, including the upcoming Railtie we'll
be adding.
Comment on lines +45 to +56
# It is unclear why we need to do this, but otherwise it blows up with:
# Could not find <the gems below> in any of the sources (Bundler::GemNotFound)
run_or_raise("gem", "install", "nio4r")
run_or_raise("gem", "install", "websocket-driver")
run_or_raise("gem", "install", "date")
run_or_raise("gem", "install", "racc")

# It is also unclear why we need to --skip-install, lock, and install, instead of just using `bundle add`,
# but, again, otherwise it blows up with the same error as above.
run_or_raise("bundle", "add", "rails", "--version", rails_version.to_s, "--skip-install")
run_or_raise("bundle", "lock")
run_or_raise("bundle", "install")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's something really weird going on here. I had to add all of this for it to run locally, but we still run into this error in CI, just for different gems.

I think there's something weird going on, to do with Bundler/Rubygems environment variables or something, and the interaction with running bundler within this app.

Base automatically changed from refactor-ci-gemfiles to main February 2, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant