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

Ruby openai intermittent test failure #3031

Closed
tannalynn opened this issue Jan 23, 2025 · 1 comment · Fixed by #3030
Closed

Ruby openai intermittent test failure #3031

tannalynn opened this issue Jan 23, 2025 · 1 comment · Fixed by #3030

Comments

@tannalynn
Copy link
Contributor

when this test runs first, it fails

E................................

  1) Error:
RubyOpenAIInstrumentationTest#test_instrumentation_doesnt_record_anything_with_other_paths_that_use_json_post:
OpenAI::ConfigurationError: OpenAI access token missing! See https://github.com/alexrudall/ruby-openai#usage
    /Users/tmcclure/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/ruby-openai-3.4.0/lib/openai.rb:30:in `access_token'
    /Users/tmcclure/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/ruby-openai-3.4.0/lib/openai/client.rb:83:in `headers'
    /Users/tmcclure/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/ruby-openai-3.4.0/lib/openai/client.rb:56:in `json_post'
    /Users/tmcclure/projects/newrelic-ruby-agent/lib/new_relic/agent/instrumentation/ruby_openai/prepend.rb:17:in `block in json_post'
    /Users/tmcclure/projects/newrelic-ruby-agent/lib/new_relic/agent/instrumentation/ruby_openai/instrumentation.rb:15:in `json_post_with_new_relic'
    /Users/tmcclure/projects/newrelic-ruby-agent/lib/new_relic/agent/instrumentation/ruby_openai/prepend.rb:17:in `json_post'
    /Users/tmcclure/projects/newrelic-ruby-agent/test/multiverse/suites/ruby_openai/ruby_openai_instrumentation_test.rb:21:in `block (2 levels) in test_instrumentation_doesnt_record_anything_with_other_paths_that_use_json_post'
    /Users/tmcclure/projects/newrelic-ruby-agent/test/multiverse/suites/ruby_openai/openai_helpers.rb:189:in `block in stub_post_request'

33 runs, 211 assertions, 0 failures, 1 errors, 0 skips
One or more failures or errors were seen!
Options used: ["--seed=46316"]
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 a pull request may close this issue.

1 participant