Repository navigation
Prepare Workflow 2.42.0 - #1311
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Independent review: PASS at d740d36 A reviewer in a fresh context checked this prep against #1298 and the code: PASS at a67700c, then PASS at d740d36 after the wording edits.
Blocking: none. Non-blocking: "contexts' |
|
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.



Prepares Workflow 2.42.0 with everything merged since 2.41.0:
$this->logger(), a replay-aware PSR-3 logger, withreplayState()andisReplaying(). It also works when an external worker cold-replays a run throughWorkflowFiberRunner(Add replay-aware workflow logging to embedded PHP, the PHP SDK and Rust .github#227).#[Workflow\UpdateValidator('name')](Add update validators to embedded PHP, the PHP SDK and Rust .github#234).workflows.v2.interceptors) around workflow tasks, activities, queries and update validation. Every context reportsreplayState()(Add worker interceptors to the PHP SDK, embedded PHP and Rust .github#226).WorkflowFiberRunnerreads the task'sreplay_clockentry carrier (Give workflow code a replay-safe clock that advances in every SDK .github#215).All of this adds public API, so the release is a minor version. #1309 is not merged and isn't included.
The changes are
composer.jsonextra.durable-workflow.product-train=2.42.0and aCHANGELOG.mdsection.docs/api-stability.mdhas no "Unreleased" markers for this release, so it is unchanged, as in the 2.40.0 prep.CHANGELOG review. I checked every entry against
git log --first-parent 2.41.0..origin/main:WorkerInterceptordirectly must add the method" no longer applies and is dropped. The entry now notes that bridge workers and the bridgeexecuteroute aren't wrapped.WorkflowExecutor::deadlineCloseBatchSize().Upgrade notes at the top of the section cover:
logger(),replayState()andisReplaying()name collision on theWorkflowbase class (Add a replay-aware workflow logger #1296);replay_clockentry clock for code that buildsWorkflowFiberRunner(Let the worker-protocol runner read the replay_clock entry carrier #1307), with the advice to use versioning or drain runs first.No timeout-cleanup mixed-queue note: embedded timeout cleanup runs only with queue dispatch. Bridge claims of opted-in runs still return
timeout_cleanup_not_supported, so no external SDK worker gets a cleanup turn from this package. #1304 changed documentation only.Checks on the release tree:
git archiveof the prep commit identifies itself asdurable-workflow/workflowwith product train2.42.0. It contains the new classes (WorkflowLogger,WorkflowReplayState,UpdateValidator,Interceptors\WorkerInterceptor,DeadlineCloseBudget).composer validate --strictpasses.WorkflowFiberRunnerEntryCarrierTest,WorkflowFiberRunnerTest,WorkflowFiberContextUpdateValidatorTest,CompletionWriteFamilyBudgetTest,IdempotentProjectionUpsertTestandPlatformConformanceSuiteTest(172 tests, 1,588 assertions);V2ReplayAwareWorkflowLoggerTest,V2BridgeRunnerReplayLoggingTest,V2UpdateValidatorTest,V2UpdateValidationInterceptorTestandV2WorkerInterceptorTest(36 tests, 308 assertions).After merge, the commit gets an annotated tag
2.42.0. Release Verification runs on the tag push, and the GitHub release and Packagist publication are checked as for 2.41.0.🤖 Generated with Claude Code