TEST REPORT: Failed Payment Dunning (for Stripe), n8n pack v1.1.0
Run from a clean unzipped copy of the v1.1.0 dist zip (fresh pip install aiosmtpd). Started 2026-10-22 18:13:35 BST (UTC+01:00), finished 2026-10-22 18:16:33 BST (UTC+01:00) (times from date at run time). Box: Linux 6.12, Node v24.22.0, Python 3.13.5. n8n 2.43.7 (npm) on Node v24.22.0. External-mode runner: Docker 26.1.5 with the n8nio/runners:2.43.7 image (digest sha256:3aaa4194b4ba84548bb04d1761b74df7c9cab36a0b20e74cfaa7bac39504f9ea, Node v26.7.0 inside it).
Result: all checks passed.
- Static validation: 21/21
- End-to-end, external task-runner mode (n8nio/runners sidecar): 24/24 (the 22 v1.0 checks + 2 checks proving the sidecar ran the Code nodes)
- End-to-end, internal task-runner mode (regression check, same as v1.0): 22/22
- crypto allow-list test: 12/12 (9 setup checks + 3 behaviour checks)
The zip that was tested differs from the shipped zip only in this file (TEST-REPORT.md), which was written after the run.
1. Static validation
Command: N8N_NODES_DIR=<n8n>/node_modules/n8n-nodes-base/dist/node-definitions/nodes/n8n-nodes-base python tests/validate_workflow.py
PASS has name, nodes, connections
PASS node names unique
PASS node ids unique
PASS every node has type/typeVersion/position/parameters
PASS connections reference existing nodes
PASS every non-trigger node is connected
PASS exactly one webhook trigger, POST, responseNode
PASS no real-looking secrets shipped
PASS workflow inactive on import
PASS n8n-nodes-base.webhook v2 exists in installed n8n
PASS n8n-nodes-base.set v3.4 exists in installed n8n
PASS n8n-nodes-base.code v2 exists in installed n8n
PASS n8n-nodes-base.if v2.2 exists in installed n8n
PASS n8n-nodes-base.respondToWebhook v1.1 exists in installed n8n
PASS n8n-nodes-base.respondToWebhook v1.1 exists in installed n8n
PASS n8n-nodes-base.removeDuplicates v2 exists in installed n8n
PASS n8n-nodes-base.if v2.2 exists in installed n8n
PASS n8n-nodes-base.code v2 exists in installed n8n
PASS n8n-nodes-base.httpRequest v4.2 exists in installed n8n
PASS n8n-nodes-base.if v2.2 exists in installed n8n
PASS n8n-nodes-base.emailSend v2.1 exists in installed n8n
21/21 passed
2. End-to-end in real n8n, external task-runner mode
Command: RUNNERS_MODE=external RUNNER_CONFIG=<with-crypto.json> DOCKER="sudo docker" N8N_BIN=<n8n> python tests/e2e_n8n.py
How it ran: n8n 2.43.7 (npm) with N8N_RUNNERS_MODE=external and an auth token is the task broker. A n8nio/runners:2.43.7 container (host network) runs the launcher with our n8n-task-runners.json mounted at /etc/n8n-task-runners.json. That file is built by tests/runner_config.py: it starts from the default config read out of the image, removes crypto, then applies the exact env-overrides snippet from SETUP.md. NODE_FUNCTION_ALLOW_BUILTIN=crypto is also set on the n8n process, which must have no effect in this mode (see section 4). The last 2 checks read the n8n and launcher logs: n8n logged no internal-mode deprecation and registered the launcher-javascript runner, and the launcher launched the JS runner and passed it NODE_FUNCTION_ALLOW_BUILTIN. Slack is a local mock HTTP server and email goes to a local SMTP sink. Both are mocked.
task-runner mode: external (runner image n8nio/runners:2.43.7)
PASS n8n import:credentials
PASS n8n import:workflow
PASS n8n publish:workflow
PASS bad signature -> 400
PASS stale timestamp -> 400
PASS tampered body -> 400
PASS no alerts for rejected requests
PASS valid payment_failed -> 200
PASS slack alert sent once
PASS slack text has amount, attempt, retry
PASS customer email sent to jamie@example.com
PASS email has hosted invoice link
PASS duplicate delivery -> 200
PASS duplicate produced no new alert/email
PASS attempt 3 with retry pending -> 200
PASS attempt 3 + retry pending is NOT a final notice
PASS final failed attempt (next_payment_attempt null) -> 200
PASS final notice subject + no-more-retries text
PASS recovered payment -> 200
PASS recovery slack alert, no customer email
PASS first-try paid -> 200
PASS first-try paid is silent
PASS external mode: no internal-mode deprecation in n8n log, sidecar launcher registered
PASS external mode: sidecar launched the JS runner for the Code nodes
24/24 checks passed (throwaway n8n home deleted)
3. End-to-end in real n8n, internal task-runner mode (regression)
Command: N8N_BIN=<n8n> python tests/e2e_n8n.py (N8N_RUNNERS_MODE not set, NODE_FUNCTION_ALLOW_BUILTIN=crypto on n8n). In this mode n8n 2.43.7 logs an internal-mode deprecation warning (seen in our 22 Oct runs). Same mocks as above.
task-runner mode: internal
PASS n8n import:credentials
PASS n8n import:workflow
PASS n8n publish:workflow
PASS bad signature -> 400
PASS stale timestamp -> 400
PASS tampered body -> 400
PASS no alerts for rejected requests
PASS valid payment_failed -> 200
PASS slack alert sent once
PASS slack text has amount, attempt, retry
PASS customer email sent to jamie@example.com
PASS email has hosted invoice link
PASS duplicate delivery -> 200
PASS duplicate produced no new alert/email
PASS attempt 3 with retry pending -> 200
PASS attempt 3 + retry pending is NOT a final notice
PASS final failed attempt (next_payment_attempt null) -> 200
PASS final notice subject + no-more-retries text
PASS recovered payment -> 200
PASS recovery slack alert, no customer email
PASS first-try paid -> 200
PASS first-try paid is silent
22/22 checks passed (throwaway n8n home deleted)
Cold start (checked 23 Oct 2026, n8n 2.43.7, internal mode, 7 fresh starts): for about the first 5 to 6 seconds after n8n start, while /healthz already answered ok but before the workflow's webhook was registered, bad-signature, stale-timestamp and tampered-body requests got connection refused, then HTTP 404, and in one start HTTP 200 with the text "n8n is starting up. Please wait" (3 requests), instead of 400. None of these requests ran the workflow or sent a Slack message or email, and every such request sent after the webhook was registered got HTTP 400 (105 of 105 on an already-running n8n).
4. crypto allow-list test (new in v1.1)
Command: DOCKER="sudo docker" N8N_BIN=<n8n> python tests/e2e_runner_crypto.py
Three separate real n8n runs, each in a fresh throwaway n8n home, sending one validly signed invoice.payment_failed:
1. External mode, runner config without crypto. NODE_FUNCTION_ALLOW_BUILTIN=crypto is still set on the n8n process.
2. External mode, the same config plus the SETUP.md env-overrides snippet.
3. Internal mode, NODE_FUNCTION_ALLOW_BUILTIN not set.
The error text is read from the execution record in n8n's own database.
runner image n8nio/runners:2.43.7; default config allows builtins: 'crypto'; test configs: no-crypto=None, with-crypto='crypto'
PASS n8n import:credentials
PASS n8n import:workflow
PASS n8n publish:workflow
PASS crypto NOT allowed in runner config -> valid event rejected (HTTP 500), nothing sent, execution error says "Module 'crypto' is disallowed"
PASS n8n import:credentials
PASS n8n import:workflow
PASS n8n publish:workflow
PASS crypto allowed via SETUP.md env-overrides -> valid event 200, Slack alert + email sent, no disallowed-module error
PASS n8n import:credentials
PASS n8n import:workflow
PASS n8n publish:workflow
PASS internal mode, NODE_FUNCTION_ALLOW_BUILTIN unset on n8n -> valid event rejected (HTTP 500), nothing sent, execution error says "Module 'crypto' is disallowed"
12/12 checks passed
What this shows:
- Without crypto, the webhook answers HTTP 500 (not 400, as v1.0's SETUP.md said; now corrected) and sends nothing. The failed execution says Module 'crypto' is disallowed.
- In external mode, NODE_FUNCTION_ALLOW_BUILTIN on the n8n process has no effect; only the runner config counts.
- The default config inside n8nio/runners:2.43.7 already allows crypto, so a stock sidecar needs no change. SETUP.md now says so.
Changes found by these tests
- SETUP.md step 1 was rewritten: the failure is an HTTP 500, not a 400; the stock runners image already allows
crypto; setting the variable on n8n does nothing in external mode; and there are separate external and internal mode instructions. - No workflow logic changed. The workflow's name now says v1.1.0.
- The test harness no longer sets
N8N_RUNNERS_ENABLED(deprecated in n8n 2.x).
Still mocked / not tested
- Real Slack, real SMTP providers, and live Stripe deliveries (Slack and email are mocked).
- n8n Cloud and n8n 1.x.
- n8n itself ran from npm, not from the
n8nio/n8nDocker image, and the runners sidecar used host networking, not a Compose network. The auth-token and broker-address settings for a two-container Compose setup come from n8n's docs and were not tested. - Only the javascript runner was started in the sidecar. The python runner isn't used by this workflow.
- Other n8n /
n8nio/runnersversions than 2.43.7. - The Stripe Dashboard steps in SETUP.md (written from Stripe's docs).