Skip to content

Add macOS smoke test for install.sh#198

Merged
Aradhya-Tripathi merged 2 commits into
mainfrom
test/install-sh-macos-smoke
Jul 14, 2026
Merged

Add macOS smoke test for install.sh#198
Aradhya-Tripathi merged 2 commits into
mainfrom
test/install-sh-macos-smoke

Conversation

@Aradhya-Tripathi

Copy link
Copy Markdown
Collaborator

Summary

  • Adds scripts/smoke_install_macos.sh, which runs install.sh directly on a macOS host and checks that bench, the admin venv, node, git and brew all end up installed.
  • Adds a smoke-macos job to install-smoke.yml, running on macos-14.
  • macOS has no container runtime to isolate this in like the Linux distro matrix does, so it runs straight on the (ephemeral) CI runner instead — same as the Linux path, it installs real packages (Homebrew, MariaDB, PostgreSQL, Node) rather than mocking anything.

This gives the macOS install path (#197) CI coverage for the first time.

Test plan

  • shellcheck scripts/smoke_install_macos.sh
  • shellcheck -s sh install.sh
  • CI: smoke-macos job passes on macos-14

Adds scripts/smoke_install_macos.sh and a smoke-macos job in
install-smoke.yml, running on macos-14 directly (no container runtime
available for macOS, unlike the Linux distro matrix) since the macOS
path (PR #197) has no CI coverage yet — it installs Homebrew, git,
python3, MariaDB, PostgreSQL and Node for real, then asserts bench,
the admin venv, node and git are all in place.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The change adds a new CI job and shell script; no existing behavior is modified.

Both files are additive only. The smoke script correctly handles the detached-HEAD CI limitation, has a proper trap-based cleanup, and its assertions mirror the Linux counterpart. No production code is touched.

No files require special attention.

Reviews (2): Last reviewed commit: "fix: smoke_install_macos.sh doesn't reso..." | Re-trigger Greptile

Comment thread scripts/smoke_install_macos.sh Outdated
…ed HEAD

actions/checkout@v4 leaves the repo in detached HEAD, so `git rev-parse
--abbrev-ref HEAD` returned the literal string "HEAD" rather than a
branch, which install.sh would then pass straight to `git clone
--branch HEAD` and fail. Snapshot the working tree into a throwaway
git repo on a hardcoded "main" branch instead, matching how
scripts/smoke_install.sh already handles this for the Linux matrix —
this also means uncommitted changes get exercised, not just what's
been pushed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Aradhya-Tripathi
Aradhya-Tripathi merged commit 6269b24 into main Jul 14, 2026
10 of 11 checks passed
tanmoysrt pushed a commit to tanmoysrt/bench-cli that referenced this pull request Jul 18, 2026
@tanmoysrt
tanmoysrt deleted the test/install-sh-macos-smoke branch July 19, 2026 09:24
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