sprite file push/pull to a nonexistent sprite reports "directory <remote parent> does not exist" instead of a box-not-found error

Đang mở
#203 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng cách chạy ca tái hiện được ghi trong tài liệu sprite file push -s some-name-that-never-existed trên Linux/amd64 và theo dõi cách CLI xử lý sprite không tồn tại cùng các lỗi về thư mục cha từ xa không tồn tại. Được xem là hoàn tất khi sprite bị thiếu báo lỗi sprite-not-found, với mã thoát riêng nếu khả thi, trong khi các thư mục từ xa thực sự không tồn tại vẫn giữ nguyên lỗi hệ thống tệp của chúng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

When sprite file push targets a sprite name that does not exist, the CLI reports a filesystem error about the remote parent directory rather than a sprite-not-found error. This sent a production incident investigation down a long false trail (we probed base-image layout, boot races, and suspend behavior before discovering the target sprite had been destroyed by our own janitor process).

Repro (CLI on linux/amd64, authed)

$ echo probe > /tmp/probe.txt
$ sprite file push -s some-name-that-never-existed /tmp/probe.txt /home/sprite/x.tar
Error: directory /home/sprite does not exist
$ echo $?
1

Expected: something like Error: sprite "some-name-that-never-existed" not found (and ideally a distinct exit code from real remote-filesystem errors).

Actual: Error: directory /home/sprite does not exist — indistinguishable from the legitimate remote-parent-missing case (e.g. pushing to /tmp/..., which genuinely fails on a fresh sprite because tmpfs mounts after the parent-dir check — a quirk we design around).

Why it matters

We (collabd) run file transfers against sprites as part of a two-box sandbox pipeline and persist the CLI's stderr as the failure detail for triage. With this error shape, "the box was destroyed/never existed" and "the destination directory is missing on a live box" are the same string, so automated retry/recreate logic cannot distinguish a recoverable orchestration race from a real path bug.

Related earlier reports from the same integration: #201 (host-enforced --max-size for file pull), #202 (exec stdout byte drops on large streams).

Ngôn ngữ chính
MDX
Star
53
Fork
5
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của superfly/sprites-docs

Tất cả issue của superfly/sprites-docs

Issue tương tự

Thêm issue về CLI

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.