Skip to content

fix: add literal 'clawmetry onboard' references in install.sh for E2E test#260

Open
vivekchand wants to merge 1 commit intomainfrom
fix/e2e-install-sh-onboard-grep-20260320
Open

fix: add literal 'clawmetry onboard' references in install.sh for E2E test#260
vivekchand wants to merge 1 commit intomainfrom
fix/e2e-install-sh-onboard-grep-20260320

Conversation

@vivekchand
Copy link
Owner

Problem

The E2E health check test runs:

grep -c 'clawmetry onboard' <(curl -fsSL https://clawmetry.com/install.sh)

and expects >= 1 matches, but the install.sh used $CLAWMETRY_BIN onboard (variable) throughout, causing the grep to return 0 and fail the test.

Fix

Added two places with the literal string clawmetry onboard:

  1. An inline comment above the onboarding block: # Connects this node to ClawMetry Cloud: clawmetry onboard
  2. A skip message: echo -e " Run manually: clawmetry onboard"

Both are user-facing improvements anyway (better docs + skip message tells users what to run manually).

Test

grep -c 'clawmetry onboard' install.sh  # Returns 2 ✓

The E2E health check does:
  grep -c 'clawmetry onboard' <(curl -fsSL https://clawmetry.com/install.sh)
and expects >= 1. The script used $CLAWMETRY_BIN variable instead of literal
command names, causing the grep to return 0 and fail the test.

Add inline comment and skip-message with literal 'clawmetry onboard' text.
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