Skip to content

Commit

Permalink
Add missing function for testing langchainjs.
Browse files Browse the repository at this point in the history
Revision was added with 'v' prefix, but upstream
repository do not use it.

Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Dec 11, 2024
1 parent 5e39dd1 commit 8f7928b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/run-upstream
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test_client_faas
test_client_cloudevents
test_client_fastify
test_client_pino
test_client_langchain
test_client_langchainjs
"

readonly EXPRESS_REVISION="${EXPRESS_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show express version)}"
Expand All @@ -45,8 +45,8 @@ readonly CLOUDEVENTS_REVISION="v${CLOUDEVENTS_REVISION:-$(docker run --rm "${IMA
readonly CLOUDEVENTS_REPO="https://github.com/cloudevents/sdk-javascript.git"
readonly FASTIFY_REVISION="v${FASTIFY_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show fastify version)}"
readonly FASTIFY_REPO="https://github.com/fastify/fastify.git"
readonly LANGCHAIN_REVISION=v"${LANGCHAIN_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show langchain version)}"
readonly LANGCHAIN_REPO="https://github.com/langchain-ai/langchainjs"
readonly LANGCHAINJS_REVISION="${LANGCHAINJS_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show langchain version)}"
readonly LANGCHAINJS_REPO="https://github.com/langchain-ai/langchainjs.git"

# Since we built the candidate image locally, we don't want S2I attempt to pull
# it from a registry
Expand Down
6 changes: 6 additions & 0 deletions test/test-lib-nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,12 @@ function test_client_cloudevents() {
echo "Running CloudEvents client test"
test_running_client_js cloudevents
}

function test_client_langchainjs() {
echo "Running langchainjs client test"
test_running_client_js langchainjs
}

function test_client_fastify() {
if [[ "${VERSION}" == *"minimal"* ]]; then
VERSION=$(echo "${VERSION}" | cut -d "-" -f 1)
Expand Down

0 comments on commit 8f7928b

Please sign in to comment.