tribuchet: building on eliza Running phase: unpackPhase unpacking source archive /nix/store/mx3mwfld374arqvmwyzn26p2xdnqx9yj-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase mesonConfigurePhase flags: --prefix=/nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0 --libdir=/nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/lib --libexecdir=/nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/libexec --bindir=/nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/bin --sbindir=/nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/sbin --includedir=/nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/include --mandir=/nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/share/man --infodir=/nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/share/info --localedir=/nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain -Db_pch=false The Meson build system Version: 1.10.2 Source dir: /build/source Build dir: /build/source/build Build type: native build WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead Project name: nix-grpc-store Project version: 0.1.0 C++ compiler for the host machine: clang++ (clang 22.1.8 "clang version 22.1.8") C++ linker for the host machine: clang++ ld.bfd 2.46 Host machine cpu family: aarch64 Host machine cpu: aarch64 Found pkg-config: YES (/nix/store/a55gz9mrf0z1ngdmjf83qz8ywdam95fn-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2 Run-time dependency grpc++ found: YES 1.83.0 Run-time dependency protobuf found: YES 35.1.0 Run-time dependency libzstd found: YES 1.5.7 Run-time dependency threads found: YES Run-time dependency libcrypto found: YES 3.6.3 Run-time dependency prometheus-cpp-core found: YES 1.3.0 Run-time dependency prometheus-cpp-pull found: YES 1.3.0 Run-time dependency absl_flat_hash_map found: YES 20260107 Run-time dependency absl_hash found: YES 20260107 Run-time dependency jemalloc found: YES 5.3.1_0 Run-time dependency nix-store found: YES 2.36.0pre20260914_920f6956 Run-time dependency nix-util found: YES 2.36.0pre20260914_920f6956 Run-time dependency libcurl found: YES 8.21.0 Run-time dependency nlohmann_json found: YES 3.12.0 Check usable header "jwt-cpp/traits/nlohmann-json/defaults.h" : YES Program protoc found: YES (/nix/store/14zdwpp05sjf7813mcjjzhgl816hjbqj-protobuf-35.1/bin/protoc) Program grpc_cpp_plugin found: YES (/nix/store/7ry0wb79xmb9yp4v3cssnawdf8gfgpxs-grpc-1.83.0/bin/grpc_cpp_plugin) Program mold found: YES (/nix/store/qf1sxzj70rzw36xm1f1ydhssmpp573k2-mold-unwrapped-wrapper-2.42.0/bin/mold) Run-time dependency dl found: YES Program tests/farm-client-test.sh found: YES (/build/source/tests/farm-client-test.sh) Program tests/oidc-test.sh found: YES (/build/source/tests/oidc-test.sh) Build targets in project: 12 WARNING: Project specifies no minimum version but uses features which were added in versions: * 1.1: {'meson.options file'} nix-grpc-store 0.1.0 User defined options auto_features: enabled b_pch : false bindir : /nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/bin buildtype : plain includedir : /nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/include infodir : /nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/share/info libdir : /nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/lib libexecdir : /nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/libexec localedir : /nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/share/locale mandir : /nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/share/man prefix : /nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0 sbindir : /nix/store/29mj7w4ja6m4plkcbrbgi1i3vnzz7x90-nix-grpc-store-clang-tidy-0.1.0/sbin wrap_mode : nodownload Found ninja-1.13.2 at /nix/store/zw02qscvl0rihr803vnmgll72qsxrlhx-ninja-1.13.2/bin/ninja mesonConfigurePhase: enabled\ parallel\ building Running phase: buildPhase [1/1] Generating nix_remote_proto with a custom command [0/1] /nix/store/4nhp26ss88i238s986fx3jcqcw4si9ly-meson-1.10.2/bin/meson --internal clangtidy /build/source /build/source/build --color always >>> /nix/store/c33s2mld9r03fv11v9ad7dh5m9g8s1xp-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/elector.cc Error while processing /build/source/src/daemon/elector.cc. ../src/daemon/elector.cc:2:10: error: 'health.grpc.pb.h' file not found [clang-diagnostic-error] 2 | #include "health.grpc.pb.h" | ^~~~~~~~~~~~~~~~~~ ../src/daemon/elector.cc:10:1: error: included header channel.h is not used directly [misc-include-cleaner,-warnings-as-errors] 10 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 11 | #include ../src/daemon/elector.cc:11:1: error: included header client_context.h is not used directly [misc-include-cleaner,-warnings-as-errors] 11 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 12 | #include ../src/daemon/elector.cc:12:1: error: included header create_channel.h is not used directly [misc-include-cleaner,-warnings-as-errors] 12 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 13 | #include ../src/daemon/elector.cc:17:1: error: included header string is not used directly [misc-include-cleaner,-warnings-as-errors] 17 | #include | ^~~~~~~~~~~~~~~~~ 18 | #include ../src/daemon/elector.cc:54:15: error: method 'anyPredecessorServing' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 54 | auto Elector::anyPredecessorServing() -> bool | ^ ../src/daemon/elector.cc:93:46: error: use a trailing return type for this lambda [modernize-use-trailing-return-type,-warnings-as-errors] 93 | wake.wait_for(lock, stop, pollEvery, [] { return false; }); | ^ | -> bool ../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] 64 | static_cast(std::strftime(timestamp.data(), timestamp.size(), "%Y-%m-%dT%H:%M:%SZ", &utc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/logfmt.hh:64:23: note: cast the expression to void to silence this warning >>> /nix/store/c33s2mld9r03fv11v9ad7dh5m9g8s1xp-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/dispatcher.cc ../src/daemon/dispatcher.cc:244:10: error: no header providing "std::unordered_set" is directly included [misc-include-cleaner,-warnings-as-errors] 16 | std::unordered_set told; | ^ ../src/daemon/dispatcher.cc:245:18: error: variable name '_' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] 245 | for (auto & [_, shs] : shards) { | ^ ../src/daemon/dispatcher.cc:251:22: error: variable name '_' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] 251 | for (auto & [_, send] : shs.workers) { | ^ >>> /nix/store/c33s2mld9r03fv11v9ad7dh5m9g8s1xp-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/build.cc ../src/client/build.cc:424:17: error: function 'scheduleUntilDone' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] 424 | auto GrpcStore::scheduleUntilDone(Run & run, const Metadata & headers, | ^ ../src/client/build.cc:429:3: note: +1, including nesting penalty of 0, nesting level increased to 1 429 | for (;;) { | ^ ../src/client/build.cc:435:5: note: +2, including nesting penalty of 1, nesting level increased to 2 435 | debug("grpc: Schedule stream open, %d jobs", run.jobs.size()); | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug' 369 | #define debug(args...) printMsg(lvlDebug, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg' 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:357:5: note: expanded from macro 'printMsgUsing' 357 | do { \ | ^ ../src/client/build.cc:435:5: note: +3, including nesting penalty of 2, nesting level increased to 3 435 | debug("grpc: Schedule stream open, %d jobs", run.jobs.size()); | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug' 369 | #define debug(args...) printMsg(lvlDebug, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg' 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:359:9: note: expanded from macro 'printMsgUsing' 359 | if (__lvl <= nix::verbosity) { \ | ^ ../src/client/build.cc:439:5: note: +2, including nesting penalty of 1, nesting level increased to 2 439 | while (stream->Read(&msgs)) { | ^ ../src/client/build.cc:442:7: note: +3, including nesting penalty of 2, nesting level increased to 3 442 | if (std::ranges::any_of(msgs.msgs(), &remote::SchedMsg::has_restarting)) { | ^ ../src/client/build.cc:450:5: note: +2, including nesting penalty of 1, nesting level increased to 2 450 | if (run.detach() == 0 || isInterrupted() || !(restarting || schedulerGone(status))) { | ^ ../src/client/build.cc:450:46: note: +1 450 | if (run.detach() == 0 || isInterrupted() || !(restarting || schedulerGone(status))) { | ^ ../src/client/build.cc:454:5: note: +2, including nesting penalty of 1, nesting level increased to 2 454 | if (answered || giveUp == std::chrono::steady_clock::time_point::max()) { | ^ ../src/client/build.cc:454:18: note: +1 454 | if (answered || giveUp == std::chrono::steady_clock::time_point::max()) { | ^ ../src/client/build.cc:458:5: note: +2, including nesting penalty of 1, nesting level increased to 2 458 | if (now + pause > giveUp) { | ^ ../src/client/build.cc:461:5: note: +2, including nesting penalty of 1, nesting level increased to 2 461 | if (restarting) { | ^ ../src/client/build.cc:463:7: note: +3, including nesting penalty of 2, nesting level increased to 3 463 | debug("grpc: scheduler at %s restarting, reconnecting", config->authority.to_string()); | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug' 369 | #define debug(args...) printMsg(lvlDebug, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg' 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:357:5: note: expanded from macro 'printMsgUsing' 357 | do { \ | ^ ../src/client/build.cc:463:7: note: +4, including nesting penalty of 3, nesting level increased to 4 463 | debug("grpc: scheduler at %s restarting, reconnecting", config->authority.to_string()); | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:369:24: note: expanded from macro 'debug' 369 | #define debug(args...) printMsg(lvlDebug, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg' 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:359:9: note: expanded from macro 'printMsgUsing' 359 | if (__lvl <= nix::verbosity) { \ | ^ ../src/client/build.cc:464:7: note: +1, nesting level increased to 2 464 | } else { | ^ ../src/client/build.cc:465:7: note: +3, including nesting penalty of 2, nesting level increased to 3 465 | printError("scheduler at %s: %s, reconnecting", config->authority.to_string(), firstLine(status.error_message())); | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:365:29: note: expanded from macro 'printError' 365 | #define printError(args...) printMsg(lvlError, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg' 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:357:5: note: expanded from macro 'printMsgUsing' 357 | do { \ | ^ ../src/client/build.cc:465:7: note: +4, including nesting penalty of 3, nesting level increased to 4 465 | printError("scheduler at %s: %s, reconnecting", config->authority.to_string(), firstLine(status.error_message())); | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:365:29: note: expanded from macro 'printError' 365 | #define printError(args...) printMsg(lvlError, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:363:34: note: expanded from macro 'printMsg' 363 | #define printMsg(level, args...) printMsgUsing(logger, level, args) | ^ /nix/store/2zlc727n4v3zmlmhqcd43w7b2kdv2j50-nix-util-2.36.0pre20260914_920f6956-dev/include/nix/util/logging.hh:359:9: note: expanded from macro 'printMsgUsing' 359 | if (__lvl <= nix::verbosity) { \ | ^ >>> /nix/store/c33s2mld9r03fv11v9ad7dh5m9g8s1xp-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/coordinator.cc Errors encountered while running clang-tidy ../src/daemon/coordinator.cc:287:9: error: unchecked access to optional value [bugprone-unchecked-optional-access,-warnings-as-errors] 287 | dispatcher->resume(); | ^~~~~~~~~~ ../src/daemon/coordinator.cc:289:9: error: unchecked access to optional value [bugprone-unchecked-optional-access,-warnings-as-errors] 289 | dispatcher->restarting(); | ^~~~~~~~~~ ../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] 302 | std::this_thread::sleep_for(std::chrono::milliseconds(200)); | ^ FAILED: [code=1] meson-internal__clang-tidy /nix/store/4nhp26ss88i238s986fx3jcqcw4si9ly-meson-1.10.2/bin/meson --internal clangtidy /build/source /build/source/build --color always ninja: build stopped: subcommand failed.