Skip to content

Commit beab7e1

Browse files
authored
Add 14.1.2 to ci/cd (#106)
* Add 14.1.2 to ci/cd * Fix missing docker image
1 parent 46bd538 commit beab7e1

8 files changed

+334
-4
lines changed
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
# Copyright 2021, 2024 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 CI build Against v14.1.2
7+
# ---------------------------------------------------------------------------
8+
name: CI Compatability v14.1.2
9+
10+
on:
11+
workflow_dispatch:
12+
push:
13+
branches:
14+
- '*'
15+
schedule:
16+
# Every day at midnight
17+
- cron: '0 0 * * *'
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-22.04
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
coherenceVersion:
26+
- 14.1.2-0-0
27+
- 14.1.2-0-1-SNAPSHOT
28+
go-version:
29+
- 1.19.x
30+
- 1.20.x
31+
- 1.21.x
32+
- 1.22.x
33+
- 1.23.x
34+
35+
# Checkout the source, we need a depth of zero to fetch all of the history otherwise
36+
# the copyright check cannot work out the date of the files from Git.
37+
steps:
38+
- uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0
41+
42+
- name: Get Docker Images
43+
shell: bash
44+
run: |
45+
docker pull gcr.io/distroless/java17
46+
47+
- name: Set up JDK 17 for Build
48+
uses: actions/setup-java@v4
49+
with:
50+
java-version: '17'
51+
distribution: 'zulu'
52+
53+
- name: Cache Go Modules
54+
uses: actions/cache@v4
55+
with:
56+
path: ~/go/pkg/mod
57+
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
58+
restore-keys: |
59+
${{ runner.os }}-go-mods-
60+
61+
- name: Cache Maven packages
62+
uses: actions/cache@v4
63+
with:
64+
path: ~/.m2
65+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
66+
restore-keys: ${{ runner.os }}-m2
67+
68+
- name: Set up Go
69+
uses: actions/setup-go@v5
70+
with:
71+
go-version: '${{ matrix.go-version }}'
72+
73+
- name: E2E Local Tests
74+
env:
75+
COH_VERSION: ${{ matrix.coherenceVersion }}
76+
shell: bash
77+
run: |
78+
echo "Running verify against $COH_VERSION"
79+
go get google.golang.org/grpc/cmd/[email protected]
80+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 INCLUDE_LONG_RUNNING=true COHERENCE_VERSION=$COH_VERSION PROFILES=,-jakarta,javax make clean generate-proto generate-proto-v1 build-test-images test-e2e-standalone
81+
82+
- name: E2E Local Tests With Scope
83+
env:
84+
COH_VERSION: ${{ matrix.coherenceVersion }}
85+
shell: bash
86+
run: |
87+
go get google.golang.org/grpc/cmd/[email protected]
88+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 COHERENCE_VERSION=$COH_VERSION PROFILES=,-jakarta,javax,scope make clean generate-proto generate-proto-v1 build-test-images test-e2e-standalone-scope
89+
90+
- uses: actions/upload-artifact@v4
91+
if: failure()
92+
with:
93+
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
94+
path: build/_output/test-logs
95+
96+
- uses: actions/upload-artifact@v4
97+
if: failure()
98+
with:
99+
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
100+
path: build/_output/test-logs
101+
102+
- name: E2E Local Tests SSL
103+
env:
104+
COH_VERSION: ${{ matrix.coherenceVersion }}
105+
shell: bash
106+
run: |
107+
echo "Running verify against $COH_VERSION"
108+
go get google.golang.org/grpc/cmd/[email protected]
109+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true INCLUDE_LONG_RUNNING=true \
110+
COHERENCE_TLS_CERTS_PATH=`pwd`/test/utils/certs/guardians-ca.crt \
111+
COHERENCE_TLS_CLIENT_CERT=`pwd`/test/utils/certs/star-lord.crt \
112+
COHERENCE_TLS_CLIENT_KEY=`pwd`/test/utils/certs/star-lord.key \
113+
COHERENCE_VERSION=$COH_VERSION PROFILES=,secure,-jakarta,javax make clean certs generate-proto generate-proto-v1 build-test-images test-e2e-standalone
114+
115+
- uses: actions/upload-artifact@v4
116+
if: failure()
117+
with:
118+
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
119+
path: build/_output/test-logs
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# Copyright 024 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 CI build Against 14.1.2 with gRPC v1 API
7+
# ---------------------------------------------------------------------------
8+
name: CI Compatability Jakarta - V1 gRPC - 14.1.2
9+
10+
on:
11+
workflow_dispatch:
12+
push:
13+
branches:
14+
- '*'
15+
schedule:
16+
# Every day at midnight
17+
- cron: '0 0 * * *'
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-22.04
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
coherenceVersion:
26+
- 14.1.2-0-0
27+
- 14.1.2-0-1-SNAPSHOT
28+
go-version:
29+
- 1.19.x
30+
- 1.20.x
31+
- 1.21.x
32+
- 1.22.x
33+
- 1.23.x
34+
35+
# Checkout the source, we need a depth of zero to fetch all of the history otherwise
36+
# the copyright check cannot work out the date of the files from Git.
37+
steps:
38+
- uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0
41+
42+
- name: Get Docker Images
43+
shell: bash
44+
run: |
45+
docker pull gcr.io/distroless/java17
46+
47+
- name: Set up JDK 17 for Build
48+
uses: actions/setup-java@v4
49+
with:
50+
java-version: '17'
51+
distribution: 'zulu'
52+
53+
- name: Cache Go Modules
54+
uses: actions/cache@v4
55+
with:
56+
path: ~/go/pkg/mod
57+
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
58+
restore-keys: |
59+
${{ runner.os }}-go-mods-
60+
61+
- name: Cache Maven packages
62+
uses: actions/cache@v4
63+
with:
64+
path: ~/.m2
65+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
66+
restore-keys: ${{ runner.os }}-m2
67+
68+
- name: Set up Go
69+
uses: actions/setup-go@v5
70+
with:
71+
go-version: '${{ matrix.go-version }}'
72+
73+
- name: E2E Local Tests gRPC v1
74+
env:
75+
COH_VERSION: ${{ matrix.coherenceVersion }}
76+
shell: bash
77+
run: |
78+
go get google.golang.org/grpc/cmd/[email protected]
79+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 INCLUDE_LONG_RUNNING=true PROFILES=,-jakarta,javax COHERENCE_VERSION=$COH_VERSION make clean generate-proto generate-proto-v1 build-test-images test-e2e-standalone
80+
81+
- uses: actions/upload-artifact@v4
82+
if: failure()
83+
with:
84+
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
85+
path: build/_output/test-logs
86+
87+
- name: E2E Local Tests With Scope gRPC v1
88+
env:
89+
COH_VERSION: ${{ matrix.coherenceVersion }}
90+
shell: bash
91+
run: |
92+
go get google.golang.org/grpc/cmd/[email protected]
93+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 COHERENCE_VERSION=$COH_VERSION PROFILES=,-jakarta,javax,scope make clean generate-proto generate-proto-v1 build-test-images test-e2e-standalone-scope
94+
95+
- uses: actions/upload-artifact@v4
96+
if: failure()
97+
with:
98+
name: test-output-scope-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
99+
path: build/_output/test-logs
100+
101+
- name: E2E Local Tests SSL gRPC v1
102+
env:
103+
COH_VERSION: ${{ matrix.coherenceVersion }}
104+
shell: bash
105+
run: |
106+
echo "Running verify against $COH_VERSION"
107+
go get google.golang.org/grpc/cmd/[email protected]
108+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true INCLUDE_LONG_RUNNING=true \
109+
COHERENCE_TLS_CERTS_PATH=`pwd`/test/utils/certs/guardians-ca.crt \
110+
COHERENCE_TLS_CLIENT_CERT=`pwd`/test/utils/certs/star-lord.crt \
111+
COHERENCE_TLS_CLIENT_KEY=`pwd`/test/utils/certs/star-lord.key \
112+
COHERENCE_VERSION=$COH_VERSION PROFILES=,secure,-jakarta,javax make clean certs generate-proto generate-proto-v1 build-test-images test-e2e-standalone
113+
114+
- uses: actions/upload-artifact@v4
115+
if: failure()
116+
with:
117+
name: test-output-SSL-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
118+
path: build/_output/test-logs
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Copyright 2024 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 CI build Queues - 14.1.2
7+
# ---------------------------------------------------------------------------
8+
name: CI Queues - 14.1.2
9+
10+
on:
11+
workflow_dispatch:
12+
push:
13+
branches:
14+
- '*'
15+
schedule:
16+
# Every day at midnight
17+
- cron: '0 0 * * *'
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-22.04
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
coherenceVersion:
26+
- 14.1.2-0-0
27+
- 14.1.2-0-1-SNAPSHOT
28+
go-version:
29+
- 1.19.x
30+
- 1.20.x
31+
- 1.21.x
32+
- 1.22.x
33+
- 1.23.x
34+
35+
# Checkout the source, we need a depth of zero to fetch all of the history otherwise
36+
# the copyright check cannot work out the date of the files from Git.
37+
steps:
38+
- uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0
41+
42+
- name: Get Docker Images
43+
shell: bash
44+
run: |
45+
docker pull gcr.io/distroless/java17
46+
47+
- name: Set up JDK 17 for Build
48+
uses: actions/setup-java@v4
49+
with:
50+
java-version: '17'
51+
distribution: 'zulu'
52+
53+
- name: Cache Go Modules
54+
uses: actions/cache@v4
55+
with:
56+
path: ~/go/pkg/mod
57+
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
58+
restore-keys: |
59+
${{ runner.os }}-go-mods-
60+
61+
- name: Cache Maven packages
62+
uses: actions/cache@v4
63+
with:
64+
path: ~/.m2
65+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
66+
restore-keys: ${{ runner.os }}-m2
67+
68+
- name: Set up Go
69+
uses: actions/setup-go@v5
70+
with:
71+
go-version: '${{ matrix.go-version }}'
72+
73+
- name: E2E Queue Tests
74+
env:
75+
COH_VERSION: ${{ matrix.coherenceVersion }}
76+
shell: bash
77+
run: |
78+
go get google.golang.org/grpc/cmd/[email protected]
79+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 INCLUDE_LONG_RUNNING=true PROFILES=,-jakarta,javax,queues COHERENCE_VERSION=$COH_VERSION make clean generate-proto generate-proto-v1 build-test-images test-e2e-standalone-queues
80+
81+
- uses: actions/upload-artifact@v4
82+
if: failure()
83+
with:
84+
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
85+
path: build/_output/test-logs

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
- 22.06.11-SNAPSHOT
2525
- 24.09
2626
- 24.09.1-SNAPSHOT
27+
- 14.1.2-0-0
28+
- 14.1.2-0-1-SNAPSHOT
2729
go-version:
2830
- 1.19.x
2931
- 1.20.x

.github/workflows/examples.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
coherenceVersion:
2323
- 22.06.11-SNAPSHOT
2424
- 22.06.10
25+
- 14.1.2-0-0
26+
- 14.1.2-0-1-SNAPSHOT
2527
go-version:
2628
- 1.19.x
2729
- 1.20.x
@@ -39,13 +41,12 @@ jobs:
3941
- name: Get Docker Images
4042
shell: bash
4143
run: |
42-
docker pull gcr.io/distroless/java:11
43-
uname -a
44+
docker pull gcr.io/distroless/java17
4445
4546
- name: Set up JDK
4647
uses: actions/setup-java@v4
4748
with:
48-
java-version: '11'
49+
java-version: '17'
4950
distribution: 'zulu'
5051

5152
- name: Cache Go Modules
@@ -72,7 +73,7 @@ jobs:
7273
shell: bash
7374
run: |
7475
go get google.golang.org/grpc/cmd/[email protected]
75-
COHERENCE_VERSION=${{ matrix.coherenceVersion }} PROFILES=,-jakarta,javax make clean generate-proto build-test-images test-cluster-startup test-examples
76+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 COHERENCE_VERSION=${{ matrix.coherenceVersion }} PROFILES=,-jakarta,javax make clean generate-proto generate-proto-v1 build-test-images test-cluster-startup test-examples
7677
make test-cluster-shutdown || true
7778
7879
- uses: actions/upload-artifact@v4

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
coherenceVersion:
2323
- 22.06.9
2424
- 24.09
25+
- 14.1.2-0-0
2526
go-version:
2627
- 1.19.x
2728
- 1.20.x

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
coherenceVersion:
2323
- 22.06.9
2424
- 24.09
25+
- 14.1.2-0-0
2526
go-version:
2627
- 1.19.x
2728
- 1.20.x

scripts/run-compat-ce.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ 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 COHERENCE_VERSION=14.1.2-0-0 PROFILES=,-jakarta,javax make clean generate-proto build-test-images test-e2e-standalone
20+
1821
echo "Coherence CE 22.06.10 with scope"
1922
COHERENCE_VERSION=22.06.10 PROFILES=,-jakarta,javax,scope make clean generate-proto build-test-images test-e2e-standalone-scope
2023

0 commit comments

Comments
 (0)