all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* package submission, unit test failures on Guix QA... policies?
@ 2024-06-07 17:37 Andy Tai
  2024-06-07 23:56 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
  2024-06-10  9:30 ` Christopher Baines
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Tai @ 2024-06-07 17:37 UTC (permalink / raw)
  To: guix-devel

Hi, I have a patch submission that builds fine (in the GNU Guix sense,
that is, unit tests run and pass) locally but fails on Guix QA due to
unit tests failing.

I suspect that the failures are due to the build machine (or machines)
as plain x86-64 PC (fine as build server(s)) does not have exotic
hardware units like GPU that the package in question is meant to use.

This may become more common as GPU and NPU applications become more popular.

Curious how shall such cases be handled?  Maybe reviewers can build
and run the patch to verify the patch works, so the Guix QA failure
can be overridden?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: package submission, unit test failures on Guix QA... policies?
  2024-06-07 17:37 package submission, unit test failures on Guix QA... policies? Andy Tai
@ 2024-06-07 23:56 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
  2024-06-10  9:30 ` Christopher Baines
  1 sibling, 0 replies; 3+ messages in thread
From: Felix Lechner via Development of GNU Guix and the GNU System distribution. @ 2024-06-07 23:56 UTC (permalink / raw)
  To: Andy Tai, guix-devel

Hi Andy,

On Fri, Jun 07 2024, Andy Tai wrote:

> Curious how shall such cases be handled?

In your patch, I would disable the unit tests that require special
hardware.

The unit tests are not supposed to run at build time anyway, but Guix
does not have a separate testing infrastructure presently.  One day, our
infrastructure will select tests based on whichever test bed features
are available, like the special hardware you own.

Kind regards
Felix


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: package submission, unit test failures on Guix QA... policies?
  2024-06-07 17:37 package submission, unit test failures on Guix QA... policies? Andy Tai
  2024-06-07 23:56 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
@ 2024-06-10  9:30 ` Christopher Baines
  1 sibling, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2024-06-10  9:30 UTC (permalink / raw)
  To: Andy Tai; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]

Andy Tai <atai@atai.org> writes:

> Hi, I have a patch submission that builds fine (in the GNU Guix sense,
> that is, unit tests run and pass) locally but fails on Guix QA due to
> unit tests failing.
>
> I suspect that the failures are due to the build machine (or machines)
> as plain x86-64 PC (fine as build server(s)) does not have exotic
> hardware units like GPU that the package in question is meant to use.
>
> This may become more common as GPU and NPU applications become more popular.
>
> Curious how shall such cases be handled?  Maybe reviewers can build
> and run the patch to verify the patch works, so the Guix QA failure
> can be overridden?

I'm not sure we have great guidance here, but viewing this through the
reproducible builds lens, we want packages to build identically across a
diverse range of setups.

While tests might not affect the outputs, I think the same premise still
holds. The set of tests that are run should be the same regardless of
the machine used.

Have you got some specific examples where you're seeing failing unit
tests, only on headless servers?

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-10  9:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-07 17:37 package submission, unit test failures on Guix QA... policies? Andy Tai
2024-06-07 23:56 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-06-10  9:30 ` Christopher Baines

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

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.