nixbot

builds

failed nix-grpc-store-clang-tidy-0.2.0 checks.aarch64-darwin.clang-tidy · build #648 · raw

1tribuchet: building on mac02
unpackPhase
2unpacking source archive /nix/store/vrz6w19b7bx4x1v9rmdxm92hnmv2mgcz-source3source root is source
configurePhase
4mesonConfigurePhase flags: --prefix=/nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0 --libdir=/nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/lib --libexecdir=/nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/libexec --bindir=/nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/bin --sbindir=/nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/sbin --includedir=/nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/include --mandir=/nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/share/man --infodir=/nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/share/info --localedir=/nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-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: /private/var/tb/4/scratch/fe32ff854eb50a17/build/source8Build dir: /private/var/tb/4/scratch/fe32ff854eb50a17/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++ ld64 956.615Host machine cpu family: aarch6416Host machine cpu: aarch6417Found pkg-config: YES (/nix/store/nhgylvj98klqggy54h7gbc3b2ia4a00y-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/829sb6226a37vass89i0ybxm1zik7kjy-protobuf-36.2/bin/protoc)36Program grpc_cpp_plugin found: YES (/nix/store/8k628c8x6prnw4ibqnm28w8ahhwi6944-grpc-1.83.1/bin/grpc_cpp_plugin)37Run-time dependency dl found: YES38Program tests/farm-client-test.sh found: YES (/private/var/tb/4/scratch/fe32ff854eb50a17/build/source/tests/farm-client-test.sh)39Program tests/oidc-test.sh found: YES (/private/var/tb/4/scratch/fe32ff854eb50a17/build/source/tests/oidc-test.sh)40Build targets in project: 2041WARNING: Project specifies no minimum version but uses features which were added in versions:42 * 1.1: {'meson.options file'}4344nix-grpc-store 0.2.04546 User defined options47 auto_features: enabled48 b_pch : false49 bindir : /nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/bin50 buildtype : plain51 includedir : /nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/include52 infodir : /nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/share/info53 libdir : /nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/lib54 libexecdir : /nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/libexec55 localedir : /nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/share/locale56 mandir : /nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/share/man57 prefix : /nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.058 sbindir : /nix/store/cpgj6d1i0h0zin30aw64cniw47fglflj-nix-grpc-store-clang-tidy-0.2.0/sbin59 wrap_mode : nodownload6061Found ninja-1.13.2 at /nix/store/infm4vlx71q83bqz0k559w1gn4b0rq4i-ninja-1.13.2/bin/ninja62mesonConfigurePhase: enabled\ parallel\ building
buildPhase
63[1/2] Generating nix_remote_proto with a custom command64[2/2] Generating eds_proto with a custom command65[0/1] /nix/store/yjl5dwm08zmfsjrqyidrvcgm59qlgmxz-meson-1.12.1/bin/meson --internal clangtidy /private/var/tb/4/scratch/fe32ff854eb50a17/build/source /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/build --color always66>>> /nix/store/rnf8scxrdas1whzavr379xi6r7aj2pbd-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/build /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/tests/top-down-test.cc67../src/top-down.hh:34:15: error: redundant 'typename' [readability-redundant-typename,-warnings-as-errors]68 34 | using K = typename decltype(keys(std::declval<N>()))::value_type;69 | ^~~~~~~~70../src/top-down.hh:46:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]71 46 | for (const auto & n : level) {72 | ^73../src/top-down.hh:53:31: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]74 53 | for (const auto & n : cur) {75 | ^76../src/top-down.hh:54:29: error: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]77 54 | for (auto & c : children(n)) {78 | ^79../src/top-down.hh:68:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]80 68 | for (const auto & n : ask) {81 | ^82../src/top-down.hh:69:25: error: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]83 69 | for (auto & k : keys(n)) {84 | ^85../src/top-down.hh:77:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]86 77 | for (const auto & n : level) {87 | ^88../src/top-down.hh:78:24: error: variable name 'ks' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]89 78 | auto const ks = keys(n);90 | ^91../src/top-down.hh:79:70: error: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]92 79 | if (!ks.empty() && std::ranges::all_of(ks, [&](const K & k) -> bool { return valid.contains(k); })) {93 | ^94../src/top-down.hh:83:25: error: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]95 83 | for (auto & c : children(n)) {96 | ^97../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]98 23 | Result r;99 | ^100../tests/top-down-test.cc:25:14: error: no header providing "std::move" is directly included [misc-include-cleaner,-warnings-as-errors]101 6 | std::move(roots),102 | ^103../tests/top-down-test.cc:29:21: error: use emplace_back instead of push_back [modernize-use-emplace,-warnings-as-errors]104 29 | r.calls.push_back({keys.begin(), keys.end()});105 | ^~~~~~~~~~~ ~106 | emplace_back(107../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]108 31 | for (const auto & k : keys) {109 | ^110../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]111 42 | const Graph chain{{"root", {"a"}}, {"a", {"b"}}, {"b", {"c"}}, {"c", {"d"}}, {"d", {}}};112 | ^113/nix/store/j5m4j3walnlw0wp6d89p0219xq5vyj7q-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/map:985:25: note: possibly throwing constructor declared here114 985 | _LIBCPP_HIDE_FROM_ABI map(initializer_list<value_type> __il, const key_compare& __comp = key_compare())115 | ^116../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]117 48 | auto const r = run(chain, {"root"}, {"root", "a", "b", "c", "d"}, 1);118 | ^119../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]120 55 | auto const r = run(chain, {"root"}, {"a", "b", "c", "d"}, 1);121 | ^122../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]123 62 | auto const r = run(chain, {"root"}, {}, 1);124 | ^125../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]126 70 | auto const r = run(diamond, {"x"}, {}, 1);127 | ^128../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]129 77 | auto const r = run(chain, {"root"}, {}, 3);130 | ^131../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]132 85 | auto const r = run(fan, {"x"}, {}, 3);133 | ^134../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]135 92 | auto const r = run(chain, {"root"}, {"c", "d"}, 64);136 | ^137../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]138 99 | Graph const g{{"top", {"in"}}, {"in", {}}};139 | ^140../tests/top-down-test.cc:131:6: error: an exception may be thrown in function 'main' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors]141 131 | auto main() -> int142 | ^143/nix/store/j5m4j3walnlw0wp6d89p0219xq5vyj7q-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/stdexcept:244:3: note: frame #0: unhandled exception of type 'length_error' may be thrown in function '__throw_length_error' here144 244 | throw length_error(__msg);145 | ^146/nix/store/j5m4j3walnlw0wp6d89p0219xq5vyj7q-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/string:2473:5: note: frame #1: function '__throw_length_error' calls function '__throw_length_error' here147 2473 | std::__throw_length_error("basic_string");148 | ^149/nix/store/j5m4j3walnlw0wp6d89p0219xq5vyj7q-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/string:2549:5: note: frame #2: function '__init' calls function '__throw_length_error' here150 2549 | this->__throw_length_error();151 | ^152/nix/store/j5m4j3walnlw0wp6d89p0219xq5vyj7q-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/string:1063:5: note: frame #3: function 'basic_string<0>' calls function '__init' here153 1063 | __init(__s, traits_type::length(__s));154 | ^155../tests/top-down-test.cc:48:32: note: frame #4: function 'aHeldRootIsAskedAlone' calls function 'basic_string<0>' here156 48 | auto const r = run(chain, {"root"}, {"root", "a", "b", "c", "d"}, 1);157 | ^158../tests/top-down-test.cc:133:5: note: frame #5: function 'main' calls function 'aHeldRootIsAskedAlone' here159 133 | aHeldRootIsAskedAlone();160 | ^161>>> /nix/store/rnf8scxrdas1whzavr379xi6r7aj2pbd-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/build /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/src/client/channel.cc162[1/1] (1/2) Processing file /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/src/client/channel.cc.163[1/1] (2/2) Processing file /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/src/client/channel.cc.164>>> /nix/store/rnf8scxrdas1whzavr379xi6r7aj2pbd-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/build /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/src/daemon/sbpl.cc165[1/1] (1/2) Processing file /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/src/daemon/sbpl.cc.166[1/1] (2/2) Processing file /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/src/daemon/sbpl.cc.167>>> /nix/store/rnf8scxrdas1whzavr379xi6r7aj2pbd-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/build /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/src/client/build.cc168Errors encountered while running clang-tidy169../src/client/build.cc:69:28: error: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]170 69 | [](const StorePath & p) -> std::vector<StorePath> { return {p}; },171 | ^172../src/client/build.cc:70:29: error: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]173 70 | [&](const StorePath & p) -> StorePathSet { return evalStore.queryPathInfo(p)->references; },174 | ^175../src/client/build.cc:705:73: error: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]176 705 | nixcompat::forInputDrvs(drvs.at(drvPath), [&](const StorePath & in) -> void { inputs.push_back(in); });177 | ^178../src/top-down.hh:31:6: error: function 'missingTopDown' has cognitive complexity of 42 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]179 31 | auto missingTopDown(std::vector<N> roots, Keys keys, Children children, Query query,180 | ^181../src/top-down.hh:40:5: note: +1, including nesting penalty of 0, nesting level increased to 1182 40 | for (;;) {183 | ^184../src/top-down.hh:41:30: note: nesting level increased to 2185 41 | std::erase_if(level, [&](const N & n) -> bool { return !seen.insert(n).second; });186 | ^187../src/top-down.hh:42:9: note: +2, including nesting penalty of 1, nesting level increased to 2188 42 | if (level.empty()) {189 | ^190../src/top-down.hh:46:9: note: +2, including nesting penalty of 1, nesting level increased to 2191 46 | for (const auto & n : level) {192 | ^193../src/top-down.hh:47:13: note: +3, including nesting penalty of 2, nesting level increased to 3194 47 | if (asked.insert(n).second) {195 | ^196../src/top-down.hh:51:9: note: +2, including nesting penalty of 1, nesting level increased to 2197 51 | for (auto cur = level; ask.size() < budget;) {198 | ^199../src/top-down.hh:53:13: note: +3, including nesting penalty of 2, nesting level increased to 3200 53 | for (const auto & n : cur) {201 | ^202../src/top-down.hh:54:17: note: +4, including nesting penalty of 3, nesting level increased to 4203 54 | for (auto & c : children(n)) {204 | ^205../src/top-down.hh:55:21: note: +5, including nesting penalty of 4, nesting level increased to 5206 55 | if (!asked.contains(c)) {207 | ^208../src/top-down.hh:60:13: note: +3, including nesting penalty of 2, nesting level increased to 3209 60 | if (below.empty() || ask.size() + below.size() > budget) {210 | ^211../src/top-down.hh:60:31: note: +1212 60 | if (below.empty() || ask.size() + below.size() > budget) {213 | ^214../src/top-down.hh:68:9: note: +2, including nesting penalty of 1, nesting level increased to 2215 68 | for (const auto & n : ask) {216 | ^217../src/top-down.hh:69:13: note: +3, including nesting penalty of 2, nesting level increased to 3218 69 | for (auto & k : keys(n)) {219 | ^220../src/top-down.hh:73:9: note: +2, including nesting penalty of 1, nesting level increased to 2221 73 | if (!toAsk.empty()) {222 | ^223../src/top-down.hh:77:9: note: +2, including nesting penalty of 1, nesting level increased to 2224 77 | for (const auto & n : level) {225 | ^226../src/top-down.hh:79:13: note: +3, including nesting penalty of 2, nesting level increased to 3227 79 | if (!ks.empty() && std::ranges::all_of(ks, [&](const K & k) -> bool { return valid.contains(k); })) {228 | ^229../src/top-down.hh:79:29: note: +1230 79 | if (!ks.empty() && std::ranges::all_of(ks, [&](const K & k) -> bool { return valid.contains(k); })) {231 | ^232../src/top-down.hh:79:56: note: nesting level increased to 3233 79 | if (!ks.empty() && std::ranges::all_of(ks, [&](const K & k) -> bool { return valid.contains(k); })) {234 | ^235../src/top-down.hh:83:13: note: +3, including nesting penalty of 2, nesting level increased to 3236 83 | for (auto & c : children(n)) {237 | ^238../src/top-down.hh:34:15: error: redundant 'typename' [readability-redundant-typename,-warnings-as-errors]239 34 | using K = typename decltype(keys(std::declval<N>()))::value_type;240 | ^~~~~~~~241../src/top-down.hh:46:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]242 46 | for (const auto & n : level) {243 | ^244../src/top-down.hh:53:31: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]245 53 | for (const auto & n : cur) {246 | ^247../src/top-down.hh:54:29: error: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]248 54 | for (auto & c : children(n)) {249 | ^250../src/top-down.hh:68:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]251 68 | for (const auto & n : ask) {252 | ^253../src/top-down.hh:69:25: error: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]254 69 | for (auto & k : keys(n)) {255 | ^256../src/top-down.hh:77:27: error: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]257 77 | for (const auto & n : level) {258 | ^259../src/top-down.hh:78:24: error: variable name 'ks' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]260 78 | auto const ks = keys(n);261 | ^262../src/top-down.hh:79:70: error: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]263 79 | if (!ks.empty() && std::ranges::all_of(ks, [&](const K & k) -> bool { return valid.contains(k); })) {264 | ^265../src/top-down.hh:83:25: error: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]266 83 | for (auto & c : children(n)) {267 | ^268FAILED: [code=1] meson-internal__clang-tidy 269/nix/store/yjl5dwm08zmfsjrqyidrvcgm59qlgmxz-meson-1.12.1/bin/meson --internal clangtidy /private/var/tb/4/scratch/fe32ff854eb50a17/build/source /private/var/tb/4/scratch/fe32ff854eb50a17/build/source/build --color always270ninja: build stopped: subcommand failed.