From 1e11d667da086145c88ea652816cf5ac9e2a8cbd Mon Sep 17 00:00:00 2001 From: Hector Ventura Date: Wed, 4 Nov 2026 00:38:43 -0600 Subject: [PATCH] ci: stop claiming the smoke test proves what --no-emoji does Piped output is already plain and version prints no glyphs, so the ASCII check could not fail. Keep the parse check; ErgonomicsTest covers the behaviour. Addresses the review of #72. Signed-off-by: Hector Ventura --- .github/scripts/smoke.sh | 8 ++------ CONTRIBUTING.md | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/scripts/smoke.sh b/.github/scripts/smoke.sh index e6ad12d..8683ab2 100755 --- a/.github/scripts/smoke.sh +++ b/.github/scripts/smoke.sh @@ -41,17 +41,13 @@ require_output() { fi } -# Exercise the shorthand and the plain-marks option through the shipped binary. +# The shorthand and the plain-marks flag parse in the shipped binary. What --no-emoji does cannot +# be seen here: piped output is already plain. ErgonomicsTest covers that. reported=$("$bin" version --json --no-emoji | tr -d ' \r\n') case "$reported" in *'"cli":'*) ;; *) echo "::error::version --json did not return a version object: $reported"; exit 1 ;; esac -"$bin" version --no-emoji > "$work/plain" -if LC_ALL=C grep -q '[^ -~[:space:]]' "$work/plain"; then - echo "::error::version --no-emoji contains non-ASCII marks" - exit 1 -fi "$bin" completion bash > "$work/completion" [ -s "$work/completion" ] || { echo "::error::completion bash printed nothing"; exit 1; } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fa6a0fd..ff71f35 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -39,7 +39,7 @@ mvn package -Pnative -DskipTests # native binary → target/floci (requires ``` The native CI and release jobs run `.github/scripts/smoke.sh ./target/floci`. It checks -completion, rejected input, JSON/plain/YAML output, profile create/edit/read/delete, reset's +completion, rejected input, JSON and YAML output, profile create/edit/read/delete, reset's confirmation guard and Compose validation with YAML anchors and merge keys. It needs no emulator or Docker daemon. It skips profile edit on Windows. Run it after building the native binary when changing these paths.