[PR #981] [MERGED] chore(langgraph): add tests to validate AbortSignal is passed into nodes #1154

Closed
opened 2026-02-15 19:17:27 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/981
Author: @benjamincburns
Created: 3/11/2025
Status: Merged
Merged: 3/11/2025
Merged by: @benjamincburns

Base: mainHead: ben/abort-signal-testing


📝 Commits (1)

  • 4b1a9f3 chore(langgraph): add tests to validate AbortSignal is passed into nodes

📊 Changes

2 files changed (+226 additions, -41 deletions)

View changed files

📝 libs/langgraph/src/tests/pregel.test.ts (+0 -41)
libs/langgraph/src/tests/pregel/pregel.cancellation.test.ts (+226 -0)

📄 Description

Also validates that

  • The signal received by nodes
    • fires in the event of a timeout
    • fires in the event of an external trigger (user code calling abort on the associated AbortController)
    • propagates correctly from parent graphs into subgraphs
      • when subgraph is called from within a node w/o explicitly passing config
      • when subgraph is a node

🔄 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/langgraphjs/pull/981 **Author:** [@benjamincburns](https://github.com/benjamincburns) **Created:** 3/11/2025 **Status:** ✅ Merged **Merged:** 3/11/2025 **Merged by:** [@benjamincburns](https://github.com/benjamincburns) **Base:** `main` ← **Head:** `ben/abort-signal-testing` --- ### 📝 Commits (1) - [`4b1a9f3`](https://github.com/langchain-ai/langgraphjs/commit/4b1a9f3dcdbbcc1faecc7d5fc711de718910ebb4) chore(langgraph): add tests to validate AbortSignal is passed into nodes ### 📊 Changes **2 files changed** (+226 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/tests/pregel.test.ts` (+0 -41) ➕ `libs/langgraph/src/tests/pregel/pregel.cancellation.test.ts` (+226 -0) </details> ### 📄 Description Also validates that - The signal received by nodes - fires in the event of a timeout - fires in the event of an external trigger (user code calling `abort` on the associated `AbortController`) - propagates correctly from parent graphs into subgraphs - when subgraph is called from within a node w/o explicitly passing `config` - when subgraph is a node --- <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-15 19:17:27 -05:00
yindo closed this issue 2026-02-15 19:17:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#1154