Trying to fix ruby requirements error#23057
Merged
stanley-cheung merged 2 commits intogrpc:masterfrom May 28, 2020
Merged
Conversation
ruby requirements error
a268b3f to
92786c0
Compare
92786c0 to
c74b295
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trying to fix #23027
There was an error
Error: No available formula with the name "brew-cask"Reference: Homebrew/homebrew-cask#75135 (comment), Homebrew/homebrew-cask#57875 (comment), or maybe rvm/rvm#3995 (comment)
[Edit:] The above seems to be a minor error, is under a
set +eand hence is skippedInvestigations
The script seems to be failing on this particular command, originally coming from #17750:
eventually with this error
Requirements installation failed with status: 1..The last green build has these lines:
Now the failures have these lines:
And then later
So looks like somehow an additional dependency about this
gnupgpackage is being pulled in recently, causing the error.The investigation from this comment on is extremely similar to the issue here.
One thing to note is that the
rvm --debug requirements ruby-2.5.0command used to be under aset +exbefore, so it doesn't error out the whole script. After this recent change (#22195) in Mar 2, the command is now under aset -e.In other words, the command
rvm requirements ruby-2.5.0did pass under aset -ebetween Mar 2 and May 20.Fix attempt 1: putting
rvm requirements ruby-2.5.0under aset +eThis will make the build green. But the
brew link gnupgerror is still there. We just ignored it. Ignoring the error doesn't seem to affect the rest of the build (e.g.rvm install 2.5.0). But, this doesn't exactly feel like the right solution.Fix attempt 2: just remove the
rvm requirements ruby-2.5.0commandJust removing the
rvm requirements ruby-2.5.0command did not help. Even though we went on to dorvm install 2.5.0directly,rvmeventually decides to dorvm requirements ruby-2.5.0anyways, which still leads back to the error withgnupg.So the problem is still with
brew link gnupg.Another question: what happened between May 20 6:35pm PDT and 8:17pm PDT?
Fix attempt 3: do something special to deal with the error associated with
brew upgrade gnupgSince these Kokoro MacOS workers are images anyways, we can probably just do something special just to deal with the
gnupgerror. Every run starts fresh anyways. This is borrowed from Alex's attempts in #23048.