test(guardrails): consolidate growth checks in Vitest (#9354) #1
Annotations
5 errors and 2 warnings
|
Run full Vitest suite on macOS
Process completed with exit code 1.
|
|
Run full Vitest suite on macOS:
test/e2e/support/lifecycle-user-service.test.ts#L231
Error: Command failed: sh -lc set -eu
if [ "$(uname -s)" = Darwin ] && command -v brew >/dev/null 2>&1 && brew list --formula openshell >/dev/null 2>&1; then
brew info --json=v2 openshell | grep -Eq '"tap"[[:space:]]*:[[:space:]]*"nvidia/openshell"' || exit 1
brew services restart openshell
exit 0
fi
if ! command -v systemctl >/dev/null 2>&1; then exit 75; fi
service=openshell-gateway
if ! systemctl --user cat "$service" >/dev/null 2>&1; then
case "${XDG_CONFIG_HOME:-}" in
/*) config_home="$XDG_CONFIG_HOME" ;;
*) config_home="$HOME/.config" ;;
esac
unit="$config_home/systemd/user/nemoclaw-openshell-gateway.service"
if [ ! -f "$unit" ]; then exit 75; fi
grep -Fxq '# NEMOCLAW_MANAGED_OPENSHELL_GATEWAY=1' "$unit" || exit 75
service=nemoclaw-openshell-gateway
fi
systemctl --user is-enabled "$service" >/dev/null
systemctl --user daemon-reload
systemctl --user restart "$service"
Error: Refusing to load formula nvidia/openshell/openshell from untrusted tap nvidia/openshell.
Run `brew trust --formula nvidia/openshell/openshell` or `brew trust nvidia/openshell` to trust it.
❯ test/e2e/support/lifecycle-user-service.test.ts:231:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '<Buffer(0) ...>', '<Buffer(196) ...>' ], pid: 40778, stdout: '<Buffer(0) ...>', stderr: '<Buffer(196) ...>' }
|
|
Run full Vitest suite on macOS:
test/e2e/support/lifecycle-user-service.test.ts#L101
Error: Command failed: bash -lc set -eu
marker='# NEMOCLAW_MANAGED_OPENSHELL_GATEWAY=1'
result_prefix='NEMOCLAW_E2E_GATEWAY_USER_SERVICE='
installer=$1
if [ "$(uname -s)" != Linux ]; then exit 75; fi
if ! command -v systemctl >/dev/null 2>&1; then exit 75; fi
case "${XDG_CONFIG_HOME:-}" in
/*) config_home="$XDG_CONFIG_HOME" ;;
*) config_home="$HOME/.config" ;;
esac
unit="$config_home/systemd/user/nemoclaw-openshell-gateway.service"
had_marked_unit=0
if [ -f "$unit" ] && grep -Fxq "$marker" "$unit"; then had_marked_unit=1; fi
created=0
cleanup_failed_stage() {
status=$?
trap - EXIT
if [ "$status" -ne 0 ] && [ "$created" -eq 1 ] && [ ! -L "$unit" ] && [ -f "$unit" ] && grep -Fxq "$marker" "$unit"; then
rm -f -- "$unit"
systemctl --user daemon-reload >/dev/null 2>&1 || true
fi
if declare -F _global_cleanup >/dev/null 2>&1; then _global_cleanup; fi
exit "$status"
}
trap cleanup_failed_stage EXIT
if [ ! -f "$installer" ] || [ -L "$installer" ]; then
printf "NemoClaw installer is unavailable: %s\n" "$installer" >&2
exit 1
fi
source "$installer"
trap cleanup_failed_stage EXIT
if [ "$had_marked_unit" -eq 0 ]; then created=1; fi
install_nemoclaw_openshell_gateway_user_service
systemctl --user daemon-reload
if systemctl --user cat openshell-gateway >/dev/null 2>&1; then
printf '%s%s\n' "$result_prefix" upstream
trap - EXIT
exit 0
fi
if [ ! -f "$unit" ] || ! grep -Fxq "$marker" "$unit"; then exit 75; fi
if [ "$had_marked_unit" -eq 0 ]; then outcome=staged; else outcome=existing; fi
systemctl --user enable nemoclaw-openshell-gateway >/dev/null
printf '%s%s\n' "$result_prefix" "$outcome"
trap - EXIT stage-service /Users/runner/work/NemoClaw/NemoClaw/scripts/install.sh
❯ test/e2e/support/lifecycle-user-service.test.ts:101:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 75, signal: null, output: [ null, '', '' ], pid: 40741, stdout: '', stderr: '' }
|
|
Run full Vitest suite on macOS:
test/e2e/support/lifecycle-user-service.test.ts#L54
Error: Command failed: bash -lc set -eu
marker='# NEMOCLAW_MANAGED_OPENSHELL_GATEWAY=1'
result_prefix='NEMOCLAW_E2E_GATEWAY_USER_SERVICE='
installer=$1
if [ "$(uname -s)" != Linux ]; then exit 75; fi
if ! command -v systemctl >/dev/null 2>&1; then exit 75; fi
case "${XDG_CONFIG_HOME:-}" in
/*) config_home="$XDG_CONFIG_HOME" ;;
*) config_home="$HOME/.config" ;;
esac
unit="$config_home/systemd/user/nemoclaw-openshell-gateway.service"
had_marked_unit=0
if [ -f "$unit" ] && grep -Fxq "$marker" "$unit"; then had_marked_unit=1; fi
created=0
cleanup_failed_stage() {
status=$?
trap - EXIT
if [ "$status" -ne 0 ] && [ "$created" -eq 1 ] && [ ! -L "$unit" ] && [ -f "$unit" ] && grep -Fxq "$marker" "$unit"; then
rm -f -- "$unit"
systemctl --user daemon-reload >/dev/null 2>&1 || true
fi
if declare -F _global_cleanup >/dev/null 2>&1; then _global_cleanup; fi
exit "$status"
}
trap cleanup_failed_stage EXIT
if [ ! -f "$installer" ] || [ -L "$installer" ]; then
printf "NemoClaw installer is unavailable: %s\n" "$installer" >&2
exit 1
fi
source "$installer"
trap cleanup_failed_stage EXIT
if [ "$had_marked_unit" -eq 0 ]; then created=1; fi
install_nemoclaw_openshell_gateway_user_service
systemctl --user daemon-reload
if systemctl --user cat openshell-gateway >/dev/null 2>&1; then
printf '%s%s\n' "$result_prefix" upstream
trap - EXIT
exit 0
fi
if [ ! -f "$unit" ] || ! grep -Fxq "$marker" "$unit"; then exit 75; fi
if [ "$had_marked_unit" -eq 0 ]; then outcome=staged; else outcome=existing; fi
systemctl --user enable nemoclaw-openshell-gateway >/dev/null
printf '%s%s\n' "$result_prefix" "$outcome"
trap - EXIT stage-service /Users/runner/work/NemoClaw/NemoClaw/scripts/install.sh
❯ test/e2e/support/lifecycle-user-service.test.ts:54:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 75, signal: null, output: [ null, '', '' ], pid: 40728, stdout: '', stderr: '' }
|
|
Run full Vitest suite on macOS
E2E_LARGER_RUNNER_LABEL must be a 1-64 character workflow label using letters, digits, dots, underscores, or hyphens
|
|
Install pinned OpenShell
The following taps are not trusted:
aws/tap
Homebrew is currently ignoring formulae, casks and commands from these taps because tap trust is required.
Untap them with:
brew untap aws/tap
Trust specific formulae, casks and commands with:
brew trust --formula <user>/<tap>/<formula>
brew trust --cask <user>/<tap>/<cask>
brew trust --command <user>/<tap>/<command>
Whole-tap trust is broader and includes all current and future formulae,
casks and commands from the listed taps. Trust whole taps with:
brew trust aws/tap
To disable trust checks:
export HOMEBREW_NO_REQUIRE_TAP_TRUST=1
This is not recommended and will be removed in a later release.
For more information, see:
https://docs.brew.sh/Tap-Trust
|
|
Install macOS test dependencies
The following taps are not trusted:
aws/tap
Homebrew is currently ignoring formulae, casks and commands from these taps because tap trust is required.
Untap them with:
brew untap aws/tap
Trust specific formulae, casks and commands with:
brew trust --formula <user>/<tap>/<formula>
brew trust --cask <user>/<tap>/<cask>
brew trust --command <user>/<tap>/<command>
Whole-tap trust is broader and includes all current and future formulae,
casks and commands from the listed taps. Trust whole taps with:
brew trust aws/tap
To disable trust checks:
export HOMEBREW_NO_REQUIRE_TAP_TRUST=1
This is not recommended and will be removed in a later release.
For more information, see:
https://docs.brew.sh/Tap-Trust
|
background
wait
wait-all
cancel
parallel
Loading