ci(workflow): Fix clang-format and Make 3.81 jobs on new ubuntu-latest #1650
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 441 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.364
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1650"
general
weight: 0.35
ttmut
Description
The
ubuntu-latestrunner image was upgraded to Ubuntu 26.04, which broke two CI jobs.1. clang-format: version 14 is no longer available
clang-format-14is not packaged for Ubuntu 26.04.CLANG_VERSIONfrom 14 to 21 inclang-format-check.yml,clang-format-run-pr.yml, and the default inclang-format-run.sh.apt-get updatebefore installing and install with-y.Documentation/CONTRIBUTING.md.Formatting differences between clang-format 14 and 21
The
.clang-formatconfig is unchanged and loads fine with version 21, but version 21 formats some code differently. I scanned every file the format check covers, using the same exclusions as the workflow:| Directory | Files flagged by 14 | Files flagged by 21 |
|---|---|---|
|
Libraries/PeriphDrivers| 0 | 19 / 927 ||
Libraries/CMSIS/Device| 0 | 21 / 101 ||
Libraries/MiscDrivers| 0 | 7 / 79 ||
Libraries/Boards| 0 | 0 / 152 ||
Examples| 0 | 58 / 1941 || Total | 0 | 105 |
Most of the differences come from clang-format 14 bugs that later versions fixed, so no
.clang-formatoption restores the old output. Examples:The same fix applies to
w h→w hinside macro bodies.__attribute__(...):///<trailing comment continuation lines in struct members.\) alignment in large multi-line#defines.Impact: The format check runs on whole changed files, so any PR that modifies one of these 105 files fails the check even if the PR's own changes are clean. The fix is to reformat those files once with clang-format 21. That reformat is not part of this PR; it will be done separately.
2. Regression_Test_Make_3_81: Make 3.81 fails to build with GCC 15
GCC 15 defaults to C23, where K&R-style declarations such as
extern char *getcwd ();mean(void)and conflict with glibc's prototypes. GCC 14 also made-Wincompatible-pointer-typesand similar warnings errors by default. Make 3.81 is now configured withCFLAGS="-std=gnu89 -fpermissive -g -O2".Checklist Before Requesting Review
Validation (Docker,
ubuntu:26.04, GCC 15.2.0):make --versionreportsGNU Make 3.81, and the "Check Make Version" step passes.make -n) ofExamples/MAX78000/Hello_Worldcompletes.apt-get install clang-format-21installs21.1.8from the stock Ubuntu 26.04 repositories.clang-format-run.shwithCLANG_VERSION=21passes on sample files.clang-format-14onubuntu:22.04andclang-format-21onubuntu:26.04.