Offload: a 'run' job reports PASS when its command failed (and the README's $BLD/b path does not exist)
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 76/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- bash, shell
- 領域
- build-system, cli
研究方向
首先查看 tools/offload/run-offload.sh 以及 README 命令表中對 run 作業及其建置樹路徑的說明。使用一個早期流水線步驟失敗的命令重現所報告的行為,然後讓 run 傳遞完整命令的失敗狀態,並找出失敗的命令。完成的標準是範例不再輸出 PASS 或以 0 結束,並且文件中記載的建置路徑與 run 使用的路徑一致。
由索引模型根據 Issue 內容生成。
描述
tools/offload/run-offload.sh ... run <cmd> reports PASS and exits 0 when
the command it ran failed.
Seen today building a package on beryllium:
run bash -c 'cd $BLD/b && cpack -G DEB 2>&1 | tail -5; ls -lh *.deb | tail -5'
bash: line 1: cd: /home/andy/ecce-offload/build/main/b: No such file or directory
ls: cannot access '*.deb': No such file or directory
PASS: run bash -c ... on main (8825ee3dda) exit 0, 1470s
Nothing was built, and the job reported success.
Two causes, and the second is the one that matters:
- The README's command table says the build tree is
$BLD/b. For arun
job it is$BLD/bi, the same treectestiuses. Either the README or the
variable should change; the path in the docs does not exist. runtakes its status from the last command of the pipeline rather than
from the whole command, so an early failure is invisible. Herecd
failed,cpacknever ran,lsfailed, and the job still exited 0.
This is the same shape as #1301 (a ctest -R matching no test exiting 0) and
#1309: a step that did nothing reports success. An offload run is used for
measurement sweeps and packaging, where "it printed PASS" is often the only
thing anyone looks at.
Suggested: run should use set -o pipefail and fail on any non-zero status
in the command it was given, and say which command failed. A run whose
command produced no output at all is also worth failing, as #1309 does for
test scripts.
- 主要語言
- C
- 星號
- 10
- 分支
- 8
- 平均合併
- 6 小時 32 分鐘
- 30 天內合併 PR
- 1
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
FriendsofECCE/ECCE 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
FriendsofECCE/ECCE#1353 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
FriendsofECCE/ECCE#1348 ·
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
FriendsofECCE/ECCE#1345 ·
-
難度 2/5 1-3 小時 新手友好度 62/100
FriendsofECCE/ECCE#1333 ·
查看 FriendsofECCE/ECCE 的全部 Issue
相似的 Issue
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values inside未關閉
難度 1/5 1 小時以內 新手友好度 92/100
kamgurgul/mib2q-carplay#74 ·
-
Claude:NotNeeded GPT:NotABug triage
難度 2/5 1-3 小時 新手友好度 78/100
open5gs/open5gs#5195 · 1 則留言 ·
維護者通常 1 天內回覆
-
documentation needs-triage
難度 2/5 1-3 小時 新手友好度 68/100
X11Libre/xserver#4255 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 84/100
antoxa2584x/nfsu2-sw#52 ·
-
難度 2/5 1-3 小時 新手友好度 84/100
KalicoCrew/kalico#1120 ·
維護者通常 3 天內回覆