GNU bug report logs - #36430
mcron would benefit from a better way to test jobs

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Robert Vollmert <rob@HIDDEN>; dated Sat, 29 Jun 2019 06:38:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 36430 <at> debbugs.gnu.org:


Received: (at 36430) by debbugs.gnu.org; 11 Jul 2019 15:37:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 11 11:37:02 2019
Received: from localhost ([127.0.0.1]:38427 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hlb82-0004ER-3L
	for submit <at> debbugs.gnu.org; Thu, 11 Jul 2019 11:37:02 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42815)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1hlb80-0004EA-Hb
 for 36430 <at> debbugs.gnu.org; Thu, 11 Jul 2019 11:37:00 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:38447)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1hlb7u-0005Fv-OI; Thu, 11 Jul 2019 11:36:54 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=43202 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1hlb7u-00021w-8R; Thu, 11 Jul 2019 11:36:54 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Robert Vollmert <rob@HIDDEN>
Subject: Re: bug#36430: mcron would benefit from a better way to test jobs
References: <B0BF7C44-23B2-42D7-8ACD-86E55DBDCE7D@HIDDEN>
 <87h87xapnp.fsf@HIDDEN>
 <325C9E85-468F-4EE3-93CC-C9F88D10E9CE@HIDDEN>
 <87wogsg8bo.fsf@HIDDEN>
 <2CB5CE05-5900-4E02-B56B-8D9F0700C32C@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 23 Messidor an 227 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Thu, 11 Jul 2019 17:36:53 +0200
In-Reply-To: <2CB5CE05-5900-4E02-B56B-8D9F0700C32C@HIDDEN> (Robert
 Vollmert's message of "Mon, 8 Jul 2019 13:58:25 +0200")
Message-ID: <87wogotwfe.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36430
Cc: 36430 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Robert Vollmert <rob@HIDDEN> skribis:

> One related issue that I just ran into, while trying out the gexp approac=
h:
>
> mcron jobs take an optional third naming argument, which are again better
> not used because they replace the store filename in the =E2=80=9Cschedule=
=E2=80=9D
> output.

I see; that feature was not designed at all with Guix in mind, and
presumably on FHS systems the name is enough if you can mentally map it
to something in /usr.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#36430; Package guix. Full text available.

Message received at 36430 <at> debbugs.gnu.org:


Received: (at 36430) by debbugs.gnu.org; 8 Jul 2019 11:58:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 08 07:58:36 2019
Received: from localhost ([127.0.0.1]:57984 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hkSI0-0003eR-Ei
	for submit <at> debbugs.gnu.org; Mon, 08 Jul 2019 07:58:36 -0400
Received: from mx2.mailbox.org ([80.241.60.215]:63974)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rob@HIDDEN>) id 1hkSHy-0003eB-FD
 for 36430 <at> debbugs.gnu.org; Mon, 08 Jul 2019 07:58:35 -0400
Received: from smtp1.mailbox.org (smtp1.mailbox.org
 [IPv6:2001:67c:2050:105:465:1:1:0])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mx2.mailbox.org (Postfix) with ESMTPS id E3C0EA113D
 for <36430 <at> debbugs.gnu.org>; Mon,  8 Jul 2019 13:58:27 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp1.mailbox.org ([80.241.60.240])
 by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173])
 (amavisd-new, port 10030)
 with ESMTP id jUGGwlwCkcVV for <36430 <at> debbugs.gnu.org>;
 Mon,  8 Jul 2019 13:58:26 +0200 (CEST)
From: Robert Vollmert <rob@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Subject: Re: bug#36430: mcron would benefit from a better way to test jobs
Date: Mon, 8 Jul 2019 13:58:25 +0200
In-Reply-To: <87wogsg8bo.fsf@HIDDEN>
References: <B0BF7C44-23B2-42D7-8ACD-86E55DBDCE7D@HIDDEN>
 <87h87xapnp.fsf@HIDDEN> <325C9E85-468F-4EE3-93CC-C9F88D10E9CE@HIDDEN>
 <87wogsg8bo.fsf@HIDDEN>
Message-Id: <2CB5CE05-5900-4E02-B56B-8D9F0700C32C@HIDDEN>
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 36430
Cc: 36430 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

