Skip to content

Commit

Permalink
Merge branch 'upg-profile' into 'main'
Browse files Browse the repository at this point in the history
Add a new profile (kind-upgrade)  for explicit upgrade usecase

See merge request weblogic-cloud/weblogic-kubernetes-operator!4402
  • Loading branch information
ddsharpe committed Aug 18, 2023
2 parents 3a477ed + 9f5dbaf commit 87fba46
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 15 deletions.
7 changes: 5 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ pipeline {

parameters {
choice(name: 'MAVEN_PROFILE_NAME',
description: 'Profile to use in mvn command to run the tests. Possible values are wls-srg (the default), integration-tests, toolkits-srg, and kind-sequential. Refer to weblogic-kubernetes-operator/integration-tests/pom.xml on the branch.',
description: 'Profile to use in mvn command to run the tests. Possible values are wls-srg (the default), integration-tests, toolkits-srg, kind-sequential and kind-upgrade. Refer to weblogic-kubernetes-operator/integration-tests/pom.xml on the branch.',
choices: [
'wls-srg',
'integration-tests',
'kind-sequential',
'kind-upgrade',
'toolkits-srg'
]
)
Expand Down Expand Up @@ -202,7 +203,7 @@ pipeline {
defaultValue: "test-images/weblogic"
)
string(name: 'WEBLOGIC_IMAGE_TAG',
description: '12.2.1.3 (12.2.1.3-ol7) , 12.2.1.3-dev (12.2.1.3-dev-ol7), 12.2.1.3-ol8, 12.2.1.3-dev-ol8, 12.2.1.4, 12.2.1.4-dev(12.2.1.4-dev-ol7) , 12.2.1.4-slim(12.2.1.4-slim-ol7), 12.2.1.4-ol8, 12.2.1.4-dev-ol8, 12.2.1.4-slim-ol8, 14.1.1.0-11-ol7, 14.1.1.0-dev-11-ol7, 14.1.1.0-slim-11-ol7, 14.1.1.0-8-ol7, 14.1.1.0-dev-8-ol7, 14.1.1.0-slim-8-ol7, 14.1.1.0-11-ol8, 14.1.1.0-dev-11-ol8, 14.1.1.0-slim-11-ol8, 14.1.1.0-8-ol8, 14.1.1.0-dev-8-ol8, 14.1.1.0-slim-8-ol8',
description: '12.2.1.4, 12.2.1.4-dev(12.2.1.4-dev-ol7) , 12.2.1.4-slim(12.2.1.4-slim-ol7), 12.2.1.4-ol8, 12.2.1.4-dev-ol8, 12.2.1.4-slim-ol8, 14.1.1.0-11-ol7, 14.1.1.0-dev-11-ol7, 14.1.1.0-slim-11-ol7, 14.1.1.0-8-ol7, 14.1.1.0-dev-8-ol7, 14.1.1.0-slim-8-ol7, 14.1.1.0-11-ol8, 14.1.1.0-dev-11-ol8, 14.1.1.0-slim-11-ol8, 14.1.1.0-8-ol8, 14.1.1.0-dev-8-ol8, 14.1.1.0-slim-8-ol8',
defaultValue: '12.2.1.4'
)
string(name: 'FMWINFRA_IMAGE_NAME',
Expand Down Expand Up @@ -497,6 +498,8 @@ EOF
K8S_NODEPORT_HOST=$(kubectl get node kind-worker -o jsonpath='{.status.addresses[?(@.type == "InternalIP")].address}')
if [ "${MAVEN_PROFILE_NAME}" == "kind-sequential" ]; then
PARALLEL_RUN='false'
elif [ "${MAVEN_PROFILE_NAME}" == "kind-upgrade" ]; then
PARALLEL_RUN='false'
elif [ -n "${IT_TEST}" ]; then
echo 'Overriding MAVEN_PROFILE_NAME to integration-test when running individual test(s)'
MAVEN_PROFILE_NAME="integration-tests"
Expand Down
11 changes: 8 additions & 3 deletions Jenkinsfile.kindnightly
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def kind_k8s_map = [
]
def _kind_image = null
CRON_SETTINGS = '''H 1 * * * % MAVEN_PROFILE_NAME=kind-parallel
H 2 * * * % MAVEN_PROFILE_NAME=kind-sequential;KUBE_VERSION=1.24.12;KIND_VERSION=0.18.0'''
H 2 * * * % MAVEN_PROFILE_NAME=kind-sequential
H 3 * * * % MAVEN_PROFILE_NAME=kind-upgrade;KUBE_VERSION=1.24.12;KIND_VERSION=0.18.0'''


pipeline {
Expand Down Expand Up @@ -108,10 +109,11 @@ pipeline {
defaultValue: 'main'
)
choice(name: 'MAVEN_PROFILE_NAME',
description: 'Profile to use in mvn command to run the tests. Possible values are kind-parallel (the default), kind-sequential and integration-tests. Refer to weblogic-kubernetes-operator/integration-tests/pom.xml on the branch.',
description: 'Profile to use in mvn command to run the tests. Possible values are kind-parallel (the default), kind-sequential, kind-upgrade,toolkits-srg, wls-srg and integration-tests. Refer to weblogic-kubernetes-operator/integration-tests/pom.xml on the branch.',
choices: [
'kind-parallel',
'kind-sequential',
'kind-upgrade',
'integration-tests',
'toolkits-srg',
'wls-srg'
Expand Down Expand Up @@ -221,7 +223,7 @@ pipeline {
defaultValue: "test-images/weblogic"
)
string(name: 'WEBLOGIC_IMAGE_TAG',
description: '12.2.1.3 (12.2.1.3-ol7) , 12.2.1.3-dev (12.2.1.3-dev-ol7), 12.2.1.3-ol8, 12.2.1.3-dev-ol8, 12.2.1.4, 12.2.1.4-dev(12.2.1.4-dev-ol7) , 12.2.1.4-slim(12.2.1.4-slim-ol7), 12.2.1.4-ol8, 12.2.1.4-dev-ol8, 12.2.1.4-slim-ol8, 14.1.1.0-11-ol7, 14.1.1.0-dev-11-ol7, 14.1.1.0-slim-11-ol7, 14.1.1.0-8-ol7, 14.1.1.0-dev-8-ol7, 14.1.1.0-slim-8-ol7, 14.1.1.0-11-ol8, 14.1.1.0-dev-11-ol8, 14.1.1.0-slim-11-ol8, 14.1.1.0-8-ol8, 14.1.1.0-dev-8-ol8, 14.1.1.0-slim-8-ol8',
description: '12.2.1.4, 12.2.1.4-dev(12.2.1.4-dev-ol7) , 12.2.1.4-slim(12.2.1.4-slim-ol7), 12.2.1.4-ol8, 12.2.1.4-dev-ol8, 12.2.1.4-slim-ol8, 14.1.1.0-11-ol7, 14.1.1.0-dev-11-ol7, 14.1.1.0-slim-11-ol7, 14.1.1.0-8-ol7, 14.1.1.0-dev-8-ol7, 14.1.1.0-slim-8-ol7, 14.1.1.0-11-ol8, 14.1.1.0-dev-11-ol8, 14.1.1.0-slim-11-ol8, 14.1.1.0-8-ol8, 14.1.1.0-dev-8-ol8, 14.1.1.0-slim-8-ol8',
defaultValue: '12.2.1.4'
)
string(name: 'FMWINFRA_IMAGE_NAME',
Expand Down Expand Up @@ -523,6 +525,9 @@ EOF
if [ "${MAVEN_PROFILE_NAME}" == "kind-sequential" ]; then
PARALLEL_RUN='false'
fi
if [ "${MAVEN_PROFILE_NAME}" == "kind-upgrade" ]; then
PARALLEL_RUN='false'
fi
if [ -n "${IT_TEST}" ]; then
echo "-Dit.test=\"${IT_TEST}\"" > ${WORKSPACE}/.mvn/maven.config
fi
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile.oke
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pipeline {
defaultValue: 'test-images/weblogic'
)
string(name: 'WEBLOGIC_IMAGE_TAG',
description: '12.2.1.3 (12.2.1.3-ol7) , 12.2.1.3-dev (12.2.1.3-dev-ol7), 12.2.1.3-ol8, 12.2.1.3-dev-ol8, 12.2.1.4, 12.2.1.4-dev(12.2.1.4-dev-ol7) , 12.2.1.4-slim(12.2.1.4-slim-ol7), 12.2.1.4-ol8, 12.2.1.4-dev-ol8, 12.2.1.4-slim-ol8, 14.1.1.0-11-ol7, 14.1.1.0-dev-11-ol7, 14.1.1.0-slim-11-ol7, 14.1.1.0-8-ol7, 14.1.1.0-dev-8-ol7, 14.1.1.0-slim-8-ol7, 14.1.1.0-11-ol8, 14.1.1.0-dev-11-ol8, 14.1.1.0-slim-11-ol8, 14.1.1.0-8-ol8, 14.1.1.0-dev-8-ol8, 14.1.1.0-slim-8-ol8',
description: '12.2.1.4, 12.2.1.4-dev(12.2.1.4-dev-ol7) , 12.2.1.4-slim(12.2.1.4-slim-ol7), 12.2.1.4-ol8, 12.2.1.4-dev-ol8, 12.2.1.4-slim-ol8, 14.1.1.0-11-ol7, 14.1.1.0-dev-11-ol7, 14.1.1.0-slim-11-ol7, 14.1.1.0-8-ol7, 14.1.1.0-dev-8-ol7, 14.1.1.0-slim-8-ol7, 14.1.1.0-11-ol8, 14.1.1.0-dev-11-ol8, 14.1.1.0-slim-11-ol8, 14.1.1.0-8-ol8, 14.1.1.0-dev-8-ol8, 14.1.1.0-slim-8-ol8',
defaultValue: '12.2.1.4'
)
string(name: 'FMWINFRA_IMAGE_NAME',
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile.okeext
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pipeline {
defaultValue: 'test-images/weblogic'
)
string(name: 'WEBLOGIC_IMAGE_TAG',
description: '12.2.1.3 (12.2.1.3-ol7) , 12.2.1.3-dev (12.2.1.3-dev-ol7), 12.2.1.3-ol8, 12.2.1.3-dev-ol8, 12.2.1.4, 12.2.1.4-dev(12.2.1.4-dev-ol7) , 12.2.1.4-slim(12.2.1.4-slim-ol7), 12.2.1.4-ol8, 12.2.1.4-dev-ol8, 12.2.1.4-slim-ol8, 14.1.1.0-11-ol7, 14.1.1.0-dev-11-ol7, 14.1.1.0-slim-11-ol7, 14.1.1.0-8-ol7, 14.1.1.0-dev-8-ol7, 14.1.1.0-slim-8-ol7, 14.1.1.0-11-ol8, 14.1.1.0-dev-11-ol8, 14.1.1.0-slim-11-ol8, 14.1.1.0-8-ol8, 14.1.1.0-dev-8-ol8, 14.1.1.0-slim-8-ol8',
description: '12.2.1.4, 12.2.1.4-dev(12.2.1.4-dev-ol7) , 12.2.1.4-slim(12.2.1.4-slim-ol7), 12.2.1.4-ol8, 12.2.1.4-dev-ol8, 12.2.1.4-slim-ol8, 14.1.1.0-11-ol7, 14.1.1.0-dev-11-ol7, 14.1.1.0-slim-11-ol7, 14.1.1.0-8-ol7, 14.1.1.0-dev-8-ol7, 14.1.1.0-slim-8-ol7, 14.1.1.0-11-ol8, 14.1.1.0-dev-11-ol8, 14.1.1.0-slim-11-ol8, 14.1.1.0-8-ol8, 14.1.1.0-dev-8-ol8, 14.1.1.0-slim-8-ol8',
defaultValue: '12.2.1.4'
)
string(name: 'FMWINFRA_IMAGE_NAME',
Expand Down
8 changes: 8 additions & 0 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,14 @@
</properties>
</profile>

<profile>
<id>kind-upgrade</id>
<properties>
<skipITs>false</skipITs>
<groups>kind-upgrade</groups>
</properties>
</profile>

<profile>
<id>kind-parallel</id>
<properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022, Oracle and/or its affiliates.
// Copyright (c) 2022, 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

package oracle.weblogic.kubernetes;
Expand Down Expand Up @@ -77,8 +77,7 @@

@DisplayName("Test implicit upgrade of auximage domain resource with api version v8")
@IntegrationTest
@Tag("oke-sequential")
@Tag("kind-sequential")
@Tag("kind-upgrade")
class ItAuxV8DomainImplicitUpgrade {
private static String opNamespace = null;
private static String domainNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
*/
@DisplayName("Tests to upgrade Operator with FMW domain in PV using WLST")
@IntegrationTest
@Tag("kind-sequential")
@Tag("kind-upgrade")
class ItOperatorFmwUpgrade {

private static String opNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
*/
@DisplayName("Operator upgrade tests with Istio")
@IntegrationTest
@Tag("kind-sequential")
@Tag("kind-upgrade")
class ItOperatorUpgradeWithIstio {

private final String clusterName = "cluster-1"; // do not modify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@DisplayName("Operator upgrade tests")
@IntegrationTest
@Tag("kind-sequential")
@Tag("kind-upgrade")
class ItOperatorWlsUpgrade {

private static LoggingFacade logger = null;
Expand Down Expand Up @@ -198,7 +198,6 @@ void testOperatorWlsUpgradeFrom346ToCurrent(String domainType) {
/**
* Operator upgrade from 4.0.7 to current.
*/
@Tag("oke-sequential")
@ParameterizedTest
@DisplayName("Upgrade Operator from 4.0.7 to current")
@ValueSource(strings = { "Image", "FromModel" })
Expand All @@ -221,7 +220,6 @@ void testOperatorWlsUpgradeFrom406ToCurrent(String domainType) {
/**
* Operator upgrade from 4.1.0 to current.
*/
@Tag("oke-sequential")
@ParameterizedTest
@DisplayName("Upgrade Operator from 4.1.0 to current")
@ValueSource(strings = { "Image", "FromModel" })
Expand Down

0 comments on commit 87fba46

Please sign in to comment.