Running phase: unpackPhase unpacking source archive /nix/store/8nnip0yahnml4hnz0im97sgdqmvp8cl5-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase mesonConfigurePhase flags: --prefix=/nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3 --libdir=/nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/lib --libexecdir=/nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/libexec --bindir=/nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/bin --sbindir=/nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/sbin --includedir=/nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/include --mandir=/nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/share/man --infodir=/nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/share/info --localedir=/nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain -Db_pch=false The Meson build system Version: 1.10.2 Source dir: /nix/var/nix/builds/nix-79084-1560388885/source Build dir: /nix/var/nix/builds/nix-79084-1560388885/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-beta.3 C++ compiler for the host machine: clang++ (clang 22.1.8 "clang version 22.1.8") C++ linker for the host machine: clang++ ld64 956.6 Host machine cpu family: aarch64 Host machine cpu: aarch64 Found pkg-config: YES (/nix/store/kd2x1bj3gwfh2hb69fk5ym043h2qavxc-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 36.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.4 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 absl_synchronization found: YES 20260107 Compiler for C++ supports arguments -Werror=thread-safety: YES Run-time dependency jemalloc found: YES 5.3.1_0 Run-time dependency nix-store found: YES 2.36.0pre20260920_5711f8fe Run-time dependency nix-util found: YES 2.36.0pre20260920_5711f8fe Run-time dependency libcurl found: YES 8.22.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/r1npr0vx8d17c0fhh9gvg9mpaiphn62a-protobuf-36.1/bin/protoc) Program grpc_cpp_plugin found: YES (/nix/store/0mm81ldgq4ssz7gnh8589gx9zfcxpdhq-grpc-1.83.0/bin/grpc_cpp_plugin) Run-time dependency dl found: YES Program tests/farm-client-test.sh found: YES (/nix/var/nix/builds/nix-79084-1560388885/source/tests/farm-client-test.sh) Program tests/oidc-test.sh found: YES (/nix/var/nix/builds/nix-79084-1560388885/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-beta.3 User defined options auto_features: enabled b_pch : false bindir : /nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/bin buildtype : plain includedir : /nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/include infodir : /nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/share/info libdir : /nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/lib libexecdir : /nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/libexec localedir : /nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/share/locale mandir : /nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/share/man prefix : /nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3 sbindir : /nix/store/iafmvm6izq51gwr7fph26z73miazhql3-nix-grpc-store-clang-tidy-0.1.0-beta.3/sbin wrap_mode : nodownload Found ninja-1.13.2 at /nix/store/kalf64hrn0zrxlacfvgymwbck77qvsr9-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/j2s018h6gc2q0z3sw002br2zas3m1l9d-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-79084-1560388885/source /nix/var/nix/builds/nix-79084-1560388885/source/build --color always >>> /nix/store/l8sbl3yky84xqxj3a5hazrjdx52avnf2-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-79084-1560388885/source/build /nix/var/nix/builds/nix-79084-1560388885/source/src/daemon/main.cc Error while processing /nix/var/nix/builds/nix-79084-1560388885/source/src/daemon/main.cc. ../src/daemon/coordinator.hh:112:21: error: member 'options' of type 'const Options &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors] 112 | const Options & options; | ^ ../src/daemon/coordinator.hh:113:15: error: member 'metrics' of type 'Metrics &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors] 113 | Metrics & metrics; | ^ ../src/daemon/coordinator.hh:115:12: error: constructor does not initialize these fields: expected [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 115 | struct State | ^ 116 | { 117 | std::unordered_map expected; | | {} ../src/daemon/eds.hh:17:10: error: 'eds.grpc.pb.h' file not found [clang-diagnostic-error] 17 | #include "eds.grpc.pb.h" | ^~~~~~~~~~~~~~~ ../src/daemon/main.cc:21:1: error: included header filesystem is not used directly [misc-include-cleaner,-warnings-as-errors] 21 | #include | ^~~~~~~~~~~~~~~~~~~~~ 22 | #include ../src/daemon/main.cc:22:1: error: included header map is not used directly [misc-include-cleaner,-warnings-as-errors] 22 | #include | ^~~~~~~~~~~~~~ 23 | #include ../src/daemon/main.cc:26:1: error: included header ranges is not used directly [misc-include-cleaner,-warnings-as-errors] 26 | #include | ^~~~~~~~~~~~~~~~~ 27 | #include ../src/daemon/main.cc:32:1: error: included header vector is not used directly [misc-include-cleaner,-warnings-as-errors] 32 | #include | ^~~~~~~~~~~~~~~~~ 33 | ../src/daemon/main.cc:77:1: error: included header path-info-wire.hh is not used directly [misc-include-cleaner,-warnings-as-errors] 77 | #include "path-info-wire.hh" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 78 | #include "metrics.hh" ../src/daemon/main.cc:231:9: error: 3 adjacent parameters of 'NixRemoteService' of similar type ('std::string') are easily swapped by mistake [bugprone-easily-swappable-parameters,-warnings-as-errors] 231 | std::string socketPath, | ^~~~~~~~~~~~~~~~~~~~~~~ 232 | std::string storeUri, | ~~~~~~~~~~~~~~~~~~~~~ 233 | std::string workerName, | ~~~~~~~~~~~~~~~~~~~~~~ ../src/daemon/main.cc:231:21: note: the first parameter in the range is 'socketPath' 231 | std::string socketPath, | ^~~~~~~~~~ ../src/daemon/main.cc:233:21: note: the last parameter in the range is 'workerName' 233 | std::string workerName, | ^~~~~~~~~~ ../src/daemon/main.cc:231:21: error: the parameter 'socketPath' of type 'std::string' (aka 'basic_string') is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] 231 | std::string socketPath, | ^ | const & ../src/daemon/main.cc:260:15: error: empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether [bugprone-empty-catch,-warnings-as-errors] 260 | } catch (nix::Error & err) { | ^ ../src/daemon/main.cc:297:13: error: variable 'paths' of type 'nix::StorePathSet' (aka 'std::set') can be declared 'const' [misc-const-correctness,-warnings-as-errors] 297 | nix::StorePathSet paths; | ^ | const ../src/daemon/main.cc:669:62: error: the parameter 'event' of type 'nixgrpc::BuildEvent' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] 669 | auto const sendLogLine = [&](nixgrpc::BuildEvent event) -> void { | ^ | const & ../src/path-info-wire.hh:35:5: error: variable 'path' of type 'nix::StorePath' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 35 | nix::StorePath path(entry.path()); | ^ | const ../src/pump.hh:65:27: error: 2 adjacent parameters of 'readCoalesced' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters,-warnings-as-errors] 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/pump.hh:65:31: note: the first parameter in the range is 'sourceFd' 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t | ^~~~~~~~ ../src/pump.hh:65:57: note: the last parameter in the range is 'buf' 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t | ^~~ ../src/pump.hh:159:23: error: variable 'count' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] 159 | ssize_t const count = readCoalesced(sourceFd, input); | ^ | = 0 ../src/pump.hh:276:44: error: the parameter 'initial' of type 'std::string' (aka 'basic_string') is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] 276 | static auto makeInitialMsg(std::string initial) -> Msg | ^ | const & >>> /nix/store/l8sbl3yky84xqxj3a5hazrjdx52avnf2-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-79084-1560388885/source/build /nix/var/nix/builds/nix-79084-1560388885/source/src/client/channel.cc [1/1] (1/2) Processing file /nix/var/nix/builds/nix-79084-1560388885/source/src/client/channel.cc. [1/1] (2/2) Processing file /nix/var/nix/builds/nix-79084-1560388885/source/src/client/channel.cc. >>> /nix/store/l8sbl3yky84xqxj3a5hazrjdx52avnf2-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-79084-1560388885/source/build /nix/var/nix/builds/nix-79084-1560388885/source/src/daemon/eds.cc Error while processing /nix/var/nix/builds/nix-79084-1560388885/source/src/daemon/eds.cc. ../src/daemon/eds.cc:13:1: error: included header set is not used directly [misc-include-cleaner,-warnings-as-errors] 13 | #include | ^~~~~~~~~~~~~~ 14 | #include ../src/daemon/eds.cc:17:1: error: included header vector is not used directly [misc-include-cleaner,-warnings-as-errors] 17 | #include | ^~~~~~~~~~~~~~~~~ 18 | ../src/daemon/eds.cc:24:1: error: included header server_callback.h is not used directly [misc-include-cleaner,-warnings-as-errors] 24 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25 | #include ../src/daemon/eds.cc:32:1: error: included header sched-reactor.hh is not used directly [misc-include-cleaner,-warnings-as-errors] 32 | #include "sched-reactor.hh" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 | ../src/daemon/eds.cc:129:16: error: redundant boolean literal in conditional return statement [readability-simplify-boolean-expr,-warnings-as-errors] 128 | if (std::cmp_greater(req.resource_names_size(), maxNames)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | return !static_cast(std::cmp_greater(req.resource_names_size(), maxNames)) 129 | return false; | ~~~~~~~^~~~~~ 130 | } | ~ 131 | for (const auto & name : req.resource_names()) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 132 | if (name.empty() || name.size() > maxNameLen) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 | return false; | ~~~~~~~~~~~~~ 134 | } | ~ 135 | names.insert(name); | ~~~~~~~~~~~~~~~~~~~ 136 | } | ~ 137 | return true; | ~~~~~~~~~~~ ../src/daemon/eds.cc:156:5: error: constructor does not initialize these fields: in, out, names [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 156 | EdsReactor(grpc::CallbackServerContext * ctx, Dispatcher & disp, EdsService & svc) | ^ ../src/daemon/eds.cc:166:9: error: 'watch' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors] 159 | , svc(svc) | 160 | , stream(std::make_shared()) 161 | { 162 | { 163 | const absl::MutexLock lock(stream->mutex); 164 | stream->reactor = this; 165 | } 166 | watch = disp.watchMembership([stream = stream] -> void { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 167 | EdsReactor * run = nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 168 | { | ~ 169 | const absl::MutexLock lock(stream->mutex); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 170 | if (stream->reactor != nullptr && stream->reactor->beginWake()) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 171 | run = stream->reactor; | ~~~~~~~~~~~~~~~~~~~~~~ 172 | } | ~ 173 | } | ~ 174 | if (run != nullptr) { | ~~~~~~~~~~~~~~~~~~~~~ ../src/daemon/eds.cc:293:13: error: variable 'failure' of type 'std::string_view' (aka 'basic_string_view') can be declared 'const' [misc-const-correctness,-warnings-as-errors] 293 | std::string_view failure; | ^ | const ../src/daemon/eds.cc:326:30: error: the parameter 'fin' of type 'grpc::Status' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] 326 | void finish(grpc::Status fin) | ^ | const & ../src/daemon/eds.cc:354:18: error: member 'disp' of type 'Dispatcher &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors] 354 | Dispatcher & disp; | ^ ../src/daemon/eds.cc:355:18: error: member 'svc' of type 'EdsService &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors] 355 | EdsService & svc; | ^ ../src/daemon/eds.cc:370:1: error: constructor does not initialize these fields: rendered [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 370 | EdsService::EdsService(Dispatcher & dispatcher, Auth & auth) | ^ /nix/var/nix/builds/nix-79084-1560388885/source/build/../src/daemon/eds.hh:17:10: error: 'eds.grpc.pb.h' file not found [clang-diagnostic-error] 17 | #include "eds.grpc.pb.h" | ^~~~~~~~~~~~~~~ ../src/daemon/sched-reactor.hh:28:8: error: constructor does not initialize these fields: queue [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 28 | struct SendQueue | ^ 29 | { 30 | // About a minute of Expects at full rate. Beyond it the peer is stuck. 31 | static constexpr size_t limit = 1U << 16U; 32 | // Messages per Write. 33 | static constexpr int maxBatch = 1024; 34 | 35 | // Leaf lock, may be taken inside Dispatcher::mutex. 36 | absl::Mutex mutex; 37 | std::deque queue ABSL_GUARDED_BY(mutex); | {} ../src/daemon/sched-reactor.hh:169:30: error: the parameter 'fin' of type 'grpc::Status' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] 169 | void finish(grpc::Status fin) | ^ | const & ../src/daemon/sched-reactor.hh:226:18: error: member 'disp' of type 'Dispatcher &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors] 226 | Dispatcher & disp; | ^ ../src/daemon/sched-reactor.hh:255:18: error: member 'disp' of type 'Dispatcher &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors] 255 | Dispatcher & disp; | ^ >>> /nix/store/l8sbl3yky84xqxj3a5hazrjdx52avnf2-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-79084-1560388885/source/build /nix/var/nix/builds/nix-79084-1560388885/source/src/daemon/coordinator.cc Errors encountered while running clang-tidy Error while processing /nix/var/nix/builds/nix-79084-1560388885/source/src/daemon/coordinator.cc. ../src/client/channel.hh:46:3: error: constructor does not initialize these fields: headers [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 46 | explicit StaticHeaders(std::shared_ptr headers) : headers(std::move(headers)) {} | ^ ../src/client/channel.hh:62:5: error: constructor does not initialize these fields: headers [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 62 | explicit Factory(Headers hdrs) : headers(std::make_shared(std::move(hdrs))) {} | ^ 63 | auto CreateClientInterceptor(grpc::experimental::ClientRpcInfo * /*info*/) 64 | -> grpc::experimental::Interceptor * override { 65 | return new StaticHeaders(headers); // NOLINT(cppcoreguidelines-owning-memory): gRPC deletes it 66 | } 67 | private: 68 | std::shared_ptr headers; | | {} ../src/client/channel.hh:87:64: error: pointer parameter 'metadata' can be pointer to const [readability-non-const-parameter,-warnings-as-errors] 87 | std::multimap * metadata) -> grpc::Status override { | ^ | const ../src/daemon/backend.hh:79:25: error: the parameter 'event' of type 'BuildEvent' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] 79 | auto toChunk(BuildEvent event) -> Chunk | ^ | const & ../src/daemon/coordinator.cc:8:1: error: included header functional is not used directly [misc-include-cleaner,-warnings-as-errors] 8 | #include | ^~~~~~~~~~~~~~~~~~~~~ 9 | #include ../src/daemon/coordinator.cc:9:1: error: included header initializer_list is not used directly [misc-include-cleaner,-warnings-as-errors] 9 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 10 | #include ../src/daemon/coordinator.cc:17:1: error: included header unordered_set is not used directly [misc-include-cleaner,-warnings-as-errors] 17 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~ 18 | #include ../src/daemon/coordinator.cc:19:1: error: included header vector is not used directly [misc-include-cleaner,-warnings-as-errors] 19 | #include | ^~~~~~~~~~~~~~~~~ 20 | ../src/daemon/coordinator.cc:35:1: error: included header sync_stream.h is not used directly [misc-include-cleaner,-warnings-as-errors] 35 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 36 | ../src/daemon/coordinator.cc:47:1: error: included header nix_remote.grpc.pb.h is not used directly [misc-include-cleaner,-warnings-as-errors] 47 | #include "nix_remote.grpc.pb.h" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 48 | #include "nix_remote.pb.h" ../src/daemon/coordinator.cc:70:1: error: constructor does not initialize these fields: state, sendFn [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 70 | Builder::Builder(const Options & options, Metrics & metrics) | ^ ../src/daemon/coordinator.cc:91:15: error: method 'onRevoke' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 91 | void Builder::onRevoke(const nix::remote::Revoke & rev) | ^ ../src/daemon/coordinator.cc:112:15: error: method 'admit' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 112 | auto Builder::admit(const std::string & drvPath) -> std::optional | ^ ../src/daemon/coordinator.cc:125:15: error: method 'finished' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 125 | void Builder::finished( | ^ | static ../src/daemon/coordinator.cc:129:17: error: the parameter 'resultWire' of type 'std::string' (aka 'basic_string') is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] 129 | std::string resultWire) | ^ | const & ../src/daemon/coordinator.cc:210:15: error: method 'send' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 210 | auto Builder::send(const WorkerMsg & msg) const -> bool | ^ ~~~~~ ../src/daemon/coordinator.cc:216:15: error: method 'tick' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 216 | void Builder::tick() | ^ ../src/daemon/coordinator.cc:296:24: error: no header providing "nix::Error" is directly included [misc-include-cleaner,-warnings-as-errors] 12 | throw nix::Error("loading CA certificates: %s", status.ToString()); | ^ ../src/daemon/coordinator.cc:322:5: error: if with identical then and else branches [bugprone-branch-clone,-warnings-as-errors] 322 | if (active) { | ^ ../src/daemon/coordinator.cc:324:7: note: else branch starts here 324 | } else { | ^ ../src/daemon/coordinator.cc:341:1: error: constructor does not initialize these fields: scheduler, eds [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 341 | Coordinator::Coordinator(const Options & options, Auth & auth, Metrics & metrics) | ^ ../src/daemon/coordinator.cc:350:9: error: variable 'present' of type 'Dispatcher::PresentFn' (aka 'std::function> (const std::vector> &)>') can be declared 'const' [misc-const-correctness,-warnings-as-errors] 350 | Dispatcher::PresentFn present; | ^ | const ../src/daemon/coordinator.cc:409:20: error: variable 'elect' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] 409 | const bool elect = options.niks3.enabled() && (!builder || !options.schedulerAddr.empty()); | ^ | = false ../src/daemon/coordinator.cc:458:9: error: variable 'restarting' of type 'bool' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 458 | bool restarting = false; | ^ | const /nix/var/nix/builds/nix-79084-1560388885/source/build/../src/daemon/coordinator.hh:112:21: error: member 'options' of type 'const Options &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors] 112 | const Options & options; | ^ /nix/var/nix/builds/nix-79084-1560388885/source/build/../src/daemon/coordinator.hh:113:15: error: member 'metrics' of type 'Metrics &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors] 113 | Metrics & metrics; | ^ /nix/var/nix/builds/nix-79084-1560388885/source/build/../src/daemon/coordinator.hh:115:12: error: constructor does not initialize these fields: expected [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 115 | struct State | ^ 116 | { 117 | std::unordered_map expected; | | {} ../src/daemon/eds.hh:17:10: error: 'eds.grpc.pb.h' file not found [clang-diagnostic-error] 17 | #include "eds.grpc.pb.h" | ^~~~~~~~~~~~~~~ ../src/daemon/sched-reactor.hh:28:8: error: constructor does not initialize these fields: queue [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 28 | struct SendQueue | ^ 29 | { 30 | // About a minute of Expects at full rate. Beyond it the peer is stuck. 31 | static constexpr size_t limit = 1U << 16U; 32 | // Messages per Write. 33 | static constexpr int maxBatch = 1024; 34 | 35 | // Leaf lock, may be taken inside Dispatcher::mutex. 36 | absl::Mutex mutex; 37 | std::deque queue ABSL_GUARDED_BY(mutex); | {} ../src/daemon/sched-reactor.hh:169:30: error: the parameter 'fin' of type 'grpc::Status' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] 169 | void finish(grpc::Status fin) | ^ | const & ../src/daemon/sched-reactor.hh:226:18: error: member 'disp' of type 'Dispatcher &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors] 226 | Dispatcher & disp; | ^ ../src/daemon/sched-reactor.hh:255:18: error: member 'disp' of type 'Dispatcher &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors] 255 | Dispatcher & disp; | ^ FAILED: [code=1] meson-internal__clang-tidy /nix/store/j2s018h6gc2q0z3sw002br2zas3m1l9d-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-79084-1560388885/source /nix/var/nix/builds/nix-79084-1560388885/source/build --color always ninja: build stopped: subcommand failed.