unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: Janneke Nieuwenhuizen <janneke@gnu.org>
Cc: "Marius Bakke" <mbakke@fastmail.com>,
	65755@debbugs.gnu.org, "Ludovic Courtès" <ludo@gnu.org>
Subject: [bug#65755] This broke make check on master
Date: Fri, 15 Sep 2023 19:56:06 +0100	[thread overview]
Message-ID: <874jjvqmel.fsf@cbaines.net> (raw)
In-Reply-To: <871qez1e59.fsf@gnu.org>

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


Janneke Nieuwenhuizen <janneke@gnu.org> writes:

> Marius found that building the updated "guix" package on the
> just-rebased hurd-team branch failed.
>
> It turns out that the packages.scm test on master fails notably:
> package-transitive-supported-systems, implicit inputs
>
> test-name: package-transitive-supported-systems, implicit inputs
> location: /home/janneke/src/guix/master/tests/packages.scm:496
> source:
> + (test-equal
> +   "package-transitive-supported-systems, implicit inputs"
> +   %supported-systems
> +   (let ((p (dummy-package
> +              "foo"
> +              (build-system gnu-build-system)
> +              (supported-systems
> +                `("does-not-exist" "foobar" ,@%supported-systems)))))
> +     (parameterize
> +       ((%current-system "armhf-linux"))
> +       (package-transitive-supported-systems p))))
> expected-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "i586-gnu" "powerpc-linux")
> actual-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "powerpc-linux")
> result: FAIL

I would say interesting, but I've struggled with the supported system
stuff for years. The data service does use
package-transitive-supported-systems, but in a very weird way. To check
if a package supports a system, you call
package-transitive-supported-systems with the package and system (as the
second optional argument), then check if that system is present in the
returned list.

This is to say that in my uninformed opinion, the presence of the system
which you pass to package-transitive-supported-systems in the returned
list seems to mean something, but I wouldn't be able to say anything
else about the returned value.

I don't think there's anything wrong with adjusting the expectation to
have the test pass, but to me the longer term thing to do is look at
changing the code around supported systems.

On not breaking tests when making changes though, I don't generally run
make check unless I'm changing code in guix/ but it would be nice to
start QA doing that for every patch series. We should also probably try
to avoid tests that break when making changes to packages.

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

  reply	other threads:[~2023-09-15 19:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-05 11:17 [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Christopher Baines
2023-09-05 11:35 ` [bug#65755] [PATCH 1/3] gnu: musl-cross: Remove i586-gnu from supported-systems Christopher Baines
2023-09-05 11:35   ` [bug#65755] [PATCH 2/3] gnu: linux-libre-headers: " Christopher Baines
2023-09-05 11:35   ` [bug#65755] [PATCH 3/3] gnu: skalibs: Remove i586-gnu from %supported-systems Christopher Baines
2023-09-12  7:21 ` [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Ludovic Courtès
2023-09-12  7:46   ` bug#65755: " Christopher Baines
2023-09-15 18:32 ` [bug#65755] This broke make check on master Janneke Nieuwenhuizen
2023-09-15 18:56   ` Christopher Baines [this message]
2023-09-15 19:43     ` [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd Ludovic Courtès
2023-09-15 20:06       ` Janneke Nieuwenhuizen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jjvqmel.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=65755@debbugs.gnu.org \
    --cc=janneke@gnu.org \
    --cc=ludo@gnu.org \
    --cc=mbakke@fastmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).