Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Updated the langchain vectorstore test to reference the correct version of @langchain/core getting tested #2202

Merged
merged 1 commit into from
May 20, 2024

Conversation

bizob2828
Copy link
Member

Description

In the case where @langchain/core is different than @langchain/community, the version of @langchain/core getting instrumented varies. We have a test that asserts the Supportability/Nodejs/ML/Langchain/<version metric and it needed to be updated to get the right version. This adds a try catch and tries to assert the @langchain/core version from @langchain/community first and if it does not exist falls back to the shared @langchain/core version.

How to Test

npm run versioned:internal langchain

Related Issues

Closes #2201

@mrickard mrickard self-assigned this May 20, 2024
Copy link
Contributor

@jsumners-nr jsumners-nr left a comment

Choose a reason for hiding this comment

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

Approving, but I think we need to re-visit our version declaration and resolution rules. We have encountered this problem with at least one other monorepo backed set of modules (aws-sdk) where the modules expect to have sibling modules of the same or later versions from the same suite.

@bizob2828 bizob2828 merged commit ed81852 into newrelic:main May 20, 2024
27 of 28 checks passed
@bizob2828 bizob2828 deleted the fix-langchain-tests branch May 20, 2024 17:28
bizob2828 added a commit that referenced this pull request May 20, 2024
@bizob2828 bizob2828 added the dev:tests Indicates only changes to tests label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev:tests Indicates only changes to tests
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Fix langchain versioned tests
3 participants