* [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig
@ 2025-01-14 17:43 Roger Pau Monne
2025-01-14 17:48 ` Andrew Cooper
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Roger Pau Monne @ 2025-01-14 17:43 UTC (permalink / raw)
To: xen-devel
Cc: Roger Pau Monne, Doug Goldstein, Stefano Stabellini,
Oleksii Kurochko
If randconfig enables coverage support the build times out due to GNU LD
taking too long. For the time being prevent coverage from being enabled in
clang randconfig job.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Cc: Oleksii Kurochko <oleksii.kurochko@gmail.com>
---
I will fix the orphaned section stuff separately, as I'm considering just
removing LLVM coverage support because the llvm coverage format is not
stable, and the code to dump it has already become stale. However I need
to think about it, and in the short term disabling coverage support from
randconfig is more straightforward.
---
automation/gitlab-ci/build.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml
index cb84f379b754..bc4a8a5ad20c 100644
--- a/automation/gitlab-ci/build.yaml
+++ b/automation/gitlab-ci/build.yaml
@@ -556,6 +556,8 @@ debian-12-x86_64-clang-randconfig:
variables:
CONTAINER: debian:12-x86_64
RANDCONFIG: y
+ EXTRA_FIXED_RANDCONFIG: |
+ CONFIG_COVERAGE=n # Disable coverage otherwise build times out.
debian-12-x86_64-gcc:
extends: .gcc-x86-64-build
--
2.46.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig
2025-01-14 17:43 [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig Roger Pau Monne
@ 2025-01-14 17:48 ` Andrew Cooper
2025-01-14 23:49 ` Stefano Stabellini
2025-01-15 8:17 ` Roger Pau Monné
2025-01-15 8:19 ` Jan Beulich
2025-01-15 9:35 ` Oleksii Kurochko
2 siblings, 2 replies; 8+ messages in thread
From: Andrew Cooper @ 2025-01-14 17:48 UTC (permalink / raw)
To: Roger Pau Monne, xen-devel
Cc: Doug Goldstein, Stefano Stabellini, Oleksii Kurochko
On 14/01/2025 5:43 pm, Roger Pau Monne wrote:
> If randconfig enables coverage support the build times out due to GNU LD
> taking too long. For the time being prevent coverage from being enabled in
> clang randconfig job.
>
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
> ---
> Cc: Oleksii Kurochko <oleksii.kurochko@gmail.com>
> ---
> I will fix the orphaned section stuff separately, as I'm considering just
> removing LLVM coverage support because the llvm coverage format is not
> stable, and the code to dump it has already become stale. However I need
> to think about it, and in the short term disabling coverage support from
> randconfig is more straightforward.
Oh, so it's broken too? Unless the fix is trivial, we should have a
Kconfig level disable on it. No point letting people turn on something
that's broken.
~Andrew
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig
2025-01-14 17:48 ` Andrew Cooper
@ 2025-01-14 23:49 ` Stefano Stabellini
2025-01-15 8:17 ` Roger Pau Monné
1 sibling, 0 replies; 8+ messages in thread
From: Stefano Stabellini @ 2025-01-14 23:49 UTC (permalink / raw)
To: Andrew Cooper
Cc: Roger Pau Monne, xen-devel, Doug Goldstein, Stefano Stabellini,
Oleksii Kurochko
[-- Attachment #1: Type: text/plain, Size: 447 bytes --]
On Tue, 14 Jan 2025, Andrew Cooper wrote:
> On 14/01/2025 5:43 pm, Roger Pau Monne wrote:
> > If randconfig enables coverage support the build times out due to GNU LD
> > taking too long. For the time being prevent coverage from being enabled in
> > clang randconfig job.
> >
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
>
> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig
2025-01-14 17:48 ` Andrew Cooper
2025-01-14 23:49 ` Stefano Stabellini
@ 2025-01-15 8:17 ` Roger Pau Monné
1 sibling, 0 replies; 8+ messages in thread
From: Roger Pau Monné @ 2025-01-15 8:17 UTC (permalink / raw)
To: Andrew Cooper
Cc: xen-devel, Doug Goldstein, Stefano Stabellini, Oleksii Kurochko
On Tue, Jan 14, 2025 at 05:48:20PM +0000, Andrew Cooper wrote:
> On 14/01/2025 5:43 pm, Roger Pau Monne wrote:
> > If randconfig enables coverage support the build times out due to GNU LD
> > taking too long. For the time being prevent coverage from being enabled in
> > clang randconfig job.
> >
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
>
> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Thanks.
> > ---
> > Cc: Oleksii Kurochko <oleksii.kurochko@gmail.com>
> > ---
> > I will fix the orphaned section stuff separately, as I'm considering just
> > removing LLVM coverage support because the llvm coverage format is not
> > stable, and the code to dump it has already become stale. However I need
> > to think about it, and in the short term disabling coverage support from
> > randconfig is more straightforward.
>
> Oh, so it's broken too? Unless the fix is trivial, we should have a
> Kconfig level disable on it. No point letting people turn on something
> that's broken.
It's not build time broken, but the format of the buffer that we
return in llvm.c dump() function has gotten out of sync with the
native format in modern clang versions, and hence coverage tools will
refuse to parse it.
I think newer versions of llvm/clang have now included an internal
function to dump the buffer, so that we no longer have to attempt to
generate it from Xen, I need to see whether that works. Otherwise the
only remaining option is to convert the llvm data into gcov format
(which is stable), IIRC this is what Linux did.
Thanks, Roger.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig
2025-01-14 17:43 [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig Roger Pau Monne
2025-01-14 17:48 ` Andrew Cooper
@ 2025-01-15 8:19 ` Jan Beulich
2025-01-15 8:34 ` Andrew Cooper
2025-01-15 8:56 ` Roger Pau Monné
2025-01-15 9:35 ` Oleksii Kurochko
2 siblings, 2 replies; 8+ messages in thread
From: Jan Beulich @ 2025-01-15 8:19 UTC (permalink / raw)
To: Roger Pau Monne
Cc: Doug Goldstein, Stefano Stabellini, Oleksii Kurochko, xen-devel
On 14.01.2025 18:43, Roger Pau Monne wrote:
> If randconfig enables coverage support the build times out due to GNU LD
> taking too long. For the time being prevent coverage from being enabled in
> clang randconfig job.
Just curious: How long is "too long" in this case?
Jan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig
2025-01-15 8:19 ` Jan Beulich
@ 2025-01-15 8:34 ` Andrew Cooper
2025-01-15 8:56 ` Roger Pau Monné
1 sibling, 0 replies; 8+ messages in thread
From: Andrew Cooper @ 2025-01-15 8:34 UTC (permalink / raw)
To: Jan Beulich, Roger Pau Monne
Cc: Doug Goldstein, Stefano Stabellini, Oleksii Kurochko, xen-devel
On 15/01/2025 8:19 am, Jan Beulich wrote:
> On 14.01.2025 18:43, Roger Pau Monne wrote:
>> If randconfig enables coverage support the build times out due to GNU LD
>> taking too long. For the time being prevent coverage from being enabled in
>> clang randconfig job.
> Just curious: How long is "too long" in this case?
Timeout is currently at 1h, for what is a single build of the hypervisor.
~Andrew
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig
2025-01-15 8:19 ` Jan Beulich
2025-01-15 8:34 ` Andrew Cooper
@ 2025-01-15 8:56 ` Roger Pau Monné
1 sibling, 0 replies; 8+ messages in thread
From: Roger Pau Monné @ 2025-01-15 8:56 UTC (permalink / raw)
To: Jan Beulich
Cc: Doug Goldstein, Stefano Stabellini, Oleksii Kurochko, xen-devel
On Wed, Jan 15, 2025 at 09:19:29AM +0100, Jan Beulich wrote:
> On 14.01.2025 18:43, Roger Pau Monne wrote:
> > If randconfig enables coverage support the build times out due to GNU LD
> > taking too long. For the time being prevent coverage from being enabled in
> > clang randconfig job.
>
> Just curious: How long is "too long" in this case?
Left it for >30min stuck on the final linker invocation IIRC and it
hadn't finished, so no idea really. This was also running on a docker
x86-64 container on my ARM mac, so there was an extra layer of
emulation.
Thanks, Roger.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig
2025-01-14 17:43 [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig Roger Pau Monne
2025-01-14 17:48 ` Andrew Cooper
2025-01-15 8:19 ` Jan Beulich
@ 2025-01-15 9:35 ` Oleksii Kurochko
2 siblings, 0 replies; 8+ messages in thread
From: Oleksii Kurochko @ 2025-01-15 9:35 UTC (permalink / raw)
To: Roger Pau Monne, xen-devel; +Cc: Doug Goldstein, Stefano Stabellini
[-- Attachment #1: Type: text/plain, Size: 1341 bytes --]
On 1/14/25 6:43 PM, Roger Pau Monne wrote:
> If randconfig enables coverage support the build times out due to GNU LD
> taking too long. For the time being prevent coverage from being enabled in
> clang randconfig job.
>
> Signed-off-by: Roger Pau Monné<roger.pau@citrix.com>
R-Acked-by: Oleksii Kurochko<oleksii.kurochko@gmail.com>
~ Oleksii
> ---
> Cc: Oleksii Kurochko<oleksii.kurochko@gmail.com>
> ---
> I will fix the orphaned section stuff separately, as I'm considering just
> removing LLVM coverage support because the llvm coverage format is not
> stable, and the code to dump it has already become stale. However I need
> to think about it, and in the short term disabling coverage support from
> randconfig is more straightforward.
> ---
> automation/gitlab-ci/build.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml
> index cb84f379b754..bc4a8a5ad20c 100644
> --- a/automation/gitlab-ci/build.yaml
> +++ b/automation/gitlab-ci/build.yaml
> @@ -556,6 +556,8 @@ debian-12-x86_64-clang-randconfig:
> variables:
> CONTAINER: debian:12-x86_64
> RANDCONFIG: y
> + EXTRA_FIXED_RANDCONFIG: |
> + CONFIG_COVERAGE=n # Disable coverage otherwise build times out.
>
> debian-12-x86_64-gcc:
> extends: .gcc-x86-64-build
[-- Attachment #2: Type: text/html, Size: 2080 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-01-15 9:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-14 17:43 [PATCH for-4.20] automation/gitlab: disable coverage from clang randconfig Roger Pau Monne
2025-01-14 17:48 ` Andrew Cooper
2025-01-14 23:49 ` Stefano Stabellini
2025-01-15 8:17 ` Roger Pau Monné
2025-01-15 8:19 ` Jan Beulich
2025-01-15 8:34 ` Andrew Cooper
2025-01-15 8:56 ` Roger Pau Monné
2025-01-15 9:35 ` Oleksii Kurochko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.