nixbot

builds

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

1tribuchet: building on jamie
unpackPhase
2unpacking source archive /nix/store/bfzli95ywmhijma8s2ffc3nbjwnl86wv-h3wxg85ali7zyibxmqxfy90nlryf5qa1-source3source root is h3wxg85ali7zyibxmqxfy90nlryf5qa1-source
configurePhase
4mesonConfigurePhase flags: --prefix=/nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0 --libdir=/nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/lib --libexecdir=/nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/libexec --bindir=/nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/bin --sbindir=/nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/sbin --includedir=/nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/include --mandir=/nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/share/man --infodir=/nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/share/info --localedir=/nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain5The Meson build system6Version: 1.10.27Source dir: /build/h3wxg85ali7zyibxmqxfy90nlryf5qa1-source8Build dir: /build/h3wxg85ali7zyibxmqxfy90nlryf5qa1-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: g++ (gcc 15.3.0 "g++ (GCC) 15.3.0")14C++ linker for the host machine: g++ ld.bfd 2.4615Host machine cpu family: x86_6416Host machine cpu: x86_6417Found pkg-config: YES (/nix/store/2l3a3fhc1nyp69mlq5ifb4mkb9mryb98-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.218Run-time dependency grpc++ found: YES 1.82.119Run-time dependency protobuf found: YES 35.1.020Run-time dependency libzstd found: YES 1.5.721Run-time dependency threads found: YES22Run-time dependency prometheus-cpp-core found: YES 1.3.023Run-time dependency prometheus-cpp-pull found: YES 1.3.024Run-time dependency nix-store found: YES 2.36.0pre25Run-time dependency nix-util found: YES 2.36.0pre26Program protoc found: YES (/nix/store/627hivwhnbmkgj71z5af0gfqdm03s408-protobuf-35.1/bin/protoc)27Program grpc_cpp_plugin found: YES (/nix/store/fdh84s0f3jx5lb34ip2iwq9ysghylm1f-grpc-1.82.1/bin/grpc_cpp_plugin)28Run-time dependency dl found: YES29Build targets in project: 430WARNING: Project specifies no minimum version but uses features which were added in versions:31 * 1.1: {'meson.options file'}3233nix-grpc-store 0.1.03435 User defined options36 auto_features: enabled37 bindir : /nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/bin38 buildtype : plain39 includedir : /nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/include40 infodir : /nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/share/info41 libdir : /nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/lib42 libexecdir : /nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/libexec43 localedir : /nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/share/locale44 mandir : /nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/share/man45 prefix : /nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.046 sbindir : /nix/store/2zca3hxwkf2045bkwb5wilzy65lff30d-nix-grpc-store-clang-tidy-0.1.0/sbin47 wrap_mode : nodownload4849Found ninja-1.13.2 at /nix/store/vqnp9w33c613xl7ism88wx69rqaabamn-ninja-1.13.2/bin/ninja50mesonConfigurePhase: enabled\ parallel\ building
buildPhase
51[1/1] Generating nix_remote_proto with a custom command52[0/1] /nix/store/7hhzs4aal2v8ydl7fnads45fcblc36xx-meson-1.10.2/bin/meson --internal clangtidy /build/h3wxg85ali7zyibxmqxfy90nlryf5qa1-source /build/h3wxg85ali7zyibxmqxfy90nlryf5qa1-source/build --color always53>>> /nix/store/i68q60qzfadnn5rgn6w6i1spynhqcqf4-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/h3wxg85ali7zyibxmqxfy90nlryf5qa1-source/build /build/h3wxg85ali7zyibxmqxfy90nlryf5qa1-source/src/grpc-store.cc54../src/grpc-store.cc:290:16: error: qualified name 'Store::queryMissing' refers to a member overridden in subclass; did you mean 'nix::RemoteStore'? [bugprone-parent-virtual-call,-warnings-as-errors]55 290 | return Store::queryMissing(targets);56 | ^~~~~~~57 | nix::RemoteStore::58../src/grpc-store.cc:310:52: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]59 310 | return queryValidPaths({path}, NoSubstitute).count(path) != 0;60 | ^~~~~ ~~~~~~~~~~61 | contains path)62>>> /nix/store/i68q60qzfadnn5rgn6w6i1spynhqcqf4-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/h3wxg85ali7zyibxmqxfy90nlryf5qa1-source/build /build/h3wxg85ali7zyibxmqxfy90nlryf5qa1-source/src/nix-grpc-daemon.cc63Errors encountered while running clang-tidy64../src/acl.hh:71:20: error: variable name 'eq' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]65 71 | auto const eq = spec.rfind('=');66 | ^67../src/acl.hh:75:25: error: use designated initializer list to initialize 'value_type' (aka 'nixgrpc::Acl::Rule') [modernize-use-designated-initializers,-warnings-as-errors]68 75 | rules.push_back({std::string(spec.substr(0, eq)), parseRole(spec.substr(eq + 1))});69 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~70 | .pattern= .role=71../src/acl.hh:53:5: note: aggregate type is defined here72 53 | struct Rule73 | ^74../src/acl.hh:102:25: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]75 102 | if (commonName->find('\0') != std::string::npos) {76 | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~77 | contains '\0')78../src/nix-grpc-daemon.cc:124:36: error: no header providing "std::optional" is directly included [misc-include-cleaner,-warnings-as-errors]79 21 | auto authorizeBuild(const std::optional<std::string> & cert, std::string_view method, uint32_t buildMode)80 | ^81../src/nix-grpc-daemon.cc:788:11: error: conditional operator is used as sub-expression of parent conditional operator, refrain from using nested conditional operators [readability-avoid-nested-conditional-operator,-warnings-as-errors]82 788 | : options.acl.anonymousRole() ? GRPC_SSL_REQUEST_CLIENT_CERTIFICATE_AND_VERIFY83 | ^84../src/nix-grpc-daemon.cc:787:9: note: parent conditional operator here85 787 | options.clientCA.empty() ? GRPC_SSL_DONT_REQUEST_CLIENT_CERTIFICATE86 | ^87FAILED: [code=1] meson-internal__clang-tidy 88/nix/store/7hhzs4aal2v8ydl7fnads45fcblc36xx-meson-1.10.2/bin/meson --internal clangtidy /build/h3wxg85ali7zyibxmqxfy90nlryf5qa1-source /build/h3wxg85ali7zyibxmqxfy90nlryf5qa1-source/build --color always89ninja: build stopped: subcommand failed.