-
Notifications
You must be signed in to change notification settings - Fork 478
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
Refactor Github actions CI to correctly load gemfile #817
Conversation
Thanks @kmcphillips. fyi @mllemango |
We just recently switched from Travis to GitHub actions in https://github.com/Shopify/shopify_api/pull/808/files so I don't expect much would have broken in that short time. |
(but worth nothing that we previously had |
I believe the new deprecation messages are coming from activesupport v6.1.0, we used to use v.6.0.3.1 without any problems. Not sure how to approach this other than specifying |
We can ignore the deprecation messages for the moment, let's fix the time-related issues:
It seems to fail inconsistently so may be related to load order and the test randomization. |
Looks like we need to add |
(the intermittent failures may be because GitHub is caching the gem downloads prior to the Rails 6.1 release. But I can't see any way in the UI to to force that to clear.). |
Still not fully sure of the cause of this yet, perhaps there was a transitive dependency on ActiveSupport. But let's make that explicit anyway. |
lib/shopify_api/session.rb
Outdated
@@ -1,6 +1,7 @@ | |||
# frozen_string_literal: true | |||
require 'openssl' | |||
require 'rack' | |||
require 'active_support/time' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If #818 is merged then we don't need this.
fe04a0d
to
be7452b
Compare
Problem
The exported env does not persist between steps, so the
export BUNDLE_GEMFILE
does nothing.You can see that it loads the current

5.1
for every build step:Solution
I've refactored the config to use
jobs.build.env
config instead.I've cleaned up and refactored a few things too, but that's the major change.
We could use
bundler-cache: true
but that may not work with the bundler config settings, so I've left it out.Now we have a new problem
The build appears to have been broken for a while. There are also a ton of deprecation warnings.
I'm going to look into it but will probably need help from owners.