One related issue that I just ran into, while trying out the gexp =
approach:

mcron jobs take an optional third naming argument, which are again =
better
not used because they replace the store filename in the =E2=80=9Cschedule=E2=
=80=9D
output.





Information forwarded to bug-guix@HIDDEN:
bug#36430; Package guix. Full text available.

Message received at 36430 <at> debbugs.gnu.org:


Received: (at 36430) by debbugs.gnu.org; 8 Jul 2019 09:54:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 08 05:54:48 2019
Received: from localhost ([127.0.0.1]:57767 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hkQMB-0004eC-Nh
	for submit <at> debbugs.gnu.org; Mon, 08 Jul 2019 05:54:48 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41300)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1hkQM9-0004dy-QG
 for 36430 <at> debbugs.gnu.org; Mon, 08 Jul 2019 05:54:46 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:54116)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1hkQM3-0000ZK-O6; Mon, 08 Jul 2019 05:54:39 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=39468 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1hkQM1-0002f3-MB; Mon, 08 Jul 2019 05:54:39 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Robert Vollmert <rob@HIDDEN>
Subject: Re: bug#36430: mcron would benefit from a better way to test jobs
References: <B0BF7C44-23B2-42D7-8ACD-86E55DBDCE7D@HIDDEN>
 <87h87xapnp.fsf@HIDDEN>
 <325C9E85-468F-4EE3-93CC-C9F88D10E9CE@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 20 Messidor an 227 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Mon, 08 Jul 2019 11:54:35 +0200
In-Reply-To: <325C9E85-468F-4EE3-93CC-C9F88D10E9CE@HIDDEN> (Robert
 Vollmert's message of "Mon, 8 Jul 2019 09:18:32 +0200")
Message-ID: <87wogsg8bo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36430
Cc: 36430 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Robert Vollmert <rob@HIDDEN> skribis:

>> On 7. Jul 2019, at 16:24, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
>>=20
>> Hi Robert,
>>=20
>> Robert Vollmert <rob@HIDDEN> skribis:
>>=20
>>> Defined a mcron job in config.scm scheduled to run once a day,
>>> with a scheme expression. How do I test this?
>>>=20
>>> herd schedule mcron lists the job as merely a =E2=80=9CLambda expressio=
n=E2=80=9D.
>>> I learned how to give it a descriptive name, but still there=E2=80=99s
>>> no script linked that I can run by hand.
>>=20
>> Commit 89fdd9ee0cc8817283449b33a8c1a2604c575c7e changes the rottlog job
>> in a simple way so we see an actual command rather than =E2=80=9CLambda
>> expression=E2=80=9D.  I would recommend using this style to improve
>> transparency.
>
> I understand that passing an executable works better. But that also
> loses the feature of allowing to write a script in place advertised by
> the lambda variant.

In Guix, if you write:

  #~(job =E2=80=A6 #$(program-file "do-something" #~(begin =E2=80=A6)))

instead of:

  #~(job =E2=80=A6 (lambda () =E2=80=A6))

you=E2=80=99re still writing Scheme code, and the result is pretty much the
same.

Now, from a pure mcron viewpoint (if you were to use it outside Guix), I
agree that procedures are handled in a suboptimal way.  Mcron should
simply display the procedure object, which includes its source location
info.

Aternately it could display its source location info as obtained with
=E2=80=98program-source=E2=80=99 if that helps readability:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,use(system vm program)
scheme@(guile-user)> (program-source derivation (program-code derivation))
$6 =3D (2780 "guix/derivations.scm" 877 . 17)
--8<---------------cut here---------------end--------------->8---

> I find that kind of =E2=80=9Cfeature that doesn=E2=80=99t actually work=
=E2=80=9D to be quite
> painful.
>
> A way to get the best of both worlds (within guix) would be to use
> program-file / gexp, so maybe that=E2=80=99s what should be advertised in=
 the
> guix manual?

Yes, definitely.

> At this stage, there=E2=80=99s just too many small hacking sessions requi=
red
> all over the place :). I=E2=80=99ll stick with filing bug reports for the
> clear pain points if that=E2=80=99s ok?

