Skip to content

Commit c77465e

Browse files
tests pass
1 parent b27133c commit c77465e

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed

.evergreen/config.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,18 @@ tasks:
245245
commands:
246246
- func: "fetch repo"
247247
- func: "execute tests"
248+
- command: attach.xunit_results
249+
params:
250+
file: src/langchain-js/langchainjs/libs/langchain-mongodb/results.xml
251+
252+
- name: test-langchain-js-remote
253+
tags: [remote]
254+
commands:
255+
- func: "fetch repo"
256+
- func: "execute tests"
257+
- command: attach.xunit_results
258+
params:
259+
file: src/langchain-js/langchainjs/libs/langchain-mongodb/results.xml
248260

249261
buildvariants:
250262
- name: test-semantic-kernel-python-rhel
@@ -373,4 +385,5 @@ buildvariants:
373385
run_on:
374386
- ubuntu2204-small
375387
tasks:
376-
- name: test-langchain-js-local
388+
- name: test-langchain-js-local
389+
- name: test-langchain-js-remote

langchain-js/config.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
REPO_NAME=langchainjs
2-
CLONE_URL="https://github.com/langchain-ai/langchainjs.git"
2+
CLONE_URL="https://github.com/baileympearson/langchainjs.git"
33
DATABASE=langchain_test_db

langchain-js/run.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
11
#!/bin/bash
22

3-
echo "Working!"
3+
git branch
4+
git switch use-local-atlas
5+
git log -n 1
6+
7+
if [[ -f "env.sh" ]]; then
8+
source env.sh
9+
fi
10+
11+
# setup node, npm and yarn
12+
export PATH=/opt/devtools/node22/bin:$PATH
13+
export npm_config_prefix=$(pwd)
14+
export PATH=$(pwd)/bin:$PATH
15+
npm install --global yarn
16+
17+
bash ../../.evergreen/fetch-secrets.sh
18+
source secrets-export.sh
19+
20+
cd libs/langchain-mongodb
21+
22+
yarn install
23+
yarn build
24+
25+
yarn add --dev jest-junit
26+
export JEST_JUNIT_OUTPUT_NAME=results.xml
27+
28+
yarn test:int --reporters=default --reporters=jest-junit

0 commit comments

Comments
 (0)