feat(cli): re-stage a --from rootfs archive when a create retry finds its staging token spent
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start in crates/openshell-cli/src/run.rs at the sandbox create retry loop; the issue names the prior split-out helpers (is_rootfs_tar_staging_token_spent, restage_rootfs_tar_for_retry, replace_rootfs_tar_staging_token) and #5745 is the reference implementation. Read how the staging token is acquired and consumed on the --from path, then separate the spent-token case from guard-timeout retries. Done looks like tests covering re-stage, staging-slot quota, and the budget-stop annotated error from the Definition of Done.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Title: feat(cli): re-stage a --from rootfs archive when a create retry finds its staging token spent
User Story
I create sandboxes with openshell sandbox create --from <rootfs.tar> on gateways where burst creation keeps the mutation lock busy. When an attempt loses the SSH identity lock step, the gateway consumes the staged archive, so the retry finds its single-use staging token spent and the create ends with the raw FAILED_PRECONDITION instead of completing.
Description
Reintroduce re-staging into the create retry loop. When the gateway reports the staging token spent, stage the same archive again and re-send the create, bounded by the retry budget and the caller's staging-slot quota. Guard-timeout retries must keep reusing the still-valid token, since the pre-record guard rejects before the archive is consumed.
The first revision of #5745 carried an implementation (is_rootfs_tar_staging_token_spent, restage_rootfs_tar_for_retry, replace_rootfs_tar_staging_token in crates/openshell-cli/src/run.rs) with a matching test suite; it was split out during review to keep the PR small.
Context
- Split out of #5745 during its review round; #5697 is the parent story.
- The CLI currently surfaces the spent-token error terminally on that path.
Definition of Done
- A
--fromcreate that loses the SSH identity lock step re-stages the archive and completes within the retry budget - Guard-timeout retries reuse the outstanding token without spending staging slots
- A spent token past the retry budget surfaces the annotated error without another send or staging slot
- Tests cover the re-stage, the slot quota, and the budget stop
- 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