Skip to content

Commit f531390

Browse files
authored
INTPYTHON-447 Finish integration tests (#29)
1 parent aef58f4 commit f531390

File tree

9 files changed

+42
-1541
lines changed

9 files changed

+42
-1541
lines changed

.github/workflows/_lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
name: "make lint #${{ matrix.python-version }}"
2121
runs-on: ubuntu-latest
2222
strategy:
23+
fail-fast: false
2324
matrix:
2425
# Only lint on the min and max supported Python versions.
2526
# It's extremely unlikely that there's a lint issue on any version in between

.github/workflows/_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
working-directory: ${{ inputs.working-directory }}
1919
runs-on: ubuntu-latest
2020
strategy:
21+
fail-fast: false
2122
matrix:
2223
python-version:
2324
- "3.9"
@@ -52,7 +53,10 @@ jobs:
5253
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
5354
run: |
5455
if [[ "${{ github.event_name }}" == "push" ]]; then
55-
make integration_tests
56+
# Only run on the min python version.
57+
if [[ "${{ matrix.python-version }}" == "3.9" ]]; then
58+
make integration_tests
59+
fi
5660
fi
5761
working-directory: ${{ inputs.working-directory }}
5862

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
needs: [ build ]
5353
if: ${{ needs.build.outputs.dirs-to-lint != '[]' }}
5454
strategy:
55+
fail-fast: false
5556
matrix:
5657
working-directory: ${{ fromJson(needs.build.outputs.dirs-to-lint) }}
5758
uses: ./.github/workflows/_lint.yml
@@ -64,6 +65,7 @@ jobs:
6465
needs: [ build ]
6566
if: ${{ needs.build.outputs.dirs-to-test != '[]' }}
6667
strategy:
68+
fail-fast: false
6769
matrix:
6870
working-directory: ${{ fromJson(needs.build.outputs.dirs-to-test) }}
6971
uses: ./.github/workflows/_test.yml

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ repos:
1212
- id: forbid-new-submodules
1313
- id: trailing-whitespace
1414
exclude_types: [json]
15+
exclude: |
16+
(?x)^(.*.ambr)$
1517
1618
# We use the Python version instead of the original version which seems to require Docker
1719
# https://github.com/koalaman/shellcheck-precommit

libs/langgraph-checkpoint-mongodb/tests/integration_tests/__snapshots__/test_pregel.ambr

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
tool_two_slow --> finish;
99
prepare -.-> tool_two_fast;
1010
tool_two_fast --> finish;
11-
11+
1212
'''
1313
# ---
1414
# name: test_branch_then[mongodb].1
@@ -30,7 +30,7 @@
3030
classDef default fill:#f2f0ff,line-height:1.2
3131
classDef first fill-opacity:0
3232
classDef last fill:#bfb6fc
33-
33+
3434
'''
3535
# ---
3636
# name: test_conditional_entrypoint_graph
@@ -113,7 +113,7 @@
113113
__start__ -.  go-left  .-> left;
114114
__start__ -.  go-right  .-> right;
115115
left -.-> __end__;
116-
116+
117117
'''
118118
# ---
119119
# name: test_conditional_entrypoint_graph_state
@@ -196,7 +196,7 @@
196196
__start__ -.  go-left  .-> left;
197197
__start__ -.  go-right  .-> right;
198198
left -.-> __end__;
199-
199+
200200
'''
201201
# ---
202202
# name: test_conditional_entrypoint_to_multiple_state_graph
@@ -258,7 +258,7 @@
258258
get_weather --> __end__;
259259
__start__ -.-> get_weather;
260260
__start__ -.-> __end__;
261-
261+
262262
'''
263263
# ---
264264
# name: test_conditional_graph[mongodb]
@@ -339,7 +339,7 @@
339339
tools --> agent;
340340
agent -.  continue  .-> tools;
341341
agent -.  exit  .-> __end__;
342-
342+
343343
'''
344344
# ---
345345
# name: test_conditional_graph[mongodb].2
@@ -359,7 +359,7 @@
359359
classDef default fill:#f2f0ff,line-height:1.2
360360
classDef first fill-opacity:0
361361
classDef last fill:#bfb6fc
362-
362+
363363
'''
364364
# ---
365365
# name: test_conditional_graph[mongodb].3
@@ -440,7 +440,7 @@
440440
tools --> agent;
441441
agent -.  continue  .-> tools;
442442
agent -.  exit  .-> __end__;
443-
443+
444444
'''
445445
# ---
446446
# name: test_conditional_graph[mongodb].5
@@ -533,7 +533,7 @@
533533
classDef default fill:#f2f0ff,line-height:1.2
534534
classDef first fill-opacity:0
535535
classDef last fill:#bfb6fc
536-
536+
537537
'''
538538
# ---
539539
# name: test_conditional_state_graph[mongodb]
@@ -615,7 +615,7 @@
615615
tools --> agent;
616616
agent -.  continue  .-> tools;
617617
agent -.  exit  .-> __end__;
618-
618+
619619
'''
620620
# ---
621621
# name: test_conditional_state_graph_with_list_edge_inputs
@@ -687,7 +687,7 @@
687687
B --> __end__;
688688
__start__ --> A;
689689
__start__ --> B;
690-
690+
691691
'''
692692
# ---
693693
# name: test_in_one_fan_out_state_graph_waiting_edge[mongodb]
@@ -700,7 +700,7 @@
700700
retriever_two --> qa;
701701
rewrite_query --> analyzer_one;
702702
rewrite_query --> retriever_two;
703-
703+
704704
'''
705705
# ---
706706
# name: test_in_one_fan_out_state_graph_waiting_edge_custom_state_class_pydantic1[mongodb]
@@ -713,7 +713,7 @@
713713
retriever_two --> qa;
714714
rewrite_query --> analyzer_one;
715715
rewrite_query -.-> retriever_two;
716-
716+
717717
'''
718718
# ---
719719
# name: test_in_one_fan_out_state_graph_waiting_edge_custom_state_class_pydantic1[mongodb].1
@@ -783,7 +783,7 @@
783783
retriever_two --> qa;
784784
rewrite_query --> analyzer_one;
785785
rewrite_query -.-> retriever_two;
786-
786+
787787
'''
788788
# ---
789789
# name: test_in_one_fan_out_state_graph_waiting_edge_custom_state_class_pydantic2[mongodb].1
@@ -853,7 +853,7 @@
853853
retriever_two --> qa;
854854
rewrite_query --> analyzer_one;
855855
rewrite_query -.-> retriever_two;
856-
856+
857857
'''
858858
# ---
859859
# name: test_message_graph[mongodb]
@@ -934,7 +934,7 @@
934934
tools --> agent;
935935
agent -.  continue  .-> tools;
936936
agent -.  end  .-> __end__;
937-
937+
938938
'''
939939
# ---
940940
# name: test_multiple_sinks_subgraphs
@@ -957,7 +957,7 @@
957957
classDef default fill:#f2f0ff,line-height:1.2
958958
classDef first fill-opacity:0
959959
classDef last fill:#bfb6fc
960-
960+
961961
'''
962962
# ---
963963
# name: test_nested_graph
@@ -966,7 +966,7 @@
966966
__start__ --> inner;
967967
inner --> side;
968968
side --> __end__;
969-
969+
970970
'''
971971
# ---
972972
# name: test_nested_graph.1
@@ -983,7 +983,7 @@
983983
classDef default fill:#f2f0ff,line-height:1.2
984984
classDef first fill-opacity:0
985985
classDef last fill:#bfb6fc
986-
986+
987987
'''
988988
# ---
989989
# name: test_nested_graph_xray
@@ -1138,7 +1138,7 @@
11381138
classDef default fill:#f2f0ff,line-height:1.2
11391139
classDef first fill-opacity:0
11401140
classDef last fill:#bfb6fc
1141-
1141+
11421142
'''
11431143
# ---
11441144
# name: test_prebuilt_tool_chat
@@ -1218,7 +1218,7 @@
12181218
tools --> agent;
12191219
agent -.-> tools;
12201220
agent -.-> __end__;
1221-
1221+
12221222
'''
12231223
# ---
12241224
# name: test_repeat_condition
@@ -1234,7 +1234,7 @@
12341234
Call_Tool -.-> Researcher;
12351235
Call_Tool -.-> Chart_Generator;
12361236
Researcher -.  redo  .-> Researcher;
1237-
1237+
12381238
'''
12391239
# ---
12401240
# name: test_send_react_interrupt_control[mongodb]
@@ -1249,7 +1249,7 @@
12491249
classDef default fill:#f2f0ff,line-height:1.2
12501250
classDef first fill-opacity:0
12511251
classDef last fill:#bfb6fc
1252-
1252+
12531253
'''
12541254
# ---
12551255
# name: test_simple_multi_edge
@@ -1261,7 +1261,7 @@
12611261
up --> down;
12621262
up --> other;
12631263
up --> side;
1264-
1264+
12651265
'''
12661266
# ---
12671267
# name: test_start_branch_then[mongodb]
@@ -1279,7 +1279,7 @@
12791279
classDef default fill:#f2f0ff,line-height:1.2
12801280
classDef first fill-opacity:0
12811281
classDef last fill:#bfb6fc
1282-
1282+
12831283
'''
12841284
# ---
12851285
# name: test_state_graph_w_config_inherited_state_keys
@@ -1313,7 +1313,7 @@
13131313
classDef default fill:#f2f0ff,line-height:1.2
13141314
classDef first fill-opacity:0
13151315
classDef last fill:#bfb6fc
1316-
1316+
13171317
'''
13181318
# ---
13191319
# name: test_xray_bool
@@ -1349,7 +1349,7 @@
13491349
classDef default fill:#f2f0ff,line-height:1.2
13501350
classDef first fill-opacity:0
13511351
classDef last fill:#bfb6fc
1352-
1352+
13531353
'''
13541354
# ---
13551355
# name: test_xray_issue
@@ -1376,7 +1376,7 @@
13761376
classDef default fill:#f2f0ff,line-height:1.2
13771377
classDef first fill-opacity:0
13781378
classDef last fill:#bfb6fc
1379-
1379+
13801380
'''
13811381
# ---
13821382
# name: test_xray_lance

libs/langgraph-checkpoint-mongodb/tests/integration_tests/__snapshots__/test_pregel_async.ambr

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
retriever_two --> qa;
1010
rewrite_query --> analyzer_one;
1111
rewrite_query -.-> retriever_two;
12-
12+
1313
'''
1414
# ---
1515
# name: test_in_one_fan_out_state_graph_waiting_edge_custom_state_class_pydantic2[mongodb_aio].1
@@ -132,7 +132,7 @@
132132
classDef default fill:#f2f0ff,line-height:1.2
133133
classDef first fill-opacity:0
134134
classDef last fill:#bfb6fc
135-
135+
136136
'''
137137
# ---
138138
# name: test_weather_subgraph[mongodb_aio]
@@ -157,6 +157,5 @@
157157
classDef default fill:#f2f0ff,line-height:1.2
158158
classDef first fill-opacity:0
159159
classDef last fill:#bfb6fc
160-
161160
'''
162161
# ---

0 commit comments

Comments
 (0)