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
152908: roachprod: add codec util r=golgeek a=herkolategan
This change introduces a new codec utility to facilitate serializing and
deserializing `interface{}`.
This is the first step in being able to serialize mixedversion test plans. Since
the mixedversion framework utilizes dynamic types (interfaces{}), for `steps`, we
need a way to be able to handle those types when serializing or deserializing
plans.
See the `README.md` in the `codec` package for a more detailed description of how the
codec package works, and what it is used for.
As part of this PR and as an example we use the new codec to implement serialization
for a list of `ClusterSettingOption`. Cluster settings are used by the mixedversion steps,
which we intend to serialize eventually.
This PR also supplies a `typegen` command that generates registration code for the
concrete types we wish to serialize as part of a dynamic type.
Informs: #149451, #151461
Epic: None
Release note: None
Co-authored-by: Herko Lategan <[email protected]>
0 commit comments