Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizations for data retreival and addition of basic expect test #196

Merged
merged 7 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/build-test-monitor-cluster-jdk21.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# 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 CLI GitHub Actions CI build - Test Monitor Cluster JDK21
# ---------------------------------------------------------------------------
name: CI Test Monitor Cluster JDK21

on:
workflow_dispatch:
push:
branches-ignore:
- gh-pages

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
coherenceVersion:
- 22.06.8
- 24.03
javaVersion:
- 21

# 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: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.javaVersion }}
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: '1.20'

- name: Build cohctl
shell: bash
run: make cohctl

- name: Test Monitor Cluster
shell: bash
run: |
sudo apt-add-repository universe -y
sudo apt-get install expect -y
COHERENCE_VERSION=${{ matrix.coherenceVersion }} make test-monitor-cluster

- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-output-${{ matrix.coherenceVersion }}-${{ matrix.javaVersion }}
path: build/_output/test-logs
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,13 @@ test-discovery: test-clean gotestsum $(BUILD_PROPS) ## Run Discovery tests with
test-create-cluster: test-clean gotestsum $(BUILD_PROPS) ## Run create cluster tests
./scripts/test-create-cluster.sh $(COHERENCE_VERSION)

# ----------------------------------------------------------------------------------------------------------------------
# Executes the Go monitor cluster tests for standalone Coherence
# ----------------------------------------------------------------------------------------------------------------------
.PHONY: test-monitor-cluster
test-monitor-cluster: test-clean gotestsum $(BUILD_PROPS) ## Run monitor cluster tests
./scripts/test-monitor-cluster.sh $(COHERENCE_VERSION)

# ----------------------------------------------------------------------------------------------------------------------
# Executes the Go end to end tests and unit tests for standalone Coherence with coverage
# ----------------------------------------------------------------------------------------------------------------------
Expand Down
Loading
Loading