You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Low Risk
Test-only change with no production behavior; the benchmark may add CI time when the fixture is present.
Overview
Adds testComparesLegacyAndOptimizedTaskUpdateWithLargePayload to TaskControllerUpdateTest, exercising end-to-end task completion with a large data blob from json_optimizer_test_example.json (skips if the fixture is missing).
For three iterations each, it spins up a SingleTask process, triggers the start event, then times PUT task updates on api.tasks.update (v1.0, task_update_v1_1_enabled / token_persistence_raw_enabled off) versus api.1.1.tasks.update (both flags on). It asserts 200 on each update and prints payload size, average latency, and percent improvement to STDOUT—no performance assertion in the test itself.
Supporting imports add Process and ProcessTaskAssignment for realistic process/task setup in the benchmark loop.
Reviewed by Cursor Bugbot for commit c2ea6f6. Bugbot is set up for automated code reviews on this repo. Configure here.
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
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.
FOUR-32800: test compares legacy and optimized
https://processmaker.atlassian.net/browse/FOUR-32635
Code Review Checklist