Skip to content

Commit 013345b

Browse files
committed
COH-31421 - Integrate Coherence AI changes to main and release a new version to Pypi
1 parent 369b9f9 commit 013345b

File tree

4 files changed

+57
-22
lines changed

4 files changed

+57
-22
lines changed

.github/workflows/validate-nslookup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
poetry-version: ["1.8.4"]
2222
os: [ubuntu-latest]
2323
coherenceVersion:
24-
- 24.09
24+
- 24.09.2
2525
- 22.06.11
2626
base-image:
2727
- gcr.io/distroless/java17-debian11

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
poetry-version: ["1.8.4"]
2222
os: [ubuntu-latest]
2323
coherenceVersion:
24-
- 24.09
24+
- 24.09.2
2525
- 22.06.11
2626
base-image:
2727
- gcr.io/distroless/java17-debian11

Makefile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,12 @@ E2E_TESTS := tests/e2e/test_session.py \
8484
tests/e2e/test_filters.py \
8585
tests/e2e/test_processors.py \
8686
tests/e2e/test_aggregators.py \
87-
tests/e2e/test_near_caching.py \
88-
# tests/e2e/test_ai.py \
87+
tests/e2e/test_near_caching.py
88+
89+
#----------------------------------------------------------------------------------------------------------------------
90+
# AI tests
91+
# ----------------------------------------------------------------------------------------------------------------------
92+
AI_TESTS := tests/e2e/test_ai.py
8993

9094
# ----------------------------------------------------------------------------------------------------------------------
9195
# Clean-up all of the build artifacts
@@ -171,6 +175,13 @@ generate-proto: ## Generate Proto Files
171175
test: ##
172176
pytest -W error --cov src/coherence --cov-report=term --cov-report=html $(UNIT_TESTS) $(E2E_TESTS)
173177

178+
# ----------------------------------------------------------------------------------------------------------------------
179+
# Run tests with code coverage
180+
# ----------------------------------------------------------------------------------------------------------------------
181+
.PHONY: test-with-ai
182+
test-with-ai: ##
183+
pytest -W error --cov src/coherence --cov-report=term --cov-report=html $(UNIT_TESTS) $(E2E_TESTS) $(AI_TESTS)
184+
174185
# ----------------------------------------------------------------------------------------------------------------------
175186
# Run nslookup tests with code coverage
176187
# ----------------------------------------------------------------------------------------------------------------------

tests/scripts/run-tests.sh

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
#
4-
# Copyright (c) 2022, 2023, Oracle and/or its affiliates.
4+
# Copyright (c) 2022, 2025, Oracle and/or its affiliates.
55
# Licensed under the Universal Permissive License v 1.0 as shown at
66
# https://oss.oracle.com/licenses/upl.
77
#
@@ -30,21 +30,45 @@ if [ -z "${PROFILE_STR}" ] ; then
3030
exit 1
3131
fi
3232

33-
echo "Coherence CE 22.06.11"
34-
COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \
35-
COHERENCE_VERSION=$COH_VER \
36-
COHERENCE_BASE_IMAGE=$BASE_IMAGE \
37-
PROFILES=$PROFILE_STR \
38-
make clean test-cluster-shutdown remove-app-images build-test-images test-cluster-startup just-wait test
39-
40-
echo "Coherence CE 22.06.11 with SSL"
41-
RUN_SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true \
42-
COHERENCE_TLS_CERTS_PATH=$(pwd)/tests/utils/certs/guardians-ca.crt \
43-
COHERENCE_TLS_CLIENT_CERT=$(pwd)/tests/utils/certs/star-lord.crt \
44-
COHERENCE_TLS_CLIENT_KEY=$(pwd)/tests/utils/certs/star-lord.pem \
33+
if [[ "${COH_VER}" =~ "22.06" ]] ; then
34+
echo "Coherence CE ${COH_VER}"
4535
COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \
46-
COHERENCE_VERSION=$COH_VER \
47-
COHERENCE_BASE_IMAGE=$BASE_IMAGE \
48-
PROFILES=$PROFILE_STR,secure \
49-
make clean certs test-cluster-shutdown remove-app-images \
50-
build-test-images test-cluster-startup just-wait test
36+
COHERENCE_VERSION=$COH_VER \
37+
COHERENCE_BASE_IMAGE=$BASE_IMAGE \
38+
PROFILES=$PROFILE_STR \
39+
make clean test-cluster-shutdown remove-app-images build-test-images test-cluster-startup just-wait test
40+
else
41+
echo "Coherence CE ${COH_VER}"
42+
COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \
43+
COHERENCE_VERSION=$COH_VER \
44+
COHERENCE_BASE_IMAGE=$BASE_IMAGE \
45+
PROFILES=$PROFILE_STR \
46+
make clean test-cluster-shutdown remove-app-images build-test-images test-cluster-startup just-wait test-with-ai
47+
fi
48+
49+
# Run tests with SSL
50+
if [[ "${COH_VER}" =~ "22.06" ]] ; then
51+
echo "Coherence CE ${COH_VER} with SSL"
52+
RUN_SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true \
53+
COHERENCE_TLS_CERTS_PATH=$(pwd)/tests/utils/certs/guardians-ca.crt \
54+
COHERENCE_TLS_CLIENT_CERT=$(pwd)/tests/utils/certs/star-lord.crt \
55+
COHERENCE_TLS_CLIENT_KEY=$(pwd)/tests/utils/certs/star-lord.pem \
56+
COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \
57+
COHERENCE_VERSION=$COH_VER \
58+
COHERENCE_BASE_IMAGE=$BASE_IMAGE \
59+
PROFILES=$PROFILE_STR,secure \
60+
make clean certs test-cluster-shutdown remove-app-images \
61+
build-test-images test-cluster-startup just-wait test
62+
else
63+
echo "Coherence CE ${COH_VER} with SSL"
64+
RUN_SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true \
65+
COHERENCE_TLS_CERTS_PATH=$(pwd)/tests/utils/certs/guardians-ca.crt \
66+
COHERENCE_TLS_CLIENT_CERT=$(pwd)/tests/utils/certs/star-lord.crt \
67+
COHERENCE_TLS_CLIENT_KEY=$(pwd)/tests/utils/certs/star-lord.pem \
68+
COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \
69+
COHERENCE_VERSION=$COH_VER \
70+
COHERENCE_BASE_IMAGE=$BASE_IMAGE \
71+
PROFILES=$PROFILE_STR,secure \
72+
make clean certs test-cluster-shutdown remove-app-images \
73+
build-test-images test-cluster-startup just-wait test-with-ai
74+
fi

0 commit comments

Comments
 (0)