nix-grpc-store-clang-tidy-0.2.0
checks.aarch64-linux.clang-tidy
· build #648
· raw
1tribuchet: building on eliza
unpackPhase
2unpacking source archive /nix/store/vrz6w19b7bx4x1v9rmdxm92hnmv2mgcz-source3source root is sourceconfigurePhase
4mesonConfigurePhase flags: --prefix=/nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0 --libdir=/nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/lib --libexecdir=/nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/libexec --bindir=/nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/bin --sbindir=/nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/sbin --includedir=/nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/include --mandir=/nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/share/man --infodir=/nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/share/info --localedir=/nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain -Db_pch=false5The Meson build system6Version: 1.12.17Source dir: /build/source8Build dir: /build/source/build9Build type: native build10WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead11Project name: nix-grpc-store12Project version: 0.2.013C++ compiler for the host machine: clang++ (clang 22.1.8 "clang version 22.1.8")14C++ linker for the host machine: clang++ ld.bfd 2.4615Host machine cpu family: aarch6416Host machine cpu: aarch6417Found pkg-config: YES (/nix/store/h82n3d0wdrgskdc3yvmz5l3c50h2snvp-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.218Run-time dependency grpc++ found: YES 1.83.119Run-time dependency protobuf found: YES 36.2.020Run-time dependency libzstd found: YES 1.5.721Run-time dependency threads found: YES22Run-time dependency libcrypto found: YES 3.5.823Run-time dependency prometheus-cpp-core found: YES 1.3.024Run-time dependency prometheus-cpp-pull found: YES 1.3.025Run-time dependency absl_flat_hash_map found: YES 2026081726Run-time dependency absl_hash found: YES 2026081727Run-time dependency absl_synchronization found: YES 2026081728Compiler for C++ supports arguments -Werror=thread-safety: YES 29Run-time dependency nix-store found: YES 2.36.0pre20261004_b010dc9930Run-time dependency nix-util found: YES 2.36.0pre20261004_b010dc9931Run-time dependency jemalloc found: YES 5.3.1_032Run-time dependency libcurl found: YES 8.22.033Run-time dependency nlohmann_json found: YES 3.12.034Check usable header "jwt-cpp/traits/nlohmann-json/defaults.h" : YES 35Program protoc found: YES (/nix/store/8lbx3nmylh18yw8vh0c7fhv7bqjjlh3q-protobuf-36.2/bin/protoc)36Program grpc_cpp_plugin found: YES (/nix/store/hjj2bin7r66rmvq2jw1pmfdm8bpx637b-grpc-1.83.1/bin/grpc_cpp_plugin)37Program mold found: YES (/nix/store/gbq334xbibaz4gn184j7gs58m2spgwi7-mold-unwrapped-wrapper-2.42.1/bin/mold)38Run-time dependency dl found: YES39Program tests/farm-client-test.sh found: YES (/build/source/tests/farm-client-test.sh)40Program tests/oidc-test.sh found: YES (/build/source/tests/oidc-test.sh)41Build targets in project: 2142WARNING: Project specifies no minimum version but uses features which were added in versions:43 * 1.1: {'meson.options file'}4445nix-grpc-store 0.2.04647 User defined options48 auto_features: enabled49 b_pch : false50 bindir : /nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/bin51 buildtype : plain52 includedir : /nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/include53 infodir : /nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/share/info54 libdir : /nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/lib55 libexecdir : /nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/libexec56 localedir : /nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/share/locale57 mandir : /nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/share/man58 prefix : /nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.059 sbindir : /nix/store/bpmk3c30gzmiqh6sjhglw6dvygdyhq2m-nix-grpc-store-clang-tidy-0.2.0/sbin60 wrap_mode : nodownload6162Found ninja-1.13.2 at /nix/store/lfkdyggn1ffslfd830l35jrvapr5lzri-ninja-1.13.2/bin/ninja63mesonConfigurePhase: enabled\ parallel\ buildingbuildPhase
64[1/2] Generating eds_proto with a custom command65[2/2] Generating nix_remote_proto with a custom command66[0/1] /nix/store/av7nrlz2yrbwwn4xmpdaz0swnqp36j1f-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always67>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/top-down-test.cc68../src/top-down.hh:34:15: error: redundant 'typename' [readability-redundant-typename,-warnings-as-errors]69 34 | using K = typename decltype(keys(std::declval<N>()))::value_type;70 | ^~~~~~~~71../src/top-down.hh:46:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]72 46 | for (const auto & n : level) {73 | ^74../src/top-down.hh:53:31: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]75 53 | for (const auto & n : cur) {76 | ^77../src/top-down.hh:54:29: error: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]78 54 | for (auto & c : children(n)) {79 | ^80../src/top-down.hh:68:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]81 68 | for (const auto & n : ask) {82 | ^83../src/top-down.hh:69:25: error: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]84 69 | for (auto & k : keys(n)) {85 | ^86../src/top-down.hh:77:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]87 77 | for (const auto & n : level) {88 | ^89../src/top-down.hh:78:24: error: variable name 'ks' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]90 78 | auto const ks = keys(n);91 | ^92../src/top-down.hh:79:70: error: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]93 79 | if (!ks.empty() && std::ranges::all_of(ks, [&](const K & k) -> bool { return valid.contains(k); })) {94 | ^95../src/top-down.hh:83:25: error: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]96 83 | for (auto & c : children(n)) {97 | ^98../tests/top-down-test.cc:23:12: error: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]99 23 | Result r;100 | ^101../tests/top-down-test.cc:25:14: error: no header providing "std::move" is directly included [misc-include-cleaner,-warnings-as-errors]102 6 | std::move(roots),103 | ^104../tests/top-down-test.cc:29:21: error: use emplace_back instead of push_back [modernize-use-emplace,-warnings-as-errors]105 29 | r.calls.push_back({keys.begin(), keys.end()});106 | ^~~~~~~~~~~ ~107 | emplace_back(108../tests/top-down-test.cc:31:31: error: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]109 31 | for (const auto & k : keys) {110 | ^111../tests/top-down-test.cc:42:13: error: initialization of 'chain' with static storage duration may throw an exception that cannot be caught [bugprone-throwing-static-initialization,cert-err58-cpp,-warnings-as-errors]112 42 | const Graph chain{{"root", {"a"}}, {"a", {"b"}}, {"b", {"c"}}, {"c", {"d"}}, {"d", {}}};113 | ^114/nix/store/70xc727xbli0162ggrmpsysmdw90qcsa-gcc-16.2.0/include/c++/16.2.0/bits/stl_map.h:244:7: note: possibly throwing constructor declared here115 244 | map(initializer_list<value_type> __l,116 | ^117../tests/top-down-test.cc:48:16: error: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]118 48 | auto const r = run(chain, {"root"}, {"root", "a", "b", "c", "d"}, 1);119 | ^120../tests/top-down-test.cc:55:16: error: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]121 55 | auto const r = run(chain, {"root"}, {"a", "b", "c", "d"}, 1);122 | ^123../tests/top-down-test.cc:62:16: error: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]124 62 | auto const r = run(chain, {"root"}, {}, 1);125 | ^126../tests/top-down-test.cc:70:16: error: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]127 70 | auto const r = run(diamond, {"x"}, {}, 1);128 | ^129../tests/top-down-test.cc:77:16: error: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]130 77 | auto const r = run(chain, {"root"}, {}, 3);131 | ^132../tests/top-down-test.cc:85:16: error: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]133 85 | auto const r = run(fan, {"x"}, {}, 3);134 | ^135../tests/top-down-test.cc:92:16: error: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]136 92 | auto const r = run(chain, {"root"}, {"c", "d"}, 64);137 | ^138../tests/top-down-test.cc:99:17: error: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]139 99 | Graph const g{{"top", {"in"}}, {"in", {}}};140 | ^141>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/channel.cc142[1/1] (1/2) Processing file /build/source/src/client/channel.cc.143[1/1] (2/2) Processing file /build/source/src/client/channel.cc.144>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/sandbox-linux.cc145[1/1] (1/2) Processing file /build/source/src/daemon/sandbox-linux.cc.146[1/1] (2/2) Processing file /build/source/src/daemon/sandbox-linux.cc.147>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/build.cc148tribuchet: hub connection lost (event stream: code: 'Unknown error', message: "h2 protocol error: error reading a body from connection", source: hyper::Error(Body, Error { kind: Io(Custom { kind: BrokenPipe, error: "stream closed because of a broken pipe" }) }): error reading a body from connection: stream closed because of a broken pipe); reconnecting149tribuchet: hub connection lost (connecting to hub socket: transport error: No such file or directory (os error 2): No such file or directory (os error 2)); reconnecting150tribuchet: building on eliza151Errors encountered while running clang-tidy152../src/client/build.cc:69:28: error: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]153 69 | [](const StorePath & p) -> std::vector<StorePath> { return {p}; },154 | ^155../src/client/build.cc:70:29: error: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]156 70 | [&](const StorePath & p) -> StorePathSet { return evalStore.queryPathInfo(p)->references; },157 | ^158../src/client/build.cc:705:73: error: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]159 705 | nixcompat::forInputDrvs(drvs.at(drvPath), [&](const StorePath & in) -> void { inputs.push_back(in); });160 | ^161../src/top-down.hh:31:6: error: function 'missingTopDown' has cognitive complexity of 42 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]162 31 | auto missingTopDown(std::vector<N> roots, Keys keys, Children children, Query query,163 | ^164../src/top-down.hh:40:5: note: +1, including nesting penalty of 0, nesting level increased to 1165 40 | for (;;) {166 | ^167../src/top-down.hh:41:30: note: nesting level increased to 2168 41 | std::erase_if(level, [&](const N & n) -> bool { return !seen.insert(n).second; });169 | ^170../src/top-down.hh:42:9: note: +2, including nesting penalty of 1, nesting level increased to 2171 42 | if (level.empty()) {172 | ^173../src/top-down.hh:46:9: note: +2, including nesting penalty of 1, nesting level increased to 2174 46 | for (const auto & n : level) {175 | ^176../src/top-down.hh:47:13: note: +3, including nesting penalty of 2, nesting level increased to 3177 47 | if (asked.insert(n).second) {178 | ^179../src/top-down.hh:51:9: note: +2, including nesting penalty of 1, nesting level increased to 2180 51 | for (auto cur = level; ask.size() < budget;) {181 | ^182../src/top-down.hh:53:13: note: +3, including nesting penalty of 2, nesting level increased to 3183 53 | for (const auto & n : cur) {184 | ^185../src/top-down.hh:54:17: note: +4, including nesting penalty of 3, nesting level increased to 4186 54 | for (auto & c : children(n)) {187 | ^188../src/top-down.hh:55:21: note: +5, including nesting penalty of 4, nesting level increased to 5189 55 | if (!asked.contains(c)) {190 | ^191../src/top-down.hh:60:13: note: +3, including nesting penalty of 2, nesting level increased to 3192 60 | if (below.empty() || ask.size() + below.size() > budget) {193 | ^194../src/top-down.hh:60:31: note: +1195 60 | if (below.empty() || ask.size() + below.size() > budget) {196 | ^197../src/top-down.hh:68:9: note: +2, including nesting penalty of 1, nesting level increased to 2198 68 | for (const auto & n : ask) {199 | ^200../src/top-down.hh:69:13: note: +3, including nesting penalty of 2, nesting level increased to 3201 69 | for (auto & k : keys(n)) {202 | ^203../src/top-down.hh:73:9: note: +2, including nesting penalty of 1, nesting level increased to 2204 73 | if (!toAsk.empty()) {205 | ^206../src/top-down.hh:77:9: note: +2, including nesting penalty of 1, nesting level increased to 2207 77 | for (const auto & n : level) {208 | ^209../src/top-down.hh:79:13: note: +3, including nesting penalty of 2, nesting level increased to 3210 79 | if (!ks.empty() && std::ranges::all_of(ks, [&](const K & k) -> bool { return valid.contains(k); })) {211 | ^212../src/top-down.hh:79:29: note: +1213 79 | if (!ks.empty() && std::ranges::all_of(ks, [&](const K & k) -> bool { return valid.contains(k); })) {214 | ^215../src/top-down.hh:79:56: note: nesting level increased to 3216 79 | if (!ks.empty() && std::ranges::all_of(ks, [&](const K & k) -> bool { return valid.contains(k); })) {217 | ^218../src/top-down.hh:83:13: note: +3, including nesting penalty of 2, nesting level increased to 3219 83 | for (auto & c : children(n)) {220 | ^221../src/top-down.hh:34:15: error: redundant 'typename' [readability-redundant-typename,-warnings-as-errors]222 34 | using K = typename decltype(keys(std::declval<N>()))::value_type;223 | ^~~~~~~~224../src/top-down.hh:46:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]225 46 | for (const auto & n : level) {226 | ^227../src/top-down.hh:53:31: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]228 53 | for (const auto & n : cur) {229 | ^230../src/top-down.hh:54:29: error: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]231 54 | for (auto & c : children(n)) {232 | ^233../src/top-down.hh:68:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]234 68 | for (const auto & n : ask) {235 | ^236../src/top-down.hh:69:25: error: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]237 69 | for (auto & k : keys(n)) {238 | ^239../src/top-down.hh:77:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]240 77 | for (const auto & n : level) {241 | ^242../src/top-down.hh:78:24: error: variable name 'ks' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]243 78 | auto const ks = keys(n);244 | ^245../src/top-down.hh:79:70: error: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]246 79 | if (!ks.empty() && std::ranges::all_of(ks, [&](const K & k) -> bool { return valid.contains(k); })) {247 | ^248../src/top-down.hh:83:25: error: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]249 83 | for (auto & c : children(n)) {250 | ^251FAILED: [code=1] meson-internal__clang-tidy 252/nix/store/av7nrlz2yrbwwn4xmpdaz0swnqp36j1f-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always253ninja: build stopped: subcommand failed.