Skip to content

Commit 6383df1

Browse files
author
Tim Middleton
authored
Add streaming tests (#121)
1 parent b2d2307 commit 6383df1

12 files changed

+442
-25
lines changed

.github/workflows/examples-jakarta-v1.2.2.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
coherenceVersion:
24-
- 24.09.3
2524
- 25.03
26-
- 25.03.1-SNAPSHOT
25+
- 25.03.1
26+
- 25.03.2-SNAPSHOT
2727
go-version:
28-
- 1.19.x
29-
- 1.20.x
3028
- 1.21.x
3129
- 1.22.x
3230
- 1.23.x

.github/workflows/examples-jakarta.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
coherenceVersion:
23-
- 24.09.3
24-
- 25.03
25-
- 25.03.1-SNAPSHOT
23+
- 25.03.1
24+
- 25.03.2-SNAPSHOT
2625
go-version:
2726
- 1.23.x
2827
- 1.24.x

.github/workflows/examples-v1.2.2.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
coherenceVersion:
24-
- 22.06.12-SNAPSHOT
25-
- 22.06.11
24+
- 22.06.13-SNAPSHOT
25+
- 22.06.12
2626
go-version:
27-
- 1.19.x
28-
- 1.20.x
2927
- 1.21.x
3028
- 1.22.x
3129
- 1.23.x

.github/workflows/examples.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
coherenceVersion:
23-
- 22.06.12-SNAPSHOT
24-
- 22.06.11
25-
- 14.1.2-0-1
26-
- 14.1.2-0-2-SNAPSHOT
23+
- 22.06.13-SNAPSHOT
24+
- 22.06.12
25+
- 14.1.2-0-2
26+
- 14.1.2-0-3-SNAPSHOT
2727
go-version:
2828
- 1.23.x
2929
- 1.24.x

.github/workflows/resolver-clusters-compatability-tests.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
coherenceVersion:
23-
- 22.06.11
24-
- 24.09.3
25-
- 25.03
26-
- 14.1.2-0-1
23+
- 22.06.12
24+
- 25.03.1
25+
- 14.1.2-0-2
2726
go-version:
2827
- 1.23.x
2928
- 1.24.x

.github/workflows/resolver-compatability-tests.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
coherenceVersion:
23-
- 22.06.11
24-
- 24.09.3
25-
- 25.03
26-
- 14.1.2-0-1
23+
- 22.06.12
24+
- 25.03.1
25+
- 14.1.2-0-2
2726
go-version:
2827
- 1.23.x
2928
- 1.24.x
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Copyright 2025 Oracle Corporation and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at
3+
# https://oss.oracle.com/licenses/upl.
4+
5+
# ---------------------------------------------------------------------------
6+
# Coherence Go Client GitHub Actions test streaming against v23.03+
7+
# ---------------------------------------------------------------------------
8+
name: CI-Examples Jakarta
9+
10+
on:
11+
workflow_dispatch:
12+
push:
13+
branches:
14+
- '*'
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-22.04
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
coherenceVersion:
23+
- 25.03.1
24+
- 25.03.2-SNAPSHOT
25+
go-version:
26+
- 1.23.x
27+
- 1.24.x
28+
29+
# Checkout the source, we need a depth of zero to fetch all of the history otherwise
30+
# the copyright check cannot work out the date of the files from Git.
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0
35+
36+
- name: Get Docker Images
37+
shell: bash
38+
run: |
39+
docker pull gcr.io/distroless/java17-debian12
40+
uname -a
41+
42+
- name: Set up JDK
43+
uses: actions/setup-java@v4
44+
with:
45+
java-version: '17'
46+
distribution: 'zulu'
47+
48+
- name: Cache Go Modules
49+
uses: actions/cache@v4
50+
with:
51+
path: ~/go/pkg/mod
52+
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
53+
restore-keys: |
54+
${{ runner.os }}-go-mods-
55+
56+
- name: Cache Maven packages
57+
uses: actions/cache@v4
58+
with:
59+
path: ~/.m2
60+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
61+
restore-keys: ${{ runner.os }}-m2
62+
63+
- name: Set up Go
64+
uses: actions/setup-go@v5
65+
with:
66+
go-version: '${{ matrix.go-version }}'
67+
68+
- name: Verify Examples
69+
shell: bash
70+
run: |
71+
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
72+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17-debian12 COHERENCE_VERSION=${{ matrix.coherenceVersion }} PROFILES=,jakarta,-javax make clean generate-proto generate-proto-v1 build-test-images test-cluster-startup test-e2e-streaming
73+
make test-cluster-shutdown || true
74+
75+
- uses: actions/upload-artifact@v4
76+
if: failure()
77+
with:
78+
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
79+
path: build/_output/test-logs

.github/workflows/streaming.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Copyright 2025 Oracle Corporation and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at
3+
# https://oss.oracle.com/licenses/upl.
4+
5+
# ---------------------------------------------------------------------------
6+
# Coherence Go Client GitHub Actions test streaming against v22.06 versions
7+
# ---------------------------------------------------------------------------
8+
name: CI-Streaming v22.06
9+
10+
on:
11+
workflow_dispatch:
12+
push:
13+
branches:
14+
- '*'
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-22.04
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
coherenceVersion:
23+
- 22.06.13-SNAPSHOT
24+
- 22.06.12
25+
- 14.1.2-0-2
26+
- 14.1.2-0-3-SNAPSHOT
27+
go-version:
28+
- 1.23.x
29+
- 1.24.x
30+
31+
# Checkout the source, we need a depth of zero to fetch all of the history otherwise
32+
# the copyright check cannot work out the date of the files from Git.
33+
steps:
34+
- uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 0
37+
38+
- name: Get Docker Images
39+
shell: bash
40+
run: |
41+
docker pull gcr.io/distroless/java17-debian12
42+
43+
- name: Set up JDK
44+
uses: actions/setup-java@v4
45+
with:
46+
java-version: '17'
47+
distribution: 'zulu'
48+
49+
- name: Cache Go Modules
50+
uses: actions/cache@v4
51+
with:
52+
path: ~/go/pkg/mod
53+
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
54+
restore-keys: |
55+
${{ runner.os }}-go-mods-
56+
57+
- name: Cache Maven packages
58+
uses: actions/cache@v4
59+
with:
60+
path: ~/.m2
61+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
62+
restore-keys: ${{ runner.os }}-m2
63+
64+
- name: Set up Go
65+
uses: actions/setup-go@v5
66+
with:
67+
go-version: '${{ matrix.go-version }}'
68+
69+
- name: Verify Examples
70+
shell: bash
71+
run: |
72+
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
73+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17-debian12 COHERENCE_VERSION=${{ matrix.coherenceVersion }} PROFILES=,-jakarta,javax make clean generate-proto generate-proto-v1 build-test-images test-cluster-startup test-e2e-streaming
74+
make test-cluster-shutdown || true
75+
76+
- uses: actions/upload-artifact@v4
77+
if: failure()
78+
with:
79+
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
80+
path: build/_output/test-logs

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,14 @@ test-e2e-standalone: test-clean test gotestsum $(BUILD_PROPS) ## Run e2e tests w
284284
-- $(GO_TEST_FLAGS) -v -coverprofile=$(COVERAGE_DIR)/cover-functional.out -v ./test/e2e/standalone/... -coverpkg=github.com/oracle/coherence-go-client/v2/coherence/...
285285
go tool cover -func=$(COVERAGE_DIR)/cover-functional.out | grep -v '0.0%'
286286

287+
# ----------------------------------------------------------------------------------------------------------------------
288+
# Executes the Go streaming tests for standalone Coherence
289+
# ----------------------------------------------------------------------------------------------------------------------
290+
.PHONY: test-e2e-streaming
291+
test-e2e-streaming: test-clean test gotestsum $(BUILD_PROPS) ## Run e2e tests with Coherence
292+
CGO_ENABLED=0 $(GOTESTSUM) --format testname --junitfile $(TEST_LOGS_DIR)/go-streaming-test.xml \
293+
-- $(GO_TEST_FLAGS) -v -coverprofile=$(COVERAGE_DIR)/cover-functional.out -v ./test/e2e/streaming/... -coverpkg=github.com/oracle/coherence-go-client/v2/coherence/...
294+
287295
# ----------------------------------------------------------------------------------------------------------------------
288296
# Executes the Go end to end tests for standalone Coherence with Scope set
289297
# ----------------------------------------------------------------------------------------------------------------------

scripts/run-compat-ce.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ set -e
1515
echo "Coherence CE 22.06.10"
1616
COHERENCE_VERSION=22.06.10 PROFILES=,-jakarta,javax make clean generate-proto build-test-images test-e2e-standalone
1717

18-
echo "Coherence CE 14.1.2-0-0"
19-
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17-debian12 COHERENCE_VERSION=14.1.2-0-0 PROFILES=,-jakarta,javax make clean generate-proto build-test-images test-e2e-standalone
18+
echo "Coherence CE 14.1.2-0-2"
19+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17-debian12 COHERENCE_VERSION=14.1.2-0-2 PROFILES=,-jakarta,javax make clean generate-proto build-test-images test-e2e-standalone
20+
21+
echo "Coherence CE 14.1.2-0-2 Streaming"
22+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17-debian12 COHERENCE_VERSION=14.1.2-0-2 PROFILES=,-jakarta,javax make clean generate-proto build-test-images test-e2e-streaming
2023

2124
echo "Coherence CE 22.06.10 with scope"
2225
COHERENCE_VERSION=22.06.10 PROFILES=,-jakarta,javax,scope make clean generate-proto build-test-images test-e2e-standalone-scope

0 commit comments

Comments
 (0)