guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] Support publishing evaluation events


From: Ludovic Courtès
Subject: Re: [PATCH 2/2] Support publishing evaluation events
Date: Sat, 16 Nov 2019 22:41:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Christopher Baines <address@hidden> skribis:

> ---
>  src/cuirass/base.scm     | 5 +++++
>  src/cuirass/database.scm | 6 +++++-
>  src/cuirass/http.scm     | 9 +++++++++
>  3 files changed, 19 insertions(+), 1 deletion(-)
>
> diff --git a/src/cuirass/base.scm b/src/cuirass/base.scm
> index fd10e35..943a4f2 100644
> --- a/src/cuirass/base.scm
> +++ b/src/cuirass/base.scm
> @@ -724,6 +724,11 @@ started)."
>               (checkouts (fetch-inputs spec))
>               (eval-id (db-add-evaluation name checkouts)))
>          (when eval-id
> +          (db-add-event 'evaluation
> +                        (time-second (current-time time-utc))
> +                        `((#:evalutaion    . ,eval-id)
                                      ^^^
Typo.

> +                          (#:specification . ,name)
> +                          (#:in_progress   . #t)))
                                  ^
Should it be a hyphen?

Otherwise LGTM.

I think we should eventually use records everywhere instead of alists,
as that would catch such typos.  We could use an approach similar to
that of ‘define-json-mapping’ to factorize
serialization/deserialization.

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]