Sure, definitely!  It=E2=80=99s good to have all these pain points filed, a=
nd I
think many can be addressed quite easily, so that=E2=80=99ll help us improve
things gradually.

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#36430; Package guix. Full text available.

Message received at 36430 <at> debbugs.gnu.org:


Received: (at 36430) by debbugs.gnu.org; 8 Jul 2019 07:18:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 08 03:18:49 2019
Received: from localhost ([127.0.0.1]:57682 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hkNvF-00007i-1g
	for submit <at> debbugs.gnu.org; Mon, 08 Jul 2019 03:18:49 -0400
Received: from mx1.mailbox.org ([80.241.60.212]:37956)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rob@HIDDEN>) id 1hkNvC-00007V-Ju
 for 36430 <at> debbugs.gnu.org; Mon, 08 Jul 2019 03:18:47 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:105:465:1:2:0])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mx1.mailbox.org (Postfix) with ESMTPS id 42E72503F8;
 Mon,  8 Jul 2019 09:18:40 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
 by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173])
 (amavisd-new, port 10030)
 with ESMTP id 2r-VjJvpyYNg; Mon,  8 Jul 2019 09:18:35 +0200 (CEST)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Subject: Re: bug#36430: mcron would benefit from a better way to test jobs
From: Robert Vollmert <rob@HIDDEN>
In-Reply-To: <87h87xapnp.fsf@HIDDEN>
Date: Mon, 8 Jul 2019 09:18:32 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <325C9E85-468F-4EE3-93CC-C9F88D10E9CE@HIDDEN>
References: <B0BF7C44-23B2-42D7-8ACD-86E55DBDCE7D@HIDDEN>
 <87h87xapnp.fsf@HIDDEN>
To: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 36430
Cc: 36430 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)



> On 7. Jul 2019, at 16:24, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
>=20
> Hi Robert,
>=20
> Robert Vollmert <rob@HIDDEN> skribis:
>=20
>> Defined a mcron job in config.scm scheduled to run once a day,
>> with a scheme expression. How do I test this?
>>=20
>> herd schedule mcron lists the job as merely a =E2=80=9CLambda =
expression=E2=80=9D.
>> I learned how to give it a descriptive name, but still there=E2=80=99s
>> no script linked that I can run by hand.
>=20
> Commit 89fdd9ee0cc8817283449b33a8c1a2604c575c7e changes the rottlog =
job
> in a simple way so we see an actual command rather than =E2=80=9CLambda
> expression=E2=80=9D.  I would recommend using this style to improve
> transparency.

I understand that passing an executable works better. But that also
loses the feature of allowing to write a script in place advertised by
the lambda variant.

I find that kind of =E2=80=9Cfeature that doesn=E2=80=99t actually =
work=E2=80=9D to be quite
painful.

A way to get the best of both worlds (within guix) would be to use
program-file / gexp, so maybe that=E2=80=99s what should be advertised =
in the
guix manual?


>> One major improvement would be to have:
>>=20
>> 1. `herd schedule mcron` lists jobs with some kind of id
>> 2. `herd execute mcron <id>` runs the specific mcron job
>>=20
>> Or perhaps, any mcron job could be turned into a simple argument-less
>> guile or shell script that=E2=80=99s shown in the schedule listing?
>=20
> The commit I=E2=80=99m referring to above does exactly that.
>=20
> Perhaps as a first step we could recommend this style more prominently
> in the manual?

I=E2=80=99ll see if I can get the gexp variant to work, and would =
provide
a manual patch if successful.

> Further improvements should probably go into mcron itself.  It=E2=80=99s=
 a
> rather small and simple code base, so if you were looking for a
> rewarding hacking session for the week-end, it=E2=80=99s probably a =
good
> candidate.  ;-)

At this stage, there=E2=80=99s just too many small hacking sessions =
required
all over the place :). I=E2=80=99ll stick with filing bug reports for =
the
clear pain points if that=E2=80=99s ok?

Robert





Information forwarded to bug-guix@HIDDEN:
bug#36430; Package guix. Full text available.

Message received at 36430 <at> debbugs.gnu.org:


