Skip to content

Commit

Permalink
Add 14.1.2 to ci/cd (#106)
Browse files Browse the repository at this point in the history
* Add 14.1.2 to ci/cd
* Fix missing docker image
  • Loading branch information
tmiddlet2666 authored Dec 23, 2024
1 parent 46bd538 commit beab7e1
Show file tree
Hide file tree
Showing 8 changed files with 334 additions and 4 deletions.
119 changes: 119 additions & 0 deletions .github/workflows/build-compatability-1412.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# Copyright 2021, 2024 Oracle Corporation and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at
# https://oss.oracle.com/licenses/upl.

# ---------------------------------------------------------------------------
# Coherence Go Client GitHub Actions CI build Against v14.1.2
# ---------------------------------------------------------------------------
name: CI Compatability v14.1.2

on:
workflow_dispatch:
push:
branches:
- '*'
schedule:
# Every day at midnight
- cron: '0 0 * * *'

jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
coherenceVersion:
- 14.1.2-0-0
- 14.1.2-0-1-SNAPSHOT
go-version:
- 1.19.x
- 1.20.x
- 1.21.x
- 1.22.x
- 1.23.x

# Checkout the source, we need a depth of zero to fetch all of the history otherwise
# the copyright check cannot work out the date of the files from Git.
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get Docker Images
shell: bash
run: |
docker pull gcr.io/distroless/java17
- name: Set up JDK 17 for Build
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'

- 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: Set up Go
uses: actions/setup-go@v5
with:
go-version: '${{ matrix.go-version }}'

- name: E2E Local Tests
env:
COH_VERSION: ${{ matrix.coherenceVersion }}
shell: bash
run: |
echo "Running verify against $COH_VERSION"
go get google.golang.org/grpc/cmd/[email protected]
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
- name: E2E Local Tests With Scope
env:
COH_VERSION: ${{ matrix.coherenceVersion }}
shell: bash
run: |
go get google.golang.org/grpc/cmd/[email protected]
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
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
path: build/_output/test-logs

- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
path: build/_output/test-logs

- name: E2E Local Tests SSL
env:
COH_VERSION: ${{ matrix.coherenceVersion }}
shell: bash
run: |
echo "Running verify against $COH_VERSION"
go get google.golang.org/grpc/cmd/[email protected]
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true INCLUDE_LONG_RUNNING=true \
COHERENCE_TLS_CERTS_PATH=`pwd`/test/utils/certs/guardians-ca.crt \
COHERENCE_TLS_CLIENT_CERT=`pwd`/test/utils/certs/star-lord.crt \
COHERENCE_TLS_CLIENT_KEY=`pwd`/test/utils/certs/star-lord.key \
COHERENCE_VERSION=$COH_VERSION PROFILES=,secure,-jakarta,javax make clean certs generate-proto generate-proto-v1 build-test-images test-e2e-standalone
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
path: build/_output/test-logs
118 changes: 118 additions & 0 deletions .github/workflows/build-compatability-v1-1412.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Copyright 024 Oracle Corporation and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at
# https://oss.oracle.com/licenses/upl.

# ---------------------------------------------------------------------------
# Coherence Go Client GitHub Actions CI build Against 14.1.2 with gRPC v1 API
# ---------------------------------------------------------------------------
name: CI Compatability Jakarta - V1 gRPC - 14.1.2

on:
workflow_dispatch:
push:
branches:
- '*'
schedule:
# Every day at midnight
- cron: '0 0 * * *'

jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
coherenceVersion:
- 14.1.2-0-0
- 14.1.2-0-1-SNAPSHOT
go-version:
- 1.19.x
- 1.20.x
- 1.21.x
- 1.22.x
- 1.23.x

# Checkout the source, we need a depth of zero to fetch all of the history otherwise
# the copyright check cannot work out the date of the files from Git.
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get Docker Images
shell: bash
run: |
docker pull gcr.io/distroless/java17
- name: Set up JDK 17 for Build
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'

- 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: Set up Go
uses: actions/setup-go@v5
with:
go-version: '${{ matrix.go-version }}'

- name: E2E Local Tests gRPC v1
env:
COH_VERSION: ${{ matrix.coherenceVersion }}
shell: bash
run: |
go get google.golang.org/grpc/cmd/[email protected]
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
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
path: build/_output/test-logs

- name: E2E Local Tests With Scope gRPC v1
env:
COH_VERSION: ${{ matrix.coherenceVersion }}
shell: bash
run: |
go get google.golang.org/grpc/cmd/[email protected]
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
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-output-scope-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
path: build/_output/test-logs

- name: E2E Local Tests SSL gRPC v1
env:
COH_VERSION: ${{ matrix.coherenceVersion }}
shell: bash
run: |
echo "Running verify against $COH_VERSION"
go get google.golang.org/grpc/cmd/[email protected]
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true INCLUDE_LONG_RUNNING=true \
COHERENCE_TLS_CERTS_PATH=`pwd`/test/utils/certs/guardians-ca.crt \
COHERENCE_TLS_CLIENT_CERT=`pwd`/test/utils/certs/star-lord.crt \
COHERENCE_TLS_CLIENT_KEY=`pwd`/test/utils/certs/star-lord.key \
COHERENCE_VERSION=$COH_VERSION PROFILES=,secure,-jakarta,javax make clean certs generate-proto generate-proto-v1 build-test-images test-e2e-standalone
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-output-SSL-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
path: build/_output/test-logs
85 changes: 85 additions & 0 deletions .github/workflows/build-queues-1412.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Copyright 2024 Oracle Corporation and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at
# https://oss.oracle.com/licenses/upl.

# ---------------------------------------------------------------------------
# Coherence Go Client GitHub Actions CI build Queues - 14.1.2
# ---------------------------------------------------------------------------
name: CI Queues - 14.1.2

on:
workflow_dispatch:
push:
branches:
- '*'
schedule:
# Every day at midnight
- cron: '0 0 * * *'

jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
coherenceVersion:
- 14.1.2-0-0
- 14.1.2-0-1-SNAPSHOT
go-version:
- 1.19.x
- 1.20.x
- 1.21.x
- 1.22.x
- 1.23.x

# Checkout the source, we need a depth of zero to fetch all of the history otherwise
# the copyright check cannot work out the date of the files from Git.
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get Docker Images
shell: bash
run: |
docker pull gcr.io/distroless/java17
- name: Set up JDK 17 for Build
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'

- 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: Set up Go
uses: actions/setup-go@v5
with:
go-version: '${{ matrix.go-version }}'

- name: E2E Queue Tests
env:
COH_VERSION: ${{ matrix.coherenceVersion }}
shell: bash
run: |
go get google.golang.org/grpc/cmd/[email protected]
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
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }}
path: build/_output/test-logs
2 changes: 2 additions & 0 deletions .github/workflows/discovery-compatability-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- 22.06.11-SNAPSHOT
- 24.09
- 24.09.1-SNAPSHOT
- 14.1.2-0-0
- 14.1.2-0-1-SNAPSHOT
go-version:
- 1.19.x
- 1.20.x
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
coherenceVersion:
- 22.06.11-SNAPSHOT
- 22.06.10
- 14.1.2-0-0
- 14.1.2-0-1-SNAPSHOT
go-version:
- 1.19.x
- 1.20.x
Expand All @@ -39,13 +41,12 @@ jobs:
- name: Get Docker Images
shell: bash
run: |
docker pull gcr.io/distroless/java:11
uname -a
docker pull gcr.io/distroless/java17
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '11'
java-version: '17'
distribution: 'zulu'

- name: Cache Go Modules
Expand All @@ -72,7 +73,7 @@ jobs:
shell: bash
run: |
go get google.golang.org/grpc/cmd/[email protected]
COHERENCE_VERSION=${{ matrix.coherenceVersion }} PROFILES=,-jakarta,javax make clean generate-proto build-test-images test-cluster-startup test-examples
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
make test-cluster-shutdown || true
- uses: actions/upload-artifact@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
coherenceVersion:
- 22.06.9
- 24.09
- 14.1.2-0-0
go-version:
- 1.19.x
- 1.20.x
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/resolver-compatability-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
coherenceVersion:
- 22.06.9
- 24.09
- 14.1.2-0-0
go-version:
- 1.19.x
- 1.20.x
Expand Down
3 changes: 3 additions & 0 deletions scripts/run-compat-ce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ set -e
echo "Coherence CE 22.06.10"
COHERENCE_VERSION=22.06.10 PROFILES=,-jakarta,javax make clean generate-proto build-test-images test-e2e-standalone

echo "Coherence CE 14.1.2-0-0"
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

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

Expand Down

0 comments on commit beab7e1

Please sign in to comment.