From 540741c8e59ec176479266bbfd12068767a4da02 Mon Sep 17 00:00:00 2001 From: LangChain4j Date: Mon, 24 Jul 2023 19:52:30 +0200 Subject: [PATCH] Temporarily disabled in-process embedding model tests (#48) We are out of free Git LFS quota --- .github/workflows/main.yaml | 5 ----- .../embedding/ALL_MINILM_L6_V2_Q_EmbeddingModelTest.java | 2 ++ .../model/embedding/ALL_MINILM_L6_V2_EmbeddingModelTest.java | 2 ++ .../model/embedding/E5_SMALL_V2_Q_EmbeddingModelTest.java | 2 ++ .../model/embedding/E5_SMALL_V2_EmbeddingModelTest.java | 2 ++ 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index d9efb6abb3d..1fc34c9fb9c 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -7,16 +7,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - - name: Pull LFS files - run: git lfs pull - - name: Set up JDK 8 uses: actions/setup-java@v3 with: java-version: '8' distribution: 'temurin' - - name: Test run: mvn --batch-mode test diff --git a/langchain4j-embeddings-all-minilm-l6-v2-q/src/test/java/dev/langchain4j/model/embedding/ALL_MINILM_L6_V2_Q_EmbeddingModelTest.java b/langchain4j-embeddings-all-minilm-l6-v2-q/src/test/java/dev/langchain4j/model/embedding/ALL_MINILM_L6_V2_Q_EmbeddingModelTest.java index 032cc76c3af..5bf93f51e6c 100644 --- a/langchain4j-embeddings-all-minilm-l6-v2-q/src/test/java/dev/langchain4j/model/embedding/ALL_MINILM_L6_V2_Q_EmbeddingModelTest.java +++ b/langchain4j-embeddings-all-minilm-l6-v2-q/src/test/java/dev/langchain4j/model/embedding/ALL_MINILM_L6_V2_Q_EmbeddingModelTest.java @@ -1,6 +1,7 @@ package dev.langchain4j.model.embedding; import dev.langchain4j.data.embedding.Embedding; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -8,6 +9,7 @@ class ALL_MINILM_L6_V2_Q_EmbeddingModelTest { @Test + @Disabled("Temporary disabling. This test should run only when this or used (e.g. langchain4j-embeddings) module(s) change") void should_embed() { EmbeddingModel model = new ALL_MINILM_L6_V2_Q_EmbeddingModel(); diff --git a/langchain4j-embeddings-all-minilm-l6-v2/src/test/java/dev/langchain4j/model/embedding/ALL_MINILM_L6_V2_EmbeddingModelTest.java b/langchain4j-embeddings-all-minilm-l6-v2/src/test/java/dev/langchain4j/model/embedding/ALL_MINILM_L6_V2_EmbeddingModelTest.java index cb3f8976be9..8cb2c355059 100644 --- a/langchain4j-embeddings-all-minilm-l6-v2/src/test/java/dev/langchain4j/model/embedding/ALL_MINILM_L6_V2_EmbeddingModelTest.java +++ b/langchain4j-embeddings-all-minilm-l6-v2/src/test/java/dev/langchain4j/model/embedding/ALL_MINILM_L6_V2_EmbeddingModelTest.java @@ -1,6 +1,7 @@ package dev.langchain4j.model.embedding; import dev.langchain4j.data.embedding.Embedding; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -8,6 +9,7 @@ class ALL_MINILM_L6_V2_EmbeddingModelTest { @Test + @Disabled("Temporary disabling. This test should run only when this or used (e.g. langchain4j-embeddings) module(s) change") void should_embed() { EmbeddingModel model = new ALL_MINILM_L6_V2_EmbeddingModel(); diff --git a/langchain4j-embeddings-e5-small-v2-q/src/test/java/dev/langchain4j/model/embedding/E5_SMALL_V2_Q_EmbeddingModelTest.java b/langchain4j-embeddings-e5-small-v2-q/src/test/java/dev/langchain4j/model/embedding/E5_SMALL_V2_Q_EmbeddingModelTest.java index 45fcf64e81c..ac9c4ffcd32 100644 --- a/langchain4j-embeddings-e5-small-v2-q/src/test/java/dev/langchain4j/model/embedding/E5_SMALL_V2_Q_EmbeddingModelTest.java +++ b/langchain4j-embeddings-e5-small-v2-q/src/test/java/dev/langchain4j/model/embedding/E5_SMALL_V2_Q_EmbeddingModelTest.java @@ -1,6 +1,7 @@ package dev.langchain4j.model.embedding; import dev.langchain4j.data.embedding.Embedding; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -8,6 +9,7 @@ class E5_SMALL_V2_Q_EmbeddingModelTest { @Test + @Disabled("Temporary disabling. This test should run only when this or used (e.g. langchain4j-embeddings) module(s) change") void should_embed() { EmbeddingModel model = new E5_SMALL_V2_Q_EmbeddingModel(); diff --git a/langchain4j-embeddings-e5-small-v2/src/test/java/dev/langchain4j/model/embedding/E5_SMALL_V2_EmbeddingModelTest.java b/langchain4j-embeddings-e5-small-v2/src/test/java/dev/langchain4j/model/embedding/E5_SMALL_V2_EmbeddingModelTest.java index 302e0acec56..28589c8fc44 100644 --- a/langchain4j-embeddings-e5-small-v2/src/test/java/dev/langchain4j/model/embedding/E5_SMALL_V2_EmbeddingModelTest.java +++ b/langchain4j-embeddings-e5-small-v2/src/test/java/dev/langchain4j/model/embedding/E5_SMALL_V2_EmbeddingModelTest.java @@ -1,6 +1,7 @@ package dev.langchain4j.model.embedding; import dev.langchain4j.data.embedding.Embedding; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -8,6 +9,7 @@ class E5_SMALL_V2_EmbeddingModelTest { @Test + @Disabled("Temporary disabling. This test should run only when this or used (e.g. langchain4j-embeddings) module(s) change") void should_embed() { EmbeddingModel model = new E5_SMALL_V2_EmbeddingModel();