Breaking `postcard` version updates cause unclear version mismatch error

未关闭
#414 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust
领域
api, networking

调研方向

Start by reviewing the OpteCmdIoctl structure, the DeserCmdErr and Error implementations, and how opteadm and sled-agent consume these errors. Determine how version mismatches currently fail and define a clearer API failure mode, with tests or consumer behavior demonstrating that the mismatch is identifiable.

由索引模型根据 Issue 内容生成。

描述

bug

As seen in omicron#4414, upgrading the version of postcard from 0.x -> 1.x leads to mutual unintelligibility between OPTE 0.25 and 0.26. There is every possibility this could happen again in future: either via postcard 2.0, or we might choose another wire format.

We can probably:

  • make this error clearer in the API surface (i.e., indicate in our Error impl that a DeserCmdErr may well be an API version mismatch). The two main consumers here are opteadm and sled-agent, most likely.
  • move one or more fields outside of the OpteCmdIoctl struct: api_version being the obvious one, or we could prepend a separate wire-format version. This would still cause another messy break in parse behaviour, so we'd need to combine it with some clarifiaction of the failure mode.
主要语言
Rust
星标
82
派生
16
平均合并
3 天 6 小时
30 天内合并 PR
11

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

oxidecomputer/opte 的其他 Issue

查看 oxidecomputer/opte 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。