From nobody Tue Oct 1 19:37:45 2024 X-Original-To: git@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 4XJ7WZ0W8Mz5YGpx for ; Tue, 01 Oct 2024 19:37:46 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJ7WY75LVz4ffs; Tue, 1 Oct 2024 19:37:45 +0000 (UTC) (envelope-from brooks@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727811466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uOVOY1q7szr1LdBnzun7R/djcEVskg92OGj95atckMM=; b=fxngKCgV+HHhVnsmuLXJxyb0rGdIje35q0PJ/PH/P75ng1MH5jgFKJrbUvDIvOLgJFWtCb Fy1ySVE7iKs6hAoBig6ApDkdLfhVq482inKOD1C44TXMSFZCGWg6cnk5huW8xPHsY8FVzY p60jEUlH6tEEtQ1l0D0IcAOK4cfdf2akrUZS5bsmgOGaFm92g3Ivq9w3gi1viKaslLfDFH A8cpF/nyVjiCcaxIzNN3wuX1aEstsLYhT7tSQRusPxM4UXVPmwGCI2fhb6DpOJ5vFujdVE eyOq+ay9tFUfd4twGr6y157I81JKh225NbuPX0SL3q6ZTcymGQgnGweAceNzsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727811466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uOVOY1q7szr1LdBnzun7R/djcEVskg92OGj95atckMM=; b=J/P6slqto5kD5wHbya+Y04hHAsqDzS8Yg1PUpHVCmUJIrGcnfBULlM9YMQCvve2N1xq3XR ebH5f5uYea337RmWdPCkdbjsfqLXXL2IffRGbkwb0Ygd8rvG+m3vuhTFv4f8s7tKuUs8Xf cc3sKIXZorWaol2I+YAkyRnBRngGIvxomSnVjCVjTQYuTw980Qq63IT65tumKVW0Hz/A+a kPr2RqlxkzfGYJWDyXsvLsxVJ0MDb2lnwu2mIEXMW6ZjnMbITSUo13fN/p76QGRwCCYTzN MqF1AEAB/vXin/5FCctcAbGXDkpZwv8Hl+Pko/u+Y57VK3WwucIDjdwincPUOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727811466; a=rsa-sha256; cv=none; b=lPP5CgsewfZJPMDxHg6c39Z0W00q9ns9oHeXPByNtIOP/RE38DGQudIjliCt7VxQ1FJlmQ LaeKwKvufgbCiKy1YOMqzF6sRE3WK1OVfd2e4lzVt5WtjsGWciLh55oJ1j6g40bq9Ji29V c0omXx3bcuDv4rslk4rPKIv+Ii2uGqLdqwMJG7gRfMrddusLtUgoYo9lKH72Y7XPrh7Ogt 0nCHSSCNin1Un8sEEsHS1Nk6opSHDr+dhouysljseJR3gPL4okfQE6SqoRqPl2chvjagZj ywD8TX1Po0wExlBk7bSWtN0nyPsZh88f20/bHxxRTrtG0V/yE8CDoMyaZOFl6A== Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: brooks/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XJ7WY6ZKwz1CZL; Tue, 1 Oct 2024 19:37:45 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 9C5543C019B; Tue, 01 Oct 2024 19:37:45 +0000 (UTC) Date: Tue, 1 Oct 2024 19:37:45 +0000 From: Brooks Davis To: Matthias Fechner Cc: Dave Cottlehuber , git@freebsd.org Subject: Re: Impossible to push my ports directory to my CI/CD pipeline Message-ID: References: <483fb132-0d1c-443a-9b44-b7f2f087fb3d@freebsd.org> List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Oct 01, 2024 at 07:04:17PM +0000, Brooks Davis wrote: > On Tue, Oct 01, 2024 at 12:00:30PM +0300, Matthias Fechner wrote: > > Hi Dave, > > > > Am 01.10.2024 um 10:04 schrieb Dave Cottlehuber: > > > I'm curious why you use the `lfs` here, I guess its just to > > > show lfs-related issues, and normally you don't use it? > > > > > > Anyway on a fresh checkout, this works fine: > > > > > > git clone -vv git@gitrepo.freebsd.org:ports.git -b main ports > > > > > > trying `git lfs clone ...` reports: > > > > > > WARNING: 'git lfs clone' is deprecated and will not be updated > > > with new flags from 'git clone' > > > > > > but also has no issues. > > > > > > In either case, `git lfs ls-files` shows nothing. > > > > > > It's not clear to me how git "knows" about lfs, but there are > > > a bunch of XDG_DIR config files that may impact this, viz: > > > > > > https://git-scm.com/docs/gitattributes > > > > > > > If I now try to push to my local repo I get: > > > > > > > > git push origin > > > > Warning: untrusted X11 forwarding setup failed: xauth key data not generated > > > > Locking support detected on remote "origin". Consider enabling it with: > > > > ?? $ git config > > > > lfs.https://gitlab.fechner.net/mfechner/Gitlab.git/info/lfs.locksverify true > > > > Unable to find source for object > > > > 99a670c083e000008ee29dd972b60cbad6ade1d6ec024b30ff45f41da3d19e1d (try > > > My current thinking is there's nothing (as yet) obviously wrong with > > > FreeBSD's git repos, but there's possibly something interacting with gitlab. > > > > > > Can you create a new github repo, and try pushing your ports tree to that, > > > to see if it sees the same issue? > > > > > > Given I can't replicate this here, perhaps there is a $SOMEWHERE}/.config/git/attributes > > > or similar /config file that influences git tooling? > > > > > > I just did a fresh clone: > > git clone git@gitrepo.freebsd.org:ports.git > > > > cd ports > > > > git lfs ls-files --all > > 6d0aef4ba9 - java/eclipse/files/addons/eclipse.platform.swt/binaries/org.eclipse.swt.gtk.freebsd.aarch64/libswt-atk-gtk-4965r11.so > > ed324ddc16 - java/eclipse/files/addons/eclipse.platform.swt/binaries/org.eclipse.swt.gtk.freebsd.aarch64/libswt-awt-gtk-4965r11.so > ... > > > > > > > > so it seems that there is something in the FreeBSD repository. This can maybe > > get only fixed be rewrite the git history, but lets see, I'm currently not > > sure as no one else is seeing this... > > Hmm, this is quite bizzare. It looks like running `git lfs ls-files --all` > causes the repo to be lfs enabled and adds the following to the > .git/config file: > > [lfs] > repositoryformatversion = 0 > > That's surprising and a bit annoying. > > I also see those files listed and they don't exist in the current > checkout. > > Digging further the following commit introduced lfs files: > > commit c94e4ced329298efb06189d1c6db26e3d6ff3eef > Author: Vladimir Druzenko > Date: Fri Sep 13 15:54:52 2024 +0300 > > java/eclipse: fix build consumer devel/subversive, commit files > ignored with .gitignore > <...> > > > This commit removed them, but they are still in history so anything that > checks that the full history is intact is now broken: > > commit 3ec21e417cd5752c96b88587a5a605567ba5cd19 > Author: Norbert Grundmann > Date: Fri Sep 20 03:14:47 2024 +0300 > > java/eclipse: Remove unnecessary *.so files > <...> I've done some searching at it looks like there are gitlab options to disable the various checks. I don't admin any gitlab instances so don't know how to translate this into something you can use, but: https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/lib/gitlab/checks/lfs_check.rb?ref_type=heads seems to show an lfs_check.objects_missing knob to disable the precommit check. You might also need to disable some lfs integrity checks. -- Brooks