From: Jeff King <peff@peff.net>
To: Patrick Steinhardt <ps@pks.im>
Cc: git@vger.kernel.org, Miguel Rincon Barahona <mrincon@gitlab.com>,
Kev Kloss <kkloss@gitlab.com>
Subject: Re: [PATCH] builtin/gc: provide hint when maintenance hits a stale schedule lock
Date: Fri, 22 Nov 2024 10:30:33 -0500 [thread overview]
Message-ID: <20241122153033.GA1737136@coredump.intra.peff.net> (raw)
In-Reply-To: <20241119-pks-maintenance-hint-with-stale-lock-v1-1-f9f9a98e12a0@pks.im>
On Tue, Nov 19, 2024 at 11:48:43AM +0100, Patrick Steinhardt wrote:
> diff --git a/t/t7900-maintenance.sh b/t/t7900-maintenance.sh
> index c224c8450c85f567bc29258e18b4a59fe6682f0a..6d6ffaaf376bdbadecdb23a460994af1d218dc19 100755
> --- a/t/t7900-maintenance.sh
> +++ b/t/t7900-maintenance.sh
> @@ -1011,4 +1011,12 @@ test_expect_success 'repacking loose objects is quiet' '
> )
> '
>
> +test_expect_success 'maintenance aborts with existing lock file' '
> + test_when_finished "rm -rf repo" &&
> + git init repo &&
> + : >repo/.git/objects/schedule.lock &&
> + test_must_fail git -C repo maintenance start 2>err &&
> + test_grep "Another scheduled git-maintenance(1) process seems to be running" err
> +'
This failed for me in all of the macos jobs of GitHub CI. Looks like the
err file contains:
fatal: launchctl scheduler is not available
So maybe it's a platform image issue?
-Peff
next prev parent reply other threads:[~2024-11-22 15:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-19 10:48 [PATCH] builtin/gc: provide hint when maintenance hits a stale schedule lock Patrick Steinhardt
2024-11-19 17:17 ` Justin Tobler
2024-11-22 15:30 ` Jeff King [this message]
2024-11-25 5:33 ` [PATCH] t7900: fix host-dependent behaviour when testing git-maintenance(1) Patrick Steinhardt
2024-11-25 11:52 ` Jeff King
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=20241122153033.GA1737136@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=kkloss@gitlab.com \
--cc=mrincon@gitlab.com \
--cc=ps@pks.im \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox