speedup: cut the extra ~8s per sandbox on the k3s tmachine rows
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- kubernetes, rust
研究方向
Start by comparing per-phase create, ready, and delete timings for one sandbox on k3s and kind, as required by the definition of done. The issue points to tests/tmachine/src/qemu/vm.rs, the k3s playbooks under tests/tmachine/ansible/playbooks/, and the Kubernetes driver; inspect gateway watch and poll intervals, image pull policies, termination grace, and deletion waits. Record Branch E2E k3s conformance time before and after, and file follow-up issues for any avoidable delays left unresolved.
由索引模型根據 Issue 內容生成。
描述
User Story
As a contributor waiting on Branch E2E, I want sandboxes on the k3s tmachine rows to start and stop about as fast as on kind, so that each conformance test there stops costing about 8 extra seconds.
Description
The same conformance tests take about twice as long on the k3s tmachine rows as on kind, and far longer than on Docker. From the JUnit results of run 44803367985:
| Test | Docker | kind | k3s VM |
|---|---|---|---|
credential_gating::policy_binding_rest_body_keeps_placeholder_without_rewrite |
1.4 s | 8.0 s | 18.0 s |
credential_gating::policy_binding_requires_inspection_or_opt_in |
1.6 s | 13.1 s | 18.2 s |
lifecycle::restart_stopped_sandbox |
1.9 s | – | 18.2 s |
| Mean over 77 tests | 5.5 s | – | 17.6 s |
Small tests show a floor of about 16 s on k3s, compared with about 8 s on kind. The VM has 4 vCPUs and 4 GB on a 4-vCPU runner.
Find where those seconds go (image pull, pod scheduling, supervisor start, readiness polling, deletion and termination grace) and remove the parts that aren't inherent to Kubernetes.
Context
- Parent: #5281. Related: #5333, #5844.
tests/tmachine/src/qemu/vm.rs(VM size), k3s playbooks undertests/tmachine/ansible/playbooks/, the Kubernetes driver.
Definition of Done
- The issue records a per-phase breakdown of one sandbox's create, ready and delete on k3s and on kind.
- Fixes for the avoidable parts land, or follow-up issues are filed for them.
- Branch E2E k3s conformance time per test is recorded before and after.
+++ Agent notes
- Kind numbers come from
kubernetes-e2ejob 136526209209 ("<== PASS ... (Ns)" lines); k3s and Docker numbers come from the JUnit artifactse2e-results-conformance-conformance-ubuntu-k3s-k3sand...-ubuntu-docker-rootful-deb. - Look at the gateway's watch and poll intervals for Kubernetes, the pod's
imagePullPolicyfor the sandbox and supervisor images,terminationGracePeriodSeconds, and whether tests wait for deletion to finish.
+++
- 主要語言
- Rust
- 星號
- 21.5k
- 分支
- 2.1k
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NVIDIA/OpenShell 的其他 Issue
-
state:triage-needed
難度 2/5 1-3 小時 新手友好度 86/100
-
state:triage-needed
難度 2/5 1-3 小時 新手友好度 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failure可能已有人在做 @TaylorMutch 於 9 天前認領。 未關閉state:accepted state:pr-opened
難度 2/5 1-3 小時 新手友好度 78/100
-
state:triage-needed
難度 1/5 1-3 小時 新手友好度 78/100
-
state:triage-needed
難度 2/5 1-3 小時 新手友好度 62/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
autofixer: follow-up
難度 2/5 1-3 小時 新手友好度 78/100
tursodatabase/turso#12531 ·
維護者通常 1 天內回覆
-
bug help wanted ui
難度 2/5 1-3 小時 新手友好度 82/100
userFRM/egui-charts#4292 ·
維護者通常 1 天內回覆
-
Issue-Bug Need-Review
難度 1/5 1-3 小時 新手友好度 85/100
PowerShell/DSC#1832 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