Comments (5)
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.
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.
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.
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.
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)
- Raise error for all 4xx and 5xx response status codes
- Commits on branch with used ref - not worked HOT 1
- Automate gem releases HOT 2
- tracking group and project iterations HOT 1
- Add support for user status HOT 1
- Ban User Wrapper HOT 1
- Allow methods in resource_label_events to accept request params
- container expiration policy does not work HOT 1
- Latest pipeline API method
- New GitLab personal and project tokens are not working. HOT 1
- Would we like to include GraphQL API capabilities? HOT 6
- Feature Request: gitlab CI lint is being deprecated and new APIs are replacing them HOT 1
- Create a link to share a group with another group HOT 1
- Gitlab 16 deprecating changing MR Approvals using the `/approvals` endpoint HOT 2
- Support using CI_JOB_TOKEN for authentication HOT 7
- Thanks HOT 1
- share/unshare group with group HOT 1
- New release? HOT 2
- Release a new version HOT 3
- EOFError: end of file reached on groups API HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlab.