GNU bug report logs -
#44427
[PATCH] lint: Add 'check-haskell-stackage' checker.
Previous Next
Reported by: Timothy Sample <samplet <at> ngyro.com>
Date: Wed, 4 Nov 2020 02:48:01 UTC
Severity: normal
Tags: patch
Done: Timothy Sample <samplet <at> ngyro.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44427 in the body.
You can then email your comments to 44427 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#44427
; Package
guix-patches
.
(Wed, 04 Nov 2020 02:48:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Timothy Sample <samplet <at> ngyro.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 04 Nov 2020 02:48:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello!
After the most recent issue with Haskell package versions, I was
inspired to finally make it a bit better. This patch adds a lint
checker to make sure that a Haskell package’s version is not ahead of
the desired Stackage LTS version! The check itself is nice and simple,
but I also added a test that is anything but.
To make the test work, I made sure our Hackage and Stackage importers
use base URLs that are parameters. Then, I used ‘with-http-server’ and
‘parameterize’d the URLs to use the local server. (This all follows the
example of the SWH checker.) It might be clearer if the test were split
in two, but the Stackage importer memoizes the list of packages sent
from the Stackage server. That means that the two tests would have to
be run in a certain order to work, which is pretty dodgy.
Is the test too complicated to be worth it? I might be able to make it
a little clearer, but I’m not sure it’s worth including at all.
Thoughts?
-- Tim
[0001-lint-Add-check-haskell-stackage-checker.patch (text/x-patch, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#44427
; Package
guix-patches
.
(Wed, 18 Nov 2020 21:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 44427 <at> debbugs.gnu.org (full text, mbox):
Hi Timothy,
Timothy Sample <samplet <at> ngyro.com> skribis:
> To make the test work, I made sure our Hackage and Stackage importers
> use base URLs that are parameters. Then, I used ‘with-http-server’ and
> ‘parameterize’d the URLs to use the local server. (This all follows the
> example of the SWH checker.) It might be clearer if the test were split
> in two, but the Stackage importer memoizes the list of packages sent
> from the Stackage server. That means that the two tests would have to
> be run in a certain order to work, which is pretty dodgy.
>
> Is the test too complicated to be worth it? I might be able to make it
> a little clearer, but I’m not sure it’s worth including at all.
> Thoughts?
I think it’s fine.
>>From 7e01e8adddeaba7a2c0b3a79425da26f3c2584df Mon Sep 17 00:00:00 2001
> From: Timothy Sample <samplet <at> ngyro.com>
> Date: Tue, 3 Nov 2020 15:30:28 -0500
> Subject: [PATCH] lint: Add 'check-haskell-stackage' checker.
>
> * guix/lint.scm (check-haskell-stackage): New procedure.
> (%network-dependent-checkers): Add 'haskell-stackage' checker.
> * guix/import/hackage.scm (%hackage-url): New variable.
> (hackage-source-url, hackage-cabal-url): Use it in place of a
> hard-coded string.
> * guix/import/stackage.scm (%stackage-url): Make it a parameter.
> (stackage-lts-info-fetch): Update accordingly.
> * tests/lint.scm ("hackage-stackage"): New test.
LGTM, thank you!
‘%stackage-updater’ only offers versions that are in LTS Stackage,
right?
Ludo’.
Reply sent
to
Timothy Sample <samplet <at> ngyro.com>
:
You have taken responsibility.
(Sun, 22 Nov 2020 03:23:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Timothy Sample <samplet <at> ngyro.com>
:
bug acknowledged by developer.
(Sun, 22 Nov 2020 03:23:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 44427-done <at> debbugs.gnu.org (full text, mbox):
Hello!
Ludovic Courtès <ludo <at> gnu.org> writes:
> LGTM, thank you!
Thanks for the review!
> ‘%stackage-updater’ only offers versions that are in LTS Stackage,
> right?
Yup. It tracks the version of LTS Stackage that corresponds to our
version of GHC.
-- Tim
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 20 Dec 2020 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 201 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.