[PR #1579] [MERGED] test: Ensure that async checkpointers in tests are setup in same event loop as they are used in #2166

Closed
opened 2026-02-20 17:46:26 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/1579
Author: @nfcampos
Created: 9/2/2024
Status: Merged
Merged: 9/2/2024
Merged by: @nfcampos

Base: mainHead: nc/2sep/async-checkpoint-test-setup


📝 Commits (5)

  • d65d0ec test: Ensure that async checkpointers in tests are setup in same event loop as they are used in
  • ddeb9d7 Disable test in old versions of py
  • 0cc3799 checkpoint: Implement sync methods in async checkpointers
  • 3b2a237 Lint
  • 29311f0 Merge pull request #1580 from langchain-ai/nc/2sep/async-checkpointers-implement-async

📊 Changes

16 files changed (+6211 additions, -4510 deletions)

View changed files

📝 libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py (+95 -1)
📝 libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py (+60 -26)
📝 libs/langgraph/Makefile (+1 -1)
📝 libs/langgraph/poetry.lock (+8 -27)
📝 libs/langgraph/pyproject.toml (+1 -3)
📝 libs/langgraph/tests/__snapshots__/test_pregel_async.ambr (+1102 -2)
libs/langgraph/tests/checkpoint/__init__.py (+0 -0)
📝 libs/langgraph/tests/conftest.py (+42 -63)
📝 libs/langgraph/tests/test_channels.py (+2 -0)
📝 libs/langgraph/tests/test_interruption.py (+20 -19)
📝 libs/langgraph/tests/test_prebuilt.py (+35 -39)
📝 libs/langgraph/tests/test_pregel.py (+1 -27)
📝 libs/langgraph/tests/test_pregel_async.py (+4836 -4301)
📝 libs/langgraph/tests/test_state.py (+3 -1)
📝 libs/langgraph/tests/test_store.py (+3 -0)
📝 libs/langgraph/tests/test_utils.py (+2 -0)

📄 Description

  • This more closely remembers the environment they're used in, so it's what we should be testing
  • Remove unnecessary pytest-asyncio dependency, use anyio pytest plugin instead
  • Convert remaining async tests using only memory checkpointer to use all existing ones

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraph/pull/1579 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 9/2/2024 **Status:** ✅ Merged **Merged:** 9/2/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/2sep/async-checkpoint-test-setup` --- ### 📝 Commits (5) - [`d65d0ec`](https://github.com/langchain-ai/langgraph/commit/d65d0ec665896849bda3f2c370299fc267226fbb) test: Ensure that async checkpointers in tests are setup in same event loop as they are used in - [`ddeb9d7`](https://github.com/langchain-ai/langgraph/commit/ddeb9d73142f14034f948369119273cd468398e7) Disable test in old versions of py - [`0cc3799`](https://github.com/langchain-ai/langgraph/commit/0cc37992986359d83541fbc1df6c46e6bd413424) checkpoint: Implement sync methods in async checkpointers - [`3b2a237`](https://github.com/langchain-ai/langgraph/commit/3b2a237deb8c225f573c112d923fdaf9e38b249f) Lint - [`29311f0`](https://github.com/langchain-ai/langgraph/commit/29311f054dbd6af33f029f194f28b85700edf9af) Merge pull request #1580 from langchain-ai/nc/2sep/async-checkpointers-implement-async ### 📊 Changes **16 files changed** (+6211 additions, -4510 deletions) <details> <summary>View changed files</summary> 📝 `libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py` (+95 -1) 📝 `libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py` (+60 -26) 📝 `libs/langgraph/Makefile` (+1 -1) 📝 `libs/langgraph/poetry.lock` (+8 -27) 📝 `libs/langgraph/pyproject.toml` (+1 -3) 📝 `libs/langgraph/tests/__snapshots__/test_pregel_async.ambr` (+1102 -2) ➖ `libs/langgraph/tests/checkpoint/__init__.py` (+0 -0) 📝 `libs/langgraph/tests/conftest.py` (+42 -63) 📝 `libs/langgraph/tests/test_channels.py` (+2 -0) 📝 `libs/langgraph/tests/test_interruption.py` (+20 -19) 📝 `libs/langgraph/tests/test_prebuilt.py` (+35 -39) 📝 `libs/langgraph/tests/test_pregel.py` (+1 -27) 📝 `libs/langgraph/tests/test_pregel_async.py` (+4836 -4301) 📝 `libs/langgraph/tests/test_state.py` (+3 -1) 📝 `libs/langgraph/tests/test_store.py` (+3 -0) 📝 `libs/langgraph/tests/test_utils.py` (+2 -0) </details> ### 📄 Description - This more closely remembers the environment they're used in, so it's what we should be testing - Remove unnecessary pytest-asyncio dependency, use anyio pytest plugin instead - Convert remaining async tests using only memory checkpointer to use all existing ones --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-20 17:46:26 -05:00
yindo closed this issue 2026-02-20 17:46:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#2166