Skip to content

ci: skip anthropic instrumentation on JRuby CI#2190

Merged
arielvalentin merged 2 commits intoopen-telemetry:mainfrom
arielvalentin:fix/skip-anthropic-jruby
Apr 9, 2026
Merged

ci: skip anthropic instrumentation on JRuby CI#2190
arielvalentin merged 2 commits intoopen-telemetry:mainfrom
arielvalentin:fix/skip-anthropic-jruby

Conversation

@arielvalentin
Copy link
Copy Markdown
Contributor

Summary

Add anthropic to the JRuby skip list in CI, fixing nightly build failures.

Motivation

The upstream anthropic gem (v1.31.0) has a JRuby load-order bug where Anthropic::Beta is not yet defined when BetaManagedAgentsFileResourceParams references it at require time, causing NameError: uninitialized constant Anthropic::Beta.

This is the same pattern used for 19 other JRuby-incompatible instrumentations.

Testing

CI-only change — no instrumentation code modified.

Rollout / Risks

None. Can be reverted if the upstream gem adds JRuby support.

Closes #2187

The anthropic gem v1.31.0 has a JRuby load-order bug where
Anthropic::Beta is not yet defined when referenced by
BetaManagedAgentsFileResourceParams, causing NameError.

This adds anthropic to the existing JRuby skip list, following the
same pattern used for other JRuby-incompatible instrumentations.

Closes open-telemetry#2187

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions bot added the ci label Apr 9, 2026
@arielvalentin arielvalentin changed the title fix: skip anthropic instrumentation on JRuby CI ci: skip anthropic instrumentation on JRuby CI Apr 9, 2026
@arielvalentin arielvalentin self-assigned this Apr 9, 2026
@arielvalentin arielvalentin enabled auto-merge April 9, 2026 04:56
[[ "${{ matrix.gem }}" == "rails" ]] && echo "skip=true" >> $GITHUB_OUTPUT
[[ "${{ matrix.gem }}" == "grpc" ]] && echo "skip=true" >> $GITHUB_OUTPUT
[[ "${{ matrix.gem }}" == "gruf" ]] && echo "skip=true" >> $GITHUB_OUTPUT
[[ "${{ matrix.gem }}" == "anthropic" ]] && echo "skip=true" >> $GITHUB_OUTPUT
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[[ "${{ matrix.gem }}" == "anthropic" ]] && echo "skip=true" >> $GITHUB_OUTPUT
[[ "${{ matrix.gem }}" == "anthropic" ]] && echo "skip=true" >> $GITHUB_OUTPUT

Copy link
Copy Markdown
Member

@robbkidd robbkidd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

choosing to ignore that

@arielvalentin arielvalentin added this pull request to the merge queue Apr 9, 2026
Merged via the queue into open-telemetry:main with commit e040789 Apr 9, 2026
50 checks passed
@arielvalentin arielvalentin deleted the fix/skip-anthropic-jruby branch April 9, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anthropic JRuby Build Failures

3 participants