Skip to content

Commit

Permalink
INTPYTHON-447 Finish integration tests (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Dec 10, 2024
1 parent aef58f4 commit f531390
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 1,541 deletions.
1 change: 1 addition & 0 deletions .github/workflows/_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
name: "make lint #${{ matrix.python-version }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Only lint on the min and max supported Python versions.
# It's extremely unlikely that there's a lint issue on any version in between
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
working-directory: ${{ inputs.working-directory }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
Expand Down Expand Up @@ -52,7 +53,10 @@ jobs:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
if [[ "${{ github.event_name }}" == "push" ]]; then
make integration_tests
# Only run on the min python version.
if [[ "${{ matrix.python-version }}" == "3.9" ]]; then
make integration_tests
fi
fi
working-directory: ${{ inputs.working-directory }}

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
needs: [ build ]
if: ${{ needs.build.outputs.dirs-to-lint != '[]' }}
strategy:
fail-fast: false
matrix:
working-directory: ${{ fromJson(needs.build.outputs.dirs-to-lint) }}
uses: ./.github/workflows/_lint.yml
Expand All @@ -64,6 +65,7 @@ jobs:
needs: [ build ]
if: ${{ needs.build.outputs.dirs-to-test != '[]' }}
strategy:
fail-fast: false
matrix:
working-directory: ${{ fromJson(needs.build.outputs.dirs-to-test) }}
uses: ./.github/workflows/_test.yml
Expand Down
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ repos:
- id: forbid-new-submodules
- id: trailing-whitespace
exclude_types: [json]
exclude: |
(?x)^(.*.ambr)$
# We use the Python version instead of the original version which seems to require Docker
# https://github.com/koalaman/shellcheck-precommit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
tool_two_slow --> finish;
prepare -.-> tool_two_fast;
tool_two_fast --> finish;

'''
# ---
# name: test_branch_then[mongodb].1
Expand All @@ -30,7 +30,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_conditional_entrypoint_graph
Expand Down Expand Up @@ -113,7 +113,7 @@
__start__ -.  go-left  .-> left;
__start__ -.  go-right  .-> right;
left -.-> __end__;

'''
# ---
# name: test_conditional_entrypoint_graph_state
Expand Down Expand Up @@ -196,7 +196,7 @@
__start__ -.  go-left  .-> left;
__start__ -.  go-right  .-> right;
left -.-> __end__;

'''
# ---
# name: test_conditional_entrypoint_to_multiple_state_graph
Expand Down Expand Up @@ -258,7 +258,7 @@
get_weather --> __end__;
__start__ -.-> get_weather;
__start__ -.-> __end__;

'''
# ---
# name: test_conditional_graph[mongodb]
Expand Down Expand Up @@ -339,7 +339,7 @@
tools --> agent;
agent -.  continue  .-> tools;
agent -.  exit  .-> __end__;

'''
# ---
# name: test_conditional_graph[mongodb].2
Expand All @@ -359,7 +359,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_conditional_graph[mongodb].3
Expand Down Expand Up @@ -440,7 +440,7 @@
tools --> agent;
agent -.  continue  .-> tools;
agent -.  exit  .-> __end__;

'''
# ---
# name: test_conditional_graph[mongodb].5
Expand Down Expand Up @@ -533,7 +533,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_conditional_state_graph[mongodb]
Expand Down Expand Up @@ -615,7 +615,7 @@
tools --> agent;
agent -.  continue  .-> tools;
agent -.  exit  .-> __end__;

'''
# ---
# name: test_conditional_state_graph_with_list_edge_inputs
Expand Down Expand Up @@ -687,7 +687,7 @@
B --> __end__;
__start__ --> A;
__start__ --> B;

'''
# ---
# name: test_in_one_fan_out_state_graph_waiting_edge[mongodb]
Expand All @@ -700,7 +700,7 @@
retriever_two --> qa;
rewrite_query --> analyzer_one;
rewrite_query --> retriever_two;

'''
# ---
# name: test_in_one_fan_out_state_graph_waiting_edge_custom_state_class_pydantic1[mongodb]
Expand All @@ -713,7 +713,7 @@
retriever_two --> qa;
rewrite_query --> analyzer_one;
rewrite_query -.-> retriever_two;

'''
# ---
# name: test_in_one_fan_out_state_graph_waiting_edge_custom_state_class_pydantic1[mongodb].1
Expand Down Expand Up @@ -783,7 +783,7 @@
retriever_two --> qa;
rewrite_query --> analyzer_one;
rewrite_query -.-> retriever_two;

'''
# ---
# name: test_in_one_fan_out_state_graph_waiting_edge_custom_state_class_pydantic2[mongodb].1
Expand Down Expand Up @@ -853,7 +853,7 @@
retriever_two --> qa;
rewrite_query --> analyzer_one;
rewrite_query -.-> retriever_two;

'''
# ---
# name: test_message_graph[mongodb]
Expand Down Expand Up @@ -934,7 +934,7 @@
tools --> agent;
agent -.  continue  .-> tools;
agent -.  end  .-> __end__;

'''
# ---
# name: test_multiple_sinks_subgraphs
Expand All @@ -957,7 +957,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_nested_graph
Expand All @@ -966,7 +966,7 @@
__start__ --> inner;
inner --> side;
side --> __end__;

'''
# ---
# name: test_nested_graph.1
Expand All @@ -983,7 +983,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_nested_graph_xray
Expand Down Expand Up @@ -1138,7 +1138,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_prebuilt_tool_chat
Expand Down Expand Up @@ -1218,7 +1218,7 @@
tools --> agent;
agent -.-> tools;
agent -.-> __end__;

'''
# ---
# name: test_repeat_condition
Expand All @@ -1234,7 +1234,7 @@
Call_Tool -.-> Researcher;
Call_Tool -.-> Chart_Generator;
Researcher -.  redo  .-> Researcher;

'''
# ---
# name: test_send_react_interrupt_control[mongodb]
Expand All @@ -1249,7 +1249,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_simple_multi_edge
Expand All @@ -1261,7 +1261,7 @@
up --> down;
up --> other;
up --> side;

'''
# ---
# name: test_start_branch_then[mongodb]
Expand All @@ -1279,7 +1279,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_state_graph_w_config_inherited_state_keys
Expand Down Expand Up @@ -1313,7 +1313,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_xray_bool
Expand Down Expand Up @@ -1349,7 +1349,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_xray_issue
Expand All @@ -1376,7 +1376,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_xray_lance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
retriever_two --> qa;
rewrite_query --> analyzer_one;
rewrite_query -.-> retriever_two;

'''
# ---
# name: test_in_one_fan_out_state_graph_waiting_edge_custom_state_class_pydantic2[mongodb_aio].1
Expand Down Expand Up @@ -132,7 +132,7 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
# name: test_weather_subgraph[mongodb_aio]
Expand All @@ -157,6 +157,5 @@
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc

'''
# ---
Loading

0 comments on commit f531390

Please sign in to comment.