Received: (at 36430) by debbugs.gnu.org; 7 Jul 2019 14:26:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 07 10:26:56 2019
Received: from localhost ([127.0.0.1]:57265 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hk880-0008FJ-3H
	for submit <at> debbugs.gnu.org; Sun, 07 Jul 2019 10:26:56 -0400
Received: from eggs.gnu.org ([209.51.188.92]:36173)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1hk87x-0008F4-IP
 for 36430 <at> debbugs.gnu.org; Sun, 07 Jul 2019 10:26:54 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:41737)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1hk87q-0006zc-Ja; Sun, 07 Jul 2019 10:26:48 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56396 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1hk87p-0002IK-EL; Sun, 07 Jul 2019 10:26:46 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Jesse Gibbons <jgibbons2357@HIDDEN>
Subject: Re: bug#36430: mcron would benefit from a better way to test jobs
References: <B0BF7C44-23B2-42D7-8ACD-86E55DBDCE7D@HIDDEN>
 <20190629144536.590b1b7f@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 19 Messidor an 227 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Sun, 07 Jul 2019 16:26:44 +0200
In-Reply-To: <20190629144536.590b1b7f@HIDDEN> (Jesse Gibbons's message of
 "Sat, 29 Jun 2019 14:45:54 -0600")
Message-ID: <877e8tapjv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36430
Cc: 36430 <at> debbugs.gnu.org, rob@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Jesse,

Jesse Gibbons <jgibbons2357@HIDDEN> skribis:

> mcron is super buggy in my experience. If I power my laptop off
> overnight it will skip all jobs scheduled for the day of the month,
> even if they are scheduled for after I power it back on. And it doesn't
> have a way to easily schedule for a given day of the week.

Buggy in what sense?  It=E2=80=99s definitely lacking useful features, as R=
obert
reported, but apart from that it seems to work well for me.

I=E2=80=99d encourage you to report any issues you have to bug-mcron@HIDDEN=
g.
Overall, I agree that we should work to make it more pleasant to work
with!

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#36430; Package guix. Full text available.

Message received at 36430 <at> debbugs.gnu.org:


Received: (at 36430) by debbugs.gnu.org; 7 Jul 2019 14:24:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 07 10:24:37 2019
Received: from localhost ([127.0.0.1]:57256 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hk85l-0008BG-0p
	for submit <at> debbugs.gnu.org; Sun, 07 Jul 2019 10:24:37 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35818)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1hk85j-0008B4-MD
 for 36430 <at> debbugs.gnu.org; Sun, 07 Jul 2019 10:24:36 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:41720)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1hk85c-0005fl-LK; Sun, 07 Jul 2019 10:24:28 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56394 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1hk85c-0001Y6-5m; Sun, 07 Jul 2019 10:24:28 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Robert Vollmert <rob@HIDDEN>
Subject: Re: bug#36430: mcron would benefit from a better way to test jobs
References: <B0BF7C44-23B2-42D7-8ACD-86E55DBDCE7D@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 19 Messidor an 227 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Sun, 07 Jul 2019 16:24:26 +0200
In-Reply-To: <B0BF7C44-23B2-42D7-8ACD-86E55DBDCE7D@HIDDEN> (Robert
 Vollmert's message of "Sat, 29 Jun 2019 08:37:29 +0200")
Message-ID: <87h87xapnp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36430
Cc: 36430 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Robert,

Robert Vollmert <rob@HIDDEN> skribis:

> Defined a mcron job in config.scm scheduled to run once a day,
> with a scheme expression. How do I test this?
>
> herd schedule mcron lists the job as merely a =E2=80=9CLambda expression=
=E2=80=9D.
> I learned how to give it a descriptive name, but still there=E2=80=99s
> no script linked that I can run by hand.

Commit 89fdd9ee0cc8817283449b33a8c1a2604c575c7e changes the rottlog job
in a simple way so we see an actual command rather than =E2=80=9CLambda
expression=E2=80=9D.  I would recommend using this style to improve
transparency.

> One major improvement would be to have:
>
> 1. `herd schedule mcron` lists jobs with some kind of id
> 2. `herd execute mcron <id>` runs the specific mcron job
>
> Or perhaps, any mcron job could be turned into a simple argument-less
> guile or shell script that=E2=80=99s shown in the schedule listing?

The commit I=E2=80=99m referring to above does exactly that.

Perhaps as a first step we could recommend this style more prominently
in the manual?

Further improvements should probably go into mcron itself.  It=E2=80=99s a
rather small and simple code base, so if you were looking for a
rewarding hacking session for the week-end, it=E2=80=99s probably a good
candidate.  ;-)

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#36430; Package guix. Full text available.

