-
Notifications
You must be signed in to change notification settings - Fork 3
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
ci: Perform brew update
before checkout
#94
Conversation
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.
Amazing. Thank you!
homebrew update
before checkoutbrew update
before checkout
The builds in #84 and #88 are failing with messages that suggest a git conflict: ```log Error: guardian/devtools/ssm: /usr/local/Homebrew/Library/Taps/guardian/homebrew-devtools/Formula/ssm.rb:4: syntax error, unexpected <<, expecting end <<<<<<< HEAD ^~ /usr/local/Homebrew/Library/Taps/guardian/homebrew-devtools/Formula/ssm.rb:8: syntax error, unexpected ===, expecting end ======= ^~~ /usr/local/Homebrew/Library/Taps/guardian/homebrew-devtools/Formula/ssm.rb:12: syntax error, unexpected >>, expecting end >>>>>>> c7fbe61 (Merge dac26ab... ^~ /usr/local/Homebrew/Library/Taps/guardian/homebrew-devtools/Formula/ssm.rb:12: syntax error, unexpected tIDENTIFIER, expecting ')' ...ec66d58337ac276f718186ac0c8a059) ...^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` Indeed, this is confirmed via #92, which demonstrates that somewhere in the build homebrew is making changes to the checked out code in a way that causes git conflicts. This results in the above error message being witnessed when we attempt to install from the checked out code. In this change, we split the CI steps up, changing the ordering. Before 1. Checkout branch 2. Apply AWS CLI work-around 3. Update homebrew 4. Install from local file system After 1. Apply AWS CLI work-around 2. Update homebrew 3. Checkout branch 4. Install from local file system This should guarantee that homebrew does not mutate the checked out branch, and therefore make the build more deterministic, and stable.
Bit concerned that #84 was not failing when rebased from this branch, despite having an incorrect hash. The logs seem to indicate that it's pulling an older version of
|
@jonathonherbert |
Yep, my mistake, manually rebased and looks great! 🎉 |
What does this change?
The builds in #84 and #88 are failing with messages that suggest a git conflict:
Indeed, this is confirmed via #92, which demonstrates that somewhere in the build homebrew is making changes to the checked out code in a way that causes git conflicts. This results in the above error message being witnessed when we attempt to install from the checked out code.
In this change, we split the CI steps up, changing the ordering.
Before
After
This should guarantee that homebrew does not mutate the checked out branch, and therefore make the build more deterministic, and stable.
How to test
Observe CI; it should pass.
How can we measure success?
The PRs #84 and #88 are unblocked.