Skip to content

Handle ERROR: While executing gem ... (Zlib::BufError)? #31

@dentarg

Description

@dentarg

I've seen this happening a couple of times:

Run gem install gem-compare --version 1.1.0
Successfully installed rainbow-3.1.1
Successfully installed gemnasium-parser-0.1.9
Successfully installed diffy-3.4.2
Successfully installed gem-compare-1.1.0
4 gems installed
Run gem compare $COMPARE_GEM $COMPARE_FROM_VERSION $COMPARE_TO_VERSION > compare_output.txt
NOTE: Gem::Specification#has_rdoc is deprecated with no replacement. It will be removed in Rubygems 4
Gem::Specification#has_rdoc called from /opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/gem-compare-1.1.0/lib/rubygems/comparator/utils.rb:112.
NOTE: Gem::Specification#has_rdoc is deprecated with no replacement. It will be removed in Rubygems 4
Gem::Specification#has_rdoc called from /opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/gem-compare-1.1.0/lib/rubygems/comparator/utils.rb:112.
Run gem compare --diff $COMPARE_GEM $COMPARE_FROM_VERSION $COMPARE_TO_VERSION > compare_diff.txt
ERROR:  While executing gem ... (Zlib::BufError)
    buffer error

This is probably not the fault of this plugin, rather a temporary transport/network issue. Maybe rubygems.org does some rate limiting. Nevertheless, it would be cool to handle it, if possible.

We can see that the first gem compare command worked, is the second one fetching the gems again from RubyGems.org?

GitHub Actions log at https://github.com/Starkast/wikimum/runs/7173057743?check_suite_focus=true#step:2:454

(I've made an action that runs this plugin on Dependabot PRs and makes comment with the comparison, https://github.com/dentarg/gem-compare)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions