-
Notifications
You must be signed in to change notification settings - Fork 432
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
enable bundler caching #148
Conversation
This would mean feature flagged repos on org and all repos on com, correct? |
not at the moment, the s3 config is per worker not per repo. the plan was to move travis-build to an http api and have the s3 config there, but even then we would need to a way to feature flag and pass this in the hub payload. I would love to see bundle caching be turned on by default for .com repos at the very least, and would love to see us feature flip this for .org repos. |
Well, if we have the build API in place, we could simply have feature flags on the travis-build end (which could also be in the config file, since deploys will become very cheap). |
Hm. It might be cool to use something like dat-sience or so to enable it for X% of the projects and see what happens. |
I’m withdrawing my objection to this pull request based on new behavior in recent versions of Bundler. 👍 for merging this change, assuming the Bundler 1.8 (or later) is part of the default build environment. |
@sferik whats the new behaviour? |
@joshk I’m not sure exactly when that change was introduced to Bundler. I tried to find it in the history but it looks like the |
Hmmmm, thanks for the info, have you tested it out on a project on Travis to confirm? |
@joshk I’ve tested it locally. I can test it on a project on Travis CI now. |
That would be super awesome! Does this rely on Bundler 1.8? or will 1.7 ? On Mon, Mar 2, 2015 at 10:53 AM, Erik Michaels-Ober
|
Ok, but I see it using the cache fine, does it download the latest gem update if one exists though? |
@joshk I guess I’ll have to wait for a new dependent gem to be released. I’ll update this issue as soon as that happens. |
Cool, thank you, otherwise we can add a On Mon, Mar 2, 2015 at 8:03 PM, Erik Michaels-Ober
|
We can confirm it works as expected if this build installs version 0.7.2 of the http gem instead of using the cached version (0.7.1).
@joshk Here we go! ^^ |
Welllllll, that is awesome! I'll talk to the team about this! Thank you so much @sferik !!!! |
If you decide the release this, be sure to warn people that vendoring gems could cause issues with code coverage. SimpleCov will include all the vendored code as uncovered, potentially causing the tests to fail. I was able to solve this by adding the following line to SimpleCov.start do
add_filter '/spec/'
+ add_filter '/vendor/'
minimum_coverage(99.62)
end I believe this could be avoided by vendoring the gems into a hidden directory (e.g. |
@rkh Needs rebase. |
I was about to enable caching for my bundler / ruby dependencies based on http://docs.travis-ci.com/user/caching/ when I read this... Is this going to be released soon-ish? If so, I'll wait for it to be automatically enabled. |
No sorry, we don't have an ETA on this. |
Closing for now. |
Only merge when you are 100% sure you know what your are doing.