Skip to content

Commit b6e4796

Browse files
committed
ci[minoir]: Fix issue with workspace dep not being pulled into tests
1 parent 96bba4b commit b6e4796

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

dependency_range_tests/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ services:
139139
- ../turbo.json:/turbo.json
140140
- ../package.json:/package.json
141141
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
142+
- ../libs/langchain-google-vertexai:/libs/langchain-google-common
142143
- ../libs/langchain-google-vertexai:/libs/langchain-google-vertexai
143144
- ./scripts:/scripts
144145
command: bash /scripts/with_standard_tests/google-vertexai/test-with-latest-deps.sh
@@ -153,6 +154,7 @@ services:
153154
- ../turbo.json:/turbo.json
154155
- ../package.json:/package.json
155156
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
157+
- ../libs/langchain-google-vertexai:/libs/langchain-google-common
156158
- ../libs/langchain-google-vertexai:/libs/langchain-google-vertexai
157159
- ./scripts:/scripts
158160
command: bash /scripts/with_standard_tests/google-vertexai/test-with-lowest-deps.sh

dependency_range_tests/scripts/with_standard_tests/google-vertexai/test-with-lowest-deps.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,23 @@ set -euxo pipefail
55
export CI=true
66

77
monorepo_dir="/app/monorepo"
8-
monorepo_openai_dir="/app/monorepo/libs/langchain-google-vertexai"
8+
monorepo_vertexai_dir="/app/monorepo/libs/langchain-google-vertexai"
9+
10+
original_google_common_dir="/libs/langchain-google-common"
11+
monorepo_google_common_dir="/app/monorepo/libs/langchain-google-common"
12+
913
updater_script_dir="/app/updater_script"
1014
updater_script_dir="/app/updater_script"
1115
original_updater_script_dir="/scripts/with_standard_tests/google-vertexai/node"
1216

1317
# Run the shared script to copy all necessary folders/files
1418
bash /scripts/with_standard_tests/shared.sh google-vertexai
1519

20+
# Copy `@langchain/google-common` WITH build artifacts from the host.
21+
# This is because we built @langchain/google-common before running this script.
22+
mkdir -p "$monorepo_google_common_dir/"
23+
cp -r "$original_google_common_dir"/* "$monorepo_google_common_dir/"
24+
1625
# Copy the updater script to the monorepo
1726
mkdir -p "$updater_script_dir"
1827
cp "$original_updater_script_dir"/* "$updater_script_dir/"
@@ -31,5 +40,5 @@ yarn
3140
# Navigate into `@langchain/package` to build and run tests
3241
# We need to run inside the package directory so turbo repo does
3342
# not try to build the package/its workspace dependencies.
34-
cd "$monorepo_openai_dir"
43+
cd "$monorepo_vertexai_dir"
3544
yarn test

dependency_range_tests/scripts/with_standard_tests/shared.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ shopt -s extglob
2626
mkdir -p "$monorepo_dir"
2727

2828
# Copy `@langchain/standard-tests` WITH build artifacts from the host.
29-
# This is because we build @langchain/standard-tests before running this script.
29+
# This is because we built @langchain/standard-tests before running this script.
3030
mkdir -p "$monorepo_standard_tests_dir/"
3131
cp -r "$original_standard_tests_dir"/* "$monorepo_standard_tests_dir/"
3232

0 commit comments

Comments
 (0)