Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 13, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…rds compatibility (#8991)

## What changed?
Ignore unknown fields when decoding Worker Deployment memo for backwards
compatibility

## Why?
New field was added to memo. We want to be able to roll back server and
still list deployments, just without that field

## How did you test it?
Tested it with v148. Also cherry-picked onto v147.6 and ran my unit
test. With the new Lenient converter, the unit test passed as expected.
With the old strict converter, the unit test failed as expected.

- [x] built
- [ ] run locally and tested manually
- [x] covered by existing tests
- [x] added new unit test(s)
- [ ] added new functional test(s)

## Potential risks
Changing the data converter is risky, but in this case, we know we are
decoding a proto, and we have tests covering that decoding, so I think
it's ok

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Makes JSON/protobuf memo decoding lenient to support backward
compatibility and adds tests to verify decoding behavior.
> 
> - Update `PreferProtoDataConverter` to use
`NewProtoJSONPayloadConverterWithOptions(AllowUnknownFields: true)`,
causing proto JSON decoding to ignore unknown fields
> - Add `TestDecodeWorkerDeploymentMemoTolerateUnknownFields` and
`TestDecodeWorkerDeploymentMemoTolerateMissingFields` with memo JSON
fixtures to validate `DecodeWorkerDeploymentMemo` succeeds and parses
known fields
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
a0d1ea4. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@pull pull bot locked and limited conversation to collaborators Jan 13, 2026
@pull pull bot added the ⤵️ pull label Jan 13, 2026
@pull pull bot merged commit 658b80d into erickirt:main Jan 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant