run-offload.sh: cancelling a job leaves the remote driver running, holding the slot and building the cancelled commit
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
- 45/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ệ
- bash, linux, shell
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
Start with tools/offload/run-offload.sh and trace how it starts the remote bash -s driver and manages the shared slot. Reproduce cancellation and inspect the remote process tree and slot handling; make sure cleanup targets only the job's branch or worktree path. Done means cancelling a wrapper stops its remote driver and test children without affecting other users' jobs.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found while clearing nerdegg's single slot during the 9.6.1 work. It happened twice in one night, to two different people.
tools/offload/run-offload.sh drives the host over ssh. Killing the local wrapper - a cancelled background job, a stopped agent, Ctrl-C - does not stop the remote side. The bash -s -- <ref> <command> driver on the host keeps running, is reparented to init, and carries on. In one case its ctest was still launching tests, including starting ecce-qm runs, well after the local job was gone.
Two consequences:
- The slot stays occupied by work nobody is waiting for, and other jobs queue behind a ghost.
- A cancelled job still runs. One of the orphans here was an early build of a commit that had been superseded because it did not compile; had it reached the slot it would have built the broken commit and reported on it.
Cleaning up by hand means killing the remote driver, its orphaned ctest (whose parent is now init, so it does not match the job's process tree) and the remaining test children, by pid.
A trap worth naming in the fix: the obvious clean-up, matching on the tool name (pkill ctest), kills every other user's run on the shared host. Any clean-up must match on the branch or worktree path. One attempt at the broad form was made here and stopped before it executed; it would have destroyed two unrelated jobs.
Suggested fix: have the wrapper trap its own termination and tell the host to kill that job's process group; or have the host write the driver's pid into the slot file so a later job can tell a live holder from a ghost and reclaim the slot.
Related: #1220, #1292 and the #1282 verification were all queued behind the orphans while this was sorted out.
- Ngôn ngữ chính
- C
- Star
- 10
- Fork
- 8
- Merge trung bình
- 6 giờ 32 phút
- Pull request đã merge (30 ngày)
- 1
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
- Đọ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 FriendsofECCE/ECCE
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
FriendsofECCE/ECCE#1353 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
FriendsofECCE/ECCE#1348 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
FriendsofECCE/ECCE#1345 ·
Tất cả issue của FriendsofECCE/ECCE
Issue tương tự
-
Installation fails from source: missing libintl.h on macOS, undeclared R_typeToChar() on R 4.6Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vincentarelbundock/xtx#11 ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
compiler-explorer/compiler-explorer#9738 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 3 ngày
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
kamgurgul/mib2q-carplay#74 ·