Trying to fix ruby requirements
error
#23057
Merged
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 +e
and 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
gnupg
package 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.0
command used to be under aset +ex
before, 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.0
did pass under aset -e
between Mar 2 and May 20.Fix attempt 1: putting
rvm requirements ruby-2.5.0
under aset +e
This will make the build green. But the
brew link gnupg
error 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.0
commandJust removing the
rvm requirements ruby-2.5.0
command did not help. Even though we went on to dorvm install 2.5.0
directly,rvm
eventually decides to dorvm requirements ruby-2.5.0
anyways, 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 gnupg
Since these Kokoro MacOS workers are images anyways, we can probably just do something special just to deal with the
gnupg
error. Every run starts fresh anyways. This is borrowed from Alex's attempts in #23048.