nixbot

builds

failed nix-grpc-store-clang-tidy-0.1.0-beta.4 checks.aarch64-linux.clang-tidy · build #568 · raw

1tribuchet: building on eliza
unpackPhase
2unpacking source archive /nix/store/vnkc960dmlbydfi89ayhwlnil34s14hb-source3source root is source
configurePhase
4mesonConfigurePhase flags: --prefix=/nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4 --libdir=/nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/lib --libexecdir=/nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/libexec --bindir=/nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/bin --sbindir=/nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/sbin --includedir=/nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/include --mandir=/nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/share/man --infodir=/nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/share/info --localedir=/nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/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.0-beta.413C++ 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/96rqsbg8z242724qy85sbld7dbf4hipr-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 36.1.020Run-time dependency libzstd found: YES 1.5.721Run-time dependency threads found: YES22Run-time dependency libcrypto found: YES 3.6.423Run-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 absl_synchronization found: YES 2026010728Compiler for C++ supports arguments -Werror=thread-safety: YES 29Run-time dependency jemalloc found: YES 5.3.1_030Run-time dependency nix-store found: YES 2.36.0pre20260920_5711f8fe31Run-time dependency nix-util found: YES 2.36.0pre20260920_5711f8fe32Run-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/nxlmb8lkbnzwcj46mmsvn1gjrgzap7sw-protobuf-36.1/bin/protoc)36Program grpc_cpp_plugin found: YES (/nix/store/zsbcm1brz7v8ilrz6w8ij11yhbf8fyiv-grpc-1.83.0/bin/grpc_cpp_plugin)37Program mold found: YES (/nix/store/463q48w7fn9s93amh1y7jsyrws5sh8rm-mold-unwrapped-wrapper-2.42.1/bin/mold)38Run-time dependency dl found: YES39Program tests/farm-client-test.sh found: YES (/build/source/tests/farm-client-test.sh)40Program tests/oidc-test.sh found: YES (/build/source/tests/oidc-test.sh)41Build targets in project: 1442WARNING: Project specifies no minimum version but uses features which were added in versions:43 * 1.1: {'meson.options file'}4445nix-grpc-store 0.1.0-beta.44647 User defined options48 auto_features: enabled49 b_pch : false50 bindir : /nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/bin51 buildtype : plain52 includedir : /nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/include53 infodir : /nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/share/info54 libdir : /nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/lib55 libexecdir : /nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/libexec56 localedir : /nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/share/locale57 mandir : /nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/share/man58 prefix : /nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.459 sbindir : /nix/store/q6bp84gjjsr4pf7xcqg44ynb7kfdbhz1-nix-grpc-store-clang-tidy-0.1.0-beta.4/sbin60 wrap_mode : nodownload6162Found ninja-1.13.2 at /nix/store/ijbipgac9wyp1n5smvkd8fczs9jyr26g-ninja-1.13.2/bin/ninja63mesonConfigurePhase: enabled\ parallel\ building
buildPhase
64[1/2] Generating eds_proto with a custom command65[2/2] Generating nix_remote_proto with a custom command66[0/1] /nix/store/sc7hggvmvma7m8bbgmp8gsa1q1x37aq8-meson-1.10.2/bin/meson --internal clangtidy /build/source /build/source/build --color always67>>> /nix/store/7wgbxsfygsdmgsai483p205pkcpy6ls8-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/upload-claims-test.cc68../src/daemon/upload-claims.hh:68:9: error: function 'wait' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]69 68 | auto wait() const -> Outcome { return table_->await(path_); }70 | ^71 | [[nodiscard]] 72../tests/upload-claims-test.cc:26:23: error: no header providing "std::make_optional" is directly included [misc-include-cleaner,-warnings-as-errors]73 3 | auto owner = std::make_optional(claims.enter("p"));74 | ^75../tests/upload-claims-test.cc:29:12: error: unchecked access to optional value [bugprone-unchecked-optional-access,-warnings-as-errors]76 29 | assert(other.waiter->wait() == Outcome::failed);77 | ^78/nix/store/6rgkfqr5mcjr39irv7wlbhfih2r5s2nl-glibc-2.42-84-dev/include/assert.h:100:27: note: expanded from macro 'assert'79 100 | (static_cast <bool> (expr) \80 | ^~~~81../tests/upload-claims-test.cc:38:9: error: unchecked access to optional value [bugprone-unchecked-optional-access,-warnings-as-errors]82 38 | owner.owner->done();83 | ^~~~~~~~~~~84../tests/upload-claims-test.cc:51:24: error: use a trailing return type for this lambda [modernize-use-trailing-return-type,-warnings-as-errors]85 51 | std::thread thread([&] { seen = other.waiter->wait(); });86 | ^87 | -> void88../tests/upload-claims-test.cc:52:59: error: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers,-warnings-as-errors]89 52 | std::this_thread::sleep_for(std::chrono::milliseconds(100));90 | ^91../tests/upload-claims-test.cc:54:5: error: unchecked access to optional value [bugprone-unchecked-optional-access,-warnings-as-errors]92 54 | owner.owner->done();93 | ^~~~~~~~~~~94../tests/upload-claims-test.cc:62:10: error: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]95 62 | auto a = claims.enter("a");96 | ^97../tests/upload-claims-test.cc:63:10: error: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]98 63 | auto b = claims.enter("b");99 | ^100>>> /nix/store/7wgbxsfygsdmgsai483p205pkcpy6ls8-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/channel.cc101[1/1] (1/2) Processing file /build/source/src/client/channel.cc.102[1/1] (2/2) Processing file /build/source/src/client/channel.cc.103>>> /nix/store/7wgbxsfygsdmgsai483p205pkcpy6ls8-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/main.cc104Errors encountered while running clang-tidy105../src/daemon/main.cc:376:29: error: use designated initializer list to initialize 'value_type' (aka 'Received') [modernize-use-designated-initializers,-warnings-as-errors]106 376 | {info, std::move(ticket.owner), std::nullopt, nixgrpc::SpooledNar::spool(nar, info.narSize)});107 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~108 | .info=.owner= .waiter= .nar=109../src/daemon/main.cc:363:13: note: aggregate type is defined here110 363 | struct Received111 | ^112../src/daemon/main.cc:379:44: error: use designated initializer list to initialize 'value_type' (aka 'Received') [modernize-use-designated-initializers,-warnings-as-errors]113 379 | received.push_back({info, std::nullopt, std::move(ticket.waiter), std::nullopt});114 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~115 | .info=.owner= .waiter= .nar=116../src/daemon/main.cc:363:13: note: aggregate type is defined here117 363 | struct Received118 | ^119../src/daemon/upload-claims.hh:68:9: error: function 'wait' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]120 68 | auto wait() const -> Outcome { return table_->await(path_); }121 | ^122 | [[nodiscard]] 123../src/daemon/upload-spool.hh:53:65: error: function is not thread safe [concurrency-mt-unsafe,-warnings-as-errors]124 53 | throw nix::Error("cannot write the spool file: %s", std::strerror(writeErrno));125 | ^126../src/daemon/upload-spool.hh:55:16: error: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list,-warnings-as-errors]127 55 | return SpooledNar(std::move(file), size);128 | ^~~~~~~~~~~ ~129 | { }130../src/daemon/upload-spool.hh:85:100: error: function is not thread safe [concurrency-mt-unsafe,-warnings-as-errors]131 85 | throw nix::Error("cannot read the spool file: %s", count == 0 ? "short file" : std::strerror(errno));132 | ^133../src/daemon/upload-spool.hh:106:30: error: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]134 106 | static auto writeAll(int fd, std::span<const char> data, std::uint64_t offset) -> bool135 | ^136FAILED: [code=1] meson-internal__clang-tidy 137/nix/store/sc7hggvmvma7m8bbgmp8gsa1q1x37aq8-meson-1.10.2/bin/meson --internal clangtidy /build/source /build/source/build --color always138ninja: build stopped: subcommand failed.