From nobody Thu Jan 4 19:10:22 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T5bl53xcsz571QJ for ; Thu, 4 Jan 2024 19:10:25 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:7400:8808:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4T5bl40lbBz4tyx; Thu, 4 Jan 2024 19:10:23 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; none X-Catflap-Envelope-From: Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [209.250.224.51]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 404JAMN9083613; Thu, 4 Jan 2024 19:10:22 GMT (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 404JAMVE083612; Thu, 4 Jan 2024 19:10:22 GMT (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202401041910.404JAMVE083612@donotpassgo.dyslexicfish.net> Date: Thu, 04 Jan 2024 19:10:22 +0000 Organization: Dyslexic Fish To: jamie@catflap.org, brooks@FreeBSD.org Cc: yuri@FreeBSD.org, freebsd-current@FreeBSD.org, dvl@FreeBSD.org, brooks@FreeBSD.org Subject: Re: git repo port issues? References: <202401031913.403JDZBt028036@donotpassgo.dyslexicfish.net> <202401032252.403Mq4qV034510@donotpassgo.dyslexicfish.net> In-Reply-To: User-Agent: Heirloom mailx 12.4 7/29/08 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [209.250.224.51]); Thu, 04 Jan 2024 19:10:22 +0000 (GMT) X-Rspamd-Queue-Id: 4T5bl40lbBz4tyx X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:7400::/38, country:US] Brooks Davis wrote: > The dates are just strings in the commits. There's no central commit > queue to rewrite the commits with new dates. The project could someday > implment such a thing, but we deemed anything like that out of scope for > the first phase of the migration. > > I do fine it quite annoying that the project has not implemented a check > to monotonize CommitDate. Once upon a time clock drift between commit > hosts might have been a concern, but hosts that can't stay in sync have > no business committing directly. (I'd even be in favor of requiring the same > for Date, effectively requiring rebase --ignore-date before each push, > but there's much less concensus for that.) > > > Anyway, I think some sanity checking would be good. If nothing else, this > > sort of thing breaks "git log": > > > > # git log --since=2023-02-02 --format="%cd %s %cn - %cd" > > Wed Jan 3 17:08:58 2024 -0500 editors/cudatext: Update to 1.206.5 Jose Alonso Cardenas Marquez - Wed Jan 3 17:08:58 2024 -0500 > > Thu Jan 4 06:59:31 2024 +0900 net/qrcp: update to 0.11.1 Hiroki Tagato - Thu Jan 4 06:59:31 2024 +0900 > > Wed Jan 3 16:54:47 2024 -0500 lang/fpc-devel: Update to 3.3.1.20240103 Jose Alonso Cardenas Marquez - Wed Jan 3 16:54:47 2024 -0500 > > Wed Jan 3 16:54:46 2024 -0500 lang/fpc: fix stage-qa fails Jose Alonso Cardenas Marquez - Wed Jan 3 16:54:46 2024 -0500 > > Wed Jan 3 16:53:33 2024 -0500 sysutils/acpi_call: Check for errors from copyout() Mark Johnston - Wed Jan 3 16:53:33 2024 -0500 > > Wed Jan 3 15:37:13 2024 -0600 math/octave-forge-statistics-resampling: Update to 5.5.3. Stephen Montgomery-Smith - Wed Jan 3 15:37:13 2024 -0600 > > Wed Jan 3 23:00:58 2024 +0300 math/z3: Unbreak on i386 Gleb Popov - Wed Jan 3 23:00:58 2024 +0300 > > Wed Jan 3 20:52:14 2024 +0100 devel/mongo-c-driver: Use USE_GITHUB helper and always use (lib)utf8proc from ports Daniel Engberg - Wed Jan 3 20:52:14 2024 +0100 > > Wed Jan 3 22:26:11 2024 +0300 lang/ghc: Unbreak GHC 9.2 on AArch64, refresh bootstraps. Gleb Popov - Wed Jan 3 22:26:11 2024 +0300 > > > > Note how I specified February 2023, yet the output stops as soon as it > > reaches the recent entry with the rogue date. > > > > That makes the results corrupt, which may affect other things along the line. > > > > I notice the front page of Freshports doesn't even show the offending entries > > in the list of recent commits, for example, whilst the individual port pages > > shows the commits in the "wrong" order (i.e. the commits are displayed in > > the perceived chronalogical order) > > Any general git tool or workflow that depends on dates being ordered > can not work completely reliably. git log has the --since-as-filter to > try to work around this, but even that is questionable since the dates > are just a polite fiction without some sort of server-side enforcement. > > It's more stable and reliable to do something commit based like > > git log ..HEAD > > -- Brooks > > From freebsd-current+bounces-5248-freebsd-lists=dyslexicfish.net@FreeBSD.org Wed Jan 3 23:26:23 2024 > Date: Wed, 3 Jan 2024 23:26:01 +0000 > From: Brooks Davis > To: Jamie Landeg-Jones > Cc: brooks@FreeBSD.org, dvl@FreeBSD.org, yuri@FreeBSD.org, > freebsd-current@FreeBSD.org > Subject: Re: git repo port issues? > X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [209.250.224.51]); Wed, 03 Jan 2024 23:26:23 +0000 (GMT) > > On Wed, Jan 03, 2024 at 10:52:04PM +0000, Jamie Landeg-Jones wrote: > > Brooks Davis wrote: > The dates are just strings in the commits. There's no central commit > queue to rewrite the commits with new dates. The project could someday > implment such a thing, but we deemed anything like that out of scope for > the first phase of the migration. Ok, thanks for the clarification. > I do fine it quite annoying that the project has not implemented a check > to monotonize CommitDate. Once upon a time clock drift between commit > hosts might have been a concern, but hosts that can't stay in sync have > no business committing directly. (I'd even be in favor of requiring the same > for Date, effectively requiring rebase --ignore-date before each push, > but there's much less concensus for that.) [ ... ] > Any general git tool or workflow that depends on dates being ordered > can not work completely reliably. git log has the --since-as-filter to > try to work around this, but even that is questionable since the dates > are just a polite fiction without some sort of server-side enforcement. I had a look at the documentation on since-as-filter - thanks, I understand the issue now. Yeah, that option isn't suitable for large repos, as the whole commit history has to be scanned, and as you say the actual values are potentially meaningless. A shame, I find update dates incredibly useful - far more than meaningless commit hashes! Anyway, seeing as the FreeBSD.org repo is the "main" repo in the FreeBSD use case, if it was me, I'd patch it to ignore the user sent commit-date, and use the local system date in its place, but obviously I don't know the use cases and requirements like you guys do. Still, I'm working on my campaign to get (at least) cgit date-aware for files :-) - https://cgit.dyslexicfish.net/ports/latest/tree/ - https://cgit.dyslexicfish.net/src/current/tree/ > git log ..HEAD Thanks for the info. It's helped me a lot in my understanding of things. Cheers, Jamie