From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS54825 147.75.48.0/24 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [147.75.48.161]) (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) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B110D1F44D for ; Thu, 28 Mar 2024 08:02:44 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=schinagl.nl header.i=@schinagl.nl header.a=rsa-sha256 header.s=7of9 header.b=TEMh627R; dkim-atps=neutral Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 57A0BB24A49 for ; Thu, 28 Mar 2024 08:02:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C100362172; Thu, 28 Mar 2024 08:01:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=schinagl.nl header.i=@schinagl.nl header.b="TEMh627R" Received: from 7of9.schinagl.nl (7of9.schinagl.nl [185.238.129.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A44C459B4E for ; Thu, 28 Mar 2024 08:01:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.238.129.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711612871; cv=none; b=HpzZit3trEcrZqOsitfkZJZKLAllTTHd2BfAcFE4oBHzH8a1wDOcen3r7S61k9bb5lIkVIHmIqi3WsW8TzWzVXkr6JjRPosyEdDIMppXVCf8XkTXd5wzlEoPr7f6vB8iO2O9ThTsyi0/Ycolps7droEjuXQE+Oe3dwpg6fg3/Sc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711612871; c=relaxed/simple; bh=OK6CzeI9iJSv6PzO3RH43YD+JlWlB2tQM7wLQ2Yf4LQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=c5Spa6+sNu+qAeBdCa8hM4ecTfDlhgm1Ty4DcqKzH1sXRxqSxrWNQrKvuK71N2powK2mvhJFE43P2WSPm4mJbtuwRiDtD0P2DiZtxcD+uNt01ks7000G8nOyXLF12J2mIGaG4LuA77llWeTsIjIwMQ9PSEYSm/SDLY/cTf3M4t8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=schinagl.nl; spf=pass smtp.mailfrom=schinagl.nl; dkim=pass (1024-bit key) header.d=schinagl.nl header.i=@schinagl.nl header.b=TEMh627R; arc=none smtp.client-ip=185.238.129.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=schinagl.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=schinagl.nl Received: from [10.2.12.77] (unknown [10.2.12.77]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by 7of9.schinagl.nl (Postfix) with ESMTPSA id 1DBCC1A06D5F; Thu, 28 Mar 2024 09:01:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=schinagl.nl; s=7of9; t=1711612864; bh=OK6CzeI9iJSv6PzO3RH43YD+JlWlB2tQM7wLQ2Yf4LQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=TEMh627RLrmiL4KvWB5hkwvORG010xfyRz6UvazCh2eNqy0hrFAvv7o0v6sSnqhsh J9ikvOX36CVDXmPT8/Y4TcVzoZh+oX9InJ9WiwamWSf/NGE7cLCDBiYKBDDCXFH+gL npD/gc577LYgHApQwwtu759YPFgtdh3aidnyyp+g= Message-ID: Date: Thu, 28 Mar 2024 09:01:03 +0100 Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Allow git bisect to auto-skip To: Junio C Hamano Cc: Christian Couder , Stefan Haller , git@vger.kernel.org References: <3d835c4b-d026-4c6a-b68e-6989a7a2065f@schinagl.nl> <01e09c64-4d62-406d-85fe-9fb77939cf63@haller-berlin.de> <7556a3de-a6a6-4284-8c36-3635ae43c653@schinagl.nl> Content-Language: nl From: Olliver Schinagl In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 27-03-2024 20:24, Junio C Hamano wrote: > Olliver Schinagl writes: > >> Anyway, want I was thinking of, based a key somewhere in the message >> body (GIT_BISECT_SKIP=1 for example), mark the commit in the list to >> be skipped, as `git bisect skip` would. This so the skipped commit >> actualyl ends up on the list of skipped commits >> (`refs/bisect/skip-*`). > I think it is very unlikely that we'd adopt any hardcoded scheme > that allows only one supported way of marking commits as not to be > tested. Certainly not the kind that the committer is forced to know > the commit must be skipped during a bisection session before > creating the commit. My goal is to make things work as automagically as possible, without special tooling or scripts. This to make the barrier for entry as low as possible. E.g. if someone says 'could you please bisect this for me', things should just work. Having said that, I also realize that the use-cases where a commit message would be enough are limited. There's only a very rare cases where it is known before hand a commit will break bisect. The `GIT_BISECT_SKIP=1` would obviously be configurable, so it could be set on a per-repo level, with a sane default, and probably wiser to use `git commit --skip-bisect` to make use of said flag. Having said all that, right now, I'm just exploring how things work, how easy it would be, how logical it would be. So for thank you for bearing with me :) > So I am not sure how much good it will do to > know that commit_list->item is a commit object on the list, or > calling repo_get_commit_buffer() on it would give the contents of > the commit object. > > Knowing that commit_list->item->object.oid is the object name of > such a commit, and calling oid_to_hex() on such an object name > stringifies it, should be sufficient to write a new code that calls > out to a script specified via "git bisect --skip-when=