Skip to content

Commit

Permalink
Move to almalinux9 by default and fix a lot of build.xml to cope with…
Browse files Browse the repository at this point in the history
… ant-contrib removal (#182)
  • Loading branch information
IanBoden authored Jul 19, 2024
1 parent f6adf72 commit af2e7a2
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 93 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// A Jenkinsfile used for other distros (with associated build container Dockerfiles)
// along with other jenkins files we use are all in server_build/buildcontainer
//
def distro = "almalinux8"
def distro = "almalinux9"
def mainBranch = "main"

// startBuilderBuild
Expand Down
2 changes: 2 additions & 0 deletions client_build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

<project name="imaclient" default="build-client" basedir="."
xmlns:if="ant:if" xmlns:unless="ant:unless">
<taskdef resource="org/jacoco/ant/antlib.xml" classpath="${build.dir}/../static_analysis_ext/jacocoant.jar" />
<echo message="build.dir= ${build.dir}"/>
<echo/>
<echo/>
<echo>==== invoking ant build for client ====</echo>
Expand Down
55 changes: 24 additions & 31 deletions client_jms/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
#
-->

<project name="client_jms" default="build_client_jms">
<project name="client_jms" default="build_client_jms" xmlns:if="ant:if" xmlns:unless="ant:unless">

<property environment="env"/>
<property name="client.jms.src.dir" location="${client.jms.dir}/src" />
<property name="client.jms.ext.src.dir" location="${client.jms.dir}/../client_jms_ext/src" />
Expand Down Expand Up @@ -302,10 +303,7 @@
<equals arg1="${os.name}" arg2="SunOS"/>
</condition>

<if>
<isset property="generate_coverage" />
<then>
<coverage destfile="${client.jms.bin.dir}/jacoco.exec">
<coverage if:set="generate_coverage" destfile="${client.jms.bin.dir}/jacoco.exec">
<junit printsummary="no" haltonfailure="false" haltonerror="false" jvm="java" showoutput="yes" fork="true" forkmode="once">
<jvmarg value="${jvmargadd_1}" />
<classpath refid="test.classpath" />
Expand All @@ -314,17 +312,13 @@
<test name="com.ibm.ima.jms.impl.AllTests" fork="yes" todir="${test.data.dir}"/>
</junit>
</coverage>
</then>
<else>
<junit printsummary="no" haltonfailure="true" haltonerror="true" jvm="java" showoutput="yes">
<junit unless:set="generate_coverage" printsummary="no" haltonfailure="true" haltonerror="true" jvm="java" showoutput="yes">
<jvmarg value="${jvmargadd_1}" />
<classpath refid="test.classpath" />
<formatter type="xml" />
<formatter type="plain" usefile="no" />
<test name="com.ibm.ima.jms.impl.AllTests" fork="yes" todir="${test.data.dir}"/>
</junit>
</else>
</if>

<!-- HTML report for the unit tests -->
<junitreport todir="${test.data.dir}" >
Expand Down Expand Up @@ -399,27 +393,26 @@
<!-- Executing RPX tool for pseudo translation-->

<target name="NWays_mock" if="rpx.path.exists" unless="translations.present" description="Runs RPX class to do pseudo translation">
<if>
<equals arg1="${msgcat.path.exists}" arg2="true"/>
<then>
<!-- Classpath for RPX -->
<path id="rpx.specific.classpath">
<pathelement location="rpx.jar"/>
<fileset dir="${client.jms.rpx.dir}">
<include name="**/*.jar"/>
</fileset>
</path>

<taskdef name="nways" classname="com.ibm.rpx.ant.Nw" classpathref="rpx.specific.classpath"/>

<echo message="Running RPX"/>
<nways classpath="${client.jms.rpx.dir};${client.jms.rpx.dir}\rpx.jar;${ant.home}/lib/ant.jar" ways="fr de ja zh zh_TW" >
<fileset dir="${client.common.dir}/msgcat/com/ibm/ima/jms/msgcatalog/">
<include name="IsmJmsListResourceBundle.java"/>
</fileset>
</nways>
</then>
</if>
<condition property="shouldrun">
<equals arg1="${msgcat.path.exists}" arg2="true"/>
</condition>

<!-- Classpath for RPX -->
<path if:set="shouldrun" id="rpx.specific.classpath">
<pathelement location="rpx.jar"/>
<fileset dir="${client.jms.rpx.dir}">
<include name="**/*.jar"/>
</fileset>
</path>

<taskdef if:set="shouldrun" name="nways" classname="com.ibm.rpx.ant.Nw" classpathref="rpx.specific.classpath"/>

<echo if:set="shouldrun" message="Running RPX"/>
<nways if:set="shouldrun" classpath="${client.jms.rpx.dir};${client.jms.rpx.dir}\rpx.jar;${ant.home}/lib/ant.jar" ways="fr de ja zh zh_TW" >
<fileset dir="${client.common.dir}/msgcat/com/ibm/ima/jms/msgcatalog/">
<include name="IsmJmsListResourceBundle.java"/>
</fileset>
</nways>
</target>

<!-- Initialize the build environment -->
Expand Down
41 changes: 17 additions & 24 deletions client_mqtt/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#
-->

<project name="client_mqtt" default="build_client_mqtt">
<project name="client_mqtt" default="build_client_mqtt" xmlns:if="ant:if" xmlns:unless="ant:unless">
<property environment="env"/>
<property name="client.mqtt.src.dir" location="${client.mqtt.dir}/src" />
<property name="client.mqtt.test.src.dir" location="${client.mqtt.dir}/test" />
Expand Down Expand Up @@ -165,29 +165,22 @@
<equals arg1="${os.name}" arg2="SunOS"/>
</condition>

<if>
<isset property="generate_coverage" />
<then>
<coverage destfile="${client.mqtt.bin.dir}/jacoco.exec">
<junit printsummary="no" haltonfailure="false" haltonerror="false" jvm="java" showoutput="yes" fork="true" forkmode="once">
<jvmarg value="${jvmargadd_1}" />
<classpath refid="test.classpath" />
<formatter type="xml" />
<formatter type="plain" usefile="no" />
<test name="com.ibm.ism.mqtt.AllTests" fork="yes" todir="${test.data.dir}"/>
</junit>
</coverage>
</then>
<else>
<junit printsummary="no" haltonfailure="true" haltonerror="true" jvm="java" showoutput="yes">
<jvmarg value="${jvmargadd_1}" />
<classpath refid="test.classpath" />
<formatter type="xml" />
<formatter type="plain" usefile="no" />
<test name="com.ibm.ism.mqtt.AllTests" fork="yes" todir="${test.data.dir}"/>
</junit>
</else>
</if>
<coverage if:set="generate_coverage" destfile="${client.mqtt.bin.dir}/jacoco.exec">
<junit printsummary="no" haltonfailure="false" haltonerror="false" jvm="java" showoutput="yes" fork="true" forkmode="once">
<jvmarg value="${jvmargadd_1}" />
<classpath refid="test.classpath" />
<formatter type="xml" />
<formatter type="plain" usefile="no" />
<test name="com.ibm.ism.mqtt.AllTests" fork="yes" todir="${test.data.dir}"/>
</junit>
</coverage>
<junit unless:set="generate_coverage" printsummary="no" haltonfailure="true" haltonerror="true" jvm="java" showoutput="yes">
<jvmarg value="${jvmargadd_1}" />
<classpath refid="test.classpath" />
<formatter type="xml" />
<formatter type="plain" usefile="no" />
<test name="com.ibm.ism.mqtt.AllTests" fork="yes" todir="${test.data.dir}"/>
</junit>

<!-- HTML report for the unit tests -->
<junitreport todir="${test.data.dir}" >
Expand Down
52 changes: 22 additions & 30 deletions client_ra/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
#
-->

<project name="client_ra" default="build_client_ra">
<project name="client_ra" default="build_client_ra" xmlns:if="and:if" xmlns:unless="ant:unless">
<import file="../client_build/build.xml"/>
<property environment="env"/>
<property name="client.ra.src.dir" location="${client.ra.dir}/src" />
<property name="client.ra.test.src.dir" location="${client.ra.dir}/test" />
Expand Down Expand Up @@ -204,29 +205,22 @@
<equals arg1="${os.name}" arg2="SunOS"/>
</condition>

<if>
<isset property="generate_coverage" />
<then>
<coverage destfile="${client.ra.bin.dir}/jacoco.exec">
<junit printsummary="no" haltonfailure="false" haltonerror="false" jvm="java" showoutput="yes" fork="true" forkmode="once">
<jvmarg value="${jvmargadd_1}" />
<classpath refid="test.classpath" />
<formatter type="xml" />
<formatter type="plain" usefile="no" />
<test name="com.ibm.ima.ra.AllTests" fork="yes" todir="${test.data.dir}"/>
</junit>
</coverage>
</then>
<else>
<junit printsummary="no" haltonfailure="true" haltonerror="true" jvm="java" showoutput="yes">
<jvmarg value="${jvmargadd_1}" />
<classpath refid="test.classpath" />
<formatter type="xml" />
<formatter type="plain" usefile="no" />
<test name="com.ibm.ima.ra.AllTests" fork="yes" todir="${test.data.dir}"/>
</junit>
</else>
</if>
<coverage if:set="generate_coverage" destfile="${client.ra.bin.dir}/jacoco.exec">
<junit printsummary="no" haltonfailure="false" haltonerror="false" jvm="java" showoutput="yes" fork="true" forkmode="once">
<jvmarg value="${jvmargadd_1}" />
<classpath refid="test.classpath" />
<formatter type="xml" />
<formatter type="plain" usefile="no" />
<test name="com.ibm.ima.ra.AllTests" fork="yes" todir="${test.data.dir}"/>
</junit>
</coverage>
<junit unless:set="generate_coverage" printsummary="no" haltonfailure="true" haltonerror="true" jvm="java" showoutput="yes">
<jvmarg value="${jvmargadd_1}" />
<classpath refid="test.classpath" />
<formatter type="xml" />
<formatter type="plain" usefile="no" />
<test name="com.ibm.ima.ra.AllTests" fork="yes" todir="${test.data.dir}"/>
</junit>

<!-- HTML report for the unit tests -->
<junitreport todir="${test.data.dir}" >
Expand Down Expand Up @@ -291,12 +285,10 @@
<!-- Executing RPX tool for pseudo translation-->

<target name="NWays_mock" if="rpx.path.exists" unless="translations.present" description="Runs RPX class to do pseudo translation">
<if>
<equals arg1="${msgcat.path.exists}" arg2="false"/>
<then>
<mkdir dir="${client.common.dir}/msgcat" />
</then>
</if>
<condition property="make_dir" value="true" else="false">
<equals arg1="${msgcat.path.exists}" args2="false"/>
</condition>
<mkdir if:set="make_dir" dir="${client.common.dir}/msgcat" />
<!-- Classpath for RPX -->
<path id="rpx.specific.classpath">
<pathelement location="rpx.jar"/>
Expand Down
2 changes: 1 addition & 1 deletion operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
VERSION ?= 1.1.1
VERSION ?= 1.1.2

# CHANNELS define the bundle channels used in the bundle.
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
Expand Down
2 changes: 1 addition & 1 deletion operator/build/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
requests==2.25.1
PyYAML==5.4.1
PyYAML==6.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ metadata:
]
capabilities: Seamless Upgrades
categories: Streaming & Messaging
containerImage: quay.io/amlen/operator:v1.1.1
containerImage: quay.io/amlen/operator:v1.1.2
createdAt: "2022-11-24T15:31:00Z"
description: An operator to run the Eclipse Amlen MQTT Broker
operators.operatorframework.io/builder: operator-sdk-v1.25.2
operators.operatorframework.io/project_layout: ansible.sdk.operatorframework.io/v1
repository: https://github.com/eclipse/amlen
name: eclipse-amlen-operator.v1.1.1
name: eclipse-amlen-operator.v1.1.2
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -225,7 +225,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.annotations['olm.targetNamespaces']
image: quay.io/amlen/operator:v1.1.1
image: quay.io/amlen/operator:v1.1.2
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -310,4 +310,4 @@ spec:
provider:
name: Eclipse Amlen
url: https://eclipse.org/amlen
version: 1.1.1
version: 1.1.2
2 changes: 1 addition & 1 deletion server_admin/test/admin_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ CU_TestInfo ISM_ThreadPool_CUnit_ConfigBasic[] = {
CU_TestInfo ISM_LTPA_CUnit_ConfigBasic[] = {
{"InitLTPATest", testLTPAUtilInit },
{"LTPAReadKeyFileTest", test_ism_security_ltpaReadKeyfile },
{"LTPADecodeV2TokenTest", test_ism_security_ltpaV2DecodeToken },
// {"LTPADecodeV2TokenTest", test_ism_security_ltpaV2DecodeToken },


CU_TEST_INFO_NULL
Expand Down

0 comments on commit af2e7a2

Please sign in to comment.