Fix CI: widening-cast lint errors and Postgres C compiler
- tests/environmental_qualification.cpp: widen operands before multiplying to satisfy bugprone-misplaced-widening-cast. - Dockerfile: build Postgres with CC=gcc-14; the toolchain image has only versioned compilers, so configure found no cc/gcc. Not validated locally (no clang-format/clang-tidy/Docker run here); relies on the CI checks and postgres suites. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -50,7 +50,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl bzip2 make flex bison libssl-dev zlib1g-dev pkg-config \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY migrations/ migrations/
|
||||
RUN bash tools/prepare-postgres.sh
|
||||
# The toolchain installs versioned compilers only; there is no bare cc/gcc.
|
||||
RUN CC=gcc-14 bash tools/prepare-postgres.sh
|
||||
RUN cmake --preset release -B build/postgres -DCMAKE_CXX_COMPILER=g++-14 \
|
||||
-DEVO_BUILD_POSTGRES=ON -DPostgreSQL_ROOT=/source/.cache/postgres/install \
|
||||
&& cmake --build build/postgres --target evo-postgres-tests --parallel 2
|
||||
|
||||
@@ -396,7 +396,8 @@ void sequences(std::uint64_t ticks) {
|
||||
std::chrono::duration<double>(std::chrono::steady_clock::now() - start).count();
|
||||
std::printf("seeds=16 ticks_per_seed=%llu paired_steps=%llu captured=%llu grown=%llu "
|
||||
"bites=%llu fingerprint=%016llx validation_seconds=%.6f\n",
|
||||
static_cast<unsigned long long>(ticks), static_cast<unsigned long long>(32 * ticks),
|
||||
static_cast<unsigned long long>(ticks),
|
||||
32ULL * static_cast<unsigned long long>(ticks),
|
||||
static_cast<unsigned long long>(capture), static_cast<unsigned long long>(growth),
|
||||
static_cast<unsigned long long>(bites),
|
||||
static_cast<unsigned long long>(fingerprint), elapsed);
|
||||
@@ -527,8 +528,8 @@ void integrated(std::uint64_t episodes) {
|
||||
std::printf(
|
||||
"slice regime=%u episodes=%llu ticks=%llu capture=%llu growth=%llu "
|
||||
"assimilated_N=%llu returned_N=%llu regrowth=%llu hash=%016llx\n",
|
||||
regime, static_cast<unsigned long long>(16 * episodes),
|
||||
static_cast<unsigned long long>(16 * episodes * 128),
|
||||
regime, 16ULL * static_cast<unsigned long long>(episodes),
|
||||
16ULL * 128ULL * static_cast<unsigned long long>(episodes),
|
||||
static_cast<unsigned long long>(captured), static_cast<unsigned long long>(grown),
|
||||
static_cast<unsigned long long>(assimilated_n),
|
||||
static_cast<unsigned long long>(returned_n), static_cast<unsigned long long>(regrown),
|
||||
|
||||
Reference in New Issue
Block a user