Skip to content

Commit

Permalink
langchain[patch]: Fix CI build (#6437)
Browse files Browse the repository at this point in the history
* langchain[patch]: Fix CI build

* updte lock

* update ci, set resoultions instead of manually bumping dep

* trigger langchain build

* fix bruh moment

* cr

* update yarn.lock
  • Loading branch information
bracesproul authored Aug 7, 2024
1 parent def8522 commit c62dffb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,9 @@ jobs:
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
# Running `test:unit:ci` from root will build first, however debugging
# in CI is easier if we separate the build step from the test step.
- name: Build '@langchain/${{ matrix.package }}' package
run: yarn build --filter=@langchain/${{ matrix.package }}
- name: Test '@langchain/${{ matrix.package }}' package
run: yarn test:unit:ci --filter=@langchain/${{ matrix.package }}
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests-langchain-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,9 @@ jobs:
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
# Running `test:unit:ci` from root will build first, however debugging
# in CI is easier if we separate the build step from the test step.
- name: Build LangChain Core
run: yarn build --filter=@langchain/core
- name: Test
run: yarn run test:unit:ci --filter=@langchain/core
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests-langchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
# Running `test:unit:ci` from root will build first, however debugging
# in CI is easier if we separate the build step from the test step.
- name: Build LangChain
run: yarn build --filter=langchain
- name: Test
run: yarn run test:unit:ci --filter=langchain
env:
Expand Down
2 changes: 1 addition & 1 deletion langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@
"@langchain/aws": "^0.0.5",
"@langchain/cohere": "^0.2.1",
"@langchain/google-genai": "^0.0.23",
"@langchain/google-vertexai": "^0.0.21",
"@langchain/google-vertexai": "^0.0.22",
"@langchain/groq": "^0.0.15",
"@langchain/mistralai": "^0.0.26",
"@langchain/ollama": "^0.0.2",
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/chat_models/universal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { type StructuredToolInterface } from "@langchain/core/tools";
import { CallbackManagerForLLMRun } from "@langchain/core/callbacks/manager";
import { ChatResult } from "@langchain/core/outputs";

// TODO: remove once `EventStreamCallbackHandlerInput` is exposed in core.
// TODO: remove once `EventStreamCallbackHandlerInput` is exposed in core
interface EventStreamCallbackHandlerInput
extends Omit<LogStreamCallbackHandlerInput, "_schemaFormat"> {}

Expand Down
16 changes: 3 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11722,7 +11722,7 @@ __metadata:
languageName: unknown
linkType: soft

"@langchain/google-gauth@workspace:libs/langchain-google-gauth, @langchain/google-gauth@~0.0.21, @langchain/google-gauth@~0.0.22":
"@langchain/google-gauth@workspace:libs/langchain-google-gauth, @langchain/google-gauth@~0.0.22":
version: 0.0.0-use.local
resolution: "@langchain/google-gauth@workspace:libs/langchain-google-gauth"
dependencies:
Expand Down Expand Up @@ -11833,17 +11833,7 @@ __metadata:
languageName: unknown
linkType: soft

"@langchain/google-vertexai@npm:^0.0.21":
version: 0.0.21
resolution: "@langchain/google-vertexai@npm:0.0.21"
dependencies:
"@langchain/core": ">0.1.56 <0.3.0"
"@langchain/google-gauth": ~0.0.21
checksum: 28c284967d385ce0016c30d8a3fc73803cc4fea27fbfe95d4061762855b3f42a7f5a1c05ecaa1966c66c314ea6ac44c8aee1c2228e951d9c178c112f0afeee07
languageName: node
linkType: hard

"@langchain/google-vertexai@workspace:*, @langchain/google-vertexai@workspace:libs/langchain-google-vertexai":
"@langchain/google-vertexai@^0.0.22, @langchain/google-vertexai@workspace:*, @langchain/google-vertexai@workspace:libs/langchain-google-vertexai":
version: 0.0.0-use.local
resolution: "@langchain/google-vertexai@workspace:libs/langchain-google-vertexai"
dependencies:
Expand Down Expand Up @@ -31213,7 +31203,7 @@ __metadata:
"@langchain/cohere": ^0.2.1
"@langchain/core": ">=0.2.21 <0.3.0"
"@langchain/google-genai": ^0.0.23
"@langchain/google-vertexai": ^0.0.21
"@langchain/google-vertexai": ^0.0.22
"@langchain/groq": ^0.0.15
"@langchain/mistralai": ^0.0.26
"@langchain/ollama": ^0.0.2
Expand Down

0 comments on commit c62dffb

Please sign in to comment.