-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update toolchain to Clang 17 #8537
Update toolchain to Clang 17 #8537
Conversation
Hi, because here specify image_tag_suffix in .toolchain.yml, to ensure that build-common can pull images properly, need to confirm if this image ci groovy file https://github.com/PingCAP-QE/ci/blob/main/jenkins/pipelines/ci/tiflash/tiflash-build-common.groovy#L453 |
1ec1737
to
48b47b3
Compare
Try to build tiflash using clang-17 docker image pingcap/tiflash#8537 But the CI will run into errors like https://ci.pingcap.net/job/tiflash-build-common/33843/console ``` [2023-12-30T15:06:42.887Z] + git log -1 --format=%H [2023-12-30T15:06:42.887Z] fatal: detected dubious ownership in repository at '/home/jenkins/agent/workspace/tiflash-build-common/tiflash/contrib/tiflash-proxy' [2023-12-30T15:06:42.887Z] To add an exception for this directory, call: ``` ``` 23:16:59 fatal: detected dubious ownership in repository at '/home/jenkins/agent/workspace/tiflash-build-common/tiflash' 23:16:59 To add an exception for this directory, call: 23:16:59 23:16:59 git config --global --add safe.directory /home/jenkins/agent/workspace/tiflash-build-common/tiflash 23:16:59 CMake Error at dbms/cmake/version.cmake:20 (execute_process): 23:16:59 execute_process failed command indexes: 23:16:59 23:16:59 1: "Child return code: 128" 23:16:59 23:16:59 Call Stack (most recent call first): 23:16:59 dbms/CMakeLists.txt:25 (include) ``` Add git safe.directory to workaround the errors. After these changes, the pipeline can build tiflash with clang-17 successfully: https://ci.pingcap.net/job/tiflash-build-common/33844/consoleFull Signed-off-by: JaySon-Huang <tshent@qq.com>
0822104
to
53d84c8
Compare
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: SchrodingerZhu <i@zhuyi.fan>
Signed-off-by: SchrodingerZhu <i@zhuyi.fan>
Signed-off-by: JaySon-Huang <tshent@qq.com>
17d2d92
to
44126df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JinheLin, Lloyd-Pottiger The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
The latest MacOS 14.4.1 only provides clang 15 by default, so I keep require AppleClang 15.0.0+ by now |
/run-all-tests |
Seems timeout. |
/run-unit-test |
/hold |
/unhold |
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/run-unit-test |
download tiflash binary(linux amd64) at http://fileserver.pingcap.net/download/builds/pingcap/test/tiflash/b3c8b8b3af8e246054bfe2746fe9df86cc90e993/centos7/tiflash-linux-amd64.tar.gz |
download tiflash binary(linux arm64) at http://fileserver.pingcap.net/download/builds/pingcap/test/tiflash/master/b3c8b8b3af8e246054bfe2746fe9df86cc90e993/centos7/tiflash-linux-arm64.tar.gz |
What problem does this PR solve?
Issue Number: close #7193, close #8890
Problem Summary:
What is changed and how it works?
Use clang-17.0.6 for CI/CD building since this PR merged. Other branches keep using clang-13.
Check List
Tests
tpch50, 1 tidb, 1 tikv, 1 tiflash, https://github.com/pingcap/tiflash/tree/c15fcc2bf83c6e1230c43a0daaccdc00fb15304f
Side effects
Documentation
Release note