You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "Yangsx-1 (via GitHub)" <gi...@apache.org> on 2023/07/21 01:56:40 UTC

[GitHub] [kvrocks] Yangsx-1 opened a new pull request, #1601: Add an archlinux environment for building and testing in CI

Yangsx-1 opened a new pull request, #1601:
URL: https://github.com/apache/kvrocks/pull/1601

   Close #1579 


-- 
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: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] tisonkun commented on a diff in pull request #1601: Add an archlinux environment for building and testing in CI

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on code in PR #1601:
URL: https://github.com/apache/kvrocks/pull/1601#discussion_r1271277252


##########
.github/workflows/kvrocks.yaml:
##########
@@ -310,7 +313,16 @@ jobs:
         if: ${{ startsWith(matrix.image, 'centos') }}
         run: |
           yum install -y centos-release-scl-rh
-          yum install -y devtoolset-11 python3 autoconf automake wget git
+          yum install -y devtoolset-11 python3 autoconf automake wget git gcc gcc-c++
+          echo "NPROC=$(nproc)" >> $GITHUB_ENV
+          mv /usr/bin/gcc /usr/bin/gcc-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/gcc /usr/bin/gcc
+          mv /usr/bin/g++ /usr/bin/g++-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/g++ /usr/bin/g++

Review Comment:
   Why we cannot run `source /opt/rh/devtoolset-11/enable` exactly here?



-- 
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: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] tisonkun commented on a diff in pull request #1601: Add an archlinux environment for building and testing in CI

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on code in PR #1601:
URL: https://github.com/apache/kvrocks/pull/1601#discussion_r1271295737


##########
.github/workflows/kvrocks.yaml:
##########
@@ -310,7 +313,16 @@ jobs:
         if: ${{ startsWith(matrix.image, 'centos') }}
         run: |
           yum install -y centos-release-scl-rh
-          yum install -y devtoolset-11 python3 autoconf automake wget git
+          yum install -y devtoolset-11 python3 autoconf automake wget git gcc gcc-c++
+          echo "NPROC=$(nproc)" >> $GITHUB_ENV
+          mv /usr/bin/gcc /usr/bin/gcc-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/gcc /usr/bin/gcc
+          mv /usr/bin/g++ /usr/bin/g++-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/g++ /usr/bin/g++

Review Comment:
   We can add the archllinux support first, and refactoring for improvements later.



-- 
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: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] Yangsx-1 commented on a diff in pull request #1601: Add an archlinux environment for building and testing in CI

Posted by "Yangsx-1 (via GitHub)" <gi...@apache.org>.
Yangsx-1 commented on code in PR #1601:
URL: https://github.com/apache/kvrocks/pull/1601#discussion_r1271291235


##########
.github/workflows/kvrocks.yaml:
##########
@@ -310,7 +313,16 @@ jobs:
         if: ${{ startsWith(matrix.image, 'centos') }}
         run: |
           yum install -y centos-release-scl-rh
-          yum install -y devtoolset-11 python3 autoconf automake wget git
+          yum install -y devtoolset-11 python3 autoconf automake wget git gcc gcc-c++
+          echo "NPROC=$(nproc)" >> $GITHUB_ENV
+          mv /usr/bin/gcc /usr/bin/gcc-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/gcc /usr/bin/gcc
+          mv /usr/bin/g++ /usr/bin/g++-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/g++ /usr/bin/g++

Review Comment:
   I tried this, but it failed. `source /opt/rh/devtoolset-11/enable` takes effect only on current session. Maybe we can add this into `.bashrc`, i'll try it.



-- 
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: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] Yangsx-1 commented on a diff in pull request #1601: Add an archlinux environment for building and testing in CI

Posted by "Yangsx-1 (via GitHub)" <gi...@apache.org>.
Yangsx-1 commented on code in PR #1601:
URL: https://github.com/apache/kvrocks/pull/1601#discussion_r1271296093


##########
.github/workflows/kvrocks.yaml:
##########
@@ -310,7 +313,16 @@ jobs:
         if: ${{ startsWith(matrix.image, 'centos') }}
         run: |
           yum install -y centos-release-scl-rh
-          yum install -y devtoolset-11 python3 autoconf automake wget git
+          yum install -y devtoolset-11 python3 autoconf automake wget git gcc gcc-c++
+          echo "NPROC=$(nproc)" >> $GITHUB_ENV
+          mv /usr/bin/gcc /usr/bin/gcc-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/gcc /usr/bin/gcc
+          mv /usr/bin/g++ /usr/bin/g++-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/g++ /usr/bin/g++

Review Comment:
   > We can add the archllinux support first, and refactoring for improvements later.
   
   You mean go back to edition 00db8cf?



-- 
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: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] tisonkun commented on a diff in pull request #1601: Add an archlinux environment for building and testing in CI

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on code in PR #1601:
URL: https://github.com/apache/kvrocks/pull/1601#discussion_r1270188537


##########
.github/workflows/kvrocks.yaml:
##########
@@ -338,11 +346,15 @@ jobs:
         with:
           go-version-file: 'tests/gocase/go.mod'
 
-      - name: Build Kvrocks
+      - name: Build Kvrocks for CentOS
         if: ${{ startsWith(matrix.image, 'centos') }}
         run: |
           source /opt/rh/devtoolset-11/enable

Review Comment:
   @PragmaTwice is it possible we move this line to the setup stage so that all "Build Kvrocks" share the same script?



-- 
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: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] Yangsx-1 commented on a diff in pull request #1601: Add an archlinux environment for building and testing in CI

Posted by "Yangsx-1 (via GitHub)" <gi...@apache.org>.
Yangsx-1 commented on code in PR #1601:
URL: https://github.com/apache/kvrocks/pull/1601#discussion_r1270943822


##########
.github/workflows/kvrocks.yaml:
##########
@@ -338,11 +346,15 @@ jobs:
         with:
           go-version-file: 'tests/gocase/go.mod'
 
-      - name: Build Kvrocks
+      - name: Build Kvrocks for CentOS
         if: ${{ startsWith(matrix.image, 'centos') }}
         run: |
           source /opt/rh/devtoolset-11/enable

Review Comment:
   > @PragmaTwice is it possible we move this line to the setup stage so that all "Build Kvrocks" share the same script?
   
   I found a way to do this, maybe not elegant.  :)



-- 
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: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] tisonkun merged pull request #1601: Add an archlinux environment for building and testing in CI

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun merged PR #1601:
URL: https://github.com/apache/kvrocks/pull/1601


-- 
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: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] Yangsx-1 commented on a diff in pull request #1601: Add an archlinux environment for building and testing in CI

Posted by "Yangsx-1 (via GitHub)" <gi...@apache.org>.
Yangsx-1 commented on code in PR #1601:
URL: https://github.com/apache/kvrocks/pull/1601#discussion_r1271294814


##########
.github/workflows/kvrocks.yaml:
##########
@@ -310,7 +313,16 @@ jobs:
         if: ${{ startsWith(matrix.image, 'centos') }}
         run: |
           yum install -y centos-release-scl-rh
-          yum install -y devtoolset-11 python3 autoconf automake wget git
+          yum install -y devtoolset-11 python3 autoconf automake wget git gcc gcc-c++
+          echo "NPROC=$(nproc)" >> $GITHUB_ENV
+          mv /usr/bin/gcc /usr/bin/gcc-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/gcc /usr/bin/gcc
+          mv /usr/bin/g++ /usr/bin/g++-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/g++ /usr/bin/g++

Review Comment:
   > I tried this, but it failed. `source /opt/rh/devtoolset-11/enable` takes effect only on current session. Maybe we can add this into `.bashrc`, i'll try it.
   
   I tried this by adding `echo "source /opt/rh/devtoolset-11/enable" >> /root/.bashrc` into setup stage. It didn't take effect.  :(
   ![image](https://github.com/apache/kvrocks/assets/85615957/0b60daea-c51f-47fa-bba6-0c7851c0c7df)
   



-- 
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: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] PragmaTwice commented on a diff in pull request #1601: Add an archlinux environment for building and testing in CI

Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on code in PR #1601:
URL: https://github.com/apache/kvrocks/pull/1601#discussion_r1270353248


##########
.github/workflows/kvrocks.yaml:
##########
@@ -338,11 +346,15 @@ jobs:
         with:
           go-version-file: 'tests/gocase/go.mod'
 
-      - name: Build Kvrocks
+      - name: Build Kvrocks for CentOS
         if: ${{ startsWith(matrix.image, 'centos') }}
         run: |
           source /opt/rh/devtoolset-11/enable

Review Comment:
   We can have some try, but I think it is not so easy.



-- 
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: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] tisonkun commented on a diff in pull request #1601: Add an archlinux environment for building and testing in CI

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on code in PR #1601:
URL: https://github.com/apache/kvrocks/pull/1601#discussion_r1271299240


##########
.github/workflows/kvrocks.yaml:
##########
@@ -310,7 +313,16 @@ jobs:
         if: ${{ startsWith(matrix.image, 'centos') }}
         run: |
           yum install -y centos-release-scl-rh
-          yum install -y devtoolset-11 python3 autoconf automake wget git
+          yum install -y devtoolset-11 python3 autoconf automake wget git gcc gcc-c++
+          echo "NPROC=$(nproc)" >> $GITHUB_ENV
+          mv /usr/bin/gcc /usr/bin/gcc-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/gcc /usr/bin/gcc
+          mv /usr/bin/g++ /usr/bin/g++-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/g++ /usr/bin/g++

Review Comment:
   Or the current one should be fine. As long as CI passed and functionality correct.



-- 
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: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] tisonkun commented on pull request #1601: Add an archlinux environment for building and testing in CI

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on PR #1601:
URL: https://github.com/apache/kvrocks/pull/1601#issuecomment-1646612396

   My suggestion is: use a unique build step, pass argument to run arbitrary prepare command in that step.
   
   ```
     run: |
       ${{ matrix.prepare.command }}
       ./x.py ...
   ```
   
   I don't test it out, though.
   
   


-- 
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: issues-unsubscribe@kvrocks.apache.org

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