Found in M0 wave 2 (kernel lane). CI run 2531 (SDK branch rb/w04-kernel-options, commit 469f31c) job qemu-tools failed:
In qemu/rootfs/init line 53:
for w in $(cat /proc/cmdline); do
^------------------^ SC2013 (info): To read lines rather than words, pipe/redirect to a 'while read' loop.
The loop was added with the warden.run= entry (commit 445b208). The shellcheck -x qemu/*.sh ... qemu/rootfs/init step of the qemu-tools job exits non-zero on an info finding, so the SDK PR for the M0 kernel batch cannot go green.
Fix: read the command line into a variable (read -r CMDLINE < /proc/cmdline) and loop over its words. The same command is the regression test: the qemu-tools job runs it, and tests/qemu-init/run-init-shellcheck-tests.sh runs it locally, with a doctored copy proven red.
Found in M0 wave 2 (kernel lane). CI run 2531 (SDK branch rb/w04-kernel-options, commit 469f31c) job qemu-tools failed:
```
In qemu/rootfs/init line 53:
for w in $(cat /proc/cmdline); do
^------------------^ SC2013 (info): To read lines rather than words, pipe/redirect to a 'while read' loop.
```
The loop was added with the `warden.run=` entry (commit 445b208). The `shellcheck -x qemu/*.sh ... qemu/rootfs/init` step of the qemu-tools job exits non-zero on an info finding, so the SDK PR for the M0 kernel batch cannot go green.
Fix: read the command line into a variable (`read -r CMDLINE < /proc/cmdline`) and loop over its words. The same command is the regression test: the qemu-tools job runs it, and `tests/qemu-init/run-init-shellcheck-tests.sh` runs it locally, with a doctored copy proven red.
Fixed on SDK rebuild by PR #17 (merge commit 5507842); CI run 2590/2591 green. The regression test is named in the issue and runs in the qemu-tools / kernel-symbols jobs.
Fixed on SDK rebuild by PR #17 (merge commit 5507842); CI run 2590/2591 green. The regression test is named in the issue and runs in the qemu-tools / kernel-symbols jobs.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Found in M0 wave 2 (kernel lane). CI run 2531 (SDK branch rb/w04-kernel-options, commit
469f31c) job qemu-tools failed:The loop was added with the
warden.run=entry (commit445b208). Theshellcheck -x qemu/*.sh ... qemu/rootfs/initstep of the qemu-tools job exits non-zero on an info finding, so the SDK PR for the M0 kernel batch cannot go green.Fix: read the command line into a variable (
read -r CMDLINE < /proc/cmdline) and loop over its words. The same command is the regression test: the qemu-tools job runs it, andtests/qemu-init/run-init-shellcheck-tests.shruns it locally, with a doctored copy proven red.Fixed on SDK rebuild by PR #17 (merge commit
5507842); CI run 2590/2591 green. The regression test is named in the issue and runs in the qemu-tools / kernel-symbols jobs.