Skip to content

lint-sh: tests/os/run.sh intermittently exceeds the 120s shellcheck budget, flaking Shell lint fleet-wide #4669

Backlog

Description

@pithead-developer

What's the problem

make lint-sh runs the pinned shellcheck over every linted file under a 120-second wall-clock budget (scripts/lint/shellcheck-budget.sh 120). tests/os/run.sh intermittently crosses it on loaded runners, failing the whole Shell lint (shellcheck + shfmt) check with the budget script's own remedy line — tests/os/run.sh held the pinned shellcheck past its 120 second budget; put "# shellcheck source=/dev/null" above source lines that follow another linted file — on heads that touch nothing under tests/os/.

What it impacts

The Shell lint gate on every branch, and transitively every bench-submit admission, which holds tier3+ with "tier1/tier2 not passed for the head: Shell lint (shellcheck + shfmt)". A PR can sit un-evidenceable for rounds on a check that has nothing to do with its diff.

How I found it

While resubmitting the tier4-e2e job for PR #4406: bench-submit held on exactly one check, Shell lint, red at head fff4467a8 (Shell workflow run 46172787855, failed 2026-11-28T17:59Z) with the budget line above. The same check on develop's own tips oscillates minutes apart — success at ebb45bb75 2026-12-01T03:00Z, failure at 495c6d31a 2026-12-01T03:14Z — so it is timing, not a code regression.

How important is it

Medium: no product correctness impact, but it randomly blocks CI-green and therefore bench-evidence and merges fleet-wide; every re-run is another ~7 minutes of runner time.

Acceptance criteria

  • tests/os/run.sh clears the lint-sh budget with headroom: a make lint-sh run shows its shellcheck pass well under 120s even under -P 4 load.
  • Develop passes Shell lint on at least three consecutive pushes after the fix.

Possible solutions

  • Apply the budget script's own suggestion: # shellcheck source=/dev/null above the source lines in tests/os/run.sh that follow another linted file (the idiom the rest of the suite already uses), keeping tests/os/run.sh inside its file-budget ceiling.
  • Or give this file an explicit larger budget in scripts/lint/shellcheck-budget.sh — weaker: hides the cost rather than paying it.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions