all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cuirass fibers crash // using with GUIX_PACKAGE_PATH
@ 2018-08-09 15:15 Ricardo Wurmus
  2018-08-09 17:33 ` Clément Lassieur
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2018-08-09 15:15 UTC (permalink / raw)
  To: help-guix

Hi Guix,

I have a server running GuixSD with Cuirass and it’s supposed to build a
bunch of user-provided manifests continuously.  These manifests refer to
packages that are defined in a separate repository that is on
GUIX_PACKAGE_PATH, so really the Cuirass specification for them depends
on two repositories.  Can we express this with specifications?

Previously I set up a cron job to update the second repository and
added it on the load-path through the Cuirass service configuration.

Since a recent update to Cuirass and the service “load-path” is no
longer a valid field, so it seems I can no longer do this.  Do you have
any recommendations on how to accomplish my goal?

Another problem is that Cuirass crashes on startup.  The Cuirass log
shows me this:

--8<---------------cut here---------------start------------->8---
2018-08-09T16:54:05 running Fibers on 4 kernel threads
Uncaught exception in fiber ##f:
In ice-9/eval.scm:
    619:8  1 (_ #(#(#<directory (fibers) 127b500> #<<scheduler> ?> ?)))
In unknown file:
           0 (_ #<procedure 3de7aa0 at ice-9/eval.scm:330:13 ()> #<?> ?)
ERROR: In procedure for-each: Wrong type argument: #f
--8<---------------cut here---------------end--------------->8---

The Cuirass process remains, but appears to be stuck.

--
Ricardo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cuirass fibers crash // using with GUIX_PACKAGE_PATH
  2018-08-09 15:15 Cuirass fibers crash // using with GUIX_PACKAGE_PATH Ricardo Wurmus
@ 2018-08-09 17:33 ` Clément Lassieur
  2018-08-11 17:00   ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Clément Lassieur @ 2018-08-09 17:33 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

Hi Ricardo,

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:

> Hi Guix,
>
> I have a server running GuixSD with Cuirass and it’s supposed to build a
> bunch of user-provided manifests continuously.  These manifests refer to
> packages that are defined in a separate repository that is on
> GUIX_PACKAGE_PATH, so really the Cuirass specification for them depends
> on two repositories.  Can we express this with specifications?

