Skip to content

test: cover the timer summary from NewTimer to the TimerStarted event - #843

Merged
rustatian merged 1 commit into
feature/activity-resetfrom
feat/timer-summary-tests
Oct 11, 2026
Merged

rustatian merged 1 commit into
feature/activity-resetfrom
feat/timer-summary-tests

Conversation

@rustatian

Copy link
Copy Markdown
Collaborator

Reason for This PR

closes: roadrunner-server/roadrunner#2151

The NewTimer command already maps the PHP SDK TimerOptions summary into workflow.TimerOptions (since v5.9.0), and the go-sdk TimerOptions has no other field. The plugin test suite did not cover that path.

Description of Changes

  • Add a codec decode test for the NewTimer wire shape the PHP SDK sends: {"ms": N} with and without summary.
  • Add TimerSummaryWorkflow, a PHP test workflow that starts a timer with TimerOptions::new()->withSummary(...).
  • Add Test_TimerSummaryProto, which runs that workflow and reads the summary back from the TimerStarted event user metadata.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license.

PR Checklist

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any user-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

Copilot AI balanced review requested due to automatic review settings October 10, 2026 21:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@rustatian rustatian self-assigned this Oct 10, 2026
The NewTimer command maps the PHP TimerOptions summary into
workflow.TimerOptions since v5.9.0. Add a codec decode test for the
`{"ms", "summary"}` wire shape and an acceptance test that reads the
summary back from the TimerStarted event user metadata.

Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
@rustatian
rustatian force-pushed the feat/timer-summary-tests branch from 7bbdce8 to 843dd98 Compare October 10, 2026 21:37
@rustatian
rustatian changed the base branch from master to feature/activity-reset October 10, 2026 21:37
@rustatian
rustatian added this pull request to stack #844 October 10, 2026 21:38
@rustatian
rustatian requested a review from wolfy-j October 10, 2026 21:40
@rustatian
rustatian merged commit e1930f6 into master Oct 11, 2026
21 checks passed
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.

[💡 FEATURE REQUEST]: Expose TimerOptions for new timers

3 participants