Skip to content

Conversation

@DawidMyslak
Copy link
Contributor

@DawidMyslak DawidMyslak commented Dec 12, 2025

Summary

The workflow execution start time is set via setRunning function, which is fired from multiple places. When the workflow is resumed after waiting, the same function is fired which results with overwritten const startedAt = new Date(); - causing the bug with wrong execution time.

Loom Recording

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/CAT-1854/execution-history-incorrect-when-flow-includes-wait-node

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

DawidMyslak and others added 2 commits December 12, 2025 12:31
Adds 2 tests to verify timing for executions, waiting and resuming should not impact start time.
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Dec 12, 2025
@blacksmith-sh
Copy link

blacksmith-sh bot commented Dec 12, 2025

Found 3 test failures on Blacksmith runners:

Failures

Test View Logs
editor-after-route-changes/
Editor zoom should work after route changes › should maintain zoom functionality after
switching between Editor and Workflow history and Workflow list
View Logs
src/repositories/tests/execution.repository.test.ts/execution.repository.test View Logs
webhook-external/
External Webhook Triggering › should create workflow via API, activate it, trigger webh
ook externally, and verify execution
View Logs

Fix in Cursor

@currents-bot
Copy link

currents-bot bot commented Dec 12, 2025

E2E Tests: n8n tests failed after 6m 43.1s

🟢 572 · 🔴 2 · ⚪️ 44 · 🟣 4

View Run Details

Run Details

  • Project: n8n

  • Groups: 2

  • Framework: Playwright

  • Run Status: Failed

  • Commit: be786f1

  • Spec files: 130

  • Overall tests: 618

  • Duration: 6m 43.1s

  • Parallelization: 9

Failed Spec Files

Spec File Failures
tests/e2e/api/webhook-external.spec.ts 1
tests/e2e/workflows/editor/editor-after-route-changes.spec.ts 1

Groups

GroupId Results Spec Files Progress
multi-main:ui 🟢 515 · 🔴 2 · ⚪️ 44 · 🟣 4 121 / 121
multi-main:ui:isolated 🟢 57 · 🔴 0 · ⚪️ 0 9 / 9


This message was posted automatically by currents.dev | Integration Settings

@DawidMyslak DawidMyslak marked this pull request as ready for review December 12, 2025 15:43
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

@codecov
Copy link

codecov bot commented Dec 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@shortstacked shortstacked left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@DawidMyslak
Copy link
Contributor Author

@tomi Can I get your thoughts on these changes please 🙏 ?

Explanation:
Loom Recording

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants