diff --git a/eng/pipelines/pr-validation-pipeline.yml b/eng/pipelines/pr-validation-pipeline.yml index ebdda36f..5503e501 100644 --- a/eng/pipelines/pr-validation-pipeline.yml +++ b/eng/pipelines/pr-validation-pipeline.yml @@ -982,6 +982,7 @@ jobs: ./build.sh " displayName: 'Build pybind bindings (.so) in $(distroName) ARM64 container' + retryCountOnTaskFailure: 2 - script: | # Uninstall ODBC Driver before running tests @@ -1101,18 +1102,17 @@ jobs: dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms || dnf config-manager --set-enabled ubi-9-codeready-builder - # Install Python 3.9 (available in RHEL 9 UBI) and development tools - dnf install -y python3 python3-pip python3-devel cmake curl wget gnupg2 glibc-devel kernel-headers - dnf install -y python3-libs python3-debug - dnf install -y gcc gcc-c++ make binutils - dnf install -y cmake + # Install Python 3.12 (available in RHEL 9.4+) and development tools + # Note: curl and wget omitted to avoid conflicts with curl-minimal + dnf install -y python3.12 python3.12-pip python3.12-devel python3.12-libs gnupg2 glibc-devel kernel-headers + dnf install -y gcc gcc-c++ make binutils cmake # If that doesn't work, try installing from different repositories if ! which gcc; then echo 'Trying alternative gcc installation...' dnf --enablerepo=ubi-9-codeready-builder install -y gcc gcc-c++ fi # Verify installation - python3 --version + python3.12 --version which gcc && which g++ gcc --version g++ --version @@ -1164,8 +1164,8 @@ jobs: - script: | # Install Python dependencies in the container using virtual environment docker exec test-container-rhel9 bash -c " - # Create a virtual environment with Python 3.9 - python3 -m venv myvenv + # Create a virtual environment with Python 3.12 + python3.12 -m venv myvenv source myvenv/bin/activate # Install dependencies in the virtual environment @@ -1181,7 +1181,7 @@ jobs: # Build pybind bindings in the container docker exec test-container-rhel9 bash -c " source myvenv/bin/activate - ls /usr/include/python3.9 + ls /usr/include/python3.12 # Set compiler environment variables export CC=/usr/bin/gcc export CXX=/usr/bin/g++ @@ -1317,18 +1317,17 @@ jobs: dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms || dnf config-manager --set-enabled ubi-9-codeready-builder - # Install Python 3.9 (available in RHEL 9 UBI) and development tools - dnf install -y python3 python3-pip python3-devel cmake curl wget gnupg2 glibc-devel kernel-headers - dnf install -y python3-libs python3-debug - dnf install -y gcc gcc-c++ make binutils - dnf install -y cmake + # Install Python 3.12 (available in RHEL 9.4+) and development tools + # Note: curl and wget omitted to avoid conflicts with curl-minimal + dnf install -y python3.12 python3.12-pip python3.12-devel python3.12-libs gnupg2 glibc-devel kernel-headers + dnf install -y gcc gcc-c++ make binutils cmake # If that doesn't work, try installing from different repositories if ! which gcc; then echo 'Trying alternative gcc installation...' dnf --enablerepo=ubi-9-codeready-builder install -y gcc gcc-c++ fi # Verify installation and architecture - python3 --version + python3.12 --version which gcc && which g++ gcc --version g++ --version @@ -1383,8 +1382,8 @@ jobs: - script: | # Install Python dependencies in the container using virtual environment docker exec test-container-rhel9-arm64 bash -c " - # Create a virtual environment with Python 3.9 - python3 -m venv myvenv + # Create a virtual environment with Python 3.12 + python3.12 -m venv myvenv source myvenv/bin/activate # Install dependencies in the virtual environment @@ -1400,7 +1399,7 @@ jobs: # Build pybind bindings in the ARM64 container docker exec test-container-rhel9-arm64 bash -c " source myvenv/bin/activate - ls /usr/include/python3.9 + ls /usr/include/python3.12 # Set compiler environment variables export CC=/usr/bin/gcc export CXX=/usr/bin/g++ @@ -1410,6 +1409,7 @@ jobs: ./build.sh " displayName: 'Build pybind bindings (.so) in RHEL 9 ARM64 container' + retryCountOnTaskFailure: 2 - script: | # Uninstall ODBC Driver before running tests @@ -1881,6 +1881,7 @@ jobs: ./build.sh " displayName: 'Build pybind bindings (.so) in Alpine ARM64 container' + retryCountOnTaskFailure: 2 - script: | # Uninstall ODBC Driver before running tests to use bundled libraries