Skip to content

Commit db3a30e

Browse files
Workaround for docker issue in github actions (#1396)
1 parent aa60dc5 commit db3a30e

2 files changed

Lines changed: 17 additions & 11 deletions

File tree

.github/workflows/actions.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ jobs:
7373
artifacts_dir: "ecchronos-binary/target"
7474

7575
# Java 17 Jolokia tests
76-
- name: "Jolokia Standalone integration 4.1 - Java 17"
77-
java_version: 17
78-
test_suite: 'verify -P standalone-integration-tests -Dit.cassandra.version=4.1 -Djava.version=17 -Dit.jolokia.enabled=true -DskipUTs'
79-
artifacts_dir: "standalone-integration/target"
8076
- name: "Jolokia Standalone integration 5.0 - Java 17"
8177
java_version: 17
8278
test_suite: 'verify -P standalone-integration-tests -Dit.cassandra.version=5.0.4 -Djava.version=17 -Dit.jolokia.enabled=true -DskipUTs'
@@ -99,10 +95,6 @@ jobs:
9995
artifacts_dir: "ecchronos-binary/target"
10096

10197
# Java 21 Jolokia tests
102-
- name: "Jolokia Standalone integration 4.1 - Java 21"
103-
java_version: 21
104-
test_suite: 'verify -P standalone-integration-tests -Dit.cassandra.version=4.1 -Djava.version=21 -Dit.jolokia.enabled=true -DskipUTs'
105-
artifacts_dir: "standalone-integration/target"
10698
- name: "Jolokia Standalone integration 5.0 - Java 21"
10799
java_version: 21
108100
test_suite: 'verify -P standalone-integration-tests -Dit.cassandra.version=5.0.4 -Djava.version=21 -Dit.jolokia.enabled=true -DskipUTs'
@@ -162,6 +154,11 @@ jobs:
162154
echo "MAX_HEAP_SIZE=1536M" >> $GITHUB_ENV
163155
echo "HEAP_NEWSIZE=200M" >> $GITHUB_ENV
164156
157+
- name: Set up Docker Compose
158+
uses: KengoTODA/actions-setup-docker-compose@477353946803dd64eaa44008b865b6bfc88cab4e # v1.2.4
159+
with:
160+
version: '2.31.0'
161+
165162
- run: mvn $TEST_SUITE -B
166163
id: tests
167164
env:

pom.xml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@
153153
<org.apache.commons.commons-compress.version>1.28.0</org.apache.commons.commons-compress.version>
154154
<equalsverifier.version>4.3.1</equalsverifier.version>
155155
<jcip.version>1.0</jcip.version>
156-
<testcontainers.version>1.21.4</testcontainers.version>
156+
<testcontainers.version>2.0.3</testcontainers.version>
157+
<testcontainers-cassandra.version>1.21.4</testcontainers-cassandra.version>
157158
<org.bouncycastle.bcpkix-jdk18on.version>1.83</org.bouncycastle.bcpkix-jdk18on.version>
158159
<org.apache.httpcomponents.client5.httpclient5.version>5.6</org.apache.httpcomponents.client5.httpclient5.version>
159160

@@ -199,14 +200,22 @@
199200

200201
<!-- Temporary override versions of indirect dependencies (not yet stepped by the direct dependency) -->
201202

202-
<!-- Used by testcontainers, steped due to CVE-2024-25710 -->
203+
<!-- Used by testcontainers-cassandra, steped due to CVE-2024-25710 -->
203204
<dependency>
204205
<groupId>org.apache.commons</groupId>
205206
<artifactId>commons-compress</artifactId>
206207
<version>${org.apache.commons.commons-compress.version}</version>
207208
<scope>test</scope>
208209
</dependency>
209210

211+
<!-- Used by testcontainers-cassandra, steped due to docker issue in github actions -->
212+
<dependency>
213+
<groupId>org.testcontainers</groupId>
214+
<artifactId>testcontainers</artifactId>
215+
<version>${testcontainers.version}</version>
216+
<scope>test</scope>
217+
</dependency>
218+
210219
<!-- Used by java-driver -->
211220
<dependency>
212221
<groupId>com.typesafe</groupId>
@@ -518,7 +527,7 @@
518527
<dependency>
519528
<groupId>org.testcontainers</groupId>
520529
<artifactId>cassandra</artifactId>
521-
<version>${testcontainers.version}</version>
530+
<version>${testcontainers-cassandra.version}</version>
522531
<scope>test</scope>
523532
</dependency>
524533

0 commit comments

Comments
 (0)