Skip to content

Rollback RubyGems from 3.3.11 to 3.2.20#5048

Merged
brrygrdn merged 1 commit intomainfrom
mctofu/internal-ci-fix-v2
Apr 26, 2022
Merged

Rollback RubyGems from 3.3.11 to 3.2.20#5048
brrygrdn merged 1 commit intomainfrom
mctofu/internal-ci-fix-v2

Conversation

@mctofu
Copy link
Copy Markdown
Contributor

@mctofu mctofu commented Apr 26, 2022

We attempted to resolve an issue around Bundler version detection for projects using Bundler 1.x in #5044, but this wasn't sufficient to fix the issue.

We've verified that the issue is resolved by reverting our recent RubyGems update so we're reverting #5035 to unblock releasing forward and we will reintroduce the RubyGems upgrade once we have determined root cause.

@brrygrdn brrygrdn changed the title mctofu/internal-ci-fix-v2 Rollback RubyGems from 3.3.11 to 3.2.20 Apr 26, 2022
@brrygrdn brrygrdn marked this pull request as ready for review April 26, 2022 11:31
@brrygrdn brrygrdn requested a review from a team as a code owner April 26, 2022 11:31
@brrygrdn
Copy link
Copy Markdown
Contributor

On hold on merging this while we perform some additional verification.

@brrygrdn brrygrdn merged commit 1b4ff32 into main Apr 26, 2022
@brrygrdn brrygrdn deleted the mctofu/internal-ci-fix-v2 branch April 26, 2022 14:44
@brrygrdn brrygrdn mentioned this pull request Apr 26, 2022
@mctofu mctofu mentioned this pull request Apr 26, 2022
RUN apt-add-repository ppa:brightbox/ruby-ng \
&& apt-get update \
&& apt-get install -y --no-install-recommends ruby2.7 ruby2.7-dev \
&& gem update --system 3.3.11 --no-document \
Copy link
Copy Markdown
Member

@jeffwidman jeffwidman Aug 3, 2022

Choose a reason for hiding this comment

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

Per #5035 (comment), the --no-document flag is faster, so we should try adding that back in even with the held-back version.

I opened #5471 to put it back.

jeffwidman added a commit to jeffwidman/dependabot-core that referenced this pull request Aug 3, 2022
The `--no-document` flag [skips installing
documentation](https://guides.rubygems.org/command-reference/#installupdate-options),so
is faster.

This was originally proposed by @deivid-rodriguez as part of
dependabot#5035, but was lost
when dependabot#5048 reverted
the version bump.

So this adds back only the `--no-document` flag, but doesn't touch the
version.
jeffwidman added a commit that referenced this pull request Oct 7, 2022
Bump Rubygems to `3.3.22`:
https://github.com/rubygems/rubygems/blob/master/CHANGELOG.md#3322--2022-09-07

There's some prior history here:
1. Originally bumped from `3.2.20` to `3.3.11` in #5035. That changed how bundler
   version detection worked, which caused some problems.
2. We attempted to workaround the issue in
   #5044, but that
   wasn't sufficient.
3. So in #5048 we
   rolled back to `3.2.20`
4. However, as part of the Ruby 3.1 upgrade, we _have_ to bump to
   Rubygems `>=3.3.3`... so we need to figure out a fix.
5. Now that `updater` is merged into `core`, we can have the full test
   suite checking the results, and don't have to bump in `core`, then
   pull into `updater` and see if it passes a separate CI... the
   two-step dance was the reason why this wasn't caught in the original
   core PR but instead merged and then reverted.
6. I am reasonably sure that @deivid-rodriguez figured out a way around
   the Bundler version difficulty in
   #5513, so this PR
   requires that to land first.
7. Originally I had the Rubygems upgrade bundled as part of the Ruby 3.1
   upgrade, but now that we have a better understanding of what's
   happening, we should be fine to do these changes independently...
   which lets us more easily debug if we do happen to encounter problems.
   So I am splitting this out as a separate PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants