Git Product home page Git Product logo

Comments (5)

ltickett avatar ltickett commented on June 26, 2024

I found some output which might help when running ruby -d

Here's the output from the "fast" development machine:

lee@cc-gdk-2:~/grab_readmes$ ruby -d grab_readmes.rb
Exception `LoadError' at /home/lee/.asdf/installs/ruby/2.7.5/lib/ruby/2.7.0/rubygems.rb:1427 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /home/lee/.asdf/installs/ruby/2.7.5/lib/ruby/2.7.0/rubygems.rb:1435 - cannot load such file -- rubygems/defaults/ruby
Exception `LoadError' at /home/lee/.asdf/installs/ruby/2.7.5/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83 - cannot load such file -- gitlab
Exception `NameError' at /home/lee/.asdf/installs/ruby/2.7.5/lib/ruby/2.7.0/psych/class_loader.rb:68 - uninitialized constant BigDecimal
Exception `NameError' at /home/lee/.asdf/installs/ruby/2.7.5/lib/ruby/2.7.0/psych/class_loader.rb:68 - uninitialized constant Date
Did you mean?  Data
Exception `NameError' at /home/lee/.asdf/installs/ruby/2.7.5/lib/ruby/2.7.0/psych/class_loader.rb:68 - uninitialized constant DateTime

And from the "slow" CI runner:

$ ruby -d grab_readmes.rb
Exception `LoadError' at /usr/local/lib/ruby/2.7.0/rubygems.rb:1427 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /usr/local/lib/ruby/2.7.0/rubygems.rb:1435 - cannot load such file -- rubygems/defaults/ruby
Exception `LoadError' at /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83 - cannot load such file -- gitlab
Exception `LoadError' at /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:160 - cannot load such file -- gitlab
/usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- gitlab (LoadError)
	from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	from grab_readmes.rb:7:in `<main>'

from gitlab.

ltickett avatar ltickett commented on June 26, 2024

I'm new to ruby and maybe doing something wrong...

Running gem install gitlab instead of bundle install seems to do the trick 🤞

from gitlab.

ltickett avatar ltickett commented on June 26, 2024

The plot thickens...

It seems the output from the ruby script isn't an accurate reflection of what code is being/has been executed...

Watch this space :/

from gitlab.

ltickett avatar ltickett commented on June 26, 2024

Turns out it was a DNS issue.

Weird though as dig shows DNS resolution only takes 8ms... but adding a static mapping to /etc/hosts reduced the execution time from 20mins to 20secs.

Is there anyway to debug what might be happening with DNS resolution in ruby to cause this?

from gitlab.

NARKOZ avatar NARKOZ commented on June 26, 2024

Is there anyway to debug what might be happening with DNS resolution in ruby to cause this?

You can use env variable GITLAB_API_HTTPARTY_OPTIONS with value {debug_output: $stdout}

from gitlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.