this derivation will be built: /nix/store/xvkpid35znzfqvflb8byrylh780cgr98-nix-grpc-store-clang-tidy-0.1.0.drv Failed to find a machine for remote build! derivation: xvkpid35znzfqvflb8byrylh780cgr98-nix-grpc-store-clang-tidy-0.1.0.drv required (system, features): (aarch64-linux, []) 1 available machines: (systems, maxjobs, supportedFeatures, mandatoryFeatures) ([aarch64-darwin, x86_64-darwin], 8, [big-parallel, recursive-nix], []) building '/nix/store/xvkpid35znzfqvflb8byrylh780cgr98-nix-grpc-store-clang-tidy-0.1.0.drv' nix-grpc-store-clang-tidy-0.1.0> tribuchet: building on eliza nix-grpc-store-clang-tidy-0.1.0> Running phase: unpackPhase nix-grpc-store-clang-tidy-0.1.0> unpacking source archive /nix/store/shqy9k54icxyynsda9yrwbldiplr3zki-source nix-grpc-store-clang-tidy-0.1.0> source root is source nix-grpc-store-clang-tidy-0.1.0> Running phase: patchPhase nix-grpc-store-clang-tidy-0.1.0> Running phase: updateAutotoolsGnuConfigScriptsPhase nix-grpc-store-clang-tidy-0.1.0> Running phase: configurePhase nix-grpc-store-clang-tidy-0.1.0> mesonConfigurePhase 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=false nix-grpc-store-clang-tidy-0.1.0> The Meson build system nix-grpc-store-clang-tidy-0.1.0> Version: 1.12.1 nix-grpc-store-clang-tidy-0.1.0> Source dir: /build/source nix-grpc-store-clang-tidy-0.1.0> Build dir: /build/source/build nix-grpc-store-clang-tidy-0.1.0> Build type: native build nix-grpc-store-clang-tidy-0.1.0> WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead nix-grpc-store-clang-tidy-0.1.0> Project name: nix-grpc-store nix-grpc-store-clang-tidy-0.1.0> Project version: 0.1.0 nix-grpc-store-clang-tidy-0.1.0> C++ compiler for the host machine: clang++ (clang 22.1.8 "clang version 22.1.8") nix-grpc-store-clang-tidy-0.1.0> C++ linker for the host machine: clang++ ld.bfd 2.46 nix-grpc-store-clang-tidy-0.1.0> Host machine cpu family: aarch64 nix-grpc-store-clang-tidy-0.1.0> Host machine cpu: aarch64 nix-grpc-store-clang-tidy-0.1.0> Found pkg-config: YES (/nix/store/h82n3d0wdrgskdc3yvmz5l3c50h2snvp-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency grpc++ found: YES 1.83.1 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency protobuf found: YES 36.2.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency libzstd found: YES 1.5.7 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency threads found: YES nix-grpc-store-clang-tidy-0.1.0> Run-time dependency libcrypto found: YES 3.5.8 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency prometheus-cpp-core found: YES 1.3.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency prometheus-cpp-pull found: YES 1.3.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency absl_flat_hash_map found: YES 20260817 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency absl_hash found: YES 20260817 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency absl_synchronization found: YES 20260817 nix-grpc-store-clang-tidy-0.1.0> Compiler for C++ supports arguments -Werror=thread-safety: YES nix-grpc-store-clang-tidy-0.1.0> Run-time dependency nix-store found: YES 2.36.0pre20261004_b010dc99 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency nix-util found: YES 2.36.0pre20261004_b010dc99 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency jemalloc found: YES 5.3.1_0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency libcurl found: YES 8.22.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency nlohmann_json found: YES 3.12.0 nix-grpc-store-clang-tidy-0.1.0> Check usable header "jwt-cpp/traits/nlohmann-json/defaults.h" : YES nix-grpc-store-clang-tidy-0.1.0> Program protoc found: YES (/nix/store/8lbx3nmylh18yw8vh0c7fhv7bqjjlh3q-protobuf-36.2/bin/protoc) nix-grpc-store-clang-tidy-0.1.0> Program grpc_cpp_plugin found: YES (/nix/store/hjj2bin7r66rmvq2jw1pmfdm8bpx637b-grpc-1.83.1/bin/grpc_cpp_plugin) nix-grpc-store-clang-tidy-0.1.0> Program mold found: YES (/nix/store/gbq334xbibaz4gn184j7gs58m2spgwi7-mold-unwrapped-wrapper-2.42.1/bin/mold) nix-grpc-store-clang-tidy-0.1.0> Run-time dependency dl found: YES nix-grpc-store-clang-tidy-0.1.0> Program tests/farm-client-test.sh found: YES (/build/source/tests/farm-client-test.sh) nix-grpc-store-clang-tidy-0.1.0> Program tests/oidc-test.sh found: YES (/build/source/tests/oidc-test.sh) nix-grpc-store-clang-tidy-0.1.0> Build targets in project: 18 nix-grpc-store-clang-tidy-0.1.0> WARNING: Project specifies no minimum version but uses features which were added in versions: nix-grpc-store-clang-tidy-0.1.0> * 1.1: {'meson.options file'} nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store 0.1.0 nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store-clang-tidy-0.1.0> User defined options nix-grpc-store-clang-tidy-0.1.0> auto_features: enabled nix-grpc-store-clang-tidy-0.1.0> b_pch : false nix-grpc-store-clang-tidy-0.1.0> bindir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/bin nix-grpc-store-clang-tidy-0.1.0> buildtype : plain nix-grpc-store-clang-tidy-0.1.0> includedir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/include nix-grpc-store-clang-tidy-0.1.0> infodir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/share/info nix-grpc-store-clang-tidy-0.1.0> libdir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/lib nix-grpc-store-clang-tidy-0.1.0> libexecdir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/libexec nix-grpc-store-clang-tidy-0.1.0> localedir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/share/locale nix-grpc-store-clang-tidy-0.1.0> mandir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/share/man nix-grpc-store-clang-tidy-0.1.0> prefix : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0 nix-grpc-store-clang-tidy-0.1.0> sbindir : /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0/sbin nix-grpc-store-clang-tidy-0.1.0> wrap_mode : nodownload nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store-clang-tidy-0.1.0> Found ninja-1.13.2 at /nix/store/lfkdyggn1ffslfd830l35jrvapr5lzri-ninja-1.13.2/bin/ninja nix-grpc-store-clang-tidy-0.1.0> mesonConfigurePhase: enabled\ parallel\ building nix-grpc-store-clang-tidy-0.1.0> Running phase: buildPhase nix-grpc-store-clang-tidy-0.1.0> [1/2] Generating eds_proto with a custom command nix-grpc-store-clang-tidy-0.1.0> [2/2] Generating nix_remote_proto with a custom command nix-grpc-store-clang-tidy-0.1.0> [0/1] /nix/store/av7nrlz2yrbwwn4xmpdaz0swnqp36j1f-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/plugin-loader-test.cc nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 8 | assert(darwinNixStoreOutputMatches( nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 10 | assert(darwinNixStoreOutputMatches( nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 12 | assert(darwinNixStoreOutputMatches( nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 15 | assert(!darwinNixStoreOutputMatches( nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 17 | assert(!darwinNixStoreOutputMatches( nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/upload-claims-test.cc nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 24 | assert(first.owner); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 25 | assert(!second.owner); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 26 | assert(!isReady(second.result)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 44 | assert(failed); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 52 | assert(again.owner); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 63 | assert(!isReady(other.result)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 73 | assert(first.owner); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 74 | assert(second.owner); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/log-spill-test.cc nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 35 | assert(end == spill.written()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 45 | assert(done); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:49:6: error: function 'roundTrip' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 49 | void roundTrip() nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:52:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 52 | assert(readAll(spill).empty()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:52:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 52 | assert(readAll(spill).empty()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:58:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 58 | assert(got.size() == 4); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:58:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 58 | assert(got.size() == 4); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:59:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 59 | assert(got.at(0) == std::make_pair(SpillKind::line, std::string("first"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:59:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 59 | assert(got.at(0) == std::make_pair(SpillKind::line, std::string("first"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:60:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 60 | assert(got.at(1) == std::make_pair(SpillKind::phase, std::string("build"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:60:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 60 | assert(got.at(1) == std::make_pair(SpillKind::phase, std::string("build"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:61:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 61 | assert(got.at(2).second.empty()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:61:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 61 | assert(got.at(2).second.empty()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:62:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 62 | assert(got.at(3).second.size() == kBigLine); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:62:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 62 | assert(got.at(3).second.size() == kBigLine); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:65:37: note: nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 65 | auto const mid = spill.drain(0, [](SpillKind, std::string_view) -> void {}); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:66:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 66 | assert(mid == spill.written()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:66:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 66 | assert(mid == spill.written()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:69:39: note: nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 69 | auto const end = spill.drain(mid, [&](SpillKind kind, std::string_view text) -> void { rest.emplace_back(kind, std::string(text)); }); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:70:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 70 | assert(end == spill.written()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:70:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 70 | assert(end == spill.written()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:71:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 71 | assert(rest.size() == 1 && rest.front().second == "later"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:71:29: note: +1 nix-grpc-store-clang-tidy-0.1.0> 71 | assert(rest.size() == 1 && rest.front().second == "later"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:71:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 71 | assert(rest.size() == 1 && rest.front().second == "later"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/log-spill-test.cc:71:29: note: +1 nix-grpc-store-clang-tidy-0.1.0> 71 | assert(rest.size() == 1 && rest.front().second == "later"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 52 | assert(readAll(spill).empty()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 58 | assert(got.size() == 4); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 59 | assert(got.at(0) == std::make_pair(SpillKind::line, std::string("first"))); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 60 | assert(got.at(1) == std::make_pair(SpillKind::phase, std::string("build"))); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 61 | assert(got.at(2).second.empty()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 62 | assert(got.at(3).second.size() == kBigLine); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 66 | assert(mid == spill.written()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 70 | assert(end == spill.written()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 71 | assert(rest.size() == 1 && rest.front().second == "later"); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 79 | assert(got.size() == 1 && got.at(0).second.size() == LogSpill::kMaxText); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 89 | assert(!got.empty()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 90 | assert(got.back().second == LogSpill::kTruncated); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 93 | assert(spill.written() == size); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 99 | assert(only.size() == 1 && only.front().second == LogSpill::kTruncated); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 108 | assert(readAll(spill).empty() && spill.written() == 0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 141 | assert(got->size() == lines); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 143 | assert(got->at(static_cast(i)).second == "line " + std::to_string(i)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 158 | assert(!done); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/xfcc-test.cc nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:10:6: error: function 'main' has cognitive complexity of 70 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 10 | auto main() -> int nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:12:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 12 | assert( nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:12:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 12 | assert( nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:14:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 14 | assert(subjectCommonName(R"(Hash=ab;Subject="O=nt,CN=dev")") == "dev"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:14:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 14 | assert(subjectCommonName(R"(Hash=ab;Subject="O=nt,CN=dev")") == "dev"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:15:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 15 | assert(subjectCommonName("Subject=CN=plain") == "plain"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:15:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 15 | assert(subjectCommonName("Subject=CN=plain") == "plain"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:16:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 16 | assert(subjectCommonName("Subject=/CN=legacy/O=x") == "legacy"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:16:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 16 | assert(subjectCommonName("Subject=/CN=legacy/O=x") == "legacy"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:17:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 17 | assert(subjectCommonName(R"(Subject="CN=a\,b,O=x")") == "a,b"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:17:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 17 | assert(subjectCommonName(R"(Subject="CN=a\,b,O=x")") == "a,b"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:18:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 18 | assert(subjectCommonName(R"(Subject="CN=q\"x")") == "q\"x"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:18:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 18 | assert(subjectCommonName(R"(Subject="CN=q\"x")") == "q\"x"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:21:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 21 | assert(subjectCommonName(R"(Hash=1;URI=u,Hash=2;Subject="CN=evil")") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:21:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 21 | assert(subjectCommonName(R"(Hash=1;URI=u,Hash=2;Subject="CN=evil")") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:22:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 22 | assert(subjectCommonName(R"(Hash=1;Subject="O=only")") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:22:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 22 | assert(subjectCommonName(R"(Hash=1;Subject="O=only")") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:23:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 23 | assert(subjectCommonName("") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:23:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 23 | assert(subjectCommonName("") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:24:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 24 | assert(subjectCommonName("garbage;;==,,") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:24:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 24 | assert(subjectCommonName("garbage;;==,,") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:25:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 25 | assert(subjectCommonName(R"(Subject="CN=)") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:25:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 25 | assert(subjectCommonName(R"(Subject="CN=)") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:26:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 26 | assert(subjectCommonName(R"(Subject="CN=unterminated)") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:26:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 26 | assert(subjectCommonName(R"(Subject="CN=unterminated)") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:27:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 27 | assert(subjectCommonName(R"(Subject="CN=x\)") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:27:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 27 | assert(subjectCommonName(R"(Subject="CN=x\)") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:28:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 28 | assert(subjectCommonName("Subject=\"CN=a\nb\"") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:28:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 28 | assert(subjectCommonName("Subject=\"CN=a\nb\"") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:29:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 29 | assert(subjectCommonName(std::string("Subject=CN=a") + '\0' + "b") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:29:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 29 | assert(subjectCommonName(std::string("Subject=CN=a") + '\0' + "b") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:30:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 30 | assert(subjectCommonName("Subject=CN=" + std::string(300, 'a')) == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:30:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 30 | assert(subjectCommonName("Subject=CN=" + std::string(300, 'a')) == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:31:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 31 | assert(subjectCommonName(std::string(20000, ';')) == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:31:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 31 | assert(subjectCommonName(std::string(20000, ';')) == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:34:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 34 | assert(!proxies.matches(std::string("lb-1"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:34:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 34 | assert(!proxies.matches(std::string("lb-1"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:36:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 36 | assert(proxies.matches(std::string("lb-1"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:36:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 36 | assert(proxies.matches(std::string("lb-1"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:37:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 37 | assert(!proxies.matches(std::string("ci-1"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:37:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 37 | assert(!proxies.matches(std::string("ci-1"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:38:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 38 | assert(!proxies.matches(std::nullopt)); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:38:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 38 | assert(!proxies.matches(std::nullopt)); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:39:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 39 | assert(!proxies.matches(std::string(""))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:39:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 39 | assert(!proxies.matches(std::string(""))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:40:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 40 | assert(!proxies.matches(std::string("lb-1") + '\0' + "x")); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:40:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 40 | assert(!proxies.matches(std::string("lb-1") + '\0' + "x")); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:42:3: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 42 | } catch (...) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 12 | assert( nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 14 | assert(subjectCommonName(R"(Hash=ab;Subject="O=nt,CN=dev")") == "dev"); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 15 | assert(subjectCommonName("Subject=CN=plain") == "plain"); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 16 | assert(subjectCommonName("Subject=/CN=legacy/O=x") == "legacy"); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 17 | assert(subjectCommonName(R"(Subject="CN=a\,b,O=x")") == "a,b"); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 18 | assert(subjectCommonName(R"(Subject="CN=q\"x")") == "q\"x"); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 21 | assert(subjectCommonName(R"(Hash=1;URI=u,Hash=2;Subject="CN=evil")") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 22 | assert(subjectCommonName(R"(Hash=1;Subject="O=only")") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 23 | assert(subjectCommonName("") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 24 | assert(subjectCommonName("garbage;;==,,") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 25 | assert(subjectCommonName(R"(Subject="CN=)") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 26 | assert(subjectCommonName(R"(Subject="CN=unterminated)") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 27 | assert(subjectCommonName(R"(Subject="CN=x\)") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 28 | assert(subjectCommonName("Subject=\"CN=a\nb\"") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 29 | assert(subjectCommonName(std::string("Subject=CN=a") + '\0' + "b") == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 30 | assert(subjectCommonName("Subject=CN=" + std::string(300, 'a')) == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 31 | assert(subjectCommonName(std::string(20000, ';')) == std::nullopt); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 34 | assert(!proxies.matches(std::string("lb-1"))); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 36 | assert(proxies.matches(std::string("lb-1"))); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 37 | assert(!proxies.matches(std::string("ci-1"))); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 38 | assert(!proxies.matches(std::nullopt)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 39 | assert(!proxies.matches(std::string(""))); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 40 | assert(!proxies.matches(std::string("lb-1") + '\0' + "x")); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/upload-spool-test.cc nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 17 | assert(getrlimit(RLIMIT_NOFILE, &limit) == 0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 19 | assert(setrlimit(RLIMIT_NOFILE, &limit) == 0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 32 | assert(reader.drain() == content); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 42 | assert(skip.drain().empty()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 47 | assert(reader.drain() == kept); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/call-test.cc nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 46 | assert(server); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 79 | assert(fired); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 80 | assert(status.error_code() == grpc::StatusCode::CANCELLED); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 93 | assert(threw); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/channel.cc nix-grpc-store-clang-tidy-0.1.0> [1/1] (1/2) Processing file /build/source/src/client/channel.cc. nix-grpc-store-clang-tidy-0.1.0> [1/1] (2/2) Processing file /build/source/src/client/channel.cc. nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/nar-fetcher-test.cc nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 60 | assert(server); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 66 | assert(fetchFails(fetcher, path)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 67 | assert(fetchFails(fetcher, path)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 68 | assert(service.calls == 2); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/scheduler-test.cc nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 43 | assert(heap.size() == ref.size()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 50 | assert(ref.at(top) == minKey); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 61 | assert(!fi.emptiest()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 64 | assert(fi.maxFree() == 4 && *fi.emptiest() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 66 | assert(*fi.emptiest() == 3); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 68 | assert(fi.get(3) == -5 && *fi.emptiest() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 70 | assert(!fi.emptiest()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 72 | assert(fi.get(4) == 100 && *fi.emptiest() == 4); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 93 | assert(out.empty()); // no workers nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 96 | assert(out.size() == 1 && out[0].worker == w0 && out[0].clients.size() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 99 | assert(res.assigned && res.assigned->first == w0 && res.assigned->second == out[0].assignId); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 101 | assert(!shard.entry(out[0].drv)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 114 | assert(out.size() == 1 && out[0].worker == w1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 118 | assert(out.size() == 2 && out[1].worker == w0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 134 | assert(out.size() == 1 && shard.entry(out[0].drv)->drvPath == "fan.drv"); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 137 | assert(out.size() == 2 && shard.entry(out[1].drv)->drvPath == "high.drv"); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 147 | assert(out.size() == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 149 | assert(shard.queued() == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 152 | assert(out.size() == 2 && out[1].worker == w1 && out[1].clients.size() == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 162 | assert(res.assigned && res.assigned->first == w0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 166 | assert(out.size() == 1); // only one slot left nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 169 | assert(out.size() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:175:6: error: function 'testHelloSupersedes' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 175 | void testHelloSupersedes() nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:182:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 182 | assert(out.size() == 1 && out[0].worker == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:182:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 182 | assert(out.size() == 1 && out[0].worker == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:182:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 182 | assert(out.size() == 1 && out[0].worker == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:182:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 182 | assert(out.size() == 1 && out[0].worker == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:185:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 185 | assert(sup.size() == 1 && sup[0].loser == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:185:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 185 | assert(sup.size() == 1 && sup[0].loser == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:185:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 185 | assert(sup.size() == 1 && sup[0].loser == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:185:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 185 | assert(sup.size() == 1 && sup[0].loser == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:187:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 187 | assert(ent && ent->worker == w1 && ent->assignId == 7); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:187:37: note: +1 nix-grpc-store-clang-tidy-0.1.0> 187 | assert(ent && ent->worker == w1 && ent->assignId == 7); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:187:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 187 | assert(ent && ent->worker == w1 && ent->assignId == 7); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:187:37: note: +1 nix-grpc-store-clang-tidy-0.1.0> 187 | assert(ent && ent->worker == w1 && ent->assignId == 7); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:188:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 188 | assert(ent->followers.size() == 1 && ent->followers[0] == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:188:39: note: +1 nix-grpc-store-clang-tidy-0.1.0> 188 | assert(ent->followers.size() == 1 && ent->followers[0] == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:188:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 188 | assert(ent->followers.size() == 1 && ent->followers[0] == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:188:39: note: +1 nix-grpc-store-clang-tidy-0.1.0> 188 | assert(ent->followers.size() == 1 && ent->followers[0] == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:189:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 189 | assert(shard.worker(w0).running.empty()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:189:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 189 | assert(shard.worker(w0).running.empty()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:194:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 194 | assert(out.size() == 1 && out[0].worker == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:194:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 194 | assert(out.size() == 1 && out[0].worker == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:194:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 194 | assert(out.size() == 1 && out[0].worker == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:194:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 194 | assert(out.size() == 1 && out[0].worker == w0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 182 | assert(out.size() == 1 && out[0].worker == w0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 185 | assert(sup.size() == 1 && sup[0].loser == w0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 187 | assert(ent && ent->worker == w1 && ent->assignId == 7); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 188 | assert(ent->followers.size() == 1 && ent->followers[0] == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 189 | assert(shard.worker(w0).running.empty()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 194 | assert(out.size() == 1 && out[0].worker == w0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 203 | assert(!shard.cancel(1, "a.drv")); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 204 | assert(shard.queued() == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 205 | assert(!shard.cancel(2, "a.drv")); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 206 | assert(shard.queued() == 0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 212 | assert(revokes.size() == 1 && revokes[0].second == w0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 213 | assert(!shard.cancel(9, "nope.drv")); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 224 | assert(out.empty()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 225 | assert(!shard.placeable(res.drv)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 227 | assert(shard.placeable(res.drv)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 229 | assert(out.size() == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:232:6: error: function 'testFeatures' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 232 | void testFeatures() nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:243:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 243 | assert(!shard.placeable(gpu)); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:243:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 243 | assert(!shard.placeable(gpu)); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:244:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 244 | assert((shard.offeredFeatures("x") == std::vector{"kvm"})); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:244:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 244 | assert((shard.offeredFeatures("x") == std::vector{"kvm"})); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:245:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 245 | assert(shard.offeredFeatures("y").empty()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:245:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 245 | assert(shard.offeredFeatures("y").empty()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:248:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 248 | assert(out.size() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:248:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 248 | assert(out.size() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:249:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 249 | assert(shard.entry(out[0].drv)->drvPath == "vm.drv" && out[0].worker == kvm); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:249:57: note: +1 nix-grpc-store-clang-tidy-0.1.0> 249 | assert(shard.entry(out[0].drv)->drvPath == "vm.drv" && out[0].worker == kvm); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:249:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 249 | assert(shard.entry(out[0].drv)->drvPath == "vm.drv" && out[0].worker == kvm); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:249:57: note: +1 nix-grpc-store-clang-tidy-0.1.0> 249 | assert(shard.entry(out[0].drv)->drvPath == "vm.drv" && out[0].worker == kvm); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:250:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 250 | assert(shard.entry(out[1].drv)->drvPath == "a.drv" && out[1].worker == plain); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:250:56: note: +1 nix-grpc-store-clang-tidy-0.1.0> 250 | assert(shard.entry(out[1].drv)->drvPath == "a.drv" && out[1].worker == plain); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:250:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 250 | assert(shard.entry(out[1].drv)->drvPath == "a.drv" && out[1].worker == plain); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:250:56: note: +1 nix-grpc-store-clang-tidy-0.1.0> 250 | assert(shard.entry(out[1].drv)->drvPath == "a.drv" && out[1].worker == plain); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:251:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 251 | assert(shard.queued() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:251:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 251 | assert(shard.queued() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:254:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 254 | assert(out.size() == 3 && out[2].worker == kvm); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:254:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 254 | assert(out.size() == 3 && out[2].worker == kvm); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:254:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 254 | assert(out.size() == 3 && out[2].worker == kvm); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:254:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 254 | assert(out.size() == 3 && out[2].worker == kvm); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:256:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 256 | assert(shard.placeable(gpu)); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:256:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 256 | assert(shard.placeable(gpu)); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:258:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 258 | assert(out.size() == 4 && shard.entry(out[3].drv)->drvPath == "gpu.drv"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:258:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 258 | assert(out.size() == 4 && shard.entry(out[3].drv)->drvPath == "gpu.drv"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:258:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 258 | assert(out.size() == 4 && shard.entry(out[3].drv)->drvPath == "gpu.drv"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:258:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 258 | assert(out.size() == 4 && shard.entry(out[3].drv)->drvPath == "gpu.drv"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 243 | assert(!shard.placeable(gpu)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 244 | assert((shard.offeredFeatures("x") == std::vector{"kvm"})); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 245 | assert(shard.offeredFeatures("y").empty()); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 248 | assert(out.size() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 249 | assert(shard.entry(out[0].drv)->drvPath == "vm.drv" && out[0].worker == kvm); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 250 | assert(shard.entry(out[1].drv)->drvPath == "a.drv" && out[1].worker == plain); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 251 | assert(shard.queued() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 254 | assert(out.size() == 3 && out[2].worker == kvm); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 256 | assert(shard.placeable(gpu)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 258 | assert(out.size() == 4 && shard.entry(out[3].drv)->drvPath == "gpu.drv"); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:262:6: error: function 'checkStats' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 262 | void checkStats(Core & shard) nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:265:23: note: nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 265 | auto const stat = [&](const char * sys, const char * feats = "") -> Core::Stats { return sts[{.system = sys, .features = feats}]; }; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:266:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 266 | assert(stat("aarch64").slots == 2 && stat("aarch64").free == 1 && stat("aarch64").running == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:266:68: note: +1 nix-grpc-store-clang-tidy-0.1.0> 266 | assert(stat("aarch64").slots == 2 && stat("aarch64").free == 1 && stat("aarch64").running == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:266:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 266 | assert(stat("aarch64").slots == 2 && stat("aarch64").free == 1 && stat("aarch64").running == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:266:68: note: +1 nix-grpc-store-clang-tidy-0.1.0> 266 | assert(stat("aarch64").slots == 2 && stat("aarch64").free == 1 && stat("aarch64").running == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:267:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 267 | assert(stat("x86_64").slots == 1 && stat("x86_64").free == 0 && stat("i686").slots == 0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:267:66: note: +1 nix-grpc-store-clang-tidy-0.1.0> 267 | assert(stat("x86_64").slots == 1 && stat("x86_64").free == 0 && stat("i686").slots == 0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:267:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 267 | assert(stat("x86_64").slots == 1 && stat("x86_64").free == 0 && stat("i686").slots == 0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:267:66: note: +1 nix-grpc-store-clang-tidy-0.1.0> 267 | assert(stat("x86_64").slots == 1 && stat("x86_64").free == 0 && stat("i686").slots == 0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:268:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 268 | assert(stat("x86_64").queued + stat("i686").queued == 1 && stat("x86_64").running + stat("i686").running == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:268:61: note: +1 nix-grpc-store-clang-tidy-0.1.0> 268 | assert(stat("x86_64").queued + stat("i686").queued == 1 && stat("x86_64").running + stat("i686").running == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:268:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 268 | assert(stat("x86_64").queued + stat("i686").queued == 1 && stat("x86_64").running + stat("i686").running == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:268:61: note: +1 nix-grpc-store-clang-tidy-0.1.0> 268 | assert(stat("x86_64").queued + stat("i686").queued == 1 && stat("x86_64").running + stat("i686").running == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:269:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 269 | assert(stat("x86_64").unplaceable + stat("i686").unplaceable == 0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:269:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 269 | assert(stat("x86_64").unplaceable + stat("i686").unplaceable == 0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:270:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 270 | assert(stat("riscv").queued == 1 && stat("riscv").unplaceable == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:270:38: note: +1 nix-grpc-store-clang-tidy-0.1.0> 270 | assert(stat("riscv").queued == 1 && stat("riscv").unplaceable == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:270:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 270 | assert(stat("riscv").queued == 1 && stat("riscv").unplaceable == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:270:38: note: +1 nix-grpc-store-clang-tidy-0.1.0> 270 | assert(stat("riscv").queued == 1 && stat("riscv").unplaceable == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:274:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 274 | assert(stat("aarch64", "big,kvm").queued == 1 && stat("aarch64", "big,kvm").unplaceable == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:274:51: note: +1 nix-grpc-store-clang-tidy-0.1.0> 274 | assert(stat("aarch64", "big,kvm").queued == 1 && stat("aarch64", "big,kvm").unplaceable == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:274:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 274 | assert(stat("aarch64", "big,kvm").queued == 1 && stat("aarch64", "big,kvm").unplaceable == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:274:51: note: +1 nix-grpc-store-clang-tidy-0.1.0> 274 | assert(stat("aarch64", "big,kvm").queued == 1 && stat("aarch64", "big,kvm").unplaceable == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:275:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 275 | assert(stat("aarch64").queued == 0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:275:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 275 | assert(stat("aarch64").queued == 0); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 266 | assert(stat("aarch64").slots == 2 && stat("aarch64").free == 1 && stat("aarch64").running == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 267 | assert(stat("x86_64").slots == 1 && stat("x86_64").free == 0 && stat("i686").slots == 0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 268 | assert(stat("x86_64").queued + stat("i686").queued == 1 && stat("x86_64").running + stat("i686").running == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 269 | assert(stat("x86_64").unplaceable + stat("i686").unplaceable == 0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 270 | assert(stat("riscv").queued == 1 && stat("riscv").unplaceable == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 274 | assert(stat("aarch64", "big,kvm").queued == 1 && stat("aarch64", "big,kvm").unplaceable == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 275 | assert(stat("aarch64").queued == 0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:279:6: error: function 'testSystems' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 279 | void testSystems() nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:292:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 292 | assert(out.size() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:292:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 292 | assert(out.size() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:294:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 294 | for (auto const & asg : out) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:296:9: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 296 | if (ent->drvPath == "b.drv") { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:297:13: note: +3, including nesting penalty of 2, nesting level increased to 3 nix-grpc-store-clang-tidy-0.1.0> 297 | assert(asg.worker == arm); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:297:13: note: +4, including nesting penalty of 3, nesting level increased to 4 nix-grpc-store-clang-tidy-0.1.0> 297 | assert(asg.worker == arm); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:298:11: note: +1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 298 | } else { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:299:13: note: +3, including nesting penalty of 2, nesting level increased to 3 nix-grpc-store-clang-tidy-0.1.0> 299 | assert(asg.worker == both); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:299:13: note: +4, including nesting penalty of 3, nesting level increased to 4 nix-grpc-store-clang-tidy-0.1.0> 299 | assert(asg.worker == both); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:303:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 303 | assert(onBoth == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:303:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 303 | assert(onBoth == 1); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:304:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 304 | assert(!shard.placeable(shard.drvId("d.drv"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:304:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 304 | assert(!shard.placeable(shard.drvId("d.drv"))); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:305:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 305 | assert(shard.queued() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:305:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 305 | assert(shard.queued() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:308:56: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 308 | shard.done(both, shard.entry(out[0].worker == both ? out[0].drv : out[1].drv)->drvPath, {}); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:311:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 311 | assert(out.size() == 1 && out[0].worker == both); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:7: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:311:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 311 | assert(out.size() == 1 && out[0].worker == both); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:311:5: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 311 | assert(out.size() == 1 && out[0].worker == both); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/7cymsp67cnp84xwa7nigdd1hrnqmh0cy-glibc-2.44-25-dev/include/assert.h:139:17: note: expanded from macro 'assert' nix-grpc-store-clang-tidy-0.1.0> 139 | ? void (1 ? 1 : bool (__VA_ARGS__)) \ nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/scheduler-test.cc:311:28: note: +1 nix-grpc-store-clang-tidy-0.1.0> 311 | assert(out.size() == 1 && out[0].worker == both); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 292 | assert(out.size() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 297 | assert(asg.worker == arm); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 299 | assert(asg.worker == both); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 303 | assert(onBoth == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 304 | assert(!shard.placeable(shard.drvId("d.drv"))); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 305 | assert(shard.queued() == 2); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 311 | assert(out.size() == 1 && out[0].worker == both); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 324 | assert(shard.workersUp() == 1); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 331 | assert(threw); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/build.cc nix-grpc-store-clang-tidy-0.1.0> Errors encountered while running clang-tidy nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 253 | assert(remaining > 0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> ../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] nix-grpc-store-clang-tidy-0.1.0> 259 | assert(dep->waiting > 0); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static_assert nix-grpc-store-clang-tidy-0.1.0> FAILED: [code=1] meson-internal__clang-tidy nix-grpc-store-clang-tidy-0.1.0> /nix/store/av7nrlz2yrbwwn4xmpdaz0swnqp36j1f-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always nix-grpc-store-clang-tidy-0.1.0> ninja: build stopped: subcommand failed. error: Cannot build '/nix/store/xvkpid35znzfqvflb8byrylh780cgr98-nix-grpc-store-clang-tidy-0.1.0.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/90pbwnkbkwjw965896nzxax3pnkg45mm-nix-grpc-store-clang-tidy-0.1.0 Last 25 log lines: > ../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] > 311 | assert(out.size() == 1 && out[0].worker == both); > | ^~~~~~ > | static_assert > ../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] > 324 | assert(shard.workersUp() == 1); > | ^~~~~~ > | static_assert > ../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] > 331 | assert(threw); > | ^~~~~~ > | static_assert > >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/build.cc > Errors encountered while running clang-tidy > ../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] > 253 | assert(remaining > 0); > | ^~~~~~ > | static_assert > ../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] > 259 | assert(dep->waiting > 0); > | ^~~~~~ > | static_assert > FAILED: [code=1] meson-internal__clang-tidy > /nix/store/av7nrlz2yrbwwn4xmpdaz0swnqp36j1f-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always > ninja: build stopped: subcommand failed. For full logs, run: nix log /nix/store/xvkpid35znzfqvflb8byrylh780cgr98-nix-grpc-store-clang-tidy-0.1.0.drv