-
Notifications
You must be signed in to change notification settings - Fork 23
213 lines (187 loc) · 7.46 KB
/
coherence-matrix.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# Copyright 2021, 2024, Oracle Corporation and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
# ---------------------------------------------------------------------------
# Coherence Operator GitHub Actions Coherence Certification build.
# ---------------------------------------------------------------------------
name: Coherence Certification
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches-ignore:
- gh-pages
- 1.0.0
- 2.x
- 3.x
env:
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
LOAD_KIND: true
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
matrixName:
- "15.1.1-0-SNAPSHOT"
- "15.1.1-0-SNAPSHOT-Graal"
- "23.09"
- "23.09-Graal"
- "22.06"
- "14.1.1-2206-SNAPSHOT"
- "14.1.1-0-SNAPSHOT"
- "14.1.1-0"
- "14.1.1.0.0"
- "12.2.1.4.0"
- "12.2.1-4-SNAPSHOT"
include:
- matrixName: "15.1.1-0-SNAPSHOT"
coherenceVersion: "15.1.1-0-0-SNAPSHOT"
coherenceImage: "iad.ocir.io/odx-stateservice/test/coherence:15.1.1-0-0-SNAPSHOT-java17"
javaVersion: 17
baseImage: "gcr.io/distroless/java17-debian12"
- matrixName: "15.1.1-0-SNAPSHOT-Graal"
coherenceVersion: "15.1.1-0-0-SNAPSHOT"
coherenceImage: "iad.ocir.io/odx-stateservice/test/coherence:15.1.1-0-0-SNAPSHOT-graal"
javaVersion: 17
baseImage: "gcr.io/distroless/java17-debian12"
- matrixName: "23.09"
coherenceVersion: "23.09.1"
coherenceImage: "ghcr.io/oracle/coherence-ce:23.09.1"
javaVersion: 17
baseImage: "gcr.io/distroless/java17-debian12"
- matrixName: "23.09-Graal"
coherenceVersion: "23.09.1"
coherenceImage: "ghcr.io/oracle/coherence-ce:23.09.1-graal"
javaVersion: 17
baseImage: "gcr.io/distroless/java17-debian12"
- matrixName: "22.06"
coherenceVersion: "22.06.7"
coherenceImage: "ghcr.io/oracle/coherence-ce:22.06.7"
javaVersion: 11
baseImage: "gcr.io/distroless/java11-debian11"
- matrixName: "14.1.1-2206-SNAPSHOT"
coherenceVersion: "14.1.1-2206-8-SNAPSHOT"
coherenceImage: "iad.ocir.io/odx-stateservice/test/coherence:14.1.1-2206-8-SNAPSHOT"
javaVersion: 11
baseImage: "gcr.io/distroless/java11-debian11"
- matrixName: "14.1.1-0-SNAPSHOT"
coherenceVersion: "14.1.1-0-17-SNAPSHOT"
coherenceImage: "iad.ocir.io/odx-stateservice/test/coherence:14.1.1-0-17-SNAPSHOT"
javaVersion: 8
baseImage: "gcr.io/distroless/java11-debian11"
- matrixName: "14.1.1-0"
coherenceVersion: "14.1.1-0-16"
javaVersion: 8
coherenceImage: "ghcr.io/oracle/coherence-ce:14.1.1-0-16"
baseImage: "gcr.io/distroless/java11-debian11"
- matrixName: "14.1.1.0.0"
coherenceVersion: "14.1.1.0.0"
coherenceImage: "container-registry.oracle.com/middleware/coherence:14.1.1.0.0"
javaVersion: 8
baseImage: "gcr.io/distroless/java11-debian11"
- matrixName: "12.2.1.4.0"
coherenceVersion: "12.2.1.4.0"
coherenceImage: "container-registry.oracle.com/middleware/coherence:12.2.1.4.0"
javaVersion: 8
baseImage: "gcr.io/distroless/java11-debian11"
- matrixName: "12.2.1-4-SNAPSHOT"
coherenceVersion: "12.2.1-4-20-SNAPSHOT"
coherenceImage: "iad.ocir.io/odx-stateservice/test/coherence:12.2.1-4-21-SNAPSHOT"
javaVersion: 8
baseImage: "gcr.io/distroless/java11-debian11"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# This step will free up disc space on the runner by removing
# lots of things that we do not need.
- name: disc
shell: bash
run: |
echo "Listing 100 largest packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*' || true
sudo apt-get remove -y '^llvm-.*' || true
sudo apt-get remove -y 'monodoc-http' || true
sudo apt-get remove -y 'php.*' || true
sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel || true
sudo apt-get autoremove -y || true
sudo apt-get clean
df -h
echo "Removing large directories"
sudo rm -rf /usr/share/dotnet/
sudo rm -rf /usr/local/lib/android
df -h
- name: Set up JDK
uses: oracle-actions/setup-java@v1
with:
website: oracle.com
release: 21
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Cache Go Modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mods-
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Edit DNS Resolve
shell: bash
run: |
sudo chown -R runner:runner /run/systemd/resolve/stub-resolv.conf
sudo echo nameserver 8.8.8.8 > /run/systemd/resolve/stub-resolv.conf
- name: Start KinD Cluster
shell: bash
run: |
make kind
kubectl version
kubectl get nodes
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
docker login container-registry.oracle.com -u "${{ secrets.OCR_DOCKER_USERNAME }}" -p "${{ secrets.OCR_DOCKER_PASSWORD }}"
docker login "${{ secrets.OCI_REGISTRY }}" -u "${{ secrets.OCI_USERNAME }}" -p "${{ secrets.OCI_PASSWORD }}"
docker pull gcr.io/distroless/java
docker pull gcr.io/distroless/java11-debian11
docker pull gcr.io/distroless/java17-debian11
docker pull ${{ matrix.coherenceImage }}
- name: Coherence Certification Tests
shell: bash
run: |
export COHERENCE_IMAGE=${{ matrix.coherenceImage }}
echo "COHERENCE_IMAGE=${COHERENCE_IMAGE}"
export BUILD_JAVA_VERSION=${{ matrix.javaVersion }}
echo "BUILD_JAVA_VERSION=${BUILD_JAVA_VERSION}"
export COHERENCE_TEST_BASE_IMAGE=${{ matrix.baseImage }}
echo "COHERENCE_TEST_BASE_IMAGE=${COHERENCE_TEST_BASE_IMAGE}"
make clean
echo "Building Operator Image"
make build-operator-images
echo "Building Coherence Compatibility Image"
make build-compatibility-image
echo "Loading Images to Kind"
make kind-load
make kind-load-compatibility
echo "Running Coherence Compatibility Tests"
export TEST_LOGS_DIR=build/_output/test-logs/${{ matrix.matrixName }}
make coherence-compatibility-test
- uses: actions/upload-artifact@v4
if: ${{ failure() || cancelled() }}
with:
name: test-output-${{ matrix.matrixName }}
path: build/_output/test-logs
if-no-files-found: ignore