nixbot

builds

failed nix-grpc-store-clang-tidy-0.1.0 checks.x86_64-linux.clang-tidy · build #194 · raw

1tribuchet: building on jamie
unpackPhase
2unpacking source archive /nix/store/mx3mwfld374arqvmwyzn26p2xdnqx9yj-source3source root is source
configurePhase
4mesonConfigurePhase flags: --prefix=/nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0 --libdir=/nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/lib --libexecdir=/nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/libexec --bindir=/nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/bin --sbindir=/nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/sbin --includedir=/nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/include --mandir=/nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/share/man --infodir=/nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/share/info --localedir=/nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-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: x86_6416Host machine cpu: x86_6417Found pkg-config: YES (/nix/store/7fx93fz9c809w8yjxb0934zw6xcjis58-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/9d8d0spap5fb4d4hkxliag8zlfhjcg67-protobuf-35.1/bin/protoc)34Program grpc_cpp_plugin found: YES (/nix/store/4lxivxcksx5xbnfx2wsgspqlrpfirn3m-grpc-1.83.0/bin/grpc_cpp_plugin)35Program mold found: YES (/nix/store/4qlkb64qf364lsygwadiiyjjbc0hcq6i-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: 1240WARNING: 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/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/bin49 buildtype : plain50 includedir : /nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/include51 infodir : /nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/share/info52 libdir : /nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/lib53 libexecdir : /nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/libexec54 localedir : /nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/share/locale55 mandir : /nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/share/man56 prefix : /nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.057 sbindir : /nix/store/ydw09b62c1v2z241ng489cia23nvzfl4-nix-grpc-store-clang-tidy-0.1.0/sbin58 wrap_mode : nodownload5960Found ninja-1.13.2 at /nix/store/6ji6bq0si2j8ibdrxqgcmh1cw0wmdiyk-ninja-1.13.2/bin/ninja61mesonConfigurePhase: enabled\ parallel\ building
buildPhase
62[1/1] Generating nix_remote_proto with a custom command63[0/1] /nix/store/azf6s3lpx8f53si93y8135mpyykjj72b-meson-1.10.2/bin/meson --internal clangtidy /build/source /build/source/build --color always64>>> /nix/store/ck7w6mnxgy91d7kl1l3c531904k2nhk1-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/elector.cc65Error while processing /build/source/src/daemon/elector.cc.66../src/daemon/elector.cc:2:10: error: 'health.grpc.pb.h' file not found [clang-diagnostic-error]67 2 | #include "health.grpc.pb.h"68 | ^~~~~~~~~~~~~~~~~~69../src/daemon/elector.cc:10:1: error: included header channel.h is not used directly [misc-include-cleaner,-warnings-as-errors]70 10 | #include <grpcpp/channel.h>71 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~72 11 | #include <grpcpp/client_context.h>73../src/daemon/elector.cc:11:1: error: included header client_context.h is not used directly [misc-include-cleaner,-warnings-as-errors]74 11 | #include <grpcpp/client_context.h>75 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~76 12 | #include <grpcpp/create_channel.h>77../src/daemon/elector.cc:12:1: error: included header create_channel.h is not used directly [misc-include-cleaner,-warnings-as-errors]78 12 | #include <grpcpp/create_channel.h>79 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~80 13 | #include <grpcpp/security/credentials.h>81../src/daemon/elector.cc:17:1: error: included header string is not used directly [misc-include-cleaner,-warnings-as-errors]82 17 | #include <string>83 | ^~~~~~~~~~~~~~~~~84 18 | #include <thread>85../src/daemon/elector.cc:54:15: error: method 'anyPredecessorServing' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors]86 54 | auto Elector::anyPredecessorServing() -> bool87 | ^88../src/daemon/elector.cc:93:46: error: use a trailing return type for this lambda [modernize-use-trailing-return-type,-warnings-as-errors]89 93 | wake.wait_for(lock, stop, pollEvery, [] { return false; });90 | ^91 | -> bool92../src/logfmt.hh:64:23: error: the value returned by this function should not be disregarded; neglecting it may lead to errors [cert-err33-c,-warnings-as-errors]93 64 | static_cast<void>(std::strftime(timestamp.data(), timestamp.size(), "%Y-%m-%dT%H:%M:%SZ", &utc));94 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~95../src/logfmt.hh:64:23: note: cast the expression to void to silence this warning96>>> /nix/store/ck7w6mnxgy91d7kl1l3c531904k2nhk1-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/dispatcher.cc97../src/daemon/dispatcher.cc:244:10: error: no header providing "std::unordered_set" is directly included [misc-include-cleaner,-warnings-as-errors]98 16 | std::unordered_set<sched::ClientId> told;99 | ^100../src/daemon/dispatcher.cc:245:18: error: variable name '_' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]101 245 | for (auto & [_, shs] : shards) {102 | ^103../src/daemon/dispatcher.cc:251:22: error: variable name '_' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]104 251 | for (auto & [_, send] : shs.workers) {105 | ^106>>> /nix/store/ck7w6mnxgy91d7kl1l3c531904k2nhk1-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/coordinator.cc107../src/daemon/coordinator.cc:287:9: error: unchecked access to optional value [bugprone-unchecked-optional-access,-warnings-as-errors]108 287 | dispatcher->resume();109 | ^~~~~~~~~~110../src/daemon/coordinator.cc:289:9: error: unchecked access to optional value [bugprone-unchecked-optional-access,-warnings-as-errors]111 289 | dispatcher->restarting();112 | ^~~~~~~~~~113../src/daemon/coordinator.cc:302:59: error: 200 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers,-warnings-as-errors]114 302 | std::this_thread::sleep_for(std::chrono::milliseconds(200));115 | ^116>>> /nix/store/ck7w6mnxgy91d7kl1l3c531904k2nhk1-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/build.cc117Errors encountered while running clang-tidy118../src/client/build.cc:424:17: error: function 'scheduleUntilDone' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]119 424 | auto GrpcStore::scheduleUntilDone(Run & run, const Metadata & headers,120 | ^121../src/client/build.cc:429:3: note: +1, including nesting penalty of 0, nesting level increased to 1122 429 | for (;;) {123 | ^124../src/client/build.cc:435:5: note: +2, including nesting penalty of 1, nesting level increased to 2125 435 | debug("grpc: Schedule stream open, %d jobs", run.jobs.size());126 | ^127/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug'128 369 | #define debug(args...) printMsg(lvlDebug, args)129 | ^130/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'131 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)132 | ^133/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:357:5: note: expanded from macro 'printMsgUsing'134 357 | do { \135 | ^136../src/client/build.cc:435:5: note: +3, including nesting penalty of 2, nesting level increased to 3137 435 | debug("grpc: Schedule stream open, %d jobs", run.jobs.size());138 | ^139/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug'140 369 | #define debug(args...) printMsg(lvlDebug, args)141 | ^142/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'143 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)144 | ^145/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:359:9: note: expanded from macro 'printMsgUsing'146 359 | if (__lvl <= nix::verbosity) { \147 | ^148../src/client/build.cc:439:5: note: +2, including nesting penalty of 1, nesting level increased to 2149 439 | while (stream->Read(&msgs)) {150 | ^151../src/client/build.cc:442:7: note: +3, including nesting penalty of 2, nesting level increased to 3152 442 | if (std::ranges::any_of(msgs.msgs(), &remote::SchedMsg::has_restarting)) {153 | ^154../src/client/build.cc:450:5: note: +2, including nesting penalty of 1, nesting level increased to 2155 450 | if (run.detach() == 0 || isInterrupted() || !(restarting || schedulerGone(status))) {156 | ^157../src/client/build.cc:450:46: note: +1158 450 | if (run.detach() == 0 || isInterrupted() || !(restarting || schedulerGone(status))) {159 | ^160../src/client/build.cc:454:5: note: +2, including nesting penalty of 1, nesting level increased to 2161 454 | if (answered || giveUp == std::chrono::steady_clock::time_point::max()) {162 | ^163../src/client/build.cc:454:18: note: +1164 454 | if (answered || giveUp == std::chrono::steady_clock::time_point::max()) {165 | ^166../src/client/build.cc:458:5: note: +2, including nesting penalty of 1, nesting level increased to 2167 458 | if (now + pause > giveUp) {168 | ^169../src/client/build.cc:461:5: note: +2, including nesting penalty of 1, nesting level increased to 2170 461 | if (restarting) {171 | ^172../src/client/build.cc:463:7: note: +3, including nesting penalty of 2, nesting level increased to 3173 463 | debug("grpc: scheduler at %s restarting, reconnecting", config->authority.to_string());174 | ^175/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug'176 369 | #define debug(args...) printMsg(lvlDebug, args)177 | ^178/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'179 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)180 | ^181/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:357:5: note: expanded from macro 'printMsgUsing'182 357 | do { \183 | ^184../src/client/build.cc:463:7: note: +4, including nesting penalty of 3, nesting level increased to 4185 463 | debug("grpc: scheduler at %s restarting, reconnecting", config->authority.to_string());186 | ^187/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug'188 369 | #define debug(args...) printMsg(lvlDebug, args)189 | ^190/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'191 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)192 | ^193/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:359:9: note: expanded from macro 'printMsgUsing'194 359 | if (__lvl <= nix::verbosity) { \195 | ^196../src/client/build.cc:464:7: note: +1, nesting level increased to 2197 464 | } else {198 | ^199../src/client/build.cc:465:7: note: +3, including nesting penalty of 2, nesting level increased to 3200 465 | printError("scheduler at %s: %s, reconnecting", config->authority.to_string(), firstLine(status.error_message()));201 | ^202/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:365:29: note: expanded from macro 'printError'203 365 | #define printError(args...) printMsg(lvlError, args)204 | ^205/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'206 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)207 | ^208/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:357:5: note: expanded from macro 'printMsgUsing'209 357 | do { \210 | ^211../src/client/build.cc:465:7: note: +4, including nesting penalty of 3, nesting level increased to 4212 465 | printError("scheduler at %s: %s, reconnecting", config->authority.to_string(), firstLine(status.error_message()));213 | ^214/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:365:29: note: expanded from macro 'printError'215 365 | #define printError(args...) printMsg(lvlError, args)216 | ^217/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg'218 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args)219 | ^220/nix/store/rfyqqgmjkpsx5wpncfrqwza6mql14rsn-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:359:9: note: expanded from macro 'printMsgUsing'221 359 | if (__lvl <= nix::verbosity) { \222 | ^223FAILED: [code=1] meson-internal__clang-tidy 224/nix/store/azf6s3lpx8f53si93y8135mpyykjj72b-meson-1.10.2/bin/meson --internal clangtidy /build/source /build/source/build --color always225ninja: build stopped: subcommand failed.