From 1629794658f3bba0b9190de7e67ce6588474afea Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Wed, 8 Apr 2026 18:22:18 -0700 Subject: [PATCH] chore: update conformance lint (#7459) Co-authored-by: Will Fu-Hinthorn --- .../checkpoint/conformance/spec/test_list.py | 1 - libs/checkpoint-conformance/uv.lock | 2 +- libs/langgraph/tests/test_pregel.py | 24 ++++++++++--------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/libs/checkpoint-conformance/langgraph/checkpoint/conformance/spec/test_list.py b/libs/checkpoint-conformance/langgraph/checkpoint/conformance/spec/test_list.py index fd98ba652..9f00070cf 100644 --- a/libs/checkpoint-conformance/langgraph/checkpoint/conformance/spec/test_list.py +++ b/libs/checkpoint-conformance/langgraph/checkpoint/conformance/spec/test_list.py @@ -339,7 +339,6 @@ async def test_list_metadata_custom_keys( assert results[0].metadata["run_id"] == "run-abc" - ALL_LIST_TESTS = [ test_list_all, test_list_by_thread, diff --git a/libs/checkpoint-conformance/uv.lock b/libs/checkpoint-conformance/uv.lock index 860d542fd..cb5e062bc 100644 --- a/libs/checkpoint-conformance/uv.lock +++ b/libs/checkpoint-conformance/uv.lock @@ -263,7 +263,7 @@ wheels = [ [[package]] name = "langgraph-checkpoint-conformance" -version = "0.0.1" +version = "0.0.2" source = { editable = "." } dependencies = [ { name = "langgraph-checkpoint" }, diff --git a/libs/langgraph/tests/test_pregel.py b/libs/langgraph/tests/test_pregel.py index d6bfc95cc..95afe3e6e 100644 --- a/libs/langgraph/tests/test_pregel.py +++ b/libs/langgraph/tests/test_pregel.py @@ -1329,20 +1329,22 @@ def test_imp_nested( } thread1 = {"configurable": {"thread_id": "1"}} - assert [*graph.stream([0, 1], thread1, durability=durability)] == [ - {"submapper": "0"}, + result = [*graph.stream([0, 1], thread1, durability=durability)] + # nested tasks run concurrently so output order is non-deterministic + assert sorted(result[:-1], key=lambda d: str(d)) == [ {"mapper": "00"}, - {"submapper": "1"}, {"mapper": "11"}, - { - "__interrupt__": ( - Interrupt( - value="question", - id=AnyStr(), - ), - ) - }, + {"submapper": "0"}, + {"submapper": "1"}, ] + assert result[-1] == { + "__interrupt__": ( + Interrupt( + value="question", + id=AnyStr(), + ), + ) + } assert graph.invoke(Command(resume="answer"), thread1, durability=durability) == [ "00answera",