Yes, the Cuirass manual shows an example that does exactly what you
want:

      '((#:name . "foo-master")
        (#:load-path-inputs . ("guix"))
        (#:package-path-inputs . ("packages"))
        (#:proc-input . "conf")
        (#:proc-file . "drv-list.scm")
        (#:proc . cuirass-jobs)
        (#:proc-args (subset . "foo"))
        (#:inputs . (((#:name . "guix")
                      (#:url . "git://git.savannah.gnu.org/guix.git")
                      (#:load-path . ".")
                      (#:branch . "master")
                      (#:no-compile? . #t))
                     ((#:name . "conf")
                      (#:url . "git://my-personal-conf.git")
                      (#:load-path . ".")
                      (#:branch . "master")
                      (#:no-compile? . #t))
                     ((#:name . "packages")
                      (#:url . "git://my-custom-packages.git")
                      (#:load-path . ".")
                      (#:branch . "master")
                      (#:no-compile? . #t)))))

> Previously I set up a cron job to update the second repository and
> added it on the load-path through the Cuirass service configuration.

That cron job is not needed anymore.  Also, that load-path isn't global
any longer: it's per specification (see #:package-path-inputs).

> Since a recent update to Cuirass and the service “load-path” is no
> longer a valid field, so it seems I can no longer do this.  Do you have
> any recommendations on how to accomplish my goal?

Indeed, that recent update you are talking about adds multiple inputs to
a Cuirass specification.  Its goal is to handle your use case in a
better way: the GUIX_PACKAGE_PATH (named "packages" in the above
example) is a new input, and a new evaluation will be triggered when a
new commit arrives in that input.  Its name doesn't matter, but
#:package-path-inputs needs to point to its name.

> Another problem is that Cuirass crashes on startup.  The Cuirass log
> shows me this:
>
> --8<---------------cut here---------------start------------->8---
> 2018-08-09T16:54:05 running Fibers on 4 kernel threads
> Uncaught exception in fiber ##f:
> In ice-9/eval.scm:
>     619:8  1 (_ #(#(#<directory (fibers) 127b500> #<<scheduler> ?> ?)))
> In unknown file:
>            0 (_ #<procedure 3de7aa0 at ice-9/eval.scm:330:13 ()> #<?> ?)
> ERROR: In procedure for-each: Wrong type argument: #f
> --8<---------------cut here---------------end--------------->8---
>
> The Cuirass process remains, but appears to be stuck.

This is because your specification list is invalid.  I just noticed the
Guix manual about Cuirass is out of date.  Please, have a look at the
Cuirass manual instead.

Clément

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cuirass fibers crash // using with GUIX_PACKAGE_PATH
  2018-08-09 17:33 ` Clément Lassieur
@ 2018-08-11 17:00   ` Ricardo Wurmus
  2018-08-11 17:17     ` Clément Lassieur
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2018-08-11 17:00 UTC (permalink / raw)
  To: Clément Lassieur; +Cc: help-guix


Hi Clément,

>> I have a server running GuixSD with Cuirass and it’s supposed to build a
>> bunch of user-provided manifests continuously.  These manifests refer to
>> packages that are defined in a separate repository that is on
>> GUIX_PACKAGE_PATH, so really the Cuirass specification for them depends
>> on two repositories.  Can we express this with specifications?
>
> Yes, the Cuirass manual shows an example that does exactly what you
> want: […]

Beautiful!  Thanks for pointing this out to me.

>> Another problem is that Cuirass crashes on startup.  The Cuirass log
>> shows me this:
>>
>> --8<---------------cut here---------------start------------->8---
>> 2018-08-09T16:54:05 running Fibers on 4 kernel threads
>> Uncaught exception in fiber ##f:
>> In ice-9/eval.scm:
>>     619:8  1 (_ #(#(#<directory (fibers) 127b500> #<<scheduler> ?> ?)))
>> In unknown file:
>>            0 (_ #<procedure 3de7aa0 at ice-9/eval.scm:330:13 ()> #<?> ?)
>> ERROR: In procedure for-each: Wrong type argument: #f
>> --8<---------------cut here---------------end--------------->8---
>>
>> The Cuirass process remains, but appears to be stuck.
>
> This is because your specification list is invalid.  I just noticed the
> Guix manual about Cuirass is out of date.  Please, have a look at the
> Cuirass manual instead.

Can we prevent this unhelpful error message by validating the
specifications?

--
Ricardo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cuirass fibers crash // using with GUIX_PACKAGE_PATH
  2018-08-11 17:00   ` Ricardo Wurmus
@ 2018-08-11 17:17     ` Clément Lassieur
  0 siblings, 0 replies; 4+ messages in thread
From: Clément Lassieur @ 2018-08-11 17:17 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

Hi Ricardo,

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:

>>> Another problem is that Cuirass crashes on startup.  The Cuirass log
>>> shows me this:
>>>
>>> --8<---------------cut here---------------start------------->8---
>>> 2018-08-09T16:54:05 running Fibers on 4 kernel threads
>>> Uncaught exception in fiber ##f:
>>> In ice-9/eval.scm:
>>>     619:8  1 (_ #(#(#<directory (fibers) 127b500> #<<scheduler> ?> ?)))
>>> In unknown file:
>>>            0 (_ #<procedure 3de7aa0 at ice-9/eval.scm:330:13 ()> #<?> ?)
>>> ERROR: In procedure for-each: Wrong type argument: #f
>>> --8<---------------cut here---------------end--------------->8---
>>>
>>> The Cuirass process remains, but appears to be stuck.
>>
>> This is because your specification list is invalid.  I just noticed the
>> Guix manual about Cuirass is out of date.  Please, have a look at the
>> Cuirass manual instead.
>
> Can we prevent this unhelpful error message by validating the
> specifications?

We definitely should, I opened https://bugs.gnu.org/32422 to keep track
of it.

Clément

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-11 17:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-09 15:15 Cuirass fibers crash // using with GUIX_PACKAGE_PATH Ricardo Wurmus
2018-08-09 17:33 ` Clément Lassieur
2018-08-11 17:00   ` Ricardo Wurmus
2018-08-11 17:17     ` Clément Lassieur

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.