All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Steinhardt <ps@pks.im>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Karthik Nayak <karthik.188@gmail.com>
Subject: Re: [PATCH] gitlab-ci: fix "check" jobs with large merge requests
Date: Mon, 19 Oct 2026 08:56:06 +0200	[thread overview]
Message-ID: <atW_BmTQhxFRLc0a@pks.im> (raw)
In-Reply-To: <xmqqtsmlftwy.fsf@gitster.g>

On Fri, Oct 16, 2026 at 10:15:57AM -0700, Junio C Hamano wrote:
> Patrick Steinhardt <ps@pks.im> writes:
> 
> > The "check-whitespace" and "check-style" jobs verify that the changes
> > proposed by a merge request don't introduce whitespace errors or style
> > violations. To do so, both of them compare against the base commit of
> > the merge request.
> >
> > But both GitHub and GitLab use shallow clones to set up the repository
> > in CI jobs by default. So if the base commit to compare against is
> > beyond the shallow boundary then these checks will fail. To avoid that
> > error we thus configure GitHub CI to disable shallow clones via
> > `fetch-depth: 0`. But we don't do the equivalent for GitLab, so we see
> > such errors whenever we have a merge request with more than 50 commits,
> > which is the configured shallowness for gitlab-org/git.
> >
> > Fix these issues by setting GIT_DEPTH to 0 for both jobs so that we
> > always fetch the full history.
> 
> Hmph, that is annoying.  In theory, you only need to fetch from the
> base that the patch series is designed to apply, but I guess that is
> not a choice offered.

No, unfortunately it's not.

> How much help are we really getting from these two jobs, by the way?
> If we disabled them, would we suddenly start seeing uncontrollable
> amount of crap patches full of whitespace breakages and style
> violations?

I tend to ignore those myself:

  - "check-style" is not all that useful as we don't fully submit us to
    clang-format's style, so whatever it generates is not authoritative
    anyway.

  - "check-whitespace" was quite useless to me because it breaks rather
    frequently.

I still think that "check-style" _could_ be useful, but only if we fully
commit to clang-format. It would remove a whole class of nitpicks
and thus reduce the burden on both newcomers and reviewers. But that's a
discussion I don't really want to lead :)

Patrick

  reply	other threads:[~2026-10-19  6:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-16 14:48 [PATCH] gitlab-ci: fix "check" jobs with large merge requests Patrick Steinhardt
2026-10-16 17:15 ` Junio C Hamano
2026-10-19  6:56   ` Patrick Steinhardt [this message]
2026-10-19 18:51     ` Karthik Nayak
2026-10-19 20:09     ` Junio C Hamano
2026-10-20  5:58       ` Patrick Steinhardt

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=atW_BmTQhxFRLc0a@pks.im \
    --to=ps@pks.im \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=karthik.188@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.