Skip to content

Add timer origin to the history information#1627

Draft
acroca wants to merge 2 commits intodapr:masterfrom
acroca:timer-origins
Draft

Add timer origin to the history information#1627
acroca wants to merge 2 commits intodapr:masterfrom
acroca:timer-origins

Conversation

@acroca
Copy link
Copy Markdown
Member

@acroca acroca commented Apr 9, 2026

Timers have origin now. This PR displays the timer origin.

Signed-off-by: Albert Callarisa <albert@diagrid.io>
@acroca acroca requested a review from Copilot April 9, 2026 14:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds display of timer origin information in workflow history output (details + attrs) and validates it via unit and e2e tests.

Changes:

  • Extend pkg/workflow history formatting to surface timer origin (createTimer / externalEvent / activityRetry / childWorkflowRetry).
  • Add unit tests for origin formatting and details derivation.
  • Add e2e coverage and supporting test workflows/activities for retry-origin timers; bump related Go module deps.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
tests/e2e/standalone/workflow_test.go Adds e2e assertions that history output includes timer origin in both text details and JSON attrs.
tests/apps/workflow/app.go Registers new workflows/activities used to generate retry-origin timer events in e2e.
pkg/workflow/history.go Adds origin decoding into history “Attrs” and “Details” output.
pkg/workflow/history_test.go New unit tests for timer origin formatting and inclusion in derived details.
go.mod Bumps durabletask-go + kit and adds new indirect deps.
go.sum Updates sums for the module changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Albert Callarisa <albert@diagrid.io>
@acroca acroca marked this pull request as ready for review April 10, 2026 06:11
@acroca acroca requested review from a team as code owners April 10, 2026 06:11
@acroca acroca marked this pull request as draft April 10, 2026 07:56
@acroca
Copy link
Copy Markdown
Member Author

acroca commented Apr 10, 2026

Waiting for #1629 to be merged

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants