samvera / samvera-circleci-orb

An orb with a set of tasks to centralize testing infrastructure for Samvera Core Components
Apache License 2.0
0 stars 3 forks source link

Generate `bundle list` artificat for each build #27

Closed jeremyf closed 4 years ago

jeremyf commented 4 years ago

This week, I spent quite a bit of time tracking down what dependencies were used with build. I ended up writing a script that uses bundle list and determines the date of each gem version's release. (see https://github.com/samvera/maintenance/blob/master/script/bundled-gem-release-dates.rb)

The problem is exacerbated with our EngineCart practice, when we push up sometimes we bundle update other times we use the cache. Knowing what's in play for a given build takes considerable sleuthing.

What I am looking for is a simple way to look at a build and see the list of bundled gems used. We can kind of do this by looking at the bundle install, but with caching that may not be in each build. Ideally, we'd have a file that could say "these were the gem versions used for this build."

On my machine, bundle list takes 0.31s for Hyrax. I do not believe the generation of this artifact would add much more than 1s to a Hyrax build.

rotated8 commented 4 years ago

Hey @jeremyf, this issue and #28 look the same. I'm going to close this as a duplicate, but please let me know if I've misunderstood.