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

Add travis-ci support #6

Closed
wants to merge 2 commits into from
Closed

Conversation

mkocher
Copy link
Member

@mkocher mkocher commented Jan 22, 2013

deletes the cpi_test_spec as it was red and is replaced by the bat tests.
bumps a lot of the cached gems

Martin Englund and Ryan Tang and others added 2 commits January 22, 2013 11:54
updating cached gems
fixing test pollution
add travis.yml

Change-Id: Ic1b0e44bf0022ea757f76a3ad91c02c96a2dd81e
@mkocher mkocher closed this Jan 24, 2013
dpb587-pivotal pushed a commit that referenced this pull request Aug 7, 2017
Handle bosh-gcscli credentials_source semantics
klakin-pivotal added a commit that referenced this pull request Dec 3, 2024
This commit fixes a production problem in certain environments with Bosh
Director v280.1.10 and presumably later. For reasons unknown to us, in
these environments, the 'to_str' function is not defined on the
URI::HTTPS class. However, in MOST environments, it totally is. This is
important, because the URI#parse function (which
Async::HTTP::Endpoint.parse eventually calls) calls 'to_str' on the
argument passed to it.

Rather than figure out what's suddenly stopped injecting 'to_str' on the
URI::HTTPS class, we're just passing in the type of data the functions
require, rather than hoping it'll get automagically converted into the
correct type.

A heavily-elided stack trace from the troublesome environment in
question follows. It may or may not be helpful context.

E, [2024-12-03T02:50:26.105758 #6] ERROR : Unable to send get /deployments to director: Invalid URI: 'https://10.50.4.42:25555/info' -- /var/vcap/data/packages/director-ruby-3.2/0272ccbfccc42016eee9ff4d650e36c6bcadefb4/lib/ruby/3.2.0/uri/rfc3986_parser.rb:17:in `rescue in split': bad URI(is not URI?): #<URI::HTTPS https://10.50.4.42:25555/info> (URI::InvalidURIError)
        from /var/vcap/data/packages/director-ruby-3.2/0272ccbfccc42016eee9ff4d650e36c6bcadefb4/lib/ruby/3.2.0/uri/rfc3986_parser.rb:14:in `split'
...
        from /var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/bosh-monitor-0.0.0/lib/bosh/monitor/director.rb:59:in `perform_request'
...
        from /var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/async-2.20.0/lib/async/task.rb:435:in `block in schedule'
/var/vcap/data/packages/director-ruby-3.2/0272ccbfccc42016eee9ff4d650e36c6bcadefb4/lib/ruby/3.2.0/uri/rfc3986_parser.rb:15:in `split': undefined method `to_str' for #<URI::HTTPS https://10.50.4.42:25555/info> (NoMethodError)

        uri = uri.to_str
                 ^^^^^^^
Did you mean?  to_s
        from /var/vcap/data/packages/director-ruby-3.2/0272ccbfccc42016eee9ff4d650e36c6bcadefb4/lib/ruby/3.2.0/uri/rfc3986_parser.rb:71:in `parse'
...
        from /var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/bosh-monitor-0.0.0/lib/bosh/monitor/director.rb:59:in `perform_request'
...
        from /var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/async-2.20.0/lib/async/task.rb:435:in `block in schedule'

E, [2024-12-03T02:50:26.105953 #6] ERROR : /var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/bosh-monitor-0.0.0/lib/bosh/monitor/director.rb:69:in `rescue in perform_request'
/var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/bosh-monitor-0.0.0/lib/bosh/monitor/director.rb:66:in `perform_request'
...

Signed-off-by: Nitin Ravindran <nitin.ravindran@broadcom.com>
aramprice pushed a commit that referenced this pull request Dec 4, 2024
This commit fixes a production problem in certain environments with Bosh
Director v280.1.10 and presumably later. For reasons unknown to us, in
these environments, the 'to_str' function is not defined on the
URI::HTTPS class. However, in MOST environments, it totally is. This is
important, because the URI#parse function (which
Async::HTTP::Endpoint.parse eventually calls) calls 'to_str' on the
argument passed to it.

Rather than figure out what's suddenly stopped injecting 'to_str' on the
URI::HTTPS class, we're just passing in the type of data the functions
require, rather than hoping it'll get automagically converted into the
correct type.

A heavily-elided stack trace from the troublesome environment in
question follows. It may or may not be helpful context.

E, [2024-12-03T02:50:26.105758 #6] ERROR : Unable to send get /deployments to director: Invalid URI: 'https://10.50.4.42:25555/info' -- /var/vcap/data/packages/director-ruby-3.2/0272ccbfccc42016eee9ff4d650e36c6bcadefb4/lib/ruby/3.2.0/uri/rfc3986_parser.rb:17:in `rescue in split': bad URI(is not URI?): #<URI::HTTPS https://10.50.4.42:25555/info> (URI::InvalidURIError)
        from /var/vcap/data/packages/director-ruby-3.2/0272ccbfccc42016eee9ff4d650e36c6bcadefb4/lib/ruby/3.2.0/uri/rfc3986_parser.rb:14:in `split'
...
        from /var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/bosh-monitor-0.0.0/lib/bosh/monitor/director.rb:59:in `perform_request'
...
        from /var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/async-2.20.0/lib/async/task.rb:435:in `block in schedule'
/var/vcap/data/packages/director-ruby-3.2/0272ccbfccc42016eee9ff4d650e36c6bcadefb4/lib/ruby/3.2.0/uri/rfc3986_parser.rb:15:in `split': undefined method `to_str' for #<URI::HTTPS https://10.50.4.42:25555/info> (NoMethodError)

        uri = uri.to_str
                 ^^^^^^^
Did you mean?  to_s
        from /var/vcap/data/packages/director-ruby-3.2/0272ccbfccc42016eee9ff4d650e36c6bcadefb4/lib/ruby/3.2.0/uri/rfc3986_parser.rb:71:in `parse'
...
        from /var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/bosh-monitor-0.0.0/lib/bosh/monitor/director.rb:59:in `perform_request'
...
        from /var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/async-2.20.0/lib/async/task.rb:435:in `block in schedule'

E, [2024-12-03T02:50:26.105953 #6] ERROR : /var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/bosh-monitor-0.0.0/lib/bosh/monitor/director.rb:69:in `rescue in perform_request'
/var/vcap/data/packages/health_monitor/d17d70b0dde3173e76cc1924bb9a1fceb045a9e2/gem_home/ruby/3.2.0/gems/bosh-monitor-0.0.0/lib/bosh/monitor/director.rb:66:in `perform_request'
...

Signed-off-by: Nitin Ravindran <nitin.ravindran@broadcom.com>
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.

1 participant