tuhaihe opened a new issue, #24:
URL: https://github.com/apache/cloudberry-devops-release/issues/24

   Manually trigger the workflow, error returned 
(https://github.com/apache/cloudberry-devops-release/actions/runs/15527575318):
   
   ```
   /usr/local/lib/python3.6/site-packages/_pytest/cacheprovider.py:433: 
PytestCacheWarning: could not create cache path 
/tests/testinfra/.pytest_cache/v/cache/nodeids
   tests/testinfra/test_cloudberry_db_env.py F........                      
[100%]
   
   =================================== FAILURES 
===================================
   ________________________ test_installed_packages[local] 
________________________
   
   host = <testinfra.host.Host local>
   
       def test_installed_packages(host):
           """
           Test if the essential packages are installed.
           """
           packages = [
               "epel-release",
               "git",
               "the_silver_searcher",
               "htop",
               "bison",
               "gcc",
               "gcc-c++",
               "glibc-langpack-en",
               "glibc-locale-source",
               "openssh-clients",
               "openssh-server",
               "sudo",
               "rsync",
               "wget",
               "openssl-devel",
               "python36-devel",
               "readline-devel",
               "zlib-devel",
               "libcurl-devel",
               "libevent-devel",
               "libxml2-devel",
               "libuuid-devel",
               "libzstd-devel",
               "lz4",
               "openldap-devel",
               "libuv-devel",
               "libyaml-devel"
           ]
           for package in packages:
     config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
   /usr/local/lib/python3.6/site-packages/_pytest/cacheprovider.py:387: 
PytestCacheWarning: could not create cache path 
/tests/testinfra/.pytest_cache/v/cache/lastfailed
     config.cache.set("cache/lastfailed", self.lastfailed)
   /usr/local/lib/python3.6/site-packages/_pytest/stepwise.py:52: 
PytestCacheWarning: could not create cache path 
/tests/testinfra/.pytest_cache/v/cache/stepwise
     session.config.cache.set(STEPWISE_CACHE_DIR, [])
               pkg = host.package(package)
   >           assert pkg.is_installed
   E           assert False
   E            +  where False = <package gcc>.is_installed
   
   tests/testinfra/test_cloudberry_db_env.py:58: AssertionError
   =========================== short test summary info 
============================
   FAILED 
tests/testinfra/test_cloudberry_db_env.py::test_installed_packages[local]
   ========================= 1 failed, 8 passed in 0.16s 
==========================
   ```
   
   I guess we need to update the GCC update method.
   
   Now:
   
   ```
   dnf install  \
           gcc-toolset-11-gcc \
           gcc-toolset-11-gcc-c++
   
   ...
   
   echo "source /opt/rh/gcc-toolset-11/enable" >> /etc/profile.d/gcc.sh && \
   source /etc/profile.d/gcc.sh
   
   ....
   ```
   
   Possible way:
   
   ```
   update-alternatives --install /usr/bin/gcc gcc 
/opt/rh/gcc-toolset-11/root/usr/bin/gcc 100
   update-alternatives --install /usr/bin/g++ g++ 
/opt/rh/gcc-toolset-11/root/usr/bin/g++ 100
   ```
   
   To be verified.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudberry.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cloudberry.apache.org
For additional commands, e-mail: commits-h...@cloudberry.apache.org

Reply via email to