Add timer origin to the history information#1627
Draft
acroca wants to merge 2 commits intodapr:masterfrom
Draft
Conversation
Signed-off-by: Albert Callarisa <albert@diagrid.io>
There was a problem hiding this comment.
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/workflowhistory 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>
Member
Author
|
Waiting for #1629 to be merged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Timers have
originnow. This PR displays the timer origin.