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

Updates docker_registry2 from 1.18.0 to 1.18.2 to fix quay.io container registry pagination #10575

Closed
wants to merge 2 commits into from

Conversation

thomas-riccardi
Copy link
Contributor

What are you trying to accomplish?

what: Fix #10347: fix quay.io container registry pagination, cf deitch/docker_registry2#106

how: Updates docker_registry2 from 1.18.0 to 1.18.2 (I copied the diff from #10480)

Anything you want to highlight for special attention from reviewers?

Automatic dependabot PRs don't seem to be merged, so I try a manual PR.

Updates docker_registry2 from 1.18.0 to 1.18.2

Commits

How will you know you've accomplished your goal?

cf issue #10347

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

@thomas-riccardi thomas-riccardi requested a review from a team as a code owner September 10, 2024 14:37
@@ -174,7 +174,7 @@ GEM
reline (>= 0.3.8)
diff-lcs (1.5.1)
docile (1.4.0)
docker_registry2 (1.18.0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Although this

spec.add_dependency "docker_registry2", "~> 1.18.0"
definition covers this change, we should consider upgrading there instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I have pushed commits with the modification in dependabot-core/common/dependabot-common.gemspec, and also manually in Gemfile.lock and updater/Gemfile.lock.
Unsure about all that, notably about Gemfile.lock.
I'm not a ruby developer, I'm not familiar with the ruby packaging, but docker_registry2 1.18.0..1.18.2 has no dependency change (except dev dependency), so it should be ok to patch the Gemfile.lock manually.

…e fix

also manually reported to Gemfile.lock files
@thomas-riccardi
Copy link
Contributor Author

Sorbet check fails, I cannot reproduce the correct environment, to run the suggested bin/tapioca gem: bundle exec tapioca gem --verify

$ bin/docker-dev-shell bundler
 > image dependabot/dependabot-core-development-bundler already exists

=> running docker development shell
[dependabot-core-dev] ~ $ cd dependabot-updater/
[dependabot-core-dev] ~/dependabot-updater $ bundle exec tapioca gem --verify
bundler: failed to load command: tapioca (/home/dependabot/bin/tapioca)
/usr/local/lib/ruby/site_ruby/3.3.0/bundler/rubygems_integration.rb:265:in `block in replace_bin_path': can't find executable tapioca for gem tapioca. tapioca is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception)

@targylyen
Copy link

targylyen commented Oct 24, 2024

@thomas-riccardi should that work against branch main as well ? cause this is what I'm getting:

dependabot-core % git branch
* main
dependabot-core % ./bin/docker-dev-shell bundler
 > image dependabot/dependabot-core-development-bundler already exists

=> running docker development shell
[dependabot-core-dev] ~ $ cd dependabot-updater/
[dependabot-core-dev] ~/dependabot-updater $ bundle exec tapioca gem --verify
bundler: failed to load command: tapioca (/home/dependabot/bin/tapioca)
/usr/local/lib/ruby/site_ruby/3.3.0/bundler/rubygems_integration.rb:265:in `block in replace_bin_path': can't find executable tapioca for gem tapioca. tapioca is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception)
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/rubygems_integration.rb:304:in `block in replace_bin_path'
        from /home/dependabot/bin/tapioca:6:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/cli/exec.rb:58:in `load'
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/cli/exec.rb:58:in `kernel_load'
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/cli/exec.rb:23:in `run'
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/cli.rb:455:in `exec'
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/cli.rb:35:in `dispatch'
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/cli.rb:29:in `start'
        from /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/exe/bundle:28:in `block in <top (required)>'
        from /usr/local/lib/ruby/site_ruby/3.3.0/bundler/friendly_errors.rb:117:in `with_friendly_errors'
        from /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/exe/bundle:20:in `<top (required)>'
        from /usr/local/bin/bundle:25:in `load'
        from /usr/local/bin/bundle:25:in `<main>'

@thomas-riccardi
Copy link
Contributor Author

@targylyen I have no idea, I'm just trying to bump a dependency on dependabot-core to get a fix, I'm not a ruby developer.

@lewis-strong
Copy link
Contributor

@targylyen I have no idea, I'm just trying to bump a dependency on dependabot-core to get a fix, I'm not a ruby developer.

I've created a PR on your fork to hopefully update this to sort the pipeline sorbet failure

@lewis-strong
Copy link
Contributor

@targylyen I have no idea, I'm just trying to bump a dependency on dependabot-core to get a fix, I'm not a ruby developer.

I've created a PR on your fork to hopefully update this to sort the pipeline sorbet failure

Once you've done that you should rebase this PR too

@targylyen
Copy link

@targylyen I have no idea, I'm just trying to bump a dependency on dependabot-core to get a fix, I'm not a ruby developer.

I've created a PR on your fork to hopefully update this to sort the pipeline sorbet failure

Once you've done that you should rebase this PR too

@thomas-riccardi are you able to take a look at this ?

@lewis-strong
Copy link
Contributor

Alternatively I've opened #10855 which includes these changes and the Sorbet tests are now passing

@thomas-riccardi
Copy link
Contributor Author

@lewis-strong
I'm fine with closing here and just use you PR #10855: I don't know how to review your commit.
But if you prefer, I can rebase here to latest master

@lewis-strong
Copy link
Contributor

@lewis-strong
I'm fine with closing here and just use you PR #10855: I don't know how to review your commit.
But if you prefer, I can rebase here to latest master
That's fine and we can use the PR I raised which has all the checks passed to speed things up 👍🏻 No need to rebase your branch if you're going to close this PR

@thomas-riccardi
Copy link
Contributor Author

closing in favor of #10855

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.

Dependabot not following pagination on quay.io, again
4 participants