Skip to content

Python lints lane green again: portable bash shebang in the remote-lifecycle test fixture - #127265

Merged
kshitijk4poor merged 1 commit into
mainfrom
fix/remote-lifecycle-test-portable-shebang
Sep 29, 2026
Merged

kshitijk4poor merged 1 commit into
mainfrom
fix/remote-lifecycle-test-portable-shebang

Conversation

@teknium1

Copy link
Copy Markdown
Collaborator

Main's Python lints / Windows footguns (blocking) lane is red on every PR since scripts/check_bash_shebangs.py landed (#126164, Sep 28): apps/desktop/electron/remote-lifecycle.test.ts:813 writes a throwaway launcher fixture with #!/bin/bash.

  • One-line change: the fixture's shebang becomes #!/usr/bin/env bash (the test only needs a bash that resolves on PATH; nothing else in the test reads the shebang).
  • python scripts/check_bash_shebangs.py on this branch: Bash shebang check: 0 violation(s).

Seen on #127258 and #127245 (disjoint diffs, same red), which brackets the breakage to main between the two lints landing. No infographic: one-line CI unbreak.

…cher fixture

scripts/check_bash_shebangs.py (landed on main in #126164) now fails the Python lints
lane for every PR: remote-lifecycle.test.ts writes a throwaway launcher script with
`#!/bin/bash`. Use `#!/usr/bin/env bash` like every other script; the fixture only
needs a bash that resolves on PATH.
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

૮ >ﻌ< ა ci review

ran on f6c9464 — fix(desktop): portable bash shebang in the remote-lifecycle

all good!

@alt-glitch alt-glitch added type/test Test coverage or test infrastructure P3 Low — cosmetic, nice to have comp/desktop Electron desktop app (apps/desktop/*) sweeper:risk-automation Sweeper risk: may affect CI, automerge, label sync, or maintainer automation duplicate This issue or pull request already exists labels Sep 29, 2026
@helix4u

helix4u commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Reviewed the one-line change. This Linux-only test just needs Bash to launch its temporary fixture, so #!/usr/bin/env bash preserves what the test exercises and clears the repo-wide shebang check. Checks are green on this head. Looks good to me.

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

Labels

comp/desktop Electron desktop app (apps/desktop/*) duplicate This issue or pull request already exists P3 Low — cosmetic, nice to have sweeper:risk-automation Sweeper risk: may affect CI, automerge, label sync, or maintainer automation type/test Test coverage or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants