-
Notifications
You must be signed in to change notification settings - Fork 427
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
[CI] Upgrade to a newer version of clang-format #2578
[CI] Upgrade to a newer version of clang-format #2578
Comments
SIG meeting 03.11.2024: default clang-format from Ubuntu 24.04 will be used. |
Per the github runner images: Available versions in Ubuntu I suggest to use |
A quick look into the ubuntu24.04 docker image (of dev-brach) shows below versions root@3d32d77d0cd2:/# cat /etc/os-release | grep VERSION
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
root@3d32d77d0cd2:/# apt-cache search clang-format
clang-format - Tool to format C/C++/Obj-C code
clang-format-14 - Tool to format C/C++/Obj-C code
clang-format-15 - Tool to format C/C++/Obj-C code
clang-format-16 - Tool to format C/C++/Obj-C code
clang-format-17 - Tool to format C/C++/Obj-C code
clang-format-18 - Tool to format C/C++/Obj-C code
libcode-tidyall-plugin-clangformat-perl - module to run clang-format using Code::TidyAll
$ I don't know if the runner images would have different versions of clang supported from that of docker images. But going with the pattern of supporting last 3 stable releases of clang, it could eventually be 16, 17 and 18. |
I made a typo in my previous comment, now fixed: the latest ubuntu available as a runner image in github is 22.04, not 24.04. So, the most up to date version we can use now is clang-format 15. Of course, by the time the runner upgrades to 24.04, we can upgrade clang-format as well if we want to. |
ubuntu 24.04 is planned to be released on 25th April. I think we can wait for that. |
Related: We sure can wait for April 25, 2024, but will the runner be available in github then ? Most likely not. |
Probably we can wait till 25th April to see if clang-format-15 is available in 24.04. If it is available, our decision would be easy to go with the upgrade immediately within 22.04 itself. |
Reopen: the docker image is updated, but we still need to run clang-format-18 on opentelemetry-cpp. |
To Discuss:
The text was updated successfully, but these errors were encountered: