nixbot

builds

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

1tribuchet: building on eliza
unpackPhase
2unpacking source archive /nix/store/shqy9k54icxyynsda9yrwbldiplr3zki-source3source root is source
configurePhase
4mesonConfigurePhase flags: --prefix=/nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0 --libdir=/nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/lib --libexecdir=/nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/libexec --bindir=/nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/bin --sbindir=/nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/sbin --includedir=/nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/include --mandir=/nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/share/man --infodir=/nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/share/info --localedir=/nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.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.1.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: aarch6416Host machine cpu: aarch6417Found pkg-config: YES (/nix/store/h82n3d0wdrgskdc3yvmz5l3c50h2snvp-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/8lbx3nmylh18yw8vh0c7fhv7bqjjlh3q-protobuf-36.2/bin/protoc)36Program grpc_cpp_plugin found: YES (/nix/store/hjj2bin7r66rmvq2jw1pmfdm8bpx637b-grpc-1.83.1/bin/grpc_cpp_plugin)37Program mold found: YES (/nix/store/gbq334xbibaz4gn184j7gs58m2spgwi7-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: 1842WARNING: Project specifies no minimum version but uses features which were added in versions:43 * 1.1: {'meson.options file'}4445nix-grpc-store 0.1.04647 User defined options48 auto_features: enabled49 b_pch : false50 bindir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/bin51 buildtype : plain52 includedir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/include53 infodir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/share/info54 libdir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/lib55 libexecdir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/libexec56 localedir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/share/locale57 mandir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/share/man58 prefix : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.059 sbindir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/sbin60 wrap_mode : nodownload6162Found ninja-1.13.2 at /nix/store/lfkdyggn1ffslfd830l35jrvapr5lzri-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/av7nrlz2yrbwwn4xmpdaz0swnqp36j1f-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always67>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/plugin-loader-test.cc68../tests/plugin-loader-test.cc:8:3: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]69 8 | assert(darwinNixStoreOutputMatches(70 | ^~~~~~71 | static_assert72../tests/plugin-loader-test.cc:10:3: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]73 10 | assert(darwinNixStoreOutputMatches(74 | ^~~~~~75 | static_assert76../tests/plugin-loader-test.cc:12:3: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]77 12 | assert(darwinNixStoreOutputMatches(78 | ^~~~~~79 | static_assert80../tests/plugin-loader-test.cc:15:3: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]81 15 | assert(!darwinNixStoreOutputMatches(82 | ^~~~~~83 | static_assert84../tests/plugin-loader-test.cc:17:3: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]85 17 | assert(!darwinNixStoreOutputMatches(86 | ^~~~~~87 | static_assert88>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/upload-claims-test.cc89../tests/upload-claims-test.cc:24:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]90 24 | assert(first.owner);91 | ^~~~~~92 | static_assert93../tests/upload-claims-test.cc:25:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]94 25 | assert(!second.owner);95 | ^~~~~~96 | static_assert97../tests/upload-claims-test.cc:26:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]98 26 | assert(!isReady(second.result));99 | ^~~~~~100 | static_assert101../tests/upload-claims-test.cc:44:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]102 44 | assert(failed);103 | ^~~~~~104 | static_assert105../tests/upload-claims-test.cc:52:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]106 52 | assert(again.owner);107 | ^~~~~~108 | static_assert109../tests/upload-claims-test.cc:63:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]110 63 | assert(!isReady(other.result));111 | ^~~~~~112 | static_assert113../tests/upload-claims-test.cc:73:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]114 73 | assert(first.owner);115 | ^~~~~~116 | static_assert117../tests/upload-claims-test.cc:74:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]118 74 | assert(second.owner);119 | ^~~~~~120 | static_assert121>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/log-spill-test.cc122../tests/log-spill-test.cc:35:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]123 35 | assert(end == spill.written());124 | ^~~~~~125 | static_assert126../tests/log-spill-test.cc:45:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]127 45 | assert(done);128 | ^~~~~~129 | static_assert130../tests/log-spill-test.cc:49:6: error: function 'roundTrip' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]131 49 | void roundTrip()132 | ^133../tests/log-spill-test.cc:52:5: note: +1, including nesting penalty of 0, nesting level increased to 1134 52 | assert(readAll(spill).empty());135 | ^136/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'137 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \138 | ^139../tests/log-spill-test.cc:52:5: note: +2, including nesting penalty of 1, nesting level increased to 2140 52 | assert(readAll(spill).empty());141 | ^142/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'143 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \144 | ^145../tests/log-spill-test.cc:58:5: note: +1, including nesting penalty of 0, nesting level increased to 1146 58 | assert(got.size() == 4);147 | ^148/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'149 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \150 | ^151../tests/log-spill-test.cc:58:5: note: +2, including nesting penalty of 1, nesting level increased to 2152 58 | assert(got.size() == 4);153 | ^154/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'155 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \156 | ^157../tests/log-spill-test.cc:59:5: note: +1, including nesting penalty of 0, nesting level increased to 1158 59 | assert(got.at(0) == std::make_pair(SpillKind::line, std::string("first")));159 | ^160/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'161 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \162 | ^163../tests/log-spill-test.cc:59:5: note: +2, including nesting penalty of 1, nesting level increased to 2164 59 | assert(got.at(0) == std::make_pair(SpillKind::line, std::string("first")));165 | ^166/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'167 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \168 | ^169../tests/log-spill-test.cc:60:5: note: +1, including nesting penalty of 0, nesting level increased to 1170 60 | assert(got.at(1) == std::make_pair(SpillKind::phase, std::string("build")));171 | ^172/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'173 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \174 | ^175../tests/log-spill-test.cc:60:5: note: +2, including nesting penalty of 1, nesting level increased to 2176 60 | assert(got.at(1) == std::make_pair(SpillKind::phase, std::string("build")));177 | ^178/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'179 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \180 | ^181../tests/log-spill-test.cc:61:5: note: +1, including nesting penalty of 0, nesting level increased to 1182 61 | assert(got.at(2).second.empty());183 | ^184/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'185 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \186 | ^187../tests/log-spill-test.cc:61:5: note: +2, including nesting penalty of 1, nesting level increased to 2188 61 | assert(got.at(2).second.empty());189 | ^190/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'191 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \192 | ^193../tests/log-spill-test.cc:62:5: note: +1, including nesting penalty of 0, nesting level increased to 1194 62 | assert(got.at(3).second.size() == kBigLine);195 | ^196/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'197 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \198 | ^199../tests/log-spill-test.cc:62:5: note: +2, including nesting penalty of 1, nesting level increased to 2200 62 | assert(got.at(3).second.size() == kBigLine);201 | ^202/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'203 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \204 | ^205../tests/log-spill-test.cc:65:37: note: nesting level increased to 1206 65 | auto const mid = spill.drain(0, [](SpillKind, std::string_view) -> void {});207 | ^208../tests/log-spill-test.cc:66:5: note: +1, including nesting penalty of 0, nesting level increased to 1209 66 | assert(mid == spill.written());210 | ^211/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'212 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \213 | ^214../tests/log-spill-test.cc:66:5: note: +2, including nesting penalty of 1, nesting level increased to 2215 66 | assert(mid == spill.written());216 | ^217/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'218 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \219 | ^220../tests/log-spill-test.cc:69:39: note: nesting level increased to 1221 69 | auto const end = spill.drain(mid, [&](SpillKind kind, std::string_view text) -> void { rest.emplace_back(kind, std::string(text)); });222 | ^223../tests/log-spill-test.cc:70:5: note: +1, including nesting penalty of 0, nesting level increased to 1224 70 | assert(end == spill.written());225 | ^226/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'227 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \228 | ^229../tests/log-spill-test.cc:70:5: note: +2, including nesting penalty of 1, nesting level increased to 2230 70 | assert(end == spill.written());231 | ^232/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'233 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \234 | ^235../tests/log-spill-test.cc:71:5: note: +1, including nesting penalty of 0, nesting level increased to 1236 71 | assert(rest.size() == 1 && rest.front().second == "later");237 | ^238/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'239 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \240 | ^241../tests/log-spill-test.cc:71:29: note: +1242 71 | assert(rest.size() == 1 && rest.front().second == "later");243 | ^244../tests/log-spill-test.cc:71:5: note: +2, including nesting penalty of 1, nesting level increased to 2245 71 | assert(rest.size() == 1 && rest.front().second == "later");246 | ^247/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'248 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \249 | ^250../tests/log-spill-test.cc:71:29: note: +1251 71 | assert(rest.size() == 1 && rest.front().second == "later");252 | ^253../tests/log-spill-test.cc:52:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]254 52 | assert(readAll(spill).empty());255 | ^~~~~~256 | static_assert257../tests/log-spill-test.cc:58:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]258 58 | assert(got.size() == 4);259 | ^~~~~~260 | static_assert261../tests/log-spill-test.cc:59:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]262 59 | assert(got.at(0) == std::make_pair(SpillKind::line, std::string("first")));263 | ^~~~~~264 | static_assert265../tests/log-spill-test.cc:60:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]266 60 | assert(got.at(1) == std::make_pair(SpillKind::phase, std::string("build")));267 | ^~~~~~268 | static_assert269../tests/log-spill-test.cc:61:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]270 61 | assert(got.at(2).second.empty());271 | ^~~~~~272 | static_assert273../tests/log-spill-test.cc:62:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]274 62 | assert(got.at(3).second.size() == kBigLine);275 | ^~~~~~276 | static_assert277../tests/log-spill-test.cc:66:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]278 66 | assert(mid == spill.written());279 | ^~~~~~280 | static_assert281../tests/log-spill-test.cc:70:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]282 70 | assert(end == spill.written());283 | ^~~~~~284 | static_assert285../tests/log-spill-test.cc:71:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]286 71 | assert(rest.size() == 1 && rest.front().second == "later");287 | ^~~~~~288 | static_assert289../tests/log-spill-test.cc:79:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]290 79 | assert(got.size() == 1 && got.at(0).second.size() == LogSpill::kMaxText);291 | ^~~~~~292 | static_assert293../tests/log-spill-test.cc:89:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]294 89 | assert(!got.empty());295 | ^~~~~~296 | static_assert297../tests/log-spill-test.cc:90:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]298 90 | assert(got.back().second == LogSpill::kTruncated);299 | ^~~~~~300 | static_assert301../tests/log-spill-test.cc:93:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]302 93 | assert(spill.written() == size);303 | ^~~~~~304 | static_assert305../tests/log-spill-test.cc:99:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]306 99 | assert(only.size() == 1 && only.front().second == LogSpill::kTruncated);307 | ^~~~~~308 | static_assert309../tests/log-spill-test.cc:108:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]310 108 | assert(readAll(spill).empty() && spill.written() == 0);311 | ^~~~~~312 | static_assert313../tests/log-spill-test.cc:141:9: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]314 141 | assert(got->size() == lines);315 | ^~~~~~316 | static_assert317../tests/log-spill-test.cc:143:13: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]318 143 | assert(got->at(static_cast<std::size_t>(i)).second == "line " + std::to_string(i));319 | ^~~~~~320 | static_assert321../tests/log-spill-test.cc:158:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]322 158 | assert(!done);323 | ^~~~~~324 | static_assert325>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/xfcc-test.cc326../tests/xfcc-test.cc:10:6: error: function 'main' has cognitive complexity of 70 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]327 10 | auto main() -> int328 | ^329../tests/xfcc-test.cc:12:5: note: +1, including nesting penalty of 0, nesting level increased to 1330 12 | assert(331 | ^332/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'333 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \334 | ^335../tests/xfcc-test.cc:12:5: note: +2, including nesting penalty of 1, nesting level increased to 2336 12 | assert(337 | ^338/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'339 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \340 | ^341../tests/xfcc-test.cc:14:5: note: +1, including nesting penalty of 0, nesting level increased to 1342 14 | assert(subjectCommonName(R"(Hash=ab;Subject="O=nt,CN=dev")") == "dev");343 | ^344/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'345 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \346 | ^347../tests/xfcc-test.cc:14:5: note: +2, including nesting penalty of 1, nesting level increased to 2348 14 | assert(subjectCommonName(R"(Hash=ab;Subject="O=nt,CN=dev")") == "dev");349 | ^350/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'351 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \352 | ^353../tests/xfcc-test.cc:15:5: note: +1, including nesting penalty of 0, nesting level increased to 1354 15 | assert(subjectCommonName("Subject=CN=plain") == "plain");355 | ^356/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'357 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \358 | ^359../tests/xfcc-test.cc:15:5: note: +2, including nesting penalty of 1, nesting level increased to 2360 15 | assert(subjectCommonName("Subject=CN=plain") == "plain");361 | ^362/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'363 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \364 | ^365../tests/xfcc-test.cc:16:5: note: +1, including nesting penalty of 0, nesting level increased to 1366 16 | assert(subjectCommonName("Subject=/CN=legacy/O=x") == "legacy");367 | ^368/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'369 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \370 | ^371../tests/xfcc-test.cc:16:5: note: +2, including nesting penalty of 1, nesting level increased to 2372 16 | assert(subjectCommonName("Subject=/CN=legacy/O=x") == "legacy");373 | ^374/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'375 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \376 | ^377../tests/xfcc-test.cc:17:5: note: +1, including nesting penalty of 0, nesting level increased to 1378 17 | assert(subjectCommonName(R"(Subject="CN=a\,b,O=x")") == "a,b");379 | ^380/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'381 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \382 | ^383../tests/xfcc-test.cc:17:5: note: +2, including nesting penalty of 1, nesting level increased to 2384 17 | assert(subjectCommonName(R"(Subject="CN=a\,b,O=x")") == "a,b");385 | ^386/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'387 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \388 | ^389../tests/xfcc-test.cc:18:5: note: +1, including nesting penalty of 0, nesting level increased to 1390 18 | assert(subjectCommonName(R"(Subject="CN=q\"x")") == "q\"x");391 | ^392/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'393 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \394 | ^395../tests/xfcc-test.cc:18:5: note: +2, including nesting penalty of 1, nesting level increased to 2396 18 | assert(subjectCommonName(R"(Subject="CN=q\"x")") == "q\"x");397 | ^398/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'399 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \400 | ^401../tests/xfcc-test.cc:21:5: note: +1, including nesting penalty of 0, nesting level increased to 1402 21 | assert(subjectCommonName(R"(Hash=1;URI=u,Hash=2;Subject="CN=evil")") == std::nullopt);403 | ^404/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'405 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \406 | ^407../tests/xfcc-test.cc:21:5: note: +2, including nesting penalty of 1, nesting level increased to 2408 21 | assert(subjectCommonName(R"(Hash=1;URI=u,Hash=2;Subject="CN=evil")") == std::nullopt);409 | ^410/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'411 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \412 | ^413../tests/xfcc-test.cc:22:5: note: +1, including nesting penalty of 0, nesting level increased to 1414 22 | assert(subjectCommonName(R"(Hash=1;Subject="O=only")") == std::nullopt);415 | ^416/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'417 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \418 | ^419../tests/xfcc-test.cc:22:5: note: +2, including nesting penalty of 1, nesting level increased to 2420 22 | assert(subjectCommonName(R"(Hash=1;Subject="O=only")") == std::nullopt);421 | ^422/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'423 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \424 | ^425../tests/xfcc-test.cc:23:5: note: +1, including nesting penalty of 0, nesting level increased to 1426 23 | assert(subjectCommonName("") == std::nullopt);427 | ^428/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'429 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \430 | ^431../tests/xfcc-test.cc:23:5: note: +2, including nesting penalty of 1, nesting level increased to 2432 23 | assert(subjectCommonName("") == std::nullopt);433 | ^434/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'435 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \436 | ^437../tests/xfcc-test.cc:24:5: note: +1, including nesting penalty of 0, nesting level increased to 1438 24 | assert(subjectCommonName("garbage;;==,,") == std::nullopt);439 | ^440/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'441 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \442 | ^443../tests/xfcc-test.cc:24:5: note: +2, including nesting penalty of 1, nesting level increased to 2444 24 | assert(subjectCommonName("garbage;;==,,") == std::nullopt);445 | ^446/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'447 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \448 | ^449../tests/xfcc-test.cc:25:5: note: +1, including nesting penalty of 0, nesting level increased to 1450 25 | assert(subjectCommonName(R"(Subject="CN=)") == std::nullopt);451 | ^452/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'453 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \454 | ^455../tests/xfcc-test.cc:25:5: note: +2, including nesting penalty of 1, nesting level increased to 2456 25 | assert(subjectCommonName(R"(Subject="CN=)") == std::nullopt);457 | ^458/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'459 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \460 | ^461../tests/xfcc-test.cc:26:5: note: +1, including nesting penalty of 0, nesting level increased to 1462 26 | assert(subjectCommonName(R"(Subject="CN=unterminated)") == std::nullopt);463 | ^464/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'465 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \466 | ^467../tests/xfcc-test.cc:26:5: note: +2, including nesting penalty of 1, nesting level increased to 2468 26 | assert(subjectCommonName(R"(Subject="CN=unterminated)") == std::nullopt);469 | ^470/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'471 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \472 | ^473../tests/xfcc-test.cc:27:5: note: +1, including nesting penalty of 0, nesting level increased to 1474 27 | assert(subjectCommonName(R"(Subject="CN=x\)") == std::nullopt);475 | ^476/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'477 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \478 | ^479../tests/xfcc-test.cc:27:5: note: +2, including nesting penalty of 1, nesting level increased to 2480 27 | assert(subjectCommonName(R"(Subject="CN=x\)") == std::nullopt);481 | ^482/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'483 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \484 | ^485../tests/xfcc-test.cc:28:5: note: +1, including nesting penalty of 0, nesting level increased to 1486 28 | assert(subjectCommonName("Subject=\"CN=a\nb\"") == std::nullopt);487 | ^488/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'489 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \490 | ^491../tests/xfcc-test.cc:28:5: note: +2, including nesting penalty of 1, nesting level increased to 2492 28 | assert(subjectCommonName("Subject=\"CN=a\nb\"") == std::nullopt);493 | ^494/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'495 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \496 | ^497../tests/xfcc-test.cc:29:5: note: +1, including nesting penalty of 0, nesting level increased to 1498 29 | assert(subjectCommonName(std::string("Subject=CN=a") + '\0' + "b") == std::nullopt);499 | ^500/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'501 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \502 | ^503../tests/xfcc-test.cc:29:5: note: +2, including nesting penalty of 1, nesting level increased to 2504 29 | assert(subjectCommonName(std::string("Subject=CN=a") + '\0' + "b") == std::nullopt);505 | ^506/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'507 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \508 | ^509../tests/xfcc-test.cc:30:5: note: +1, including nesting penalty of 0, nesting level increased to 1510 30 | assert(subjectCommonName("Subject=CN=" + std::string(300, 'a')) == std::nullopt);511 | ^512/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'513 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \514 | ^515../tests/xfcc-test.cc:30:5: note: +2, including nesting penalty of 1, nesting level increased to 2516 30 | assert(subjectCommonName("Subject=CN=" + std::string(300, 'a')) == std::nullopt);517 | ^518/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'519 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \520 | ^521../tests/xfcc-test.cc:31:5: note: +1, including nesting penalty of 0, nesting level increased to 1522 31 | assert(subjectCommonName(std::string(20000, ';')) == std::nullopt);523 | ^524/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'525 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \526 | ^527../tests/xfcc-test.cc:31:5: note: +2, including nesting penalty of 1, nesting level increased to 2528 31 | assert(subjectCommonName(std::string(20000, ';')) == std::nullopt);529 | ^530/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'531 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \532 | ^533../tests/xfcc-test.cc:34:5: note: +1, including nesting penalty of 0, nesting level increased to 1534 34 | assert(!proxies.matches(std::string("lb-1")));535 | ^536/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'537 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \538 | ^539../tests/xfcc-test.cc:34:5: note: +2, including nesting penalty of 1, nesting level increased to 2540 34 | assert(!proxies.matches(std::string("lb-1")));541 | ^542/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'543 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \544 | ^545../tests/xfcc-test.cc:36:5: note: +1, including nesting penalty of 0, nesting level increased to 1546 36 | assert(proxies.matches(std::string("lb-1")));547 | ^548/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'549 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \550 | ^551../tests/xfcc-test.cc:36:5: note: +2, including nesting penalty of 1, nesting level increased to 2552 36 | assert(proxies.matches(std::string("lb-1")));553 | ^554/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'555 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \556 | ^557../tests/xfcc-test.cc:37:5: note: +1, including nesting penalty of 0, nesting level increased to 1558 37 | assert(!proxies.matches(std::string("ci-1")));559 | ^560/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'561 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \562 | ^563../tests/xfcc-test.cc:37:5: note: +2, including nesting penalty of 1, nesting level increased to 2564 37 | assert(!proxies.matches(std::string("ci-1")));565 | ^566/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'567 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \568 | ^569../tests/xfcc-test.cc:38:5: note: +1, including nesting penalty of 0, nesting level increased to 1570 38 | assert(!proxies.matches(std::nullopt));571 | ^572/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'573 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \574 | ^575../tests/xfcc-test.cc:38:5: note: +2, including nesting penalty of 1, nesting level increased to 2576 38 | assert(!proxies.matches(std::nullopt));577 | ^578/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'579 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \580 | ^581../tests/xfcc-test.cc:39:5: note: +1, including nesting penalty of 0, nesting level increased to 1582 39 | assert(!proxies.matches(std::string("")));583 | ^584/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'585 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \586 | ^587../tests/xfcc-test.cc:39:5: note: +2, including nesting penalty of 1, nesting level increased to 2588 39 | assert(!proxies.matches(std::string("")));589 | ^590/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'591 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \592 | ^593../tests/xfcc-test.cc:40:5: note: +1, including nesting penalty of 0, nesting level increased to 1594 40 | assert(!proxies.matches(std::string("lb-1") + '\0' + "x"));595 | ^596/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'597 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \598 | ^599../tests/xfcc-test.cc:40:5: note: +2, including nesting penalty of 1, nesting level increased to 2600 40 | assert(!proxies.matches(std::string("lb-1") + '\0' + "x"));601 | ^602/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'603 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \604 | ^605../tests/xfcc-test.cc:42:3: note: +1, including nesting penalty of 0, nesting level increased to 1606 42 | } catch (...) {607 | ^608../tests/xfcc-test.cc:12:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]609 12 | assert(610 | ^~~~~~611 | static_assert612../tests/xfcc-test.cc:14:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]613 14 | assert(subjectCommonName(R"(Hash=ab;Subject="O=nt,CN=dev")") == "dev");614 | ^~~~~~615 | static_assert616../tests/xfcc-test.cc:15:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]617 15 | assert(subjectCommonName("Subject=CN=plain") == "plain");618 | ^~~~~~619 | static_assert620../tests/xfcc-test.cc:16:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]621 16 | assert(subjectCommonName("Subject=/CN=legacy/O=x") == "legacy");622 | ^~~~~~623 | static_assert624../tests/xfcc-test.cc:17:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]625 17 | assert(subjectCommonName(R"(Subject="CN=a\,b,O=x")") == "a,b");626 | ^~~~~~627 | static_assert628../tests/xfcc-test.cc:18:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]629 18 | assert(subjectCommonName(R"(Subject="CN=q\"x")") == "q\"x");630 | ^~~~~~631 | static_assert632../tests/xfcc-test.cc:21:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]633 21 | assert(subjectCommonName(R"(Hash=1;URI=u,Hash=2;Subject="CN=evil")") == std::nullopt);634 | ^~~~~~635 | static_assert636../tests/xfcc-test.cc:22:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]637 22 | assert(subjectCommonName(R"(Hash=1;Subject="O=only")") == std::nullopt);638 | ^~~~~~639 | static_assert640../tests/xfcc-test.cc:23:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]641 23 | assert(subjectCommonName("") == std::nullopt);642 | ^~~~~~643 | static_assert644../tests/xfcc-test.cc:24:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]645 24 | assert(subjectCommonName("garbage;;==,,") == std::nullopt);646 | ^~~~~~647 | static_assert648../tests/xfcc-test.cc:25:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]649 25 | assert(subjectCommonName(R"(Subject="CN=)") == std::nullopt);650 | ^~~~~~651 | static_assert652../tests/xfcc-test.cc:26:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]653 26 | assert(subjectCommonName(R"(Subject="CN=unterminated)") == std::nullopt);654 | ^~~~~~655 | static_assert656../tests/xfcc-test.cc:27:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]657 27 | assert(subjectCommonName(R"(Subject="CN=x\)") == std::nullopt);658 | ^~~~~~659 | static_assert660../tests/xfcc-test.cc:28:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]661 28 | assert(subjectCommonName("Subject=\"CN=a\nb\"") == std::nullopt);662 | ^~~~~~663 | static_assert664../tests/xfcc-test.cc:29:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]665 29 | assert(subjectCommonName(std::string("Subject=CN=a") + '\0' + "b") == std::nullopt);666 | ^~~~~~667 | static_assert668../tests/xfcc-test.cc:30:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]669 30 | assert(subjectCommonName("Subject=CN=" + std::string(300, 'a')) == std::nullopt);670 | ^~~~~~671 | static_assert672../tests/xfcc-test.cc:31:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]673 31 | assert(subjectCommonName(std::string(20000, ';')) == std::nullopt);674 | ^~~~~~675 | static_assert676../tests/xfcc-test.cc:34:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]677 34 | assert(!proxies.matches(std::string("lb-1")));678 | ^~~~~~679 | static_assert680../tests/xfcc-test.cc:36:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]681 36 | assert(proxies.matches(std::string("lb-1")));682 | ^~~~~~683 | static_assert684../tests/xfcc-test.cc:37:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]685 37 | assert(!proxies.matches(std::string("ci-1")));686 | ^~~~~~687 | static_assert688../tests/xfcc-test.cc:38:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]689 38 | assert(!proxies.matches(std::nullopt));690 | ^~~~~~691 | static_assert692../tests/xfcc-test.cc:39:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]693 39 | assert(!proxies.matches(std::string("")));694 | ^~~~~~695 | static_assert696../tests/xfcc-test.cc:40:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]697 40 | assert(!proxies.matches(std::string("lb-1") + '\0' + "x"));698 | ^~~~~~699 | static_assert700>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/upload-spool-test.cc701../tests/upload-spool-test.cc:17:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]702 17 | assert(getrlimit(RLIMIT_NOFILE, &limit) == 0);703 | ^~~~~~704 | static_assert705../tests/upload-spool-test.cc:19:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]706 19 | assert(setrlimit(RLIMIT_NOFILE, &limit) == 0);707 | ^~~~~~708 | static_assert709../tests/upload-spool-test.cc:32:9: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]710 32 | assert(reader.drain() == content);711 | ^~~~~~712 | static_assert713../tests/upload-spool-test.cc:42:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]714 42 | assert(skip.drain().empty());715 | ^~~~~~716 | static_assert717../tests/upload-spool-test.cc:47:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]718 47 | assert(reader.drain() == kept);719 | ^~~~~~720 | static_assert721>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/call-test.cc722../tests/call-test.cc:46:9: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]723 46 | assert(server);724 | ^~~~~~725 | static_assert726../tests/call-test.cc:79:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]727 79 | assert(fired);728 | ^~~~~~729 | static_assert730../tests/call-test.cc:80:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]731 80 | assert(status.error_code() == grpc::StatusCode::CANCELLED);732 | ^~~~~~733 | static_assert734../tests/call-test.cc:93:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]735 93 | assert(threw);736 | ^~~~~~737 | static_assert738>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/channel.cc739[1/1] (1/2) Processing file /build/source/src/client/channel.cc.740[1/1] (2/2) Processing file /build/source/src/client/channel.cc.741>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/nar-fetcher-test.cc742../tests/nar-fetcher-test.cc:60:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]743 60 | assert(server);744 | ^~~~~~745 | static_assert746../tests/nar-fetcher-test.cc:66:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]747 66 | assert(fetchFails(fetcher, path));748 | ^~~~~~749 | static_assert750../tests/nar-fetcher-test.cc:67:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]751 67 | assert(fetchFails(fetcher, path));752 | ^~~~~~753 | static_assert754../tests/nar-fetcher-test.cc:68:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]755 68 | assert(service.calls == 2);756 | ^~~~~~757 | static_assert758>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/scheduler-test.cc759../tests/scheduler-test.cc:43:9: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]760 43 | assert(heap.size() == ref.size());761 | ^~~~~~762 | static_assert763../tests/scheduler-test.cc:50:13: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]764 50 | assert(ref.at(top) == minKey);765 | ^~~~~~766 | static_assert767../tests/scheduler-test.cc:61:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]768 61 | assert(!fi.emptiest());769 | ^~~~~~770 | static_assert771../tests/scheduler-test.cc:64:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]772 64 | assert(fi.maxFree() == 4 && *fi.emptiest() == 2);773 | ^~~~~~774 | static_assert775../tests/scheduler-test.cc:66:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]776 66 | assert(*fi.emptiest() == 3);777 | ^~~~~~778 | static_assert779../tests/scheduler-test.cc:68:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]780 68 | assert(fi.get(3) == -5 && *fi.emptiest() == 2);781 | ^~~~~~782 | static_assert783../tests/scheduler-test.cc:70:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]784 70 | assert(!fi.emptiest());785 | ^~~~~~786 | static_assert787../tests/scheduler-test.cc:72:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]788 72 | assert(fi.get(4) == 100 && *fi.emptiest() == 4);789 | ^~~~~~790 | static_assert791../tests/scheduler-test.cc:93:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]792 93 | assert(out.empty()); // no workers793 | ^~~~~~794 | static_assert795../tests/scheduler-test.cc:96:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]796 96 | assert(out.size() == 1 && out[0].worker == w0 && out[0].clients.size() == 2);797 | ^~~~~~798 | static_assert799../tests/scheduler-test.cc:99:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]800 99 | assert(res.assigned && res.assigned->first == w0 && res.assigned->second == out[0].assignId);801 | ^~~~~~802 | static_assert803../tests/scheduler-test.cc:101:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]804 101 | assert(!shard.entry(out[0].drv));805 | ^~~~~~806 | static_assert807../tests/scheduler-test.cc:114:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]808 114 | assert(out.size() == 1 && out[0].worker == w1);809 | ^~~~~~810 | static_assert811../tests/scheduler-test.cc:118:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]812 118 | assert(out.size() == 2 && out[1].worker == w0);813 | ^~~~~~814 | static_assert815../tests/scheduler-test.cc:134:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]816 134 | assert(out.size() == 1 && shard.entry(out[0].drv)->drvPath == "fan.drv");817 | ^~~~~~818 | static_assert819../tests/scheduler-test.cc:137:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]820 137 | assert(out.size() == 2 && shard.entry(out[1].drv)->drvPath == "high.drv");821 | ^~~~~~822 | static_assert823../tests/scheduler-test.cc:147:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]824 147 | assert(out.size() == 1);825 | ^~~~~~826 | static_assert827../tests/scheduler-test.cc:149:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]828 149 | assert(shard.queued() == 1);829 | ^~~~~~830 | static_assert831../tests/scheduler-test.cc:152:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]832 152 | assert(out.size() == 2 && out[1].worker == w1 && out[1].clients.size() == 1);833 | ^~~~~~834 | static_assert835../tests/scheduler-test.cc:162:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]836 162 | assert(res.assigned && res.assigned->first == w0);837 | ^~~~~~838 | static_assert839../tests/scheduler-test.cc:166:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]840 166 | assert(out.size() == 1); // only one slot left841 | ^~~~~~842 | static_assert843../tests/scheduler-test.cc:169:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]844 169 | assert(out.size() == 2);845 | ^~~~~~846 | static_assert847../tests/scheduler-test.cc:175:6: error: function 'testHelloSupersedes' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]848 175 | void testHelloSupersedes()849 | ^850../tests/scheduler-test.cc:182:5: note: +1, including nesting penalty of 0, nesting level increased to 1851 182 | assert(out.size() == 1 && out[0].worker == w0);852 | ^853/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'854 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \855 | ^856../tests/scheduler-test.cc:182:28: note: +1857 182 | assert(out.size() == 1 && out[0].worker == w0);858 | ^859../tests/scheduler-test.cc:182:5: note: +2, including nesting penalty of 1, nesting level increased to 2860 182 | assert(out.size() == 1 && out[0].worker == w0);861 | ^862/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'863 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \864 | ^865../tests/scheduler-test.cc:182:28: note: +1866 182 | assert(out.size() == 1 && out[0].worker == w0);867 | ^868../tests/scheduler-test.cc:185:5: note: +1, including nesting penalty of 0, nesting level increased to 1869 185 | assert(sup.size() == 1 && sup[0].loser == w0);870 | ^871/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'872 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \873 | ^874../tests/scheduler-test.cc:185:28: note: +1875 185 | assert(sup.size() == 1 && sup[0].loser == w0);876 | ^877../tests/scheduler-test.cc:185:5: note: +2, including nesting penalty of 1, nesting level increased to 2878 185 | assert(sup.size() == 1 && sup[0].loser == w0);879 | ^880/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'881 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \882 | ^883../tests/scheduler-test.cc:185:28: note: +1884 185 | assert(sup.size() == 1 && sup[0].loser == w0);885 | ^886../tests/scheduler-test.cc:187:5: note: +1, including nesting penalty of 0, nesting level increased to 1887 187 | assert(ent && ent->worker == w1 && ent->assignId == 7);888 | ^889/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'890 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \891 | ^892../tests/scheduler-test.cc:187:37: note: +1893 187 | assert(ent && ent->worker == w1 && ent->assignId == 7);894 | ^895../tests/scheduler-test.cc:187:5: note: +2, including nesting penalty of 1, nesting level increased to 2896 187 | assert(ent && ent->worker == w1 && ent->assignId == 7);897 | ^898/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'899 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \900 | ^901../tests/scheduler-test.cc:187:37: note: +1902 187 | assert(ent && ent->worker == w1 && ent->assignId == 7);903 | ^904../tests/scheduler-test.cc:188:5: note: +1, including nesting penalty of 0, nesting level increased to 1905 188 | assert(ent->followers.size() == 1 && ent->followers[0] == 1);906 | ^907/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'908 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \909 | ^910../tests/scheduler-test.cc:188:39: note: +1911 188 | assert(ent->followers.size() == 1 && ent->followers[0] == 1);912 | ^913../tests/scheduler-test.cc:188:5: note: +2, including nesting penalty of 1, nesting level increased to 2914 188 | assert(ent->followers.size() == 1 && ent->followers[0] == 1);915 | ^916/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'917 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \918 | ^919../tests/scheduler-test.cc:188:39: note: +1920 188 | assert(ent->followers.size() == 1 && ent->followers[0] == 1);921 | ^922../tests/scheduler-test.cc:189:5: note: +1, including nesting penalty of 0, nesting level increased to 1923 189 | assert(shard.worker(w0).running.empty());924 | ^925/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'926 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \927 | ^928../tests/scheduler-test.cc:189:5: note: +2, including nesting penalty of 1, nesting level increased to 2929 189 | assert(shard.worker(w0).running.empty());930 | ^931/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'932 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \933 | ^934../tests/scheduler-test.cc:194:5: note: +1, including nesting penalty of 0, nesting level increased to 1935 194 | assert(out.size() == 1 && out[0].worker == w0);936 | ^937/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'938 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \939 | ^940../tests/scheduler-test.cc:194:28: note: +1941 194 | assert(out.size() == 1 && out[0].worker == w0);942 | ^943../tests/scheduler-test.cc:194:5: note: +2, including nesting penalty of 1, nesting level increased to 2944 194 | assert(out.size() == 1 && out[0].worker == w0);945 | ^946/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'947 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \948 | ^949../tests/scheduler-test.cc:194:28: note: +1950 194 | assert(out.size() == 1 && out[0].worker == w0);951 | ^952../tests/scheduler-test.cc:182:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]953 182 | assert(out.size() == 1 && out[0].worker == w0);954 | ^~~~~~955 | static_assert956../tests/scheduler-test.cc:185:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]957 185 | assert(sup.size() == 1 && sup[0].loser == w0);958 | ^~~~~~959 | static_assert960../tests/scheduler-test.cc:187:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]961 187 | assert(ent && ent->worker == w1 && ent->assignId == 7);962 | ^~~~~~963 | static_assert964../tests/scheduler-test.cc:188:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]965 188 | assert(ent->followers.size() == 1 && ent->followers[0] == 1);966 | ^~~~~~967 | static_assert968../tests/scheduler-test.cc:189:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]969 189 | assert(shard.worker(w0).running.empty());970 | ^~~~~~971 | static_assert972../tests/scheduler-test.cc:194:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]973 194 | assert(out.size() == 1 && out[0].worker == w0);974 | ^~~~~~975 | static_assert976../tests/scheduler-test.cc:203:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]977 203 | assert(!shard.cancel(1, "a.drv"));978 | ^~~~~~979 | static_assert980../tests/scheduler-test.cc:204:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]981 204 | assert(shard.queued() == 1);982 | ^~~~~~983 | static_assert984../tests/scheduler-test.cc:205:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]985 205 | assert(!shard.cancel(2, "a.drv"));986 | ^~~~~~987 | static_assert988../tests/scheduler-test.cc:206:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]989 206 | assert(shard.queued() == 0);990 | ^~~~~~991 | static_assert992../tests/scheduler-test.cc:212:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]993 212 | assert(revokes.size() == 1 && revokes[0].second == w0);994 | ^~~~~~995 | static_assert996../tests/scheduler-test.cc:213:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]997 213 | assert(!shard.cancel(9, "nope.drv"));998 | ^~~~~~999 | static_assert1000../tests/scheduler-test.cc:224:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1001 224 | assert(out.empty());1002 | ^~~~~~1003 | static_assert1004../tests/scheduler-test.cc:225:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1005 225 | assert(!shard.placeable(res.drv));1006 | ^~~~~~1007 | static_assert1008../tests/scheduler-test.cc:227:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1009 227 | assert(shard.placeable(res.drv));1010 | ^~~~~~1011 | static_assert1012../tests/scheduler-test.cc:229:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1013 229 | assert(out.size() == 1);1014 | ^~~~~~1015 | static_assert1016../tests/scheduler-test.cc:232:6: error: function 'testFeatures' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]1017 232 | void testFeatures()1018 | ^1019../tests/scheduler-test.cc:243:5: note: +1, including nesting penalty of 0, nesting level increased to 11020 243 | assert(!shard.placeable(gpu));1021 | ^1022/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1023 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1024 | ^1025../tests/scheduler-test.cc:243:5: note: +2, including nesting penalty of 1, nesting level increased to 21026 243 | assert(!shard.placeable(gpu));1027 | ^1028/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1029 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1030 | ^1031../tests/scheduler-test.cc:244:5: note: +1, including nesting penalty of 0, nesting level increased to 11032 244 | assert((shard.offeredFeatures("x") == std::vector<std::string>{"kvm"}));1033 | ^1034/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1035 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1036 | ^1037../tests/scheduler-test.cc:244:5: note: +2, including nesting penalty of 1, nesting level increased to 21038 244 | assert((shard.offeredFeatures("x") == std::vector<std::string>{"kvm"}));1039 | ^1040/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1041 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1042 | ^1043../tests/scheduler-test.cc:245:5: note: +1, including nesting penalty of 0, nesting level increased to 11044 245 | assert(shard.offeredFeatures("y").empty());1045 | ^1046/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1047 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1048 | ^1049../tests/scheduler-test.cc:245:5: note: +2, including nesting penalty of 1, nesting level increased to 21050 245 | assert(shard.offeredFeatures("y").empty());1051 | ^1052/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1053 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1054 | ^1055../tests/scheduler-test.cc:248:5: note: +1, including nesting penalty of 0, nesting level increased to 11056 248 | assert(out.size() == 2);1057 | ^1058/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1059 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1060 | ^1061../tests/scheduler-test.cc:248:5: note: +2, including nesting penalty of 1, nesting level increased to 21062 248 | assert(out.size() == 2);1063 | ^1064/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1065 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1066 | ^1067../tests/scheduler-test.cc:249:5: note: +1, including nesting penalty of 0, nesting level increased to 11068 249 | assert(shard.entry(out[0].drv)->drvPath == "vm.drv" && out[0].worker == kvm);1069 | ^1070/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1071 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1072 | ^1073../tests/scheduler-test.cc:249:57: note: +11074 249 | assert(shard.entry(out[0].drv)->drvPath == "vm.drv" && out[0].worker == kvm);1075 | ^1076../tests/scheduler-test.cc:249:5: note: +2, including nesting penalty of 1, nesting level increased to 21077 249 | assert(shard.entry(out[0].drv)->drvPath == "vm.drv" && out[0].worker == kvm);1078 | ^1079/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1080 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1081 | ^1082../tests/scheduler-test.cc:249:57: note: +11083 249 | assert(shard.entry(out[0].drv)->drvPath == "vm.drv" && out[0].worker == kvm);1084 | ^1085../tests/scheduler-test.cc:250:5: note: +1, including nesting penalty of 0, nesting level increased to 11086 250 | assert(shard.entry(out[1].drv)->drvPath == "a.drv" && out[1].worker == plain);1087 | ^1088/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1089 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1090 | ^1091../tests/scheduler-test.cc:250:56: note: +11092 250 | assert(shard.entry(out[1].drv)->drvPath == "a.drv" && out[1].worker == plain);1093 | ^1094../tests/scheduler-test.cc:250:5: note: +2, including nesting penalty of 1, nesting level increased to 21095 250 | assert(shard.entry(out[1].drv)->drvPath == "a.drv" && out[1].worker == plain);1096 | ^1097/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1098 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1099 | ^1100../tests/scheduler-test.cc:250:56: note: +11101 250 | assert(shard.entry(out[1].drv)->drvPath == "a.drv" && out[1].worker == plain);1102 | ^1103../tests/scheduler-test.cc:251:5: note: +1, including nesting penalty of 0, nesting level increased to 11104 251 | assert(shard.queued() == 2);1105 | ^1106/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1107 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1108 | ^1109../tests/scheduler-test.cc:251:5: note: +2, including nesting penalty of 1, nesting level increased to 21110 251 | assert(shard.queued() == 2);1111 | ^1112/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1113 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1114 | ^1115../tests/scheduler-test.cc:254:5: note: +1, including nesting penalty of 0, nesting level increased to 11116 254 | assert(out.size() == 3 && out[2].worker == kvm);1117 | ^1118/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1119 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1120 | ^1121../tests/scheduler-test.cc:254:28: note: +11122 254 | assert(out.size() == 3 && out[2].worker == kvm);1123 | ^1124../tests/scheduler-test.cc:254:5: note: +2, including nesting penalty of 1, nesting level increased to 21125 254 | assert(out.size() == 3 && out[2].worker == kvm);1126 | ^1127/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1128 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1129 | ^1130../tests/scheduler-test.cc:254:28: note: +11131 254 | assert(out.size() == 3 && out[2].worker == kvm);1132 | ^1133../tests/scheduler-test.cc:256:5: note: +1, including nesting penalty of 0, nesting level increased to 11134 256 | assert(shard.placeable(gpu));1135 | ^1136/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1137 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1138 | ^1139../tests/scheduler-test.cc:256:5: note: +2, including nesting penalty of 1, nesting level increased to 21140 256 | assert(shard.placeable(gpu));1141 | ^1142/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1143 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1144 | ^1145../tests/scheduler-test.cc:258:5: note: +1, including nesting penalty of 0, nesting level increased to 11146 258 | assert(out.size() == 4 && shard.entry(out[3].drv)->drvPath == "gpu.drv");1147 | ^1148/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1149 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1150 | ^1151../tests/scheduler-test.cc:258:28: note: +11152 258 | assert(out.size() == 4 && shard.entry(out[3].drv)->drvPath == "gpu.drv");1153 | ^1154../tests/scheduler-test.cc:258:5: note: +2, including nesting penalty of 1, nesting level increased to 21155 258 | assert(out.size() == 4 && shard.entry(out[3].drv)->drvPath == "gpu.drv");1156 | ^1157/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1158 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1159 | ^1160../tests/scheduler-test.cc:258:28: note: +11161 258 | assert(out.size() == 4 && shard.entry(out[3].drv)->drvPath == "gpu.drv");1162 | ^1163../tests/scheduler-test.cc:243:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1164 243 | assert(!shard.placeable(gpu));1165 | ^~~~~~1166 | static_assert1167../tests/scheduler-test.cc:244:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1168 244 | assert((shard.offeredFeatures("x") == std::vector<std::string>{"kvm"}));1169 | ^~~~~~1170 | static_assert1171../tests/scheduler-test.cc:245:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1172 245 | assert(shard.offeredFeatures("y").empty());1173 | ^~~~~~1174 | static_assert1175../tests/scheduler-test.cc:248:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1176 248 | assert(out.size() == 2);1177 | ^~~~~~1178 | static_assert1179../tests/scheduler-test.cc:249:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1180 249 | assert(shard.entry(out[0].drv)->drvPath == "vm.drv" && out[0].worker == kvm);1181 | ^~~~~~1182 | static_assert1183../tests/scheduler-test.cc:250:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1184 250 | assert(shard.entry(out[1].drv)->drvPath == "a.drv" && out[1].worker == plain);1185 | ^~~~~~1186 | static_assert1187../tests/scheduler-test.cc:251:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1188 251 | assert(shard.queued() == 2);1189 | ^~~~~~1190 | static_assert1191../tests/scheduler-test.cc:254:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1192 254 | assert(out.size() == 3 && out[2].worker == kvm);1193 | ^~~~~~1194 | static_assert1195../tests/scheduler-test.cc:256:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1196 256 | assert(shard.placeable(gpu));1197 | ^~~~~~1198 | static_assert1199../tests/scheduler-test.cc:258:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1200 258 | assert(out.size() == 4 && shard.entry(out[3].drv)->drvPath == "gpu.drv");1201 | ^~~~~~1202 | static_assert1203../tests/scheduler-test.cc:262:6: error: function 'checkStats' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]1204 262 | void checkStats(Core & shard)1205 | ^1206../tests/scheduler-test.cc:265:23: note: nesting level increased to 11207 265 | auto const stat = [&](const char * sys, const char * feats = "") -> Core::Stats { return sts[{.system = sys, .features = feats}]; };1208 | ^1209../tests/scheduler-test.cc:266:5: note: +1, including nesting penalty of 0, nesting level increased to 11210 266 | assert(stat("aarch64").slots == 2 && stat("aarch64").free == 1 && stat("aarch64").running == 1);1211 | ^1212/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1213 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1214 | ^1215../tests/scheduler-test.cc:266:68: note: +11216 266 | assert(stat("aarch64").slots == 2 && stat("aarch64").free == 1 && stat("aarch64").running == 1);1217 | ^1218../tests/scheduler-test.cc:266:5: note: +2, including nesting penalty of 1, nesting level increased to 21219 266 | assert(stat("aarch64").slots == 2 && stat("aarch64").free == 1 && stat("aarch64").running == 1);1220 | ^1221/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1222 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1223 | ^1224../tests/scheduler-test.cc:266:68: note: +11225 266 | assert(stat("aarch64").slots == 2 && stat("aarch64").free == 1 && stat("aarch64").running == 1);1226 | ^1227../tests/scheduler-test.cc:267:5: note: +1, including nesting penalty of 0, nesting level increased to 11228 267 | assert(stat("x86_64").slots == 1 && stat("x86_64").free == 0 && stat("i686").slots == 0);1229 | ^1230/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1231 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1232 | ^1233../tests/scheduler-test.cc:267:66: note: +11234 267 | assert(stat("x86_64").slots == 1 && stat("x86_64").free == 0 && stat("i686").slots == 0);1235 | ^1236../tests/scheduler-test.cc:267:5: note: +2, including nesting penalty of 1, nesting level increased to 21237 267 | assert(stat("x86_64").slots == 1 && stat("x86_64").free == 0 && stat("i686").slots == 0);1238 | ^1239/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1240 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1241 | ^1242../tests/scheduler-test.cc:267:66: note: +11243 267 | assert(stat("x86_64").slots == 1 && stat("x86_64").free == 0 && stat("i686").slots == 0);1244 | ^1245../tests/scheduler-test.cc:268:5: note: +1, including nesting penalty of 0, nesting level increased to 11246 268 | assert(stat("x86_64").queued + stat("i686").queued == 1 && stat("x86_64").running + stat("i686").running == 1);1247 | ^1248/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1249 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1250 | ^1251../tests/scheduler-test.cc:268:61: note: +11252 268 | assert(stat("x86_64").queued + stat("i686").queued == 1 && stat("x86_64").running + stat("i686").running == 1);1253 | ^1254../tests/scheduler-test.cc:268:5: note: +2, including nesting penalty of 1, nesting level increased to 21255 268 | assert(stat("x86_64").queued + stat("i686").queued == 1 && stat("x86_64").running + stat("i686").running == 1);1256 | ^1257/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1258 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1259 | ^1260../tests/scheduler-test.cc:268:61: note: +11261 268 | assert(stat("x86_64").queued + stat("i686").queued == 1 && stat("x86_64").running + stat("i686").running == 1);1262 | ^1263../tests/scheduler-test.cc:269:5: note: +1, including nesting penalty of 0, nesting level increased to 11264 269 | assert(stat("x86_64").unplaceable + stat("i686").unplaceable == 0);1265 | ^1266/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1267 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1268 | ^1269../tests/scheduler-test.cc:269:5: note: +2, including nesting penalty of 1, nesting level increased to 21270 269 | assert(stat("x86_64").unplaceable + stat("i686").unplaceable == 0);1271 | ^1272/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1273 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1274 | ^1275../tests/scheduler-test.cc:270:5: note: +1, including nesting penalty of 0, nesting level increased to 11276 270 | assert(stat("riscv").queued == 1 && stat("riscv").unplaceable == 1);1277 | ^1278/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1279 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1280 | ^1281../tests/scheduler-test.cc:270:38: note: +11282 270 | assert(stat("riscv").queued == 1 && stat("riscv").unplaceable == 1);1283 | ^1284../tests/scheduler-test.cc:270:5: note: +2, including nesting penalty of 1, nesting level increased to 21285 270 | assert(stat("riscv").queued == 1 && stat("riscv").unplaceable == 1);1286 | ^1287/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1288 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1289 | ^1290../tests/scheduler-test.cc:270:38: note: +11291 270 | assert(stat("riscv").queued == 1 && stat("riscv").unplaceable == 1);1292 | ^1293../tests/scheduler-test.cc:274:5: note: +1, including nesting penalty of 0, nesting level increased to 11294 274 | assert(stat("aarch64", "big,kvm").queued == 1 && stat("aarch64", "big,kvm").unplaceable == 1);1295 | ^1296/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1297 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1298 | ^1299../tests/scheduler-test.cc:274:51: note: +11300 274 | assert(stat("aarch64", "big,kvm").queued == 1 && stat("aarch64", "big,kvm").unplaceable == 1);1301 | ^1302../tests/scheduler-test.cc:274:5: note: +2, including nesting penalty of 1, nesting level increased to 21303 274 | assert(stat("aarch64", "big,kvm").queued == 1 && stat("aarch64", "big,kvm").unplaceable == 1);1304 | ^1305/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1306 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1307 | ^1308../tests/scheduler-test.cc:274:51: note: +11309 274 | assert(stat("aarch64", "big,kvm").queued == 1 && stat("aarch64", "big,kvm").unplaceable == 1);1310 | ^1311../tests/scheduler-test.cc:275:5: note: +1, including nesting penalty of 0, nesting level increased to 11312 275 | assert(stat("aarch64").queued == 0);1313 | ^1314/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1315 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1316 | ^1317../tests/scheduler-test.cc:275:5: note: +2, including nesting penalty of 1, nesting level increased to 21318 275 | assert(stat("aarch64").queued == 0);1319 | ^1320/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1321 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1322 | ^1323../tests/scheduler-test.cc:266:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1324 266 | assert(stat("aarch64").slots == 2 && stat("aarch64").free == 1 && stat("aarch64").running == 1);1325 | ^~~~~~1326 | static_assert1327../tests/scheduler-test.cc:267:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1328 267 | assert(stat("x86_64").slots == 1 && stat("x86_64").free == 0 && stat("i686").slots == 0);1329 | ^~~~~~1330 | static_assert1331../tests/scheduler-test.cc:268:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1332 268 | assert(stat("x86_64").queued + stat("i686").queued == 1 && stat("x86_64").running + stat("i686").running == 1);1333 | ^~~~~~1334 | static_assert1335../tests/scheduler-test.cc:269:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1336 269 | assert(stat("x86_64").unplaceable + stat("i686").unplaceable == 0);1337 | ^~~~~~1338 | static_assert1339../tests/scheduler-test.cc:270:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1340 270 | assert(stat("riscv").queued == 1 && stat("riscv").unplaceable == 1);1341 | ^~~~~~1342 | static_assert1343../tests/scheduler-test.cc:274:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1344 274 | assert(stat("aarch64", "big,kvm").queued == 1 && stat("aarch64", "big,kvm").unplaceable == 1);1345 | ^~~~~~1346 | static_assert1347../tests/scheduler-test.cc:275:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1348 275 | assert(stat("aarch64").queued == 0);1349 | ^~~~~~1350 | static_assert1351../tests/scheduler-test.cc:279:6: error: function 'testSystems' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]1352 279 | void testSystems()1353 | ^1354../tests/scheduler-test.cc:292:5: note: +1, including nesting penalty of 0, nesting level increased to 11355 292 | assert(out.size() == 2);1356 | ^1357/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1358 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1359 | ^1360../tests/scheduler-test.cc:292:5: note: +2, including nesting penalty of 1, nesting level increased to 21361 292 | assert(out.size() == 2);1362 | ^1363/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1364 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1365 | ^1366../tests/scheduler-test.cc:294:5: note: +1, including nesting penalty of 0, nesting level increased to 11367 294 | for (auto const & asg : out) {1368 | ^1369../tests/scheduler-test.cc:296:9: note: +2, including nesting penalty of 1, nesting level increased to 21370 296 | if (ent->drvPath == "b.drv") {1371 | ^1372../tests/scheduler-test.cc:297:13: note: +3, including nesting penalty of 2, nesting level increased to 31373 297 | assert(asg.worker == arm);1374 | ^1375/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1376 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1377 | ^1378../tests/scheduler-test.cc:297:13: note: +4, including nesting penalty of 3, nesting level increased to 41379 297 | assert(asg.worker == arm);1380 | ^1381/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1382 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1383 | ^1384../tests/scheduler-test.cc:298:11: note: +1, nesting level increased to 21385 298 | } else {1386 | ^1387../tests/scheduler-test.cc:299:13: note: +3, including nesting penalty of 2, nesting level increased to 31388 299 | assert(asg.worker == both);1389 | ^1390/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1391 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1392 | ^1393../tests/scheduler-test.cc:299:13: note: +4, including nesting penalty of 3, nesting level increased to 41394 299 | assert(asg.worker == both);1395 | ^1396/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1397 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1398 | ^1399../tests/scheduler-test.cc:303:5: note: +1, including nesting penalty of 0, nesting level increased to 11400 303 | assert(onBoth == 1);1401 | ^1402/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1403 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1404 | ^1405../tests/scheduler-test.cc:303:5: note: +2, including nesting penalty of 1, nesting level increased to 21406 303 | assert(onBoth == 1);1407 | ^1408/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1409 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1410 | ^1411../tests/scheduler-test.cc:304:5: note: +1, including nesting penalty of 0, nesting level increased to 11412 304 | assert(!shard.placeable(shard.drvId("d.drv")));1413 | ^1414/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1415 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1416 | ^1417../tests/scheduler-test.cc:304:5: note: +2, including nesting penalty of 1, nesting level increased to 21418 304 | assert(!shard.placeable(shard.drvId("d.drv")));1419 | ^1420/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1421 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1422 | ^1423../tests/scheduler-test.cc:305:5: note: +1, including nesting penalty of 0, nesting level increased to 11424 305 | assert(shard.queued() == 2);1425 | ^1426/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1427 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1428 | ^1429../tests/scheduler-test.cc:305:5: note: +2, including nesting penalty of 1, nesting level increased to 21430 305 | assert(shard.queued() == 2);1431 | ^1432/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1433 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1434 | ^1435../tests/scheduler-test.cc:308:56: note: +1, including nesting penalty of 0, nesting level increased to 11436 308 | shard.done(both, shard.entry(out[0].worker == both ? out[0].drv : out[1].drv)->drvPath, {});1437 | ^1438../tests/scheduler-test.cc:311:5: note: +1, including nesting penalty of 0, nesting level increased to 11439 311 | assert(out.size() == 1 && out[0].worker == both);1440 | ^1441/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert'1442 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1443 | ^1444../tests/scheduler-test.cc:311:28: note: +11445 311 | assert(out.size() == 1 && out[0].worker == both);1446 | ^1447../tests/scheduler-test.cc:311:5: note: +2, including nesting penalty of 1, nesting level increased to 21448 311 | assert(out.size() == 1 && out[0].worker == both);1449 | ^1450/nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert'1451 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \1452 | ^1453../tests/scheduler-test.cc:311:28: note: +11454 311 | assert(out.size() == 1 && out[0].worker == both);1455 | ^1456../tests/scheduler-test.cc:292:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1457 292 | assert(out.size() == 2);1458 | ^~~~~~1459 | static_assert1460../tests/scheduler-test.cc:297:13: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1461 297 | assert(asg.worker == arm);1462 | ^~~~~~1463 | static_assert1464../tests/scheduler-test.cc:299:13: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1465 299 | assert(asg.worker == both);1466 | ^~~~~~1467 | static_assert1468../tests/scheduler-test.cc:303:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1469 303 | assert(onBoth == 1);1470 | ^~~~~~1471 | static_assert1472../tests/scheduler-test.cc:304:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1473 304 | assert(!shard.placeable(shard.drvId("d.drv")));1474 | ^~~~~~1475 | static_assert1476../tests/scheduler-test.cc:305:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1477 305 | assert(shard.queued() == 2);1478 | ^~~~~~1479 | static_assert1480../tests/scheduler-test.cc:311:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1481 311 | assert(out.size() == 1 && out[0].worker == both);1482 | ^~~~~~1483 | static_assert1484../tests/scheduler-test.cc:324:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1485 324 | assert(shard.workersUp() == 1);1486 | ^~~~~~1487 | static_assert1488../tests/scheduler-test.cc:331:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1489 331 | assert(threw);1490 | ^~~~~~1491 | static_assert1492>>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/build.cc1493Errors encountered while running clang-tidy1494../src/client/build.cc:253:5: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1495 253 | assert(remaining > 0);1496 | ^~~~~~1497 | static_assert1498../src/client/build.cc:259:7: error: found assert() that could be replaced by static_assert() [cert-dcl03-c,misc-static-assert,-warnings-as-errors]1499 259 | assert(dep->waiting > 0);1500 | ^~~~~~1501 | static_assert1502FAILED: [code=1] meson-internal__clang-tidy 1503/nix/store/av7nrlz2yrbwwn4xmpdaz0swnqp36j1f-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always1504ninja: build stopped: subcommand failed.