speedup: cut the extra ~8s per sandbox on the k3s tmachine rows
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- kubernetes, rust
- Lĩnh vực
- infrastructure, performance
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
+++
- Ngôn ngữ chính
- Rust
- Star
- 21.5k
- Fork
- 2.1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/OpenShell
-
state:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
state:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failureCó thể đã có người làm @TaylorMutch đã nhận 9 ngày trước. Đang mởstate:accepted state:pr-opened
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
state:triage-needed
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
-
state:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Tất cả issue của NVIDIA/OpenShell
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
autofixer: follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tursodatabase/turso#12531 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug help wanted ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
userFRM/egui-charts#4292 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CHANGELOG.md out of dateĐang mởIssue-Bug Need-Review
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
PowerShell/DSC#1832 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày