Skip to content
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

Release 2.1.0 into develop #305

Merged
merged 3 commits into from
Nov 5, 2021
Merged

Release 2.1.0 into develop #305

merged 3 commits into from
Nov 5, 2021

Conversation

AliSoftware
Copy link
Contributor

@AliSoftware AliSoftware commented Oct 22, 2021

New version 2.1.0

There's not much new compared to 2.0.0 but it still felt like a good idea to do a new release so soon because:

  • I'm planning to start work on Localization toolchain (ref: paaHJt-2Ib-p2), which means there might be multiple big (potentially breaking?) changes coming soon; so I figured better do a release before starting that large work.
  • Since we just migrated our CI to Buildkite, this was a good occasion to test the gem push job on Buildkite early, and fix any issue sooner rather than later if there's any, instead of encountering them while I'll be working on bigger changes.

[EDIT] In fact after opening this PR, the CI failed because we forgot to install some dependencies. Not sure why it worked in #299 but not here now that I look at the pipeline 🤔 . So I took the occasion to fix CI via fd1a15d too, hence the extra changes in this diff.

@AliSoftware AliSoftware added the Releases Release related stuff label Oct 22, 2021
@AliSoftware AliSoftware requested a review from a team October 22, 2021 15:13
@AliSoftware AliSoftware self-assigned this Oct 22, 2021
@AliSoftware
Copy link
Contributor Author

AliSoftware commented Oct 22, 2021

An error occurred while installing rmagick (4.2.3), and Bundler cannot continue.

😡 (at least I'm glad I'm testing this before starting working on bigger changes…)

[EDIT] Fixed via fd1a15d

Ensuring that all steps install not only the gems but also the brew dependencies needed to install those gems (esp. rmagick)
#!/bin/bash -eu

echo "--- :beer: Installing Dependencies"
brew bundle --file .buildkite/brewfile
Copy link
Contributor Author

@AliSoftware AliSoftware Oct 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this takes a bit of time to run on CI – especially since it's done by each separate step, as each one runs in a separate VM, so each step installs brew dependencies individually – and would benefit some caching.

That being said, caching brew installs, unlike other dependencies like gems or pods, has proven quite tricky and not always trivial, especially since it installs stuff system-wide, and not always all in a single location or folder we could cache. My past experience at trying to cache brew installs have often led to quirks, issues and instabilities (depending on the formulae installed and what they install and where on the system), which is why I didn't spend time on this yet.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had trouble with that in the past, too.

I don't think it's a big issue for the moment, albeit it's admittedly "wasteful" to do that every time.

I wonder if it would be too much of a stretch to provision our VMs with those tools, since all the steps here run on those?

@AliSoftware AliSoftware marked this pull request as draft October 22, 2021 16:29
@AliSoftware AliSoftware marked this pull request as ready for review October 22, 2021 16:30
Because the script is always called from the root of the repo, via `.buildkite/gem-push`, as opposed to us `cd`-ing into the `.buildkite` dir to run the `gem-push.sh` script, so the `$PWD` is still the repo root in that context.
@AliSoftware
Copy link
Contributor Author

2.1.0 has now been released and pushed to RubyGems 🎉 .

Changes have already been merged into trunk where the 2.1.0 tag was created, so merging into develop (this PR) should ideally be done soon to sync everything.

Copy link
Contributor

@oguzkocer oguzkocer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Admittedly I still don't have much familiarity with the release-toolkit, so I am always reluctant to review these PRs. However, since the tag is already created and everything in this PR seems reasonable, I am going to approve it and leave it to @AliSoftware to decide whether to merge it or wait for another review.

#!/bin/bash -eu

echo "--- :beer: Installing Dependencies"
brew bundle --file .buildkite/brewfile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had trouble with that in the past, too.

I don't think it's a big issue for the moment, albeit it's admittedly "wasteful" to do that every time.

I wonder if it would be too much of a stretch to provision our VMs with those tools, since all the steps here run on those?

@AliSoftware AliSoftware merged commit 3acbac4 into develop Nov 5, 2021
@AliSoftware AliSoftware deleted the release/2.1.0 branch November 5, 2021 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Releases Release related stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants