Skip to content

chore: Update @langchain/core version for langchain-openai tests#3763

Open
amychisholm03 wants to merge 1 commit intonewrelic:mainfrom
amychisholm03:langchain-openai-test-matrix-fix
Open

chore: Update @langchain/core version for langchain-openai tests#3763
amychisholm03 wants to merge 1 commit intonewrelic:mainfrom
amychisholm03:langchain-openai-test-matrix-fix

Conversation

@amychisholm03
Copy link
Contributor

@amychisholm03 amychisholm03 commented Feb 18, 2026

Description

Root cause: @langchain/openai@1.2.8 added an import of ContextOverflowError from @langchain/core/errors (in utils/client.js), but the ./errors subpath was only added to @langchain/core starting in v1.1.18. The peer dependency declared by @langchain/openai was ^1.0.0, which was too loose and allows npm to resolve an older @langchain/core that doesn't have this export.

Fix: Bumped the @langchain/core minimum from >=1.0.0 to >=1.1.18. This ensures the versioned test runner won't create combinations where @langchain/openai@>=1.2.8 is paired with an incompatible @langchain/core.

How to Test

npm run versioned langchain-openai

Related Issues

CI fix.

@amychisholm03 amychisholm03 added the dev:tests Indicates only changes to tests label Feb 18, 2026
@amychisholm03 amychisholm03 marked this pull request as ready for review February 18, 2026 18:01
@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.71%. Comparing base (8503d25) to head (1a15cbb).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3763      +/-   ##
==========================================
- Coverage   97.89%   97.71%   -0.18%     
==========================================
  Files         454      453       -1     
  Lines       58749    58636     -113     
  Branches        1        1              
==========================================
- Hits        57512    57297     -215     
- Misses       1237     1339     +102     
Flag Coverage Δ
integration-tests-cjs-20.x 74.35% <ø> (+0.04%) ⬆️
integration-tests-cjs-22.x 74.38% <ø> (+0.04%) ⬆️
integration-tests-cjs-24.x 75.17% <ø> (+0.02%) ⬆️
integration-tests-esm-20.x 53.03% <ø> (+<0.01%) ⬆️
integration-tests-esm-22.x 53.07% <ø> (+<0.01%) ⬆️
integration-tests-esm-24.x 54.22% <ø> (-0.03%) ⬇️
unit-tests-20.x 89.41% <ø> (-0.08%) ⬇️
unit-tests-22.x 89.43% <ø> (-0.08%) ⬇️
unit-tests-24.x 89.43% <ø> (-0.08%) ⬇️
versioned-tests-20.x 81.32% <ø> (-0.37%) ⬇️
versioned-tests-22.x 81.32% <ø> (-0.38%) ⬇️
versioned-tests-24.x 81.22% <ø> (-0.39%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Status: Needs PR Review

Development

Successfully merging this pull request may close these issues.

1 participant

Comments