n8n/packages/cli/src
n8n-cat-bot[bot] ca4dc42631 test(core): Lock each call site's timeout deadline at its own call site
The two call sites want different deadlines, and the shared helper alone
cannot prove which one each site asked for. Add one test for each:

- The poll handler counts a node's synchronous setup against the poll
  timeout, so the deadline must be armed before poll() runs.
- The publication consumer keeps its abort and abandon deadlines ref'd,
  so a shutdown still reaches the abort and the abandon reporting.

Also restore the setTimeout spy in the helper test while the fake timers
are still installed, so it cannot leak into a later test.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 09:48:08 +00:00
..
__tests__ fix(core): Do not persist an execution when preExecute throws (#37701) 2026-09-08 08:00:49 +00:00
auth chore: Replace hand-rolled escapeRegExp helpers with lodash/escapeRegExp (#37567) 2026-09-02 14:01:52 +00:00
binary-data fix(API): Adapt binary data endpoint (#36974) 2026-08-25 08:17:21 +00:00
chat chore: Bundle 2.x (#37586) 2026-09-02 08:16:39 +03:00
collaboration feat(editor): Keep review-required toggle synchronized with open reviews (#34606) 2026-07-22 09:28:10 +00:00
commands fix(core): Register the encryption key provider before any encrypt or decrypt (no-changelog) (#37972) 2026-09-07 17:04:39 +00:00
concurrency refactor(core): Move sleep into @n8n/utils and unify sleep/sleepWithAbort (#35057) 2026-07-28 18:47:18 +00:00
config feat(core): Enable the UI to call the public API (no-changelog) (#35692) 2026-08-13 13:36:06 +00:00
constants feat(core): Make chat trigger OAuth2 identity pipeline unconditional (#37942) 2026-09-07 13:19:34 +00:00
controllers fix(core): Return 503 when the AI assistant service is unreachable (#37957) 2026-09-07 11:10:32 +00:00
credentials feat(core): Record instance activity behind the write flag (no-changelog) (#37750) 2026-09-04 12:16:46 +00:00
databases/repositories/__tests__ feat(core): Add folder exploration to Instance AI (#37865) 2026-09-07 20:52:53 +00:00
deduplication
deprecation fix(core): Apply proxy environment variables consistently across packages and processes (#37124) 2026-08-27 16:26:08 +00:00
encryption fix(core): Register the encryption key provider before any encrypt or decrypt (no-changelog) (#37972) 2026-09-07 17:04:39 +00:00
environments.ee/variables feat(core): Add create-stub variable policy and parent placement for package import (no-changelog) (#34794) 2026-07-28 12:05:48 +00:00
errors fix(core): Do not persist an execution when preExecute throws (#37701) 2026-09-08 08:00:49 +00:00
evaluation.ee refactor(API): Move evaluation test-run reads behind a service (no-changelog) (#37199) 2026-09-01 07:14:28 +00:00
eventbus feat(core): Add node-type-policy service, instance controller, and audit wiring (no-changelog) (#37648) 2026-09-07 09:13:32 +00:00
events feat(API): Add push endpoint to the public API for source control (#37873) 2026-09-07 15:32:31 +00:00
execution-lifecycle fix(core): Do not persist an execution when preExecute throws (#37701) 2026-09-08 08:00:49 +00:00
executions fix(core): Do not persist an execution when preExecute throws (#37701) 2026-09-08 08:00:49 +00:00
expression-observability feat(core): Add QuickJS expression engine option alongside isolated-vm (no-changelog) (#33969) 2026-08-31 13:40:28 +00:00
instance-settings-loader feat(editor): Make OIDC RP-initiated logout an opt-in setting (#35146) 2026-07-29 12:42:47 +00:00
license refactor: Apply outbound request protection by default (no-changelog) (#36841) 2026-08-26 10:52:56 +00:00
metrics feat(core): Add opt-in concurrency limits for Instance AI runs (#37435) 2026-09-04 06:57:07 +00:00
mfa test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
middlewares chore: Use sleep from @n8n/utils/sleep instead of inline setTimeout promises in packages/cli (#37565) 2026-09-01 17:16:21 +00:00
modules feat(core): Share the parent workspace sandbox with background sub-agents (#38025) 2026-09-08 07:34:37 +00:00
node-catalog fix(core): Mark retired node types as deprecated in their workflow-sdk type definitions (#37628) 2026-09-03 08:58:58 +00:00
node-execution fix(core): Resolve expressions in ephemeral agent tools (#35876) 2026-08-10 09:39:43 +00:00
oauth fix: Refresh Agent MCP OAuth credentials (no-changelog) (#37828) 2026-09-07 09:27:56 +00:00
permissions.ee fix(core): Scope active workflow IDs to the requesting user's projects (#37326) 2026-08-31 08:46:24 +00:00
policy feat(core): Enforce content-import policy on package import (no-changelog) (#37762) 2026-09-04 12:06:48 +00:00
posthog feat(core): Add folder exploration to Instance AI (#37865) 2026-09-07 20:52:53 +00:00
public-api chore: Extract the duplicated stringifyQuery helper in the public API data-table handlers (#38001) 2026-09-07 16:11:02 +00:00
push chore: Bundle 2.x (#37586) 2026-09-02 08:16:39 +03:00
scaling fix(core): Keep reporting the original job error when the job key is gone (#37993) 2026-09-08 07:26:07 +00:00
scheduling test(core): Lock each call site's timeout deadline at its own call site 2026-09-08 09:48:08 +00:00
security feat(core): Serve a nonce-based Content-Security-Policy on n8n's HTML pages (#36749) 2026-08-27 16:39:04 +00:00
security-audit refactor: Apply outbound request protection by default (no-changelog) (#36841) 2026-08-26 10:52:56 +00:00
services chore: Share the data-table row file prefix between the export and import services (#38006) 2026-09-07 19:43:54 +00:00
shutdown test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
sso.ee feat(API): Add public API endpoints for OIDC SSO configuration (#34313) 2026-07-28 10:58:55 +00:00
task-runners fix(core): Stop task broker before task runner processes on shutdown (#37833) 2026-09-04 15:06:26 +00:00
telemetry fix(core): Attribute agent session metrics to users (no-changelog) (#37988) 2026-09-07 15:03:45 +00:00
tool-generation fix(core): Prevent unsupported waiting operations in agent tools (#34587) 2026-07-21 08:13:03 +00:00
types
user-management/email test: Fix intl.DateTimeFormatter bug in mailer tests (#37476) 2026-09-01 09:49:11 +03:00
utils test(core): Lock each call site's timeout deadline at its own call site 2026-09-08 09:48:08 +00:00
webhooks feat(core): Make chat trigger OAuth2 identity pipeline unconditional (#37942) 2026-09-07 13:19:34 +00:00
workflows test(core): Lock each call site's timeout deadline at its own call site 2026-09-08 09:48:08 +00:00
abstract-server.ts feat(Slack Node): Add advanced HITL configuration for one-tap approval (#34123) 2026-07-15 12:38:46 +00:00
activation-errors.service.ts
active-executions.ts fix(core): Wait for detached sub-workflows before the worker stops its task runner (#37737) 2026-09-04 15:41:31 +00:00
active-workflow-manager.ts chore: Bundle 2.x (#37586) 2026-09-02 08:16:39 +03:00
command-registry.ts chore: Pin langchain core packages and surface issues better (#33621) 2026-07-06 08:43:54 +00:00
constants.ts feat: Refresh chat OAuth2 access tokens periodically (no-changelog) (#37541) 2026-09-02 11:27:29 +00:00
controller.registry.ts fix(core): Show a clear no-access message when SSO role mapping denies a login (#36407) 2026-08-18 12:00:57 +00:00
crash-journal.ts refactor(core): Move sleep into @n8n/utils and unify sleep/sleepWithAbort (#35057) 2026-07-28 18:47:18 +00:00
credential-types.ts
credentials-helper.ts fix(editor): Hide Gateway credits for HTTP Request and GraphQL nodes (#37810) 2026-09-07 10:08:22 +00:00
credentials-overwrites.ts fix(core): Prefer managed OAuth auth types when the AI builder resolves credentials (#35929) 2026-08-13 13:10:33 +00:00
external-hooks.ts fix(core): Exclude AI assistant verification runs from prod execution counts (#35405) 2026-08-03 09:16:02 +00:00
generic-helpers.ts
index.ts
interfaces.ts fix(core): Attribute agent session metrics to users (no-changelog) (#37988) 2026-09-07 15:03:45 +00:00
license.ts fix(core): Ensure license device fingerprint meets minimum length (#33852) 2026-07-27 12:09:08 +00:00
load-nodes-and-credentials.ts fix(core): Rebuild the node registry without emptying it first (#36387) 2026-08-17 11:13:07 +00:00
manual-execution.service.ts fix(core): Show clear error when running a tool node without an Agent (#30626) 2026-05-21 09:48:28 +00:00
node-types.ts fix(core): Resolve synthetic tool nodes to the requested version (#34850) 2026-07-24 12:09:58 +00:00
requests.ts fix: Block manual project member changes when project roles are managed (#33270) 2026-07-03 07:34:14 +00:00
response-helper.ts feat(core): Serve a nonce-based Content-Security-Policy on n8n's HTML pages (#36749) 2026-08-27 16:39:04 +00:00
server.ts feat(core): Add project-level worker pools (no-changelog) (#32975) 2026-09-04 10:19:28 +00:00
utils.ts feat(core): Validate missing node types on package import (#34598) 2026-07-22 21:09:27 +00:00
utlity.types.ts
wait-tracker.ts fix(core): Recover enqueued executions after a restart (#35059) 2026-07-29 09:55:40 +00:00
workflow-execute-additional-data.ts fix(core): Do not persist an execution when preExecute throws (#37701) 2026-09-08 08:00:49 +00:00
workflow-helpers.ts perf(core): Reduce workflow import queries (#36949) 2026-08-27 08:59:08 +00:00
workflow-hook-context.service.ts feat(core): Expose workflow hook context to lifecycle external hooks (#34738) 2026-07-28 11:27:59 +00:00
workflow-runner.ts fix(core): Do not persist an execution when preExecute throws (#37701) 2026-09-08 08:00:49 +00:00
zod-alias-support.ts