From 9d6e782bb14529b64524a0ce228e8fcc2d100cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Fri, 20 Oct 2023 16:31:45 +0200 Subject: [PATCH] improve CLI E2E test --- bin/langstream | 2 +- dev/cli-post-release-tests.sh | 3 +++ .../src/test/java/ai/langstream/tests/cli/CLIDockerRunIT.java | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/langstream b/bin/langstream index 34f2b9a62..6b4dbe0c7 100755 --- a/bin/langstream +++ b/bin/langstream @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -set -ex +set -e # need this for relative symlinks PRG="$0" diff --git a/dev/cli-post-release-tests.sh b/dev/cli-post-release-tests.sh index dd65d15c8..be8ac298b 100755 --- a/dev/cli-post-release-tests.sh +++ b/dev/cli-post-release-tests.sh @@ -28,5 +28,8 @@ langstream -V langstream -V | grep $version langstream -h | grep "Usage: langstream" +# pull before otherwise the test will timeout +docker pull ghcr.io/langstream/langstream-runtime-tester:$version + ./mvnw -ntp install -pl langstream-e2e-tests -am -DskipTests -Dspotless.skip -Dlicense.skip ./mvnw -ntp verify -pl langstream-e2e-tests -De2eTests -Dgroups="cli" \ No newline at end of file diff --git a/langstream-e2e-tests/src/test/java/ai/langstream/tests/cli/CLIDockerRunIT.java b/langstream-e2e-tests/src/test/java/ai/langstream/tests/cli/CLIDockerRunIT.java index 57827bc13..7e3f9ebd9 100644 --- a/langstream-e2e-tests/src/test/java/ai/langstream/tests/cli/CLIDockerRunIT.java +++ b/langstream-e2e-tests/src/test/java/ai/langstream/tests/cli/CLIDockerRunIT.java @@ -110,8 +110,6 @@ private static CompletableFuture runCli(String args) { @SneakyThrows private static CompletableFuture runCli(String args, Map env) { final List allArgs = new ArrayList<>(); - allArgs.add("echo"); - allArgs.add("starting!!!"); if (env != null) { String beforeCmd = env.entrySet().stream()