test(tmachine): compose disjoint gateway overrides in the same TOML table

未關閉
#5,950 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
rust, shell
領域
devtools

研究方向

Start with the tmachine gateway_overrides role and the installer code that merges named TOML fragments into the openshell.drivers.podman table, and find where the duplicate-table rejection happens. Read the CDI and userns=auto add-on fragments to see which keys each declares. Done when both add-ons can share one environment and the gateway starts with both settings, a conflicting key fails with a message naming the key and fragments, and existing precedence over installer defaults is unchanged.

由索引模型根據 Issue 內容生成。

描述

User Story

As an OpenShell E2E maintainer, I need to combine the Podman CDI and user-namespace add-ons in one test environment without discarding either add-on’s settings.

Description

OpenShell’s tmachine gateway_overrides role preserves both named blocks. With CDI and userns=auto, both blocks declare [openshell.drivers.podman]. The installer rejects the duplicate table before the gateway starts, even though one block sets allow_driver_config and the other sets userns.

Allow independently valid fragments to contribute disjoint keys to the same table. Reject conflicting keys with a diagnostic that names the key and the contributing fragments. Keep the existing precedence over installer defaults.

Context

Deferred from #5780. Part of #5281. Coordinate with #5489 so the follow-up does not duplicate gateway drop-in work. Current standalone E2E rows do not require this combination.

Definition of Done

  • The Podman CDI and userns=auto add-ons can share an environment, and the gateway starts with both settings.
  • Two fragments claiming the same key fail clearly without modifying the base configuration.
  • Existing standalone add-ons and installer-default precedence still work.
主要語言
Rust
星號
21.5k
分支
2.1k
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NVIDIA/OpenShell 的其他 Issue

查看 NVIDIA/OpenShell 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。