unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: zimoun <zimon.toutoune@gmail.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Data Services: use cases
Date: Mon, 16 Nov 2020 21:50:08 +0000	[thread overview]
Message-ID: <875z65m0of.fsf@cbaines.net> (raw)
In-Reply-To: <86v9e5ovjp.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2478 bytes --]


zimoun <zimon.toutoune@gmail.com> writes:

> Cool!  I have seen that you added the commit!  Great.
>
> On Mon, 16 Nov 2020 at 20:54, Christopher Baines <mail@cbaines.net> wrote:
>
>>>>> 2: <https://lists.gnu.org/archive/html/guix-devel/2020-10/msg00096.html>
>
>>>> The Guix Data Service stores the date in the email from the Git hook
>>>> that runs when one pushes to Savannah. That's the date you see for a
>>>> revision, and it should be pretty close to when it actually showed up in
>>>> the Git repository. It's not perfectly accurate, but it should be better
>>>> than either the commit date or author date from the Git metadata.
>
>>> Maybe my investigations in [2] above are wrong but which date from the
>>> email the Data Service is using?
>
> I do not know what is wrong, but some thing is.  From
>
>   https://lists.gnu.org/archive/html/guix-devel/2020-10/msg00096.html
>
> the commit ranges:
>
> https://data.guix.gnu.org/repository/1/branch/master/package/ghc-haddock/output-history
>
> does not match with the Git history if I am not wrong.
>
> The first commit producing j5llsz…-ghc-haddock is not
> 3922208091 but 12dc9f58c4.  And then compare:
>
>                 author date              commit date
> 3922208091|Thu Jul 23 14:03:19 2020|Fri Jul 24 14:21:31 2020
> 12dc9f58c4|Fri Jul 24 09:56:25 2020|Fri Jul 24 14:21:30 2020
>
> I have not checked what guix-commits says.  Maybe the mess is
> overthere.

The author date and commit date won't necessarily match the date
whatever branch is updated (and it's when that branch was updated that
the Guix Data Service tries to store).

Generally, the author date will match or precede the commit date, which
will match or precede the date the commit hit whatever branch.

Taking 3922208091 as an example, I pulled the commit dates in UTC [1]:

AuthorDate:        Thu Jul 23 12:03:19 2020
CommitDate:        Fri Jul 24 12:21:31 2020
Guix Data Service: 2020-07-24 12:22:11 [2]


1: TZ=UTC git show --pretty=fuller 3922208091
2: https://data.guix.gnu.org/revision/39222080911eaf3d7f74effe4467c1a04464aef3

I think the author date says something about when the commit was
originally created. Rebasing and adding the Signed-off-by by bit will
update the commit date (but not the author date). Finally, the Guix Data
Service will store when the branch was updated (it uses the date of the
email as a proxy for this).

Does that clear things up?

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

  reply	other threads:[~2020-11-16 21:52 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-12 13:26 Data Services: use cases zimoun
2020-10-13  8:44 ` Pierre Neidhardt
2020-10-21  9:27   ` Ludovic Courtès
2020-10-21  9:39     ` Pierre Neidhardt
2020-10-21 10:19     ` zimoun
2020-11-16 19:28       ` Christopher Baines
2020-11-16 20:24         ` zimoun
2020-11-16 20:54           ` Christopher Baines
2020-11-16 21:12             ` zimoun
2020-11-16 21:50               ` Christopher Baines [this message]
2020-11-16 22:38                 ` zimoun
2020-11-17 21:43                   ` zimoun
2020-11-17 21:57                     ` Fix incorrect date and commit in Data Service zimoun
2020-11-17 22:44                       ` zimoun
2020-11-16 19:26     ` Data Services: use cases Christopher Baines
2020-11-16 19:20   ` Christopher Baines
2020-11-17  7:48     ` Pierre Neidhardt
2020-11-17  8:04       ` Christopher Baines
2020-11-17  8:49         ` Pierre Neidhardt
2020-11-17 19:34           ` Christopher Baines
2020-11-17 19:42             ` Pierre Neidhardt
2020-11-16 19:17 ` Christopher Baines
2020-11-16 20:34   ` zimoun
2020-11-16 21:08     ` Christopher Baines
2020-11-17 13:19       ` Linking to the data service Ludovic Courtès
2020-11-17 16:26         ` zimoun
2020-11-17 16:18       ` Data Services: use cases zimoun

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=875z65m0of.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --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 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).