Message received at 36430 <at> debbugs.gnu.org:


Received: (at 36430) by debbugs.gnu.org; 29 Jun 2019 20:46:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 29 16:46:08 2019
Received: from localhost ([127.0.0.1]:44956 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hhKEa-0003yD-0f
	for submit <at> debbugs.gnu.org; Sat, 29 Jun 2019 16:46:08 -0400
Received: from mail-pf1-f175.google.com ([209.85.210.175]:40565)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jgibbons2357@HIDDEN>) id 1hhKEV-0003xS-IO
 for 36430 <at> debbugs.gnu.org; Sat, 29 Jun 2019 16:46:06 -0400
Received: by mail-pf1-f175.google.com with SMTP id p184so4623146pfp.7
 for <36430 <at> debbugs.gnu.org>; Sat, 29 Jun 2019 13:46:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=date:from:to:cc:subject:message-id:mime-version
 :content-transfer-encoding;
 bh=mzXvcKtt++foUrJ2ynmrpdzIiAIiyGUaMEnV1r+YxLw=;
 b=CEKYYBQ2YCXrjNLqxH7f0pUB3fpCnTLQuCp7/UDwvh9ktohurM8dXbCPWnUbSYzb8e
 5XNnHFLMSPoPYLdULNIKv3gPJxiGz8nzUqJqiNT3XAnNSOuDd+Ch+7n1MAwcgvGDbf8H
 ijJomV6N80/UxnPPXgBtbuhLYEhRA7oxEjL72dS5tiuHlhJqi7O6HzA7PebYIyxjOvV/
 w51l0bc+xT2FmfDQeqTht4zzpI5SAPP20JWQFgp4IFNDzt8mwhcRcikE6lU53r9+k5+d
 1gL9r3XMsH/dWRi8AbtgZockFkbIkDoAcO5KgKIom8m+rnnEiV8rKuH3Z52hZ6iTpSCn
 5/Gg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version
 :content-transfer-encoding;
 bh=mzXvcKtt++foUrJ2ynmrpdzIiAIiyGUaMEnV1r+YxLw=;
 b=G4np9MXnHwVgnZezGO0IHbnMZGwOmHZxi22WA17UPGFynv4EWnp65WQyrcLCmJIeYM
 oPzh1cFBvIM/Y0IKDtgVoZpu+jQuLDta7DeRWmYMp7QESjEuqcl20Dlh+7qszpnPkYJF
 TlBX4cZ59G7oscK1Avm2JSluyWl7sXl4zeql0+e17fLCaKm7tY8U0jJwCMvaGiL9+7QF
 4wtCyrntH66TLeyf/nk29GaIOK671KbLkcWaiDmuaZog6Yq32vXZ4KHgnVaTIcybsQFG
 uaogBc81wHXWLyYhKrta9clorzWaekhXlHl2JHfHd9PdY/44qY/65g4oxbMGvKHWonL1
 zJCw==
X-Gm-Message-State: APjAAAVGaHOxNMy47XjBsTgjCPRxltjBHYH1qr5ZF+8afzBIGEvyL/2g
 wJxabPvY0LyjnKns4maXcM8cagg/
X-Google-Smtp-Source: APXvYqwzfdqCW+CeCZIAWomkG8be8pT9HTqGhfqoXt9s9QjhNi+zAF2A6SF+lyeb0EvSN0E82bNZCg==
X-Received: by 2002:a63:f342:: with SMTP id t2mr15056449pgj.83.1561841157246; 
 Sat, 29 Jun 2019 13:45:57 -0700 (PDT)
Received: from localhost ([199.68.53.171])
 by smtp.gmail.com with ESMTPSA id s43sm6772873pjb.10.2019.06.29.13.45.55
 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);
 Sat, 29 Jun 2019 13:45:56 -0700 (PDT)
