-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b41efd
commit 1227c69
Showing
9 changed files
with
84 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
dependency_range_tests/scripts/vertexai/test-with-latest-deps.sh
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
dependency_range_tests/scripts/vertexai/test-with-lowest-deps.sh
This file was deleted.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ertexai/node/update_resolutions_lowest.js → ...ertexai/node/update_resolutions_lowest.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
dependency_range_tests/scripts/with_standard_tests/google-vertexai/test-with-latest-deps.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
export CI=true | ||
|
||
# New monorepo directory paths | ||
monorepo_dir="/app/monorepo" | ||
monorepo_openai_dir="/app/monorepo/libs/langchain-google-vertexai" | ||
|
||
# Run the shared script to copy all necessary folders/files | ||
bash /scripts/with_standard_tests/shared.sh google-vertexai | ||
|
||
# Navigate back to monorepo root and install dependencies | ||
cd "$monorepo_dir" | ||
yarn | ||
|
||
# Navigate into `@langchain/google-vertexai` to build and run tests | ||
# We need to run inside the google-vertexai directory so turbo repo does | ||
# not try to build the package/its workspace dependencies. | ||
cd "$monorepo_openai_dir" | ||
yarn test |
35 changes: 35 additions & 0 deletions
35
dependency_range_tests/scripts/with_standard_tests/google-vertexai/test-with-lowest-deps.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
export CI=true | ||
|
||
monorepo_dir="/app/monorepo" | ||
monorepo_openai_dir="/app/monorepo/libs/langchain-google-vertexai" | ||
updater_script_dir="/app/updater_script" | ||
updater_script_dir="/app/updater_script" | ||
original_updater_script_dir="/scripts/with_standard_tests/google-vertexai/node" | ||
|
||
# Run the shared script to copy all necessary folders/files | ||
bash /scripts/with_standard_tests/shared.sh google-vertexai | ||
|
||
# Copy the updater script to the monorepo | ||
mkdir -p "$updater_script_dir" | ||
cp "$original_updater_script_dir"/* "$updater_script_dir/" | ||
|
||
# Install deps (e.g semver) for the updater script | ||
cd "$updater_script_dir" | ||
yarn | ||
# Run the updater script | ||
node "update_resolutions_lowest.js" | ||
|
||
|
||
# Navigate back to monorepo root and install dependencies | ||
cd "$monorepo_dir" | ||
yarn | ||
|
||
# Navigate into `@langchain/package` to build and run tests | ||
# We need to run inside the package directory so turbo repo does | ||
# not try to build the package/its workspace dependencies. | ||
cd "$monorepo_openai_dir" | ||
yarn test |