All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ci: only run win+VS build & tests in Git for Windows' fork
@ 2022-12-19 14:50 Johannes Schindelin via GitGitGadget
  2022-12-19 15:04 ` Phillip Wood
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Johannes Schindelin via GitGitGadget @ 2022-12-19 14:50 UTC (permalink / raw)
  To: git
  Cc: avarab, phillip.wood, peff, me, phillip.wood123,
	Johannes Schindelin, Johannes Schindelin

From: Johannes Schindelin <johannes.schindelin@gmx.de>

It has been a frequent matter of contention that the win+VS jobs not
only take a long time to run, but are also more easily broken than the
other jobs (because they do not use the same `Makefile`-based builds as
all other jobs), and to make matters worse, these breakages are also
much harder to diagnose and fix than other jobs', especially for
contributors who are happy to stay away from Windows.

The purpose of these win+VS jobs is to maintain the CMake-based build
of Git, with the target audience being Visual Studio users on Windows
who are typically quite unfamiliar with `make` and POSIX shell
scripting, but the benefit of whose expertise we want for the Git
project nevertheless.

The CMake support was introduced for that specific purpose, and already
early on concerns were raised that it would put an undue burden on
contributors to ensure that these jobs pass in CI, when they do not have
access to Windows machines (nor want to have that).

This developer's initial hope was that it would be enough to fix win+VS
failures and provide the changes to be squashed into contributors'
patches, and that it would be worth the benefit of attracting
Windows-based developers' contributions.

Neither of these hopes have panned out.

To lower the frustration, and incidentally benefit from using way less
build minutes, let's just not run the win+VS jobs by default, which
appears to be the consensus of the mail thread leading up to
https://lore.kernel.org/git/xmqqk0311blt.fsf@gitster.g/

Since the Git for Windows project still needs to at least try to attract
more of said Windows-based developers, let's keep the jobs, but disable
them everywhere except in Git for Windows' fork. This will help because
Git for Windows' branch thicket is "continuously rebased" via automation
to the `shears/maint`, `shears/main`, `shears/next` and `shears/seen`
branches at https://github.com/git-for-windows/git. That way, the Git
for Windows project will still be notified early on about potential
breakages, but the Git project won't be burdened with fixing them
anymore, which seems to be the best compromise we can get on this issue.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
    Explicitly make CMake-based CI failures the responsibility of "Windows
    folks"
    
    Ævar and I have brain-stormed off-list what would be the best way to
    resolve the mounting frustration with CI failures that are caused by
    needing to mirror Makefile changes into the CMake-based build, a burden
    that the Git project never wanted to bear.
    
    While he still wants to improve the CMake support (which will benefit
    Git for Windows), the main driver of trying to extend CMake support to
    Linux (which does not need it because make works very well there,
    indeed) was said frustration with CI failures.
    
    A much quicker method to reduce that friction to close to nil is to
    simply disable the win+VS jobs, which is what this proposal is about.
    (Almost, at least, we still want to keep those job definitions and run
    them in Git for Windows' fork to ensure that CMake-based builds still
    work.)
    
    A very welcome side effect is to reduce the CI build time again, which
    became alarmingly long as of recent, causing friction on its own.

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1445%2Fdscho%2Fonly-run-win%2BVS-in-the-git-for-windows-fork-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1445/dscho/only-run-win+VS-in-the-git-for-windows-fork-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1445

 .github/workflows/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index e67847a682c..8af3c67f605 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -132,7 +132,7 @@ jobs:
   vs-build:
     name: win+VS build
     needs: ci-config
-    if: needs.ci-config.outputs.enabled == 'yes'
+    if: github.event.repository.owner.login == 'git-for-windows' && needs.ci-config.outputs.enabled == 'yes'
     env:
       NO_PERL: 1
       GIT_CONFIG_PARAMETERS: "'user.name=CI' 'user.email=ci@git'"

base-commit: c48035d29b4e524aed3a32f0403676f0d9128863
-- 
gitgitgadget

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-12-20  9:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19 14:50 [PATCH] ci: only run win+VS build & tests in Git for Windows' fork Johannes Schindelin via GitGitGadget
2022-12-19 15:04 ` Phillip Wood
2022-12-19 17:49 ` Ævar Arnfjörð Bjarmason
2022-12-20  9:35   ` Johannes Schindelin
2022-12-20  0:52 ` Junio C Hamano

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.