all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mathieu Othacehe <othacehe@gnu.org>
To: zimoun <zimon.toutoune@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: core-updates weather reports!
Date: Sun, 22 Aug 2021 10:27:50 +0200	[thread overview]
Message-ID: <8735r1kho9.fsf@gnu.org> (raw)
In-Reply-To: <86h7fjobqo.fsf@gmail.com> (zimoun's message of "Sat, 21 Aug 2021 02:57:51 +0200")


Hello,

The situation is getting better here:

--8<---------------cut here---------------start------------->8---
https://ci.guix.gnu.org
  81.1% substitutes available (16,148 out of 19,921)
  at least 112,494.5 MiB of nars (compressed)
  17,592,186,161,392.5 MiB on disk (uncompressed)
  0.006 seconds per request (29.4 seconds in total)
  162.1 requests per second
--8<---------------cut here---------------end--------------->8---

I came up with a small script to pick randomly a failing package on the
core-updates-frozen branch:

--8<---------------cut here---------------start------------->8---
(use-modules (guix ci)
             (srfi srfi-1))

(define url "https://ci.guix.gnu.org")
(define system "x86_64-linux")

(define evals
  (latest-evaluations "https://ci.guix.gnu.org" 5
                      #:spec "core-updates-frozen"))

(define (last-eval evals)
  (first
   (filter-map (lambda (eval)
                 (and (evaluation-complete? eval)
                      (evaluation-id eval)))
               evals)))

(define eval
  (last-eval evals))

(define failed-builds
  (filter-map (lambda (job)
                (and (eq? (job-status job) 'failed)
                     (job-name job)))
              (evaluation-jobs url eval)))

(define %seed
  (seed->random-state
   (logxor (getpid) (car (gettimeofday)))))

(define failed-for-system
  (filter-map (lambda (job)
                (and (string-suffix? system job)
                     job))
              failed-builds))

(format #t "~a~%"
        (list-ref failed-for-system
                  (random (length failed-for-system)
                          %seed)))
--8<---------------cut here---------------end--------------->8---

For instance:

--8<---------------cut here---------------start------------->8---
mathieu@meije ~/guix [env]$ guix repl ~/tmp/fix.scm 
rust-test-case.x86_64-linux
mathieu@meije ~/guix [env]$ guix repl ~/tmp/fix.scm 
rust-tungstenite.x86_64-linux
--8<---------------cut here---------------end--------------->8---

That's a fun little game :)

Mathieu


  parent reply	other threads:[~2021-08-22  8:28 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-28 11:50 Core updates frozen Mathieu Othacehe
2021-08-03 20:15 ` core-updates-frozen on powerpc64le-linux (was: Core updates frozen.) Thiago Jung Bauermann
2021-08-04 20:48   ` core-updates-frozen on powerpc64le-linux Ludovic Courtès
2021-08-04 23:04     ` Thiago Jung Bauermann
2021-08-11 10:18       ` Ludovic Courtès
2021-08-11 18:45         ` Thiago Jung Bauermann
2021-08-17 12:40 ` Core updates frozen zimoun
2021-08-18 10:33   ` Efraim Flashner
2021-08-20  9:49     ` zimoun
2021-08-20 10:14       ` Efraim Flashner
2021-08-20 19:10       ` Leo Famulari
2021-08-20 21:05         ` core-updates weather reports! Leo Famulari
2021-08-20 21:40           ` Julien Lepiller
2021-08-20 23:08             ` Leo Famulari
2021-08-20 23:25               ` Julien Lepiller
2021-08-20 23:33                 ` Leo Famulari
2021-08-21  0:23                   ` Leo Famulari
2021-08-21  0:30                     ` Leo Famulari
2021-08-21  6:53                     ` Mathieu Othacehe
2021-08-21 21:21                       ` Leo Famulari
2021-08-22  8:19                         ` Mathieu Othacehe
2021-08-21  0:57           ` zimoun
2021-08-21 21:22             ` Leo Famulari
2021-08-22  8:27             ` Mathieu Othacehe [this message]
2021-08-30 22:35               ` Ludovic Courtès
2021-08-31  9:11                 ` Mathieu Othacehe

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=8735r1kho9.fsf@gnu.org \
    --to=othacehe@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=zimon.toutoune@gmail.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 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.