Date: Sat, 29 Jun 2019 14:45:54 -0600
From: Jesse Gibbons <jgibbons2357@HIDDEN>
To: <rob@HIDDEN>
Subject: re: bug#36430: mcron would benefit from a better way to test jobs
Message-ID: <20190629144536.590b1b7f@HIDDEN>
X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 36430
Cc: 36430 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

> My issue:

> Defined a mcron job in config.scm scheduled to run once a day,
> with a scheme expression. How do I test this?

Write the mcron job for a local installation of mcron first for
testing purposes, then move it into config.scm. That's how I do it.

> herd schedule mcron lists the job as merely a =E2=80=9CLambda expression=
=E2=80=9D.
> I learned how to give it a descriptive name, but still there=E2=80=99s
> no script linked that I can run by hand.
>
> One major improvement would be to have:
>
> 1. `herd schedule mcron` lists jobs with some kind of id
> 2. `herd execute mcron <id>` runs the specific mcron job
>
> Or perhaps, any mcron job could be turned into a simple argument-less
> guile or shell script that=E2=80=99s shown in the schedule listing?
>
> Thoughts?
mcron --schedule=3Dcount gives you a listing of each scheduled job and
when it will next be run. I would expect "herd schedule mcron" runs
that command. I don't know about scheduling a function, but
if the scheduled job is a string it can be copied/pasted into a
terminal.

mcron is super buggy in my experience. If I power my laptop off
overnight it will skip all jobs scheduled for the day of the month,
even if they are scheduled for after I power it back on. And it doesn't
have a way to easily schedule for a given day of the week.




Information forwarded to bug-guix@HIDDEN:
bug#36430; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Jun 2019 06:37:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 29 02:37:41 2019
Received: from localhost ([127.0.0.1]:43319 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hh6zV-0001x1-6F
	for submit <at> debbugs.gnu.org; Sat, 29 Jun 2019 02:37:41 -0400
Received: from lists.gnu.org ([209.51.188.17]:59847)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rob@HIDDEN>) id 1hh6zS-0001ws-K3
 for submit <at> debbugs.gnu.org; Sat, 29 Jun 2019 02:37:40 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35134)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <rob@HIDDEN>) id 1hh6zR-0002j1-Mf
 for bug-guix@HIDDEN; Sat, 29 Jun 2019 02:37:38 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rob@HIDDEN>) id 1hh6zQ-0005wM-GK
 for bug-guix@HIDDEN; Sat, 29 Jun 2019 02:37:37 -0400
Received: from mx1.mailbox.org ([80.241.60.212]:63118)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rob@HIDDEN>) id 1hh6zQ-0005uU-AK
 for bug-guix@HIDDEN; Sat, 29 Jun 2019 02:37:36 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:105:465:1:2:0])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mx1.mailbox.org (Postfix) with ESMTPS id AAC50509E2
 for <bug-guix@HIDDEN>; Sat, 29 Jun 2019 08:37:32 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
 by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de
 [80.241.56.122]) (amavisd-new, port 10030)
 with ESMTP id 2-RhRPxOog-D for <bug-guix@HIDDEN>;
 Sat, 29 Jun 2019 08:37:31 +0200 (CEST)
From: Robert Vollmert <rob@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Subject: mcron would benefit from a better way to test jobs
Message-Id: <B0BF7C44-23B2-42D7-8ACD-86E55DBDCE7D@HIDDEN>
Date: Sat, 29 Jun 2019 08:37:29 +0200
To: bug-guix@HIDDEN
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 80.241.60.212
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

My issue:

Defined a mcron job in config.scm scheduled to run once a day,
with a scheme expression. How do I test this?

herd schedule mcron lists the job as merely a =E2=80=9CLambda =
expression=E2=80=9D.
I learned how to give it a descriptive name, but still there=E2=80=99s
no script linked that I can run by hand.

One major improvement would be to have:

1. `herd schedule mcron` lists jobs with some kind of id
2. `herd execute mcron <id>` runs the specific mcron job

Or perhaps, any mcron job could be turned into a simple argument-less
guile or shell script that=E2=80=99s shown in the schedule listing?

Thoughts?





Acknowledgement sent to Robert Vollmert <rob@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#36430; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 11 Jul 2019 15:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.