nix-grpc-store-clang-tidy-0.1.0
checks.aarch64-linux.clang-tidy
· build #193
· raw
1tribuchet: building on eliza
unpackPhase
2unpacking source archive /nix/store/hs2226k3894cis5wy4j6y5gs6l0m93ms-source3source root is sourceconfigurePhase
4mesonConfigurePhase flags: --prefix=/nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0 --libdir=/nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/lib --libexecdir=/nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/libexec --bindir=/nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/bin --sbindir=/nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/sbin --includedir=/nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/include --mandir=/nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/share/man --infodir=/nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/share/info --localedir=/nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain -Db_pch=false5The Meson build system6Version: 1.10.27Source 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.1.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/a55gz9mrf0z1ngdmjf83qz8ywdam95fn-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.218Run-time dependency grpc++ found: YES 1.83.019Run-time dependency protobuf found: YES 35.1.020Run-time dependency libzstd found: YES 1.5.721Run-time dependency threads found: YES22Run-time dependency libcrypto found: YES 3.6.323Run-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 2026010726Run-time dependency absl_hash found: YES 2026010727Run-time dependency jemalloc found: YES 5.3.1_028Run-time dependency nix-store found: YES 2.36.0pre20260914_920f695629Run-time dependency nix-util found: YES 2.36.0pre20260914_920f695630Run-time dependency libcurl found: YES 8.21.031Run-time dependency nlohmann_json found: YES 3.12.032Check usable header "jwt-cpp/traits/nlohmann-json/defaults.h" : YES 33Program protoc found: YES (/nix/store/14zdwpp05sjf7813mcjjzhgl816hjbqj-protobuf-35.1/bin/protoc)34Program grpc_cpp_plugin found: YES (/nix/store/7ry0wb79xmb9yp4v3cssnawdf8gfgpxs-grpc-1.83.0/bin/grpc_cpp_plugin)35Program mold found: YES (/nix/store/qf1sxzj70rzw36xm1f1ydhssmpp573k2-mold-unwrapped-wrapper-2.42.0/bin/mold)36Run-time dependency dl found: YES37Program tests/farm-client-test.sh found: YES (/build/source/tests/farm-client-test.sh)38Program tests/oidc-test.sh found: YES (/build/source/tests/oidc-test.sh)39Build targets in project: 1140WARNING: Project specifies no minimum version but uses features which were added in versions:41 * 1.1: {'meson.options file'}4243nix-grpc-store 0.1.04445 User defined options46 auto_features: enabled47 b_pch : false48 bindir : /nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/bin49 buildtype : plain50 includedir : /nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/include51 infodir : /nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/share/info52 libdir : /nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/lib53 libexecdir : /nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/libexec54 localedir : /nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/share/locale55 mandir : /nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/share/man56 prefix : /nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.057 sbindir : /nix/store/fjv53lqifm0d1m05mrd1ys2i70qkg290-nix-grpc-store-clang-tidy-0.1.0/sbin58 wrap_mode : nodownload5960Found ninja-1.13.2 at /nix/store/zw02qscvl0rihr803vnmgll72qsxrlhx-ninja-1.13.2/bin/ninja61mesonConfigurePhase: enabled\ parallel\ buildingbuildPhase
62[1/1] Generating nix_remote_proto with a custom command63[0/1] /nix/store/4nhp26ss88i238s986fx3jcqcw4si9ly-meson-1.10.2/bin/meson --internal clangtidy /build/source /build/source/build --color always64>>> /nix/store/c33s2mld9r03fv11v9ad7dh5m9g8s1xp-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/dispatcher.cc65../src/daemon/dispatcher.cc:238:10: error: no header providing "std::unordered_set" is directly included [misc-include-cleaner,-warnings-as-errors]66 16 | std::unordered_set<sched::ClientId> told;67 | ^68../src/daemon/dispatcher.cc:239:18: error: variable name '_' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]69 239 | for (auto & [_, shs] : shards) {70 | ^71../src/daemon/dispatcher.cc:245:22: error: variable name '_' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]72 245 | for (auto & [_, send] : shs.workers) {73 | ^74>>> /nix/store/c33s2mld9r03fv11v9ad7dh5m9g8s1xp-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/build.cc75../src/client/build.cc:424:17: error: function 'scheduleUntilDone' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]76 424 | auto GrpcStore::scheduleUntilDone(Run & run, const Metadata & headers,77 | ^78../src/client/build.cc:429:3: note: +1, including nesting penalty of 0, nesting level increased to 179 429 | for (;;) {80 | ^81../src/client/build.cc:435:5: note: +2, including nesting penalty of 1, nesting level increased to 282 435 | debug("grpc: Schedule stream open, %d jobs", run.jobs.size());83 | ^84/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug'85 369 | #define debug(args...) printMsg(lvlDebug, args)86 | ^87/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'88 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)89 | ^90/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:357:5: note: expanded from macro 'printMsgUsing'91 357 | do { \92 | ^93../src/client/build.cc:435:5: note: +3, including nesting penalty of 2, nesting level increased to 394 435 | debug("grpc: Schedule stream open, %d jobs", run.jobs.size());95 | ^96/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug'97 369 | #define debug(args...) printMsg(lvlDebug, args)98 | ^99/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'100 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)101 | ^102/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:359:9: note: expanded from macro 'printMsgUsing'103 359 | if (__lvl <= nix::verbosity) { \104 | ^105../src/client/build.cc:439:5: note: +2, including nesting penalty of 1, nesting level increased to 2106 439 | while (stream->Read(&msgs)) {107 | ^108../src/client/build.cc:442:7: note: +3, including nesting penalty of 2, nesting level increased to 3109 442 | if (std::ranges::any_of(msgs.msgs(), &remote::SchedMsg::has_restarting)) {110 | ^111../src/client/build.cc:450:5: note: +2, including nesting penalty of 1, nesting level increased to 2112 450 | if (run.detach() == 0 || isInterrupted() || !(restarting || schedulerGone(status))) {113 | ^114../src/client/build.cc:450:46: note: +1115 450 | if (run.detach() == 0 || isInterrupted() || !(restarting || schedulerGone(status))) {116 | ^117../src/client/build.cc:454:5: note: +2, including nesting penalty of 1, nesting level increased to 2118 454 | if (answered || giveUp == std::chrono::steady_clock::time_point::max()) {119 | ^120../src/client/build.cc:454:18: note: +1121 454 | if (answered || giveUp == std::chrono::steady_clock::time_point::max()) {122 | ^123../src/client/build.cc:458:5: note: +2, including nesting penalty of 1, nesting level increased to 2124 458 | if (now + pause > giveUp) {125 | ^126../src/client/build.cc:461:5: note: +2, including nesting penalty of 1, nesting level increased to 2127 461 | if (restarting) {128 | ^129../src/client/build.cc:463:7: note: +3, including nesting penalty of 2, nesting level increased to 3130 463 | debug("grpc: scheduler at %s restarting, reconnecting", config->authority.to_string());131 | ^132/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug'133 369 | #define debug(args...) printMsg(lvlDebug, args)134 | ^135/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'136 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)137 | ^138/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:357:5: note: expanded from macro 'printMsgUsing'139 357 | do { \140 | ^141../src/client/build.cc:463:7: note: +4, including nesting penalty of 3, nesting level increased to 4142 463 | debug("grpc: scheduler at %s restarting, reconnecting", config->authority.to_string());143 | ^144/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug'145 369 | #define debug(args...) printMsg(lvlDebug, args)146 | ^147/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'148 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)149 | ^150/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:359:9: note: expanded from macro 'printMsgUsing'151 359 | if (__lvl <= nix::verbosity) { \152 | ^153../src/client/build.cc:464:7: note: +1, nesting level increased to 2154 464 | } else {155 | ^156../src/client/build.cc:465:7: note: +3, including nesting penalty of 2, nesting level increased to 3157 465 | printError("scheduler at %s: %s, reconnecting", config->authority.to_string(), firstLine(status.error_message()));158 | ^159/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:365:29: note: expanded from macro 'printError'160 365 | #define printError(args...) printMsg(lvlError, args)161 | ^162/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'163 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)164 | ^165/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:357:5: note: expanded from macro 'printMsgUsing'166 357 | do { \167 | ^168../src/client/build.cc:465:7: note: +4, including nesting penalty of 3, nesting level increased to 4169 465 | printError("scheduler at %s: %s, reconnecting", config->authority.to_string(), firstLine(status.error_message()));170 | ^171/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:365:29: note: expanded from macro 'printError'172 365 | #define printError(args...) printMsg(lvlError, args)173 | ^174/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'175 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)176 | ^177/nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:359:9: note: expanded from macro 'printMsgUsing'178 359 | if (__lvl <= nix::verbosity) { \179 | ^180>>> /nix/store/c33s2mld9r03fv11v9ad7dh5m9g8s1xp-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/coordinator.cc181Errors encountered while running clang-tidy182../src/daemon/coordinator.cc:273:59: error: 200 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers,-warnings-as-errors]183 273 | std::this_thread::sleep_for(std::chrono::milliseconds(200));184 | ^185../src/daemon/coordinator.cc:352:19: error: function 'runRemoteSession' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]186 352 | void Coordinator::runRemoteSession(Builder & bld, const std::stop_token & stop)187 | ^188../src/daemon/coordinator.cc:357:5: note: +1, including nesting penalty of 0, nesting level increased to 1189 357 | if (options.schedulerCA.empty()) {190 | ^191../src/daemon/coordinator.cc:359:7: note: +1, nesting level increased to 1192 359 | } else {193 | ^194../src/daemon/coordinator.cc:362:9: note: +2, including nesting penalty of 1, nesting level increased to 2195 362 | if (!options.tlsCert.empty()) {196 | ^197../src/daemon/coordinator.cc:373:5: note: +1, including nesting penalty of 0, nesting level increased to 1198 373 | while (!stop.stop_requested()) {199 | ^200../src/daemon/coordinator.cc:380:21: note: nesting level increased to 2201 380 | bld.setSend([raw, writeMutex, live](const WorkerMsg & msg) -> bool {202 | ^203../src/daemon/coordinator.cc:384:26: note: +1204 384 | return *live && raw->Write(one);205 | ^206../src/daemon/coordinator.cc:387:9: note: +2, including nesting penalty of 1, nesting level increased to 2207 387 | if (helloed) {208 | ^209../src/daemon/coordinator.cc:391:47: note: nesting level increased to 2210 391 | const std::stop_callback onStop(stop, [&ctx]() -> void { ctx.TryCancel(); });211 | ^212../src/daemon/coordinator.cc:394:9: note: +2, including nesting penalty of 1, nesting level increased to 2213 394 | while (helloed && stream->Read(&cmds)) {214 | ^215../src/daemon/coordinator.cc:394:24: note: +1216 394 | while (helloed && stream->Read(&cmds)) {217 | ^218../src/daemon/coordinator.cc:395:13: note: +3, including nesting penalty of 2, nesting level increased to 3219 395 | for (const auto & cmd : cmds.msgs()) {220 | ^221../src/daemon/coordinator.cc:396:17: note: +4, including nesting penalty of 3, nesting level increased to 4222 396 | if (cmd.has_expect()) {223 | ^224../src/daemon/coordinator.cc:398:24: note: +1, nesting level increased to 4225 398 | } else if (cmd.has_revoke()) {226 | ^227../src/daemon/coordinator.cc:400:24: note: +1, nesting level increased to 4228 400 | } else if (cmd.has_restarting()) {229 | ^230../src/daemon/coordinator.cc:404:13: note: +3, including nesting penalty of 2, nesting level increased to 3231 404 | if (restarting) {232 | ^233../src/daemon/coordinator.cc:411:9: note: +2, including nesting penalty of 1, nesting level increased to 2234 411 | if (stop.stop_requested()) {235 | ^236../src/daemon/coordinator.cc:414:9: note: +2, including nesting penalty of 1, nesting level increased to 2237 414 | if (restarting) {238 | ^239../src/daemon/coordinator.cc:418:11: note: +1, nesting level increased to 2240 418 | } else {241 | ^242FAILED: [code=1] meson-internal__clang-tidy 243/nix/store/4nhp26ss88i238s986fx3jcqcw4si9ly-meson-1.10.2/bin/meson --internal clangtidy /build/source /build/source/build --color always244ninja: build stopped: subcommand failed.