Clear the shellcheck findings that would fail qemu-tools #3

Merged
noah merged 3 commits from sdk-shellcheck into flare-edge-next 2026-09-28 03:30:57 -06:00
Owner

Fixes #2 (together with enabling Actions on this repository, done 2026-09-28).

  • 13 shellcheck findings in the qemu-tools lint set cleared: eight && pass || fail checks made explicit if/else, four guard groupings made explicit, one unused read field renamed. No behaviour change.
  • Every qemu-tools step passes locally, including all four rs485 cases. This is the first PR this repository's CI checks since the move to Gitea.

Generated with Claude Code

https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg

Fixes #2 (together with enabling Actions on this repository, done 2026-09-28). - 13 shellcheck findings in the qemu-tools lint set cleared: eight `&& pass || fail` checks made explicit if/else, four guard groupings made explicit, one unused read field renamed. No behaviour change. - Every qemu-tools step passes locally, including all four rs485 cases. This is the first PR this repository's CI checks since the move to Gitea. Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg
noah added 1 commit 2026-09-28 01:28:36 -06:00
Clear the shellcheck findings that would fail qemu-tools
ci / patches-apply (pull_request) Successful in 20s
ci / qemu-tools (pull_request) Successful in 40s
ci / prune-artifacts (pull_request) Skipped
ci / quality (pull_request) Failing after 13s
ci / badges (pull_request) Skipped
ci / bench (pull_request) Successful in 5s
ci / mcdc (pull_request) Successful in 15s
ci / kernel-build (pull_request) Skipped
ci / test (pull_request) Successful in 11s
b30621e372
CI has not run on this repository since the move to Gitea (Actions was
off), and 13 shellcheck findings accumulated in the files the qemu-tools
job lints, so that job would fail the moment Actions is enabled.

- test-ui-drive-rs485.sh: eight `cond && pass || fail` checks become
  if/then/else, so a pass() that returned non-zero could never also
  record a failure.
- ui-drive.sh and mk-bootimg.sh: four `[ A ] && [ B ] || die` guards get
  explicit braces; the behaviour is unchanged.
- fetch-vendor.sh: the unused fourth read field is `_desc`; it still
  has to be read so the loop's other fields are split correctly.

Every qemu-tools step passes locally, including all four rs485 cases.

Closes #2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg
noah added 1 commit 2026-09-28 02:09:32 -06:00
ci: let the quality job's pip install run on the Gitea runners
ci / test (push) Successful in 12s
ci / mcdc (push) Successful in 13s
ci / bench (push) Successful in 5s
ci / test (pull_request) Successful in 12s
ci / patches-apply (pull_request) Successful in 15s
ci / prune-artifacts (pull_request) Skipped
ci / kernel-build (pull_request) Skipped
ci / quality (pull_request) Failing after 12s
ci / badges (pull_request) Skipped
ci / qemu-tools (push) Successful in 39s
ci / patches-apply (push) Successful in 16s
ci / prune-artifacts (push) Skipped
ci / kernel-build (push) Skipped
ci / quality (push) Failing after 15s
ci / badges (push) Skipped
ci / mcdc (pull_request) Successful in 12s
ci / bench (pull_request) Successful in 5s
ci / qemu-tools (pull_request) Successful in 37s
fe29ece741
The first CI run on Gitea (1447) failed only in quality: the job image's
Python is PEP 668 externally managed, so 'pip install lizard ruff' is
refused. GitHub's hosted runners set PIP_BREAK_SYSTEM_PACKAGES; set the
same for that step, which runs in a throwaway container on a throwaway
VM.

Refs #2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg
noah added 1 commit 2026-09-28 02:42:48 -06:00
ci: keep PATH when the quality job runs npm under sudo
ci / bench (pull_request) Successful in 5s
ci / qemu-tools (pull_request) Successful in 39s
ci / quality (pull_request) Successful in 26s
ci / badges (pull_request) Skipped
ci / test (push) Successful in 15s
ci / bench (push) Successful in 9s
ci / kernel-build (push) Skipped
ci / mcdc (push) Successful in 19s
ci / qemu-tools (push) Successful in 38s
ci / patches-apply (push) Successful in 27s
ci / prune-artifacts (push) Skipped
ci / quality (push) Successful in 28s
ci / badges (push) Skipped
ci / test (pull_request) Successful in 13s
ci / mcdc (pull_request) Successful in 12s
ci / patches-apply (pull_request) Successful in 16s
ci / prune-artifacts (pull_request) Skipped
ci / kernel-build (pull_request) Skipped
4636f0fe4c
sudo resets PATH to its secure_path, and the Gitea job image keeps node
and npm in the runner tool cache, so 'sudo npm' was not found. Pass the
job's PATH through; GitHub-hosted runners behave the same either way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg
noah merged commit eb0691d84f into flare-edge-next 2026-09-28 03:30:57 -06:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blueflare/bfe-core1106-sdk#3