all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Guix Data Services: whishlist about SWH
Date: Tue, 3 Mar 2020 18:11:31 +0100	[thread overview]
Message-ID: <CAJ3okZ0xFR62f0y9pWT86UXgV2Uapiyx8pTTnUPHrMy-RGCxmw@mail.gmail.com> (raw)
In-Reply-To: <87lforhpwz.fsf@gnu.org>

Hi,

On Mon, 24 Feb 2020 at 18:10, Ludovic Courtès <ludo@gnu.org> wrote:

> >> Using the Software Heritage (SWH) API [3], does it seems a good idea
> >> to add SWH coverage somewhere in the Guix Data Services?
>
> That’s a great idea!  Maybe it’s not a good idea to store that info in
> the database of the Data Service though.  (Web browsers could query the
> SWH API by themselves actually, though it’d be nice to have a JS-free
> variant.)

It is out of my skills. :-)

What I have in mind is:
 1. Green/red button like SWH stamp! :-) Green for archived in SWH and
red for not yet, and maybe orange for scheduled.
 2. A chart for the coverage.

Well, the point 1. works at the package level and should be done
entirely inside the webbrowser (modulo JS-free).
However, point 2. cannot be checked on the fly, IMHO and so needs to
be stored somewhere in the Data Service.

I have no idea where to look to for example start something about the
point 1. Clue accepted. ;-)


> > I think the first step towards this would be to experiment with fetching
> > data from the Software Heritage API. Do you know how you'd fetch data
> > about the output from a fixed output derivation (like harfbuzz)?
>
> The ‘archival’ linter does that.  See also the examples at:
>
>   https://guix.gnu.org/blog/2019/connecting-reproducible-deployment-to-a-long-term-source-code-archive/

Thank you for the pointer. I will try to find my way in the linter code. :-)


Thinking about connections between Guix/Nix and SWH and discussing
with lewo, it could be also nice to "push" for each evaluation of
Cuirass all our upstream sources to the SWH listener. Well, the SWH
listener is still a work-in-progress but currently it accepts
something in the format of 'sources.json'. A patch implementing that
is pending [1] and in the near future (after soonish the patch's
review) this 'sources.json' will be produced by the Website... Hum?
The question is then: what will produce this 'sources.json' file?
Cuirass or Data Services?

If I understand Clément's concern about Cuirass, he is not in favour
to add too much Guix only features to Cuirass. So Cuirass does not
seem the right place.
Well, the Data Service could do that. For each evaluation, it produces
this 'sources.json' file and it serves it a a place that the SWH
listener could ingest and so schedule some fetching.
There is still questions to minimize the resource consumption (more on
SWH side than on our side), but that another story.

In this case, Guix will be more robust, especially about time travelling.

What do you think?

[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39547#29
[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39547#35


All the best,
simon

      reply	other threads:[~2020-03-03 17:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-15 16:05 Guix Data Services: whishlist about SWH zimoun
2020-02-16  9:00 ` Christopher Baines
2020-02-18  9:22   ` zimoun
2020-02-24 17:10   ` Ludovic Courtès
2020-03-03 17:11     ` zimoun [this message]

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

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

  git send-email \
    --in-reply-to=CAJ3okZ0xFR62f0y9pWT86UXgV2Uapiyx8pTTnUPHrMy-RGCxmw@mail.gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /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 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.