All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Elijah Newren <newren@gmail.com>
Cc: Elijah Newren via GitGitGadget <gitgitgadget@gmail.com>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] t6022, t6046: fix flaky files-are-updated checks
Date: Fri, 13 Mar 2020 12:42:37 -0700	[thread overview]
Message-ID: <xmqqlfo4avo2.fsf@gitster.c.googlers.com> (raw)
In-Reply-To: <CABPp-BHGsED9noSgAt_OH5G8iXOAvS2cjEV-MDL=hjk365=NdQ@mail.gmail.com> (Elijah Newren's message of "Fri, 13 Mar 2020 12:27:18 -0700")

Elijah Newren <newren@gmail.com> writes:

> However, a larger value might be useful in the face of leap seconds
> and ntp time updates, so I should probably move that direction.
>
> Any preferences on whether I should I pick something like 3600 (large
> but easily recognizable), something more round like 10000, or
> something else?

As long as filesystem timestamp monotonically increases, any value
that is the same or larger than the time granularity should be OK,
and it sounds reasonable for filesystem timestamp to have at least 1
second resolution.

Ehh, do we still need to worry about the ones that has 2 second
resolution or coarser?  What does "adjust the file timestamp by
decrementing 1 second from the current value" do?  Do we risk ending
up with the same timestamp as we started with?

I have no strong preference between 3600 and 10000, but to me 1
smells a bit iffy.  "test-tool chmtime --get -9 file" is still
spelled in the same number of bytes as one second offset and has a
larger margin ;-)

  reply	other threads:[~2020-03-13 19:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-13 18:57 [PATCH] t6022, t6046: fix flaky files-are-updated checks Elijah Newren via GitGitGadget
2020-03-13 19:18 ` Junio C Hamano
2020-03-13 19:27   ` Elijah Newren
2020-03-13 19:42     ` Junio C Hamano [this message]
2020-03-13 20:03 ` [PATCH v2] " Elijah Newren via GitGitGadget

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=xmqqlfo4avo2.fsf@gitster.c.googlers.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=gitgitgadget@gmail.com \
    --cc=newren@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.
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.