ci(llmobs): update langchain tests for new langchain anthropic version#7729
ci(llmobs): update langchain tests for new langchain anthropic version#7729
Conversation
Overall package sizeSelf size: 4.96 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
BenchmarksBenchmark execution time: 2026-03-11 18:17:48 Comparing candidate commit 6e03a2d in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 233 metrics, 27 unstable metrics. |
BridgeAR
left a comment
There was a problem hiding this comment.
Shall we just update langchain in this PR as well? That way it is clear that is addresses the problem
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7729 +/- ##
==========================================
- Coverage 80.40% 80.39% -0.01%
==========================================
Files 741 741
Lines 32087 32087
==========================================
- Hits 25798 25796 -2
- Misses 6289 6291 +2 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:
|
|
@BridgeAR I followed up offline, but it looks like applying the whole diff from the dependabot update works here, but just updating langchain packages and the anthropic one fails with an error message that makes me think there's some other package that needs to be updated Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './errors' is not defined by "exports" in /Users/sam.brenner/dd/dd-trace-js/versions/node_modules/@langchain/core/package.jsonand i don't really want to make extensive changes to the |
What does this PR do?
Updates tests for the new langchain anthropic version that dependabot is trying to update.
Motivation
Unblocking dependabot updates.
Additional Notes
Got this change by checking out
dependabot/npm_and_yarn/packages/dd-trace/test/plugins/versions/test-versions-239f7ff02e(at the time of writing this, the branch that updates the@langchain/anthropictesting version). Then, ran tests with a real anthropic api key to generate new results.The tests needed slight tweaking since there was a version & model incompatibility