From 098ccb531f444375dbd1c8ac6e0a11a45bbbe181 Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Fri, 11 Jul 2025 11:00:14 +0530 Subject: [PATCH 01/12] Modified pandas_ubi_9.3.sh --- p/pandas/pandas_ubi_9.3.sh | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/p/pandas/pandas_ubi_9.3.sh b/p/pandas/pandas_ubi_9.3.sh index 1b4a573085..285d55adac 100644 --- a/p/pandas/pandas_ubi_9.3.sh +++ b/p/pandas/pandas_ubi_9.3.sh @@ -16,40 +16,36 @@ # package and/or distribution. In such case, please # contact "Maintainer" of this script. # -# ---------------------------------------------------------------------------- +# ----------------------------------------------------------------------------- PACKAGE_NAME=pandas -PACKAGE_VERSION=${1:-v2.2.0} -PYTHON_VERSION=${2:-3.11} +PACKAGE_VERSION=${1:-v2.3.0} PACKAGE_URL=https://github.com/pandas-dev/pandas.git -yum install -y python${PYTHON_VERSION} python${PYTHON_VERSION}-devel python${PYTHON_VERSION}-pip git gcc gcc-c++ cmake ninja-build openblas-devel gcc-gfortran +yum install -y python3.12 python3.12-devel python3.12-pip git gcc gcc-c++ cmake ninja-build openblas-devel gcc-gfortran git clone $PACKAGE_URL cd $PACKAGE_NAME/ git checkout $PACKAGE_VERSION git submodule update --init --recursive -# Setup virtual environment for python -python${PYTHON_VERSION} -m venv pandas-env -source pandas-env/bin/activate - -pip install --upgrade pip setuptools wheel -pip install "numpy==2.0.2" "scipy>=1.8.0,<1.16.0" -pip install cython meson-python ninja joblib threadpoolctl patchelf pytest build +# Setup virtual environment for python3.12 +#python3.12 -m venv pandas-env +#source pandas-env/bin/activate +python3.12 -m pip install --upgrade pip setuptools wheel +python3.12 -m pip install "numpy==2.0.2" "scipy>=1.8.0,<1.16.0" +python3.12 -m pip install cython meson-python ninja joblib threadpoolctl patchelf pytest build # Optional install via setup (dev install) -python${PYTHON_VERSION} -m pip install . +python3.12 -m pip install . # Build the package and create whl file (This is dependent on cython) -python${PYTHON_VERSION} -m build --wheel - +#python3.12 -m build --wheel # Test the package cd .. -python${PYTHON_VERSION} -m pip show pandas -python${PYTHON_VERSION} -c "import pandas; print(pandas.__file__)" +python3.12 -c "import pandas; print(pandas.__file__)" if [ $? == 0 ]; then echo "------------------$PACKAGE_NAME::Test_Pass---------------------" @@ -57,8 +53,7 @@ if [ $? == 0 ]; then echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | Pass | Test_Success" # Deactivate python environment (pandas-env) - deactivate - + deactivate exit 0 else echo "------------------$PACKAGE_NAME::Test_Fail-------------------------" From b6512e734a27d9a018c40548e974129468ac37de Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Fri, 11 Jul 2025 11:46:01 +0530 Subject: [PATCH 02/12] Update pandas_ubi_9.3.sh --- p/pandas/pandas_ubi_9.3.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/p/pandas/pandas_ubi_9.3.sh b/p/pandas/pandas_ubi_9.3.sh index 285d55adac..f247cdd75f 100644 --- a/p/pandas/pandas_ubi_9.3.sh +++ b/p/pandas/pandas_ubi_9.3.sh @@ -53,7 +53,6 @@ if [ $? == 0 ]; then echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | Pass | Test_Success" # Deactivate python environment (pandas-env) - deactivate exit 0 else echo "------------------$PACKAGE_NAME::Test_Fail-------------------------" From c9269227f39620a31f84110f5e1173542dc6a1d5 Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Fri, 11 Jul 2025 15:18:22 +0530 Subject: [PATCH 03/12] added build_script for uvloop --- u/uvloop/LICENSE | 201 +++++++++++++++++++++++++++++++++++++++ u/uvloop/build_info.json | 16 ++++ u/uvloop/uvloop_ubi_9.sh | 68 +++++++++++++ 3 files changed, 285 insertions(+) create mode 100644 u/uvloop/LICENSE create mode 100644 u/uvloop/build_info.json create mode 100644 u/uvloop/uvloop_ubi_9.sh diff --git a/u/uvloop/LICENSE b/u/uvloop/LICENSE new file mode 100644 index 0000000000..8dada3edaf --- /dev/null +++ b/u/uvloop/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/u/uvloop/build_info.json b/u/uvloop/build_info.json new file mode 100644 index 0000000000..72a4eb4fcf --- /dev/null +++ b/u/uvloop/build_info.json @@ -0,0 +1,16 @@ +{ + "maintainer": "rusiyamanya", + "package_name": "uvloop", + "github_url": "https://github.com/MagicStack/uvloop", + "version": "v0.21.0", + "wheel_build" : true, + "default_branch": "master", + "build_script": "uvloop_ubi_9.sh", + "package_dir": "u/uvloop", + "docker_build": false, + "validate_build_script": true, + "use_non_root_user": false, + "v0.21.0": { + "build_script": "uvloop_ubi_9.sh" + } +} diff --git a/u/uvloop/uvloop_ubi_9.sh b/u/uvloop/uvloop_ubi_9.sh new file mode 100644 index 0000000000..26f4223d29 --- /dev/null +++ b/u/uvloop/uvloop_ubi_9.sh @@ -0,0 +1,68 @@ +#!/bin/bash -e +# ----------------------------------------------------------------------------- +# +# Package : uvloop +# Version : v0.21.0 +# Source repo : https://github.com/MagicStack/uvloop +# Tested on : UBI 9 +# Language : Python +# Travis-Check : True +# Script License: Apache License 2.0 +# Maintainer : Manya Rusiya +# +# Disclaimer: This script has been tested in root mode on given +# ========== platform using the mentioned version of the package. +# It may not work as expected with newer versions of the +# package and/or distribution. In such case, please +# contact "Maintainer" of this script. +# +# ----------------------------------------------------------------------------- + +PACKAGE_NAME=uvloop +PACKAGE_VERSION=${1:-v0.21.0} +PACKAGE_URL=https://github.com/MagicStack/uvloop +PACKAGE_DIR=uvloop + + +# Install dependencies +yum install -y git python3.12 python3.12-devel python3.12-pip \ + gcc gcc-c++ gzip tar make wget xz cmake yum-utils \ + openssl-devel openblas-devel bzip2-devel bzip2 zip unzip libffi-devel \ + zlib-devel autoconf automake libtool cargo \ + pkgconf-pkg-config fontconfig fontconfig-devel sqlite-devel + +# Clone the repository +git clone --recursive $PACKAGE_URL +cd $PACKAGE_NAME +git checkout $PACKAGE_VERSION +git submodule update --init --recursive + +# Upgrade pip and install build/test dependencies +python3.12 -m pip install --upgrade pip setuptools wheel +python3.12 -m pip install meson meson-python ninja cython pythran "pybind11>=2.13.2" +python3.12 -m pip install numpy==2.0.2 --no-build-isolation +python3.12 -m pip install "scipy>=1.8.0,<1.16.0" --no-build-isolation +python3.12 -m pip install joblib threadpoolctl patchelf pytest build hypothesis tox + +# ------------------ Install ------------------ +if ! (python3.12 -m pip install .); then + echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_Fails" + exit 1 +fi + +# ------------------ Test ------------------ +cd $PACKAGE_NAME + +if ! tox -e py312; then + echo "------------------$PACKAGE_NAME:Install_success_but_test_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_success_but_test_Fails" + exit 2 +else + echo "------------------$PACKAGE_NAME:Install_&_test_both_success-------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Pass | Both_Install_and_Test_Success" + exit 0 +fi From a955e9724b41a2e4e79d9895d208b77e5245accd Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Fri, 11 Jul 2025 15:39:46 +0530 Subject: [PATCH 04/12] Update uvloop_ubi_9.sh --- u/uvloop/uvloop_ubi_9.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u/uvloop/uvloop_ubi_9.sh b/u/uvloop/uvloop_ubi_9.sh index 26f4223d29..a6fab887f3 100644 --- a/u/uvloop/uvloop_ubi_9.sh +++ b/u/uvloop/uvloop_ubi_9.sh @@ -26,7 +26,7 @@ PACKAGE_DIR=uvloop # Install dependencies yum install -y git python3.12 python3.12-devel python3.12-pip \ - gcc gcc-c++ gzip tar make wget xz cmake yum-utils \ + gcc gcc-c++ gcc-gfortran gzip tar make wget xz cmake yum-utils \ openssl-devel openblas-devel bzip2-devel bzip2 zip unzip libffi-devel \ zlib-devel autoconf automake libtool cargo \ pkgconf-pkg-config fontconfig fontconfig-devel sqlite-devel From cd9c11e3b67cedd93f824e61bcc9346de03c222c Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Mon, 14 Jul 2025 10:51:56 +0530 Subject: [PATCH 05/12] Update build_info.json --- u/uvloop/build_info.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u/uvloop/build_info.json b/u/uvloop/build_info.json index 72a4eb4fcf..79b990fbde 100644 --- a/u/uvloop/build_info.json +++ b/u/uvloop/build_info.json @@ -10,7 +10,7 @@ "docker_build": false, "validate_build_script": true, "use_non_root_user": false, - "v0.21.0": { + "*": { "build_script": "uvloop_ubi_9.sh" } } From b4735820e53955c4e38096245ac9c565dd193868 Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Mon, 14 Jul 2025 10:55:03 +0530 Subject: [PATCH 06/12] Update build_info.json --- u/uvloop/build_info.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u/uvloop/build_info.json b/u/uvloop/build_info.json index 79b990fbde..e29590f27e 100644 --- a/u/uvloop/build_info.json +++ b/u/uvloop/build_info.json @@ -10,7 +10,7 @@ "docker_build": false, "validate_build_script": true, "use_non_root_user": false, - "*": { + "*": { "build_script": "uvloop_ubi_9.sh" } } From b571cce901e6afd28c8d5aa22016fd7cf75e425a Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Mon, 14 Jul 2025 12:06:45 +0530 Subject: [PATCH 07/12] Update build_info.json --- u/uvloop/build_info.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/u/uvloop/build_info.json b/u/uvloop/build_info.json index e29590f27e..936f2a59d9 100644 --- a/u/uvloop/build_info.json +++ b/u/uvloop/build_info.json @@ -5,12 +5,12 @@ "version": "v0.21.0", "wheel_build" : true, "default_branch": "master", - "build_script": "uvloop_ubi_9.sh", + "build_script": "uvloop_ubi_9.3.sh", "package_dir": "u/uvloop", "docker_build": false, "validate_build_script": true, "use_non_root_user": false, "*": { - "build_script": "uvloop_ubi_9.sh" + "build_script": "uvloop_ubi_9.3.sh" } } From dec1ba31694ceb02456c3185a20c93d071b2264a Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Mon, 14 Jul 2025 12:07:05 +0530 Subject: [PATCH 08/12] Update and rename uvloop_ubi_9.sh to uvloop_ubi_9.3.sh --- u/uvloop/{uvloop_ubi_9.sh => uvloop_ubi_9.3.sh} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename u/uvloop/{uvloop_ubi_9.sh => uvloop_ubi_9.3.sh} (99%) diff --git a/u/uvloop/uvloop_ubi_9.sh b/u/uvloop/uvloop_ubi_9.3.sh similarity index 99% rename from u/uvloop/uvloop_ubi_9.sh rename to u/uvloop/uvloop_ubi_9.3.sh index a6fab887f3..4c769e965a 100644 --- a/u/uvloop/uvloop_ubi_9.sh +++ b/u/uvloop/uvloop_ubi_9.3.sh @@ -4,7 +4,7 @@ # Package : uvloop # Version : v0.21.0 # Source repo : https://github.com/MagicStack/uvloop -# Tested on : UBI 9 +# Tested on : UBI 9.3 # Language : Python # Travis-Check : True # Script License: Apache License 2.0 From fea0710b3632ca84d6c15ec2a954a4ce06e91536 Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Wed, 14 Jan 2026 11:51:15 +0530 Subject: [PATCH 09/12] build_script added for ubi plugin --- o/opensearch-project-ubi/LICENSE | 201 ++++++++++++++++++ o/opensearch-project-ubi/build_info.json | 16 ++ .../opensearch-project-ubi_3.3.0.0_ubi_9.6.sh | 79 +++++++ 3 files changed, 296 insertions(+) create mode 100644 o/opensearch-project-ubi/LICENSE create mode 100644 o/opensearch-project-ubi/build_info.json create mode 100644 o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh diff --git a/o/opensearch-project-ubi/LICENSE b/o/opensearch-project-ubi/LICENSE new file mode 100644 index 0000000000..8dada3edaf --- /dev/null +++ b/o/opensearch-project-ubi/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/o/opensearch-project-ubi/build_info.json b/o/opensearch-project-ubi/build_info.json new file mode 100644 index 0000000000..4bd6339870 --- /dev/null +++ b/o/opensearch-project-ubi/build_info.json @@ -0,0 +1,16 @@ +{ + "maintainer": "Manya.Rusiya@ibm.com", + "package_name": "opensearch-project-ubi", + "github_url": "https://github.com/opensearch-project/user-behavior-insights", + "version": "3.3.0.0", + "required_versions":{"Releases": ["*"], "Tags": ["3.3.0.0"]}, + "default_branch": "main", + "package_dir": "o/opensearch-project-ubi", + "build_script": "opensearch-project-ubi_3.3.0.0_ubi_9.6.sh", + "validate_build_script": "true", + "use_non_root_user": "true", + "docker_build": "false", + "3.3.0.0" : { + "build_script": "opensearch-project-ubi_3.3.0.0_ubi_9.6.sh" + } +} diff --git a/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh b/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh new file mode 100644 index 0000000000..7c5a9613d5 --- /dev/null +++ b/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh @@ -0,0 +1,79 @@ +#!/bin/bash -ex +# ----------------------------------------------------------------------------- +# +# Package : user-behavior-insights +# Version : 3.3.0.0 +# Source repo : https://github.com/opensearch-project/user-behavior-insights +# Tested on : UBI:9.6 +# Language : Java +# Ci-Check : True +# Script License : Apache License, Version 2 or later +# Maintainer : Manya Rusiya +# +# Disclaimer : This script has been tested in non-root mode on given +# ========== platform using the mentioned version of the package. +# It may not work as expected with newer versions of the +# package and/or distribution. In such case, please +# contact "Maintainer" of this script. +# +# --------------------------------------------------------------------------- + +PACKAGE_NAME=user-behavior-insights +PACKAGE_URL=https://github.com/opensearch-project/user-behavior-insights +SCRIPT_PACKAGE_VERSION="3.3.0.0" +PACKAGE_VERSION="${1:-$SCRIPT_PACKAGE_VERSION}" +OPENSEARCH_VERSION="${PACKAGE_VERSION::-2}" +OPENSEARCH_PACKAGE="OpenSearch" +wdir=`pwd` + +sudo yum install -y git java-21-openjdk-devel +export JAVA_HOME=/usr/lib/jvm/java-21-openjdk +export PATH=$PATH:$JAVA_HOME/bin + + +#-------------------------------- +#Build opensearch-project and publish build tools +#------------------------------- +cd $wdir +git clone https://github.com/opensearch-project/OpenSearch.git +cd OpenSearch +git checkout $OPENSEARCH_VERSION +./gradlew -p distribution/archives/linux-ppc64le-tar assemble +./gradlew -Prelease=true publishToMavenLocal +./gradlew :build-tools:publishToMavenLocal + + +# --------------------------- +# Build Job Scheduler +# --------------------------- +cd $wdir +git clone https://github.com/opensearch-project/job-scheduler +cd job-scheduler +git checkout $PACKAGE_VERSION +./gradlew assemble +./gradlew -Prelease=true publishToMavenLocal + + + +cd $wdir +git clone $PACKAGE_URL +cd $PACKAGE_NAME && git checkout $PACKAGE_VERSION + + +if ! ./gradlew build ; then + echo "------------------$PACKAGE_NAME:Build_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail | Build_Fails" + exit 1 +elif ! ./gradlew test; then + echo "------------------$PACKAGE_NAME::Test_fails-------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail| Test_fails" + exit 2 +else + # If both the build and test are successful, print the success message + echo "------------------$PACKAGE_NAME:: Build_and_Test_success-------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Both_Build_and_Test_Success" + exit 0 +fi \ No newline at end of file From 9f573b85ed48ad1a77455e1e3c55e159fb910cf2 Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Wed, 14 Jan 2026 12:40:05 +0530 Subject: [PATCH 10/12] removed sudo --- .../opensearch-project-ubi_3.3.0.0_ubi_9.6.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh b/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh index 7c5a9613d5..39e6525467 100644 --- a/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh +++ b/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh @@ -26,7 +26,7 @@ OPENSEARCH_VERSION="${PACKAGE_VERSION::-2}" OPENSEARCH_PACKAGE="OpenSearch" wdir=`pwd` -sudo yum install -y git java-21-openjdk-devel +yum install -y git java-21-openjdk-devel export JAVA_HOME=/usr/lib/jvm/java-21-openjdk export PATH=$PATH:$JAVA_HOME/bin @@ -76,4 +76,4 @@ else echo "$PACKAGE_URL $PACKAGE_NAME" echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Both_Build_and_Test_Success" exit 0 -fi \ No newline at end of file +fi From 1b6ab3eece2ddc69712e6bb5ec572137388b7c3b Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Wed, 14 Jan 2026 12:52:02 +0530 Subject: [PATCH 11/12] Change yum install to use sudo --- .../opensearch-project-ubi_3.3.0.0_ubi_9.6.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh b/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh index 39e6525467..2020430407 100644 --- a/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh +++ b/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh @@ -26,7 +26,7 @@ OPENSEARCH_VERSION="${PACKAGE_VERSION::-2}" OPENSEARCH_PACKAGE="OpenSearch" wdir=`pwd` -yum install -y git java-21-openjdk-devel +sudo yum install -y git java-21-openjdk-devel export JAVA_HOME=/usr/lib/jvm/java-21-openjdk export PATH=$PATH:$JAVA_HOME/bin From b22892561b636c5d0c6474efe1c4e3c69836ff4d Mon Sep 17 00:00:00 2001 From: rusiyamanya Date: Thu, 15 Jan 2026 12:23:32 +0530 Subject: [PATCH 12/12] Enhance build script with test skipping option Refactor build and test process with CLI argument handling. --- .../opensearch-project-ubi_3.3.0.0_ubi_9.6.sh | 85 +++++++++++++++---- 1 file changed, 68 insertions(+), 17 deletions(-) diff --git a/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh b/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh index 2020430407..372b292576 100644 --- a/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh +++ b/o/opensearch-project-ubi/opensearch-project-ubi_3.3.0.0_ubi_9.6.sh @@ -18,18 +18,49 @@ # # --------------------------------------------------------------------------- +# --------------------------- +# Configuratio +# --------------------------- + PACKAGE_NAME=user-behavior-insights PACKAGE_URL=https://github.com/opensearch-project/user-behavior-insights SCRIPT_PACKAGE_VERSION="3.3.0.0" PACKAGE_VERSION="${1:-$SCRIPT_PACKAGE_VERSION}" OPENSEARCH_VERSION="${PACKAGE_VERSION::-2}" OPENSEARCH_PACKAGE="OpenSearch" -wdir=`pwd` +RUNTESTS=1 +wdir="$(pwd)" + +# ------------------- +# Parse CLI Arguments +# ------------------- +for i in "$@"; do + case $i in + --skip-tests) + RUNTESTS=0 + echo "Skipping tests" + shift + ;; + -*|--*) + echo "Unknown option $i" + exit 3 + ;; + *) + PACKAGE_VERSION=$i + echo "Building ${PACKAGE_NAME} ${PACKAGE_VERSION}" + ;; + esac +done + +# --------------------------- +# Dependency Installation +# --------------------------- sudo yum install -y git java-21-openjdk-devel export JAVA_HOME=/usr/lib/jvm/java-21-openjdk export PATH=$PATH:$JAVA_HOME/bin +sudo chown -R test_user:test_user /home/tester #-------------------------------- #Build opensearch-project and publish build tools @@ -53,27 +84,47 @@ git checkout $PACKAGE_VERSION ./gradlew assemble ./gradlew -Prelease=true publishToMavenLocal - +# --------------------------- +# Clone and Prepare Repository +# --------------------------- cd $wdir git clone $PACKAGE_URL cd $PACKAGE_NAME && git checkout $PACKAGE_VERSION -if ! ./gradlew build ; then - echo "------------------$PACKAGE_NAME:Build_fails---------------------" - echo "$PACKAGE_URL $PACKAGE_NAME" - echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail | Build_Fails" - exit 1 -elif ! ./gradlew test; then - echo "------------------$PACKAGE_NAME::Test_fails-------------------------" - echo "$PACKAGE_URL $PACKAGE_NAME" - echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail| Test_fails" - exit 2 -else - # If both the build and test are successful, print the success message - echo "------------------$PACKAGE_NAME:: Build_and_Test_success-------------------------" - echo "$PACKAGE_URL $PACKAGE_NAME" - echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Both_Build_and_Test_Success" + +# -------- +# Build +# -------- +ret=0 +./gradlew build || ret=$? +if [ $ret -ne 0 ]; then + set +ex + echo "------------------ ${PACKAGE_NAME}: Build Failed ------------------" + exit 1 +fi + +# --------------------------- +# Skip Tests? +# --------------------------- +if [ "$RUNTESTS" -eq 0 ]; then + set +ex + echo "------------------ Complete: Build successful! Tests skipped. ------------------" exit 0 fi + + +# ----------------- +# Test +# ----------------- +ret=0 +./gradlew test || ret=$? +if [ $ret -ne 0 ]; then + set +ex + echo "------------------ ${PACKAGE_NAME}: Integration Test Failed ------------------" + exit 2 +fi + +set +ex +echo "Complete: Build and Tests successful!"