From: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
To: Andreas Enge <andreas@enge.fr>
Cc: 63412@debbugs.gnu.org
Subject: bug#63412: Topological sorting in cuirass
Date: Wed, 10 May 2023 15:59:45 +0200 [thread overview]
Message-ID: <87r0ro9tdt.fsf@web.de> (raw)
In-Reply-To: <ZFtspPexmg3YM/ug@jurong>
[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]
Andreas Enge <andreas@enge.fr> writes:
> Cuirass should sort builds and only offload derivations for which all
> inputs are available.
...
> Alternatively, build jobs could be sorted topologically and then be kept
> in a list; then before sending out a job, all its inputs have been tried
> to be built; the job should then be sent if all inputs are available, or
> be marked as "Failed (dependency)" if any of them has failed.
If you want to try this out quickly, you could use code from the
topological sorting SRFI I’m slowly finalizing:
https://srfi.schemers.org/srfi-234/srfi-234.html
For usage see: https://github.com/scheme-requests-for-implementation/srfi-234/blob/main/srfi-234-test.scm
Code: https://github.com/scheme-requests-for-implementation/srfi-234/blob/main/srfi/234-impl.scm
edgelist->graph should do the conversion from inputs per package to the
input format.
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]
next prev parent reply other threads:[~2023-05-10 14:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-10 10:06 bug#63412: Topological sorting in cuirass Andreas Enge
2023-05-10 13:59 ` Dr. Arne Babenhauserheide [this message]
2023-10-29 17:01 ` Ludovic Courtès
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=87r0ro9tdt.fsf@web.de \
--to=arne_bab@web.de \
--cc=63412@debbugs.gnu.org \
--cc=andreas@enge.fr \
/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).