test: Refactor LangChain versioned tests#3624
Merged
amychisholm03 merged 6 commits intonewrelic:mainfrom Dec 29, 2025
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3624 +/- ##
==========================================
+ Coverage 89.39% 97.72% +8.32%
==========================================
Files 437 438 +1
Lines 57537 57552 +15
Branches 1 1
==========================================
+ Hits 51435 56240 +4805
+ Misses 6102 1312 -4790
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3064fd5 to
efabe85
Compare
18e3090 to
37200b6
Compare
da1a6c5 to
bfcf686
Compare
jsumners-nr
reviewed
Dec 29, 2025
jsumners-nr
approved these changes
Dec 29, 2025
Merged
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 refactors the tests in
test/versioned/langchain. Before it had sub folders,openaiandbedrock, to test the@langchain/openaiand@langchain/awsintegration respectively. Thepackage.jsoncontained dependencies for both of these, creating a large test version matrix.To reduce the matrix size,
langchain/openaiwas moved tolangchain-openaiandlangchain/bedrocktolangchain-aws. Because thevectorstore,runnables, andrunnables-streamingtests for both packages test the same LangChain functionality, except for the LLM and client, I created a centralized test suite abstraction, seevectorstore.js,runnables.js, andrunnables-streaming.jsin thelangchainfolder.How to Test
Related Issues
Closes #3623