nix-grpc-store-clang-tidy-0.2.0
checks.x86_64-linux.clang-tidy
· build #635
· raw
1tribuchet: building on jamie
unpackPhase
2unpacking source archive /nix/store/ys890fh4kjmab903b75i1swn9ji5w8k3-source3source root is sourceconfigurePhase
4mesonConfigurePhase flags: --prefix=/nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0 --libdir=/nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/lib --libexecdir=/nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/libexec --bindir=/nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/bin --sbindir=/nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/sbin --includedir=/nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/include --mandir=/nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/share/man --infodir=/nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/share/info --localedir=/nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain -Db_pch=false5The Meson build system6Version: 1.12.17Source 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.2.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/b9izmrfjp0qnnyahdwwrzdwi87s1h179-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.218Run-time dependency grpc++ found: YES 1.83.119Run-time dependency protobuf found: YES 36.2.020Run-time dependency libzstd found: YES 1.5.721Run-time dependency threads found: YES22Run-time dependency libcrypto found: YES 3.5.823Run-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 2026081726Run-time dependency absl_hash found: YES 2026081727Run-time dependency absl_synchronization found: YES 2026081728Compiler for C++ supports arguments -Werror=thread-safety: YES 29Run-time dependency nix-store found: YES 2.36.0pre20261004_b010dc9930Run-time dependency nix-util found: YES 2.36.0pre20261004_b010dc9931Run-time dependency jemalloc found: YES 5.3.1_032Run-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/icm7gdscsdcbkf1rmnyqhf5vmrdhl6d4-protobuf-36.2/bin/protoc)36Program grpc_cpp_plugin found: YES (/nix/store/5ajs0p0ysy8hynsf1g0b1ggaf1ah3ynj-grpc-1.83.1/bin/grpc_cpp_plugin)37Program mold found: YES (/nix/store/9dcddrfxlfl9n3wfibi5jkmp22bjkvkh-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: 2042WARNING: Project specifies no minimum version but uses features which were added in versions:43 * 1.1: {'meson.options file'}4445nix-grpc-store 0.2.04647 User defined options48 auto_features: enabled49 b_pch : false50 bindir : /nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/bin51 buildtype : plain52 includedir : /nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/include53 infodir : /nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/share/info54 libdir : /nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/lib55 libexecdir : /nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/libexec56 localedir : /nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/share/locale57 mandir : /nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/share/man58 prefix : /nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.059 sbindir : /nix/store/i1rvaz17rd21mx4ff68rgmdn8lnx3lvg-nix-grpc-store-clang-tidy-0.2.0/sbin60 wrap_mode : nodownload6162Found ninja-1.13.2 at /nix/store/4nsdla28c4177ssp0hlyv5l2yzj8wcba-ninja-1.13.2/bin/ninja63mesonConfigurePhase: enabled\ parallel\ buildingbuildPhase
64[1/2] Generating eds_proto with a custom command65[2/2] Generating nix_remote_proto with a custom command66[0/1] /nix/store/r72868g8znkk4m8pmwsn3cf8v3h84mr0-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always67>>> /nix/store/f9hs9r4kcnics2v0l9dbd1b1arx09gza-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/sbpl-test.cc68../tests/sbpl-test.cc:18:6: error: an exception may be thrown in function 'main' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors]69 18 | auto main() -> int70 | ^71/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:243:5: note: frame #0: unhandled exception of type 'format_error' may be thrown in function '__throw_format_error' here72 243 | { _GLIBCXX_THROW_OR_ABORT(format_error(__what)); }73 | ^74/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/x86_64-unknown-linux-gnu/bits/c++config.h:262:42: note: expanded from macro '_GLIBCXX_THROW_OR_ABORT'75 262 | # define _GLIBCXX_THROW_OR_ABORT(_EXC) (throw (_EXC))76 | ^77/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:264:5: note: frame #1: function '__conflicting_indexing_in_format_string' calls function '__throw_format_error' here78 264 | { __throw_format_error("format error: conflicting indexing style in format string"); }79 | ^80/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:315:4: note: frame #2: function 'next_arg_id' calls function '__conflicting_indexing_in_format_string' here81 315 | __format::__conflicting_indexing_in_format_string();82 | ^83/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:5051:20: note: frame #3: function '_M_scan' calls function 'next_arg_id' here84 5051 | _M_format_arg(_M_pc.next_arg_id());85 | ^86/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:5325:7: note: frame #4: function '__do_vformat_to<char, 1U>' calls function '_M_scan' here87 5325 | __scanner._M_scan();88 | ^89/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:5356:11: note: frame #5: function '__do_vformat_to<std::__format::_Sink_iter<char>, char, std::basic_format_context<std::__format::_Sink_iter<char>, char>>' calls function '__do_vformat_to<char, 1U>' here90 5356 | return __format::__do_vformat_to(__out, __fmt, __ctx);91 | ^92/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:5445:14: note: frame #6: function 'vformat_to<std::__format::_Sink_iter<char>>' calls function '__do_vformat_to<std::__format::_Sink_iter<char>, char, std::basic_format_context<std::__format::_Sink_iter<char>, char>>' here93 5445 | { return __format::__do_vformat_to(std::move(__out), __fmt, __args); }94 | ^95/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/print:147:2: note: frame #7: function 'println<const char *>' calls function 'vformat_to<std::__format::_Sink_iter<char>>' here96 147 | std::vformat_to(__format::_File_sink(__stream, true).out(),97 | ^98../tests/sbpl-test.cc:65:5: note: frame #8: function 'main' calls function 'println<const char *>' here99 65 | std::println(stderr, "sbpl-test: {}", err.what());100 | ^101>>> /nix/store/f9hs9r4kcnics2v0l9dbd1b1arx09gza-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/sandbox-test.cc102../tests/sandbox-test.cc:7:1: error: included header cstdlib is not used directly [misc-include-cleaner,-warnings-as-errors]103 7 | #include <cstdlib>104 | ^~~~~~~~~~~~~~~~~~105 8 | #include <exception>106../tests/sandbox-test.cc:19:1: error: included header types.h is not used directly [misc-include-cleaner,-warnings-as-errors]107 19 | #include <sys/types.h>108 | ^~~~~~~~~~~~~~~~~~~~~~109 20 | #include <sys/un.h>110../tests/sandbox-test.cc:42:29: error: do not call c-style vararg functions [cppcoreguidelines-pro-type-vararg,-warnings-as-errors]111 42 | return static_cast<int>(::syscall(SYS_landlock_create_ruleset, nullptr, 0, versionFlag));112 | ^113../tests/sandbox-test.cc:53:61: error: do not cast '<dependent type>' to 'const sockaddr *' through 'const void *'; use reinterpret_cast instead [bugprone-casting-through-void,-warnings-as-errors]114 53 | return ::bind(sock.get(), static_cast<const sockaddr *>(static_cast<const void *>(&addr)), sizeof(addr)) == 0;115 | ^116../tests/sandbox-test.cc:93:5: error: no header providing "pid_t" is directly included [misc-include-cleaner,-warnings-as-errors]117 14 | pid_t const pid = ::fork();118 | ^119../tests/sandbox-test.cc:105:12: error: no header providing "WIFEXITED" is directly included [misc-include-cleaner,-warnings-as-errors]120 105 | return WIFEXITED(status) ? WEXITSTATUS(status) : 2;121 | ^122../tests/sandbox-test.cc:105:32: error: no header providing "WEXITSTATUS" is directly included [misc-include-cleaner,-warnings-as-errors]123 105 | return WIFEXITED(status) ? WEXITSTATUS(status) : 2;124 | ^125../tests/sandbox-test.cc:132:40: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]126 132 | static_cast<void>(::write(ready[1], &byte, 1));127 | ^~~128../tests/sandbox-test.cc:133:41: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]129 133 | static_cast<void>(::read(rotated[0], &byte, 1));130 | ^~~131../tests/sandbox-test.cc:137:35: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]132 137 | static_cast<void>(::read(ready[0], &byte, 1));133 | ^~~134../tests/sandbox-test.cc:140:38: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]135 140 | static_cast<void>(::write(rotated[1], &byte, 1));136 | ^~~137../tests/sandbox-test.cc:143:20: error: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]138 143 | for (int const fd : {ready[0], ready[1], rotated[0], rotated[1]}) {139 | ^140../tests/sandbox-test.cc:143:31: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]141 143 | for (int const fd : {ready[0], ready[1], rotated[0], rotated[1]}) {142 | ^~~143../tests/sandbox-test.cc:143:41: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]144 143 | for (int const fd : {ready[0], ready[1], rotated[0], rotated[1]}) {145 | ^~~146../tests/sandbox-test.cc:143:53: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]147 143 | for (int const fd : {ready[0], ready[1], rotated[0], rotated[1]}) {148 | ^~~149../tests/sandbox-test.cc:143:65: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]150 143 | for (int const fd : {ready[0], ready[1], rotated[0], rotated[1]}) {151 | ^~~152../tests/sandbox-test.cc:151:6: error: an exception may be thrown in function 'main' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors]153 151 | auto main() -> int154 | ^155/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:243:5: note: frame #0: unhandled exception of type 'format_error' may be thrown in function '__throw_format_error' here156 243 | { _GLIBCXX_THROW_OR_ABORT(format_error(__what)); }157 | ^158/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/x86_64-unknown-linux-gnu/bits/c++config.h:262:42: note: expanded from macro '_GLIBCXX_THROW_OR_ABORT'159 262 | # define _GLIBCXX_THROW_OR_ABORT(_EXC) (throw (_EXC))160 | ^161/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:264:5: note: frame #1: function '__conflicting_indexing_in_format_string' calls function '__throw_format_error' here162 264 | { __throw_format_error("format error: conflicting indexing style in format string"); }163 | ^164/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:315:4: note: frame #2: function 'next_arg_id' calls function '__conflicting_indexing_in_format_string' here165 315 | __format::__conflicting_indexing_in_format_string();166 | ^167/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:5051:20: note: frame #3: function '_M_scan' calls function 'next_arg_id' here168 5051 | _M_format_arg(_M_pc.next_arg_id());169 | ^170/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:5325:7: note: frame #4: function '__do_vformat_to<char, 1U>' calls function '_M_scan' here171 5325 | __scanner._M_scan();172 | ^173/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:5356:11: note: frame #5: function '__do_vformat_to<std::__format::_Sink_iter<char>, char, std::basic_format_context<std::__format::_Sink_iter<char>, char>>' calls function '__do_vformat_to<char, 1U>' here174 5356 | return __format::__do_vformat_to(__out, __fmt, __ctx);175 | ^176/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/format:5445:14: note: frame #6: function 'vformat_to<std::__format::_Sink_iter<char>>' calls function '__do_vformat_to<std::__format::_Sink_iter<char>, char, std::basic_format_context<std::__format::_Sink_iter<char>, char>>' here177 5445 | { return __format::__do_vformat_to(std::move(__out), __fmt, __args); }178 | ^179/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/print:147:2: note: frame #7: function 'println<const char *>' calls function 'vformat_to<std::__format::_Sink_iter<char>>' here180 147 | std::vformat_to(__format::_File_sink(__stream, true).out(),181 | ^182../tests/sandbox-test.cc:219:5: note: frame #8: function 'main' calls function 'println<const char *>' here183 219 | std::println(stderr, "sandbox-test: {}", err.what());184 | ^185../tests/sandbox-test.cc:165:34: error: no header providing "mkdtemp" is directly included [misc-include-cleaner,-warnings-as-errors]186 13 | auto const base = fs::path(::mkdtemp(tmpl.data()));187 | ^188>>> /nix/store/f9hs9r4kcnics2v0l9dbd1b1arx09gza-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/channel.cc189[1/1] (1/2) Processing file /build/source/src/client/channel.cc.190[1/1] (2/2) Processing file /build/source/src/client/channel.cc.191>>> /nix/store/f9hs9r4kcnics2v0l9dbd1b1arx09gza-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/sandbox-linux.cc192[1/1] (1/2) Processing file /build/source/src/daemon/sandbox-linux.cc.193[1/1] (2/2) Processing file /build/source/src/daemon/sandbox-linux.cc.194../src/daemon/sandbox-linux.cc:151:22: error: do not call c-style vararg functions [cppcoreguidelines-pro-type-vararg,-warnings-as-errors]195 151 | auto const res = ::syscall(number, args...);196 | ^197../src/daemon/sandbox-linux.cc:167:16: error: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list,-warnings-as-errors]198 167 | return nix::AutoCloseFD(static_cast<int>(ruleset));199 | ^~~~~~~~~~~~~~~~~ ~200 | { }201../src/daemon/sandbox-linux.cc:224:30: error: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]202 224 | Ruleset(nix::AutoCloseFD fd, Fs handledFs)203 | ^204../src/daemon/sandbox-linux.cc:234:39: error: do not call c-style vararg functions [cppcoreguidelines-pro-type-vararg,-warnings-as-errors]205 234 | nix::AutoCloseFD const target(::open(path.c_str(), O_PATH | O_CLOEXEC));206 | ^207>>> /nix/store/f9hs9r4kcnics2v0l9dbd1b1arx09gza-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/main.cc208Errors encountered while running clang-tidy209../src/daemon/main.cc:894:6: error: function 'sandboxPolicy' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage,-warnings-as-errors]210 894 | auto sandboxPolicy(const nixgrpc::Options & options, bool listenFdsEmpty) -> nixgrpc::sandbox::Policy211 | ^212 | static 213../src/daemon/main.cc:914:76: error: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers,-warnings-as-errors]214 914 | policy.listenSockets.push_back(CanonicalPath::from(addr.substr(5)));215 | ^216FAILED: [code=1] meson-internal__clang-tidy 217/nix/store/r72868g8znkk4m8pmwsn3cf8v3h84mr0-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always218ninja: build stopped: subcommand failed.