Skip to content

Commit 95cc73a

Browse files
authored
fix(ci): make LSP test run on CI (#2)
* fix: fix LSP tests failure in CI fix: fix LSP tests fix: use local compose CLI fix: properly reference websocket endpoint refactor: make WS path static value chore: increase timeout duration fix: use unique file names for each completion request fix: try reconnect in connection probe for LSP tests feat: re-use same container among all LSP tests fix: make `testcontainer` run in own container testcontiner uses `docker-compose` APIs which aren't present in github actions runners. This fix should let testcontainer run in its environment without depending on host's APIs version. chore: log build info fix: try track lfs chore: remove extra logging in build task chore: ensure `netcat` installed in container `netcat` is used by testcontainer in order to assess port availability chore: enable logging in building task chore: remove aarch64 lsp version chore: use LSP for linux-x64 # Conflicts: # completions/src/main/kotlin/completions/configuration/WebSocketConfiguration.kt # completions/src/test/kotlin/lsp/LspClientTest.kt # completions/src/test/kotlin/lsp/LspCompletionProviderTest.kt # completions/src/test/kotlin/lsp/ws/KotlinLspProxyWSTest.kt * chore: remove logging when for build workflow
1 parent a477ed8 commit 95cc73a

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
* text=auto eol=lf
2-
completions/src/test/resources/lsp/server/intellij-lsp-253.26284.0-linux-aarch64.zip filter=lfs diff=lfs merge=lfs -text
2+
completions/src/test/resources/lsp/server/intellij-lsp-253.27396.0-linux-x64.zip filter=lfs diff=lfs merge=lfs -text

.github/workflows/gradle.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v4
24+
with:
25+
lfs: true
2426
- name: Set up JDK 17
2527
uses: actions/setup-java@v4
2628
with:

completions/src/test/resources/lsp/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM gradle:9-jdk-21-and-24
22

3-
RUN apt-get update && apt-get install -y curl zip unzip bash \
3+
RUN apt-get update && apt-get install -y curl zip unzip bash netcat-openbsd \
44
&& rm -rf /var/lib/apt/lists/*
55

66
COPY lsp-users-projects-root-test/ /lsp-users-projects-root-test/
77
WORKDIR /lsp
8-
ARG LSP_ZIP=intellij-lsp-253.26284.0-linux-aarch64.zip
8+
ARG LSP_ZIP=intellij-lsp-253.27396.0-linux-x64.zip
99
COPY server/${LSP_ZIP} .
1010
RUN unzip ${LSP_ZIP} \
1111
&& rm ${LSP_ZIP} \

completions/src/test/resources/lsp/server/intellij-lsp-253.26284.0-linux-aarch64.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:a2db1874f4e6ee470b7d80369cf5aeeecd56703bf3010df48a36546e29388f8b
3+
size 649315294

0 commit comments

Comments
 (0)