Repository navigation
fix(testing): match service for error size check and history redaction - #824
Conversation
9856a34 to
a1cc27d
Compare
yaythomas
left a comment
There was a problem hiding this comment.
The new boundary tests make the size rule clear. The history changes omit error payloads when callers exclude execution data. I found issues in Unicode handling, successful-result handling, type checking, and the wait-history test. I think these need changes before approval. The commit subject also exceeds the repository’s 50-character limit.
|
The commit subject contains 70 characters. The repository allows at most 50. The commit-validation job therefore fails. Can you shorten the subject to 50 characters or fewer? |
a1cc27d to
36d3a12
Compare
|
@yaythomas |
36d3a12 to
a7037e5
Compare
| include: bool = False, # noqa: FBT001, FBT002 | ||
| ) -> EventInput: | ||
| input: str | None = start_durable_execution_input.input | ||
| input: str | None = start_durable_execution_input.input if include else None |
There was a problem hiding this comment.
The latest revision changes EventInput.from_start_durable_execution_input(), but no repository code or test calls this method. So all tests still pass if someone removes the new if include else None branch. CONTRIBUTING rule 4 requires each new branch to have a test that fails without it.
There was a problem hiding this comment.
Added a test for this.
Measure the whole update in UTF-8 bytes against 1,048,576 when it carries an error, instead of only the error object against 32,768. Include the error payload in history events only when execution data is requested.
a7037e5 to
853eebf
Compare
Issue #, if available:
N/A
Description of changes:
Fix two places where the Python local runner behaves differently than the service.
validators/checkpoint.pymodel.pyTruncated: true.Truncated: trueeven when data was requested.And updated tests to match new behaviour.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.