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