Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wjazt-000Bx0-21 for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jul 2026 11:08:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wjazr-002ykQ-2B for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jul 2026 11:08:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wjaxz-002uqK-0w for pgsql-hackers@lists.postgresql.org; Tue, 14 Jul 2026 11:06:24 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wjaxx-00000000AVB-43kD for pgsql-hackers@lists.postgresql.org; Tue, 14 Jul 2026 11:06:23 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-c15c7d22070so543513366b.2 for ; Tue, 14 Jul 2026 04:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784027181; x=1784631981; darn=lists.postgresql.org; h=content-transfer-encoding:content-type:mime-version:user-agent :message-id:date:references:in-reply-to:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to:content-type; bh=PADZ/1NSWM4W15W6jW3REp4qbnpiYK32BB63njpcpOs=; b=Rhh7QpYTmoNEwp0N78Hp9achE2p4QIvW2dZA2jWGjqUX0PX8Tck3nNlvNos8Fqe/C3 zc0VLU1oJdW36jrDv0bj7VuriTCEdMm/3E8qvNvvrLwSnxPEX2g20UlRcNxV5XMP5oID rnMNxdeCIobHhd7Z0gPLieP/FEuhwHtSQBiHPh391t5a69IXdFPCMpLqh+Oq7w6vsUo/ IdEF20420YLQkN1C72Zu2gx3D7nxPxak7wHoYjECa29FOxODfuvtPhL0kOvs4RkxBiIa JE3p14yCuLN7uN0nXx7Htu89kUtu/H/wZEHLpeS+I/bmxO2L4a3No9MBDus5q7uWLhgZ y/sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784027181; x=1784631981; h=content-transfer-encoding:content-type:mime-version:user-agent :message-id:date:references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PADZ/1NSWM4W15W6jW3REp4qbnpiYK32BB63njpcpOs=; b=PJlwvNbaVdMZiEjS6i4+CuKHCW+GRzf7wvfrHE+3JbeWfW0twuSVzVq5R4evT9+eWx Tg8kEAKw/l8H4T5LKuZ/YRj3gSsb3I4FD1QKE+J1kx2Z94H7NPFk2Q2JQ0eXianq53Om nnxS1qbXFvKHC08tYgp1SXzb9KQPLvBgbf5Xz5whTEnWw/OTQi0uZhsQoEPUkf+fZoVy f6lHkS5AYcQ/1v0MTainGO77mHQXRh+PqstWZX6wq+HCnd21n8dkY0vMh8HjMUVkE2Lu ND9DKE+AHP4TDXawO84CfJ0gBqkbgGOWYcRk+F802b5eY9l5Tc0ZOL2UIEaXybAknqeg g0tw== X-Forwarded-Encrypted: i=1; AHgh+RriHHbuVECK7oo6ufPW8Hf2Jz5GEyahE5tKd3dSN1rflxeYt42SB5D83GXJK1u5c4gOFX2YjQwQrA5usky3@lists.postgresql.org X-Gm-Message-State: AOJu0YybhumncsQVgqaNaWK918g77yVLGeuKKih0kQS6U3IFa/vuh4gG M0drvGSFxyFhDZ/gsO5SaDN6qcG47zdgmrQoq94PAqWY51tu/MI33c4= X-Gm-Gg: AfdE7clrduEc85V9ZYmhUnG/pHL6daIk6hTNNiDAglm0hSPuKyHsKYAnUkpjNj/WSX0 r8DraZoYt5ZJYyB1UKr5tMOUR6MsSE3qtCkXv6kB8Na46W3xNhaBtza4IOZJfe3quR+HieQn4cO Bt+Saeyey456xp6FpheP4572CZ9kHJr3bLd3T/oygjlw/hKt86wVMOjly2UQjqRlccXHFXTpteJ LOx84TjAGdpmm8Z9hHgFMrA7tkgH5oIrONK+Wrk7/a07Mcj9rQ2f8unWe3FgOgB3YBB3Rk5LCe5 oot8cPQ1airHLZo5lEMT3UhjpV671M0YJ7n44yy6Ac3SzN+K1WSSmPpsq+NX9sF6HPN84mRW1WS fnSwep8sSvKB1jJx6LIhv/QXAYgehETEb+hIQY7LEfeLZ79vXqpIjkCeK2vc7Hrhrugzklchm5/ b5Ousl748Hxh/DCe7ID3LrAfrXq/fa X-Received: by 2002:a17:906:c149:b0:c12:67d2:3d6b with SMTP id a640c23a62f3a-c16678c8f24mr78460566b.11.1784027179985; Tue, 14 Jul 2026 04:06:19 -0700 (PDT) Received: from localhost ([2a00:6d43:908:5803::3]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c15ae0bb618sm1147128866b.20.2026.07.14.04.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2026 04:06:19 -0700 (PDT) From: "Jonathan Gonzalez V." To: =?utf-8?Q?=C3=81lvaro?= Herrera Cc: Jacob Champion , pgsql-hackers@lists.postgresql.org Subject: Re: Coverage (lcov) failing with inconsistent error in versions 2.x In-Reply-To: (=?utf-8?Q?=22=C3=81lvaro?= Herrera"'s message of "Mon, 6 Jul 2026 20:00:34 +0200") References: Date: Tue, 14 Jul 2026 13:06:17 +0200 Message-ID: <87v7ahq192.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello! =C3=81lvaro Herrera writes: > On 2026-Jul-06, Jacob Champion wrote: > >> On Fri, Jul 3, 2026 at 1:17=E2=80=AFPM =C3=81lvaro Herrera wrote: >> > I added -j0 to both so that they run parallel processes, which should = be >> > a few second faster. >>=20 >> As a heads up, I found that adding parallelism on my local machine ran >> it out of memory pretty quickly, with lcov 2.4. YMMV. > > Strange! > > Anyway I noticed that "-j0" doesn't work -- apparently it has to be "-j 0= ". > I'll see how bad the memory usage gets on the next report, and turn that > off (or set it lower?) if things are too tight. I ran into the same issues and I took a different direction, since lcov wasn't working I started to look for other solutions, turns out that meson comes with a fallback if lcov is not installed called gcovr, and works really well, at least for my requirements (not running in the full stack), without any configuration I have a coverage report, enough at least. Has anyone tried gcovr before? I'd be interested to know whether there are any drawbacks to using it. Going back to lcov, according to an issue [0], it looks like users are expected to use the "TOT" version, which makes no sense to me. I tested the latest lcov release from last week, and I'm still experiencing the same issues that started this thread. In conclusion, I'll stick with gcovr for now rather than maintaining an lcov configuration with many exceptions. [0] https://github.com/linux-test-project/lcov/issues/473#issuecomment-4492= 099808 Regards -- Jonathan Gonzalez V. EDB https://www.enterprisedb.com