feat: extract helpers (#109)

This commit is contained in:
Julian Sommer
2026-04-02 09:25:01 +10:00
committed by GitHub
parent 0c160d7f45
commit 1d6cefd9d2
53 changed files with 572 additions and 3679 deletions
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -5,7 +5,7 @@ set -euo pipefail
# Usage: scripts/check-coverage.sh <coverprofile> [quiet]
PROFILE="${1:?Usage: check-coverage.sh <coverprofile> [quiet]}"
MIN=60.0
MIN=65.0
QUIET="${2:-}"
if [[ ! -s "$PROFILE" ]]; then
-1
View File
@@ -3,7 +3,6 @@
# Spinifex Development Dependencies Setup Script
# This script clones Viperblock and Predastore repositories for cross-repo development
# TODO: Improve, remove CLAUDE readme reference, simplify next-steps
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-20
View File
@@ -1,20 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
# Run Go tests with coverage and report total code coverage.
COVERPROFILE=$(mktemp /tmp/spinifex-coverage-XXXXXX.out)
trap 'rm -f "$COVERPROFILE"' EXIT
echo "Running tests with coverage..."
echo ""
LOG_IGNORE=1 go test -timeout 120s -coverprofile="$COVERPROFILE" -covermode=atomic ./spinifex/... 2>&1
if [[ ! -s "$COVERPROFILE" ]]; then
echo "No coverage data collected."
exit 1
fi
echo ""
echo "=== Total ==="
go tool cover -func="$COVERPROFILE" | awk '/^total:/ { print $NF }'
+1 -1
View File
@@ -12,7 +12,7 @@ set -euo pipefail
PROFILE=""
BASE_REF=""
THRESHOLD=60
THRESHOLD=65
QUIET="${QUIET:-}"
while [[ $# -gt 0 ]]; do
-3
View File
@@ -1,3 +0,0 @@
#!/bin/sh
SPINIFEX_CONFIG_PATH=~/node1/config/nats/nats.conf ./bin/spx service nats start