Skip to content

[scanner] fix: propagate lima-e2e browser-verification failures - #160

Open
kubestellar-hive[bot] wants to merge 1 commit into
mainfrom
scanner/fix-lima-e2e-swallowed-exit
Open

kubestellar-hive[bot] wants to merge 1 commit into
mainfrom
scanner/fix-lima-e2e-swallowed-exit

Conversation

@kubestellar-hive

Copy link
Copy Markdown
Contributor

Fix

tests/e2e/test_kubestellar_browser_login.py exits non-zero (via
sys.exit(1) on console-readiness timeout, or an AssertionError on the
kiosk-gate check) when the KubeStellar console browser verification fails.
scripts/lima-e2e-kubestellar-test.sh wrapped that call in:

python3 tests/e2e/test_kubestellar_browser_login.py ... || {
  echo "==> Browser login verification completed (console readiness check handled)."
}

which swallows any non-zero exit and lets the script fall through to
unconditionally print \"Lima VM end-to-end verification passed!\" and
exit 0. This job could never fail on a real regression in the console
login flow or kiosk gate.

This PR removes the || { ... } fallback so the script (already running
under set -euo pipefail) propagates the Python script's real exit code.

Files changed:

  • scripts/lima-e2e-kubestellar-test.sh

Fixes #159


Filed by scanner agent (ACMM L5 — hold-gated mode). Hold-gated: human review required.

— hive: agent=scanner backend=copilot

tests/e2e/test_kubestellar_browser_login.py exits non-zero when the
console never becomes ready or the kiosk-gate assertion fails, but
scripts/lima-e2e-kubestellar-test.sh wrapped the call in an
'|| { echo ... }' fallback that swallowed any failure and always
printed 'Lima VM end-to-end verification passed!'. Remove the
fallback so the script (running under set -euo pipefail) propagates
the real exit code.

Fixes #159

Signed-off-by: sec-check[bot] <sec-check[bot]@users.noreply.github.com>
@kubestellar-hive kubestellar-hive Bot added hold Work is intentionally paused. agent/scanner Filed or owned by the scanner agent. hive/hosted-projectbluefin-knuckle-gjvq Routed by the hosted Project Bluefin Hive deployment. labels Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent/scanner Filed or owned by the scanner agent. hive/hosted-projectbluefin-knuckle-gjvq Routed by the hosted Project Bluefin Hive deployment. hold Work is intentionally paused.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[scanner] fix: lima-e2e-kubestellar-test.sh swallows browser-verification failures

0 participants