From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 202991F8C7 for ; Tue, 13 Jul 2021 15:11:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236987AbhGMPOH (ORCPT ); Tue, 13 Jul 2021 11:14:07 -0400 Received: from smtp.hosts.co.uk ([85.233.160.19]:48269 "EHLO smtp.hosts.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236978AbhGMPOG (ORCPT ); Tue, 13 Jul 2021 11:14:06 -0400 Received: from host-84-13-154-214.opaltelecom.net ([84.13.154.214] helo=[192.168.1.37]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1m3K42-0006xU-8q; Tue, 13 Jul 2021 16:11:15 +0100 Subject: Re: [PATCH 5/6] ci(vs-build): build with NO_GETTEXT To: Johannes Schindelin , =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= Cc: Dennis Ameling via GitGitGadget , git@vger.kernel.org, Dennis Ameling References: <87bl7i8ou8.fsf@evledraar.gmail.com> From: Philip Oakley Message-ID: <32d1ae55-669a-c71f-95f9-345fcd42eb87@iee.email> Date: Tue, 13 Jul 2021 16:11:14 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-GB Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On 13/07/2021 13:19, Johannes Schindelin wrote: > Hi Ævar, > > On Sun, 4 Jul 2021, Ævar Arnfjörð Bjarmason wrote: > >> On Wed, Jun 23 2021, Dennis Ameling via GitGitGadget wrote: >> >>> diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml >>> index 0f7516c9ef..3b40c677ab 100644 >>> --- a/.github/workflows/main.yml >>> +++ b/.github/workflows/main.yml >>> @@ -159,7 +159,7 @@ jobs: >>> shell: bash >>> run: | >>> cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/x64-windows \ >>> - -DMSGFMT_EXE=C:/git-sdk-64-minimal/mingw64/bin/msgfmt.exe -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON >>> + -DNO_GETTEXT=YesPlease -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON >>> - name: MSBuild >>> run: msbuild git.sln -property:Configuration=Release -property:Platform=x64 -maxCpuCount:4 -property:PlatformToolset=v142 >>> - name: bundle artifact tar >> To a first approximation isn't the point of CI to test a diversity of >> setups? > No, the point of CI is to find breakages. > > And in this instance, a careful analysis will reveal that the artifacts > generated via `msgfmt` are not even used, let alone tested. > > Even more careful analysis will reveal that Git for Windows does not ship > with translations. Therefore, it would be pointless to test the > translations here. Doubly so because Git for Windows is not even built > using MSVC, and this `vs-build` job is really about verifying that we can > build with that compiler, and _iff_ we used `msgfmt` here, it would not be > Visual Studio's (because it doesn't have any `msgfmt`) but the regular one > from Git for Windows' SDK. Triply so because the regular one from Git for > Windows' SDK _is actually used_ in the `windows-build` job, therefore we > _really_ do not need to repeat the same exercise with the same gettext > version and the same git/git revision in the same GitHub workflow run. > > In short: there is no diversity to be gained here. (Actually, that is not > quite true: by using gentler language on a first-time contributor instead > of immediately going into full critic mode without any fanfare, we could > have invited more diversity onto this list. Maybe you could pay more > attention to that in the future?) > > Back to the issue you pointed out: could this be described in the commit > message? Sure. But I think there is no much worth in it, the surrounding > code and parent commit makes it clear that the `.mo` files aren't used, > and that it would therefore be a waste of electrons to generate them in > each and every `vs-build` run. > > Ciao, > Johannes Folks, This problem (vcpkg/VS/CI build breakage for the tar artifact) has also just come up for me on https://github.com/git-for-windows/git/pull/3306#issuecomment-879093798 "[RFC] making Git for Windows start buildins in modern Visual Studio #3306" which is a similar build situation. Hopefully we can chose a suitable solution regarding what, if any, extra checks this part of the CI build ought to do with the (unused in this build) `.mo` files. -- Philip