refactor(rig-core)!: migrate examples to integration tests#1603
Merged
gold-silver-copper merged 21 commits into0xPlaygrounds:mainfrom Apr 9, 2026
Merged
Conversation
Open
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
This PR reorganizes a large portion of
rig-core's provider coverage by migrating many provider-specific examples into provider-scoped integration tests underrig-core/tests.The main goal is to keep a smaller set of canonical runnable examples in
rig-core/exampleswhile moving provider-specific regression coverage into a structure that is easier to extend, run by provider, and maintain over time.In addition to the migration itself, this PR:
tests/FinalResponse.response()consistently reflects the concatenated assistant text for the final turn-- --ignored --test-threads=1) to reduce quota/rate-limit flakinessA large part of the diff is mechanical movement/reorganization from
examples/intotests/, rather than entirely new behavior.Fixes #
Type of change
Breaking changes
This PR removes the following public Anthropic constants:
anthropic::completion::CLAUDE_3_5_SONNETanthropic::completion::CLAUDE_3_7_SONNETMigration path:
anthropic::completion::CLAUDE_4_SONNETTesting
Validated locally with:
cargo test -p rig-core --tests --no-runcargo check -p rig-core --examplesProvider-backed smoke tests were also run selectively during development with provider credentials. Whole-provider runs should be executed serially, for example:
cargo test -p rig-core --test openai -- --ignored --test-threads=1cargo test -p rig-core --test anthropic -- --ignored --test-threads=1cargo test -p rig-core --test gemini -- --ignored --test-threads=1