Skip to content

test: suppress ShellCheck info notes in fm-daemon overdue-resume test - #8466

Open
c6aw wants to merge 1 commit into
kunchenguid:mainfrom
c6aw:fm/report-upstream-fm-lint-daemon-test
Open

c6aw wants to merge 1 commit into
kunchenguid:mainfrom
c6aw:fm/report-upstream-fm-lint-daemon-test

Conversation

@c6aw

@c6aw c6aw commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Intent

A full local bin/fm-lint.sh run without FM_LINT_REQUIRE_BOUNDS exits 1 on main with three info-level ShellCheck notes in tests/fm-daemon.test.sh, all in test_housekeeping_overdue_queue_failure_resume_discards: SC2329 on the escalate_add and fm_wake_status_append_self_announced stubs, which the sourced library calls through fixture housekeeping and fixture handle_wake, and SC2031 on $route after the per-route subshell, where route is the loop variable and the subshell never assigns it. CI does not see them, because in the Lint 2 partition this root hits the 12 GiB memory ceiling with --external-sources and passes on the no-source retry, which cannot raise these codes. Suppress the three notes with reasoned # shellcheck disable directives in the style the file already uses, so a full unbounded lint of this file exits 0. Comments only; test behaviour does not change.

What Changed

  • Added # shellcheck disable=SC2329 directives, each with a reason, to the escalate_add and fm_wake_status_append_self_announced stubs in test_housekeeping_overdue_queue_failure_resume_discards (tests/fm-daemon.test.sh). The library under test calls both stubs indirectly.
  • Added a # shellcheck disable=SC2031 directive, with a reason, before the per-route subshell. route is the loop variable, and the subshell never assigns it.
  • The change adds comments only. Test behaviour stays the same.

Risk Assessment

✅ Low: The change adds only three ShellCheck directive comments in the file's existing style, and test behaviour is unchanged.

Testing

I ran the real pinned lint owner (ShellCheck 0.11.0, extended analysis, external sources) on tests/fm-daemon.test.sh with no bounds. At the base commit it reports SC2329 at lines 1592 and 1598 and SC2031 at line 1617, and exits 1. At the target commit it reports nothing and exits 0. The one test function the comments touch still passes. No UI surface; the evidence is CLI transcripts.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Unbounded full lint of tests/fm-daemon.test.sh at the base reproduces the three info notes (SC2329 x2, SC2031) and exits 1 ✅ pass live base-lint.txt: notes at lines 1592, 1598 and 1617, exit=1
Unbounded full lint of tests/fm-daemon.test.sh at the target exits 0 with no notes ✅ pass live target-lint.txt: exit=0, no diagnostics
Test behaviour does not change: test_housekeeping_overdue_queue_failure_resume_discards still passes ✅ pass live target-test.txt: ok line, exit=0
Evidence: Base lint: the three notes, exit 1

Source: Base lint: the three notes, exit 1

fm-lint.sh: ShellCheck 0.11.0 (pinned 0.11.0)
fm-lint.sh: full ShellCheck extended analysis enabled

In tests/fm-daemon.test.sh line 1592:
        escalate_add() { return 1; }
        ^--------------------------^ SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly).


In tests/fm-daemon.test.sh line 1598:
        fm_wake_status_append_self_announced() { return 2; }
        ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly).


In tests/fm-daemon.test.sh line 1617:
      ) || fail "pending resume reconciliation failed ($event/$route)"
                                                              ^----^ SC2031 (info): route was modified in a subshell. That change might be lost.

For more information:
  https://www.shellcheck.net/wiki/SC2031 -- route was modified in a subshell....
  https://www.shellcheck.net/wiki/SC2329 -- This function is never invoked. C...
exit=1
Evidence: Target lint: clean, exit 0

Source: Target lint: clean, exit 0

fm-lint.sh: ShellCheck 0.11.0 (pinned 0.11.0) fm-lint.sh: full ShellCheck extended analysis enabled exit=0

fm-lint.sh: ShellCheck 0.11.0 (pinned 0.11.0)
fm-lint.sh: full ShellCheck extended analysis enabled
exit=0
Evidence: The affected test still passes

Source: The affected test still passes

ok - failed enqueue followed by a worker event closes without an obsolete alert, retaining failed resolutions exit=0

ok - failed enqueue followed by a worker event closes without an obsolete alert, retaining failed resolutions
exit=0

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Unbounded full lint of tests/fm-daemon.test.sh at the base reproduces the three info notes (SC2329 x2, SC2031) and exits 1 ✅ pass live base-lint.txt: notes at lines 1592, 1598 and 1617, exit=1
Unbounded full lint of tests/fm-daemon.test.sh at the target exits 0 with no notes ✅ pass live target-lint.txt: exit=0, no diagnostics
Test behaviour does not change: test_housekeeping_overdue_queue_failure_resume_discards still passes ✅ pass live target-test.txt: ok line, exit=0
  • bin/fm-lint.sh tests/fm-daemon.test.sh at base 427056c4 (temporary detached worktree, FM_LINT_REQUIRE_BOUNDS unset, full extended analysis)
  • bin/fm-lint.sh tests/fm-daemon.test.sh at target 33db197f (FM_LINT_REQUIRE_BOUNDS unset)
  • FM_TEST_ONLY=test_housekeeping_overdue_queue_failure_resume_discards bash tests/fm-daemon.test.sh
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T08:35:05.818171Z 33db197 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Reviews (1) · Last reviewed commit: "test: suppress cross-file ShellCheck not..." · Reviewed by Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant