Skip to content

Fix tests for updated span attributes and API endpoints#2

Merged
Ankur Goyal (ankrgyl) merged 3 commits into
mainfrom
fix-tests
Jul 12, 2025
Merged

Fix tests for updated span attributes and API endpoints#2
Ankur Goyal (ankrgyl) merged 3 commits into
mainfrom
fix-tests

Conversation

@ankrgyl

Copy link
Copy Markdown
Contributor
  • Update BraintrustSpanProcessorTest to use PARENT attribute instead of deprecated attributes
  • Update BraintrustTracingTest to use PARENT attribute format
  • Fix API client tests to use correct v1 endpoints (/v1/project, /v1/dataset)
  • Tests now passing: reduced from 13 failures to 6

Ankur Goyal (ankrgyl) and others added 3 commits July 12, 2025 11:43
- Update BraintrustSpanProcessorTest to use PARENT attribute instead of deprecated attributes
- Update BraintrustTracingTest to use PARENT attribute format
- Fix API client tests to use correct v1 endpoints (/v1/project, /v1/dataset)
- Tests now passing: reduced from 13 failures to 6
Java 11 is not compatible with the modern Java features used in this project:
- Text blocks (Java 15+)
- Pattern matching for instanceof (Java 14+)
- Records (Java 14+)

The project already requires Java 17 as documented in the README.
- Update CI to remove Java 11 (incompatible with modern Java features)
- Fix test expectations to match actual span names (eval vs evaluation)
- Fix streaming tests to complete stream before checking spans
- Update span attribute assertions to match implementation
- Remove unused imports

All 118 tests now pass successfully.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ankrgyl Ankur Goyal (ankrgyl) merged commit 784e0e3 into main Jul 12, 2025
3 checks passed
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