Repository navigation
test: add real OpenCode OTLP integration coverage - #135
Merged
Merged
Conversation
Contributor
|
No actionable findings in the PR changes. I couldn’t run the integration suite because |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add deterministic integration tests that run the real OpenCode SDK and telemetry plugin in isolated Bun subprocesses. A scripted OpenAI-compatible Chat Completions endpoint drives actual tool execution, while a temporary loopback OTLP/JSON receiver captures exported spans, metrics, and logs. No model credentials, Docker, or external collector are required.
2.0.20versions.readexecution, and disabled tool tracing.test.failingregistrations totestwhen fix(tool): record locally executed tools in OpenCode V2 #134 lands.bun run test:integrationand documentation intests/integration/README.md. The existingbun testCI step also runs this suite.No production plugin code changes.
Type of change
Checklist
bun run lintpasses with no errorsbun run check:jsdoc-coveragepasses with no errorsbun run typecheckpasses with no errorsbun testpasses with no errorsRelated issues
Relates to #134.
Additional context
Validation on this branch: 198 tests pass, including the three expected-failure cases; typecheck, lint, and JSDoc coverage pass. Separately ran all seven integration cases against an isolated copy of the #134 commit with expected-failure markers removed, and all seven passed normally.
The temporary receiver covers OTLP HTTP/JSON only. gRPC/protobuf transport coverage and additional scenarios (permissions, failures, commits, subagents) remain follow-up work.