<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/ci, branch v2.37.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.37.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.37.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2022-06-17T17:33:32Z</updated>
<entry>
<title>Merge branch 'js/ci-github-workflow-markup'</title>
<updated>2022-06-17T17:33:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-06-17T17:33:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d0d96b8280faf7c22c115374732f50972689c0d2'/>
<id>urn:sha1:d0d96b8280faf7c22c115374732f50972689c0d2</id>
<content type='text'>
Recent CI update hides certain failures in test jobs, which has
been corrected.

* js/ci-github-workflow-markup:
  ci(github): also mark up compile errors
  ci(github): use grouping also in the `win-build` job
  ci(github): bring back the 'print test failures' step
</content>
</entry>
<entry>
<title>ci(github): also mark up compile errors</title>
<updated>2022-06-13T16:58:42Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2022-06-13T13:13:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cadcafc3311de7f6fae5f3add10cde4f93268ff8'/>
<id>urn:sha1:cadcafc3311de7f6fae5f3add10cde4f93268ff8</id>
<content type='text'>
When GCC produces those helpful errors, we will want to present them in
the GitHub workflow runs in the most helpful manner. To that end, we
want to use workflow commands to render errors and warnings:
https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions

In the previous commit, we ensured that grouping is used for the build
in all jobs, and this allows us to piggy-back onto the `group` function
to transmogrify the output.

Note: If `set -o pipefail` was available, we could do this in a little
more elegant way. But since some of the steps are run using `dash`, we
have to do a little `{ ...; echo $? &gt;exit.status; } | ...` dance.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ci(github): use grouping also in the `win-build` job</title>
<updated>2022-06-13T16:58:41Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2022-06-13T13:13:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=df5fed9c34a394b55194b3fb69413bcc4c76fd64'/>
<id>urn:sha1:df5fed9c34a394b55194b3fb69413bcc4c76fd64</id>
<content type='text'>
We already do the same when building Git in all the other jobs.

This will allow us to piggy-back on top of grouping to mark up compiler
errors in the next commit.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ci(github): bring back the 'print test failures' step</title>
<updated>2022-06-08T23:12:37Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2022-06-08T10:43:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5aeb145780ffdfd516ad6fa697e7e14ba29be0bf'/>
<id>urn:sha1:5aeb145780ffdfd516ad6fa697e7e14ba29be0bf</id>
<content type='text'>
Git now shows better information in the GitHub workflow runs when a test
case failed. However, when a test case was implemented incorrectly and
therefore does not even run, nothing is shown.

Let's bring back the step that prints the full logs of the failed tests,
and to improve the user experience, print out an informational message
for readers so that they do not have to know/remember where to see the
full logs.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/ci-github-workflow-markup'</title>
<updated>2022-06-07T21:10:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-06-07T21:10:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fc5a070f591c2114a6e55b4fe3395f79e93699bb'/>
<id>urn:sha1:fc5a070f591c2114a6e55b4fe3395f79e93699bb</id>
<content type='text'>
Update the GitHub workflow support to make it quicker to get to the
failing test.

* js/ci-github-workflow-markup:
  ci: call `finalize_test_case_output` a little later
  ci(github): mention where the full logs can be found
  ci: use `--github-workflow-markup` in the GitHub workflow
  ci(github): avoid printing test case preamble twice
  ci(github): skip the logs of the successful test cases
  ci: optionally mark up output in the GitHub workflow
  ci/run-build-and-tests: add some structure to the GitHub workflow output
  ci: make it easier to find failed tests' logs in the GitHub workflow
  ci/run-build-and-tests: take a more high-level view
  test(junit): avoid line feeds in XML attributes
  tests: refactor --write-junit-xml code
  ci: fix code style
</content>
</entry>
<entry>
<title>Merge branch 'jx/l10n-workflow-change'</title>
<updated>2022-06-03T21:30:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-06-03T21:30:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=28db3b7b71c25e87cf7eed5406a1a1052311d330'/>
<id>urn:sha1:28db3b7b71c25e87cf7eed5406a1a1052311d330</id>
<content type='text'>
A workflow change for translators are being proposed.

* jx/l10n-workflow-change:
  l10n: Document the new l10n workflow
  Makefile: add "po-init" rule to initialize po/XX.po
  Makefile: add "po-update" rule to update po/XX.po
  po/git.pot: don't check in result of "make pot"
  po/git.pot: this is now a generated file
  Makefile: remove duplicate and unwanted files in FOUND_SOURCE_FILES
  i18n CI: stop allowing non-ASCII source messages in po/git.pot
  Makefile: have "make pot" not "reset --hard"
  Makefile: generate "po/git.pot" from stable LOCALIZED_C
  Makefile: sort source files before feeding to xgettext
</content>
</entry>
<entry>
<title>Merge branch 'js/use-builtin-add-i'</title>
<updated>2022-05-31T06:24:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-05-31T06:24:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1fc1879839242dbb1a378888b68493cbb04b07e0'/>
<id>urn:sha1:1fc1879839242dbb1a378888b68493cbb04b07e0</id>
<content type='text'>
"git add -i" was rewritten in C some time ago and has been in
testing; the reimplementation is now exposed to general public by
default.

* js/use-builtin-add-i:
  add -i: default to the built-in implementation
  t2016: require the PERL prereq only when necessary
</content>
</entry>
<entry>
<title>i18n CI: stop allowing non-ASCII source messages in po/git.pot</title>
<updated>2022-05-26T17:30:28Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-05-26T14:50:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6dd9a91c324a696a0d547ff57c1fc7f4e5e9938c'/>
<id>urn:sha1:6dd9a91c324a696a0d547ff57c1fc7f4e5e9938c</id>
<content type='text'>
In the preceding commit we moved away from using xgettext(1) to both
generate the po/git.pot, and to merge the incrementally generated
po/git.pot+ file as we sourced translations from C, shell and Perl.

Doing it this way, which dates back to my initial
implementation[1][2][3] was conflating two things: With xgettext(1)
the --from-code both controls what encoding is specified in the
po/git.pot's header, and what encoding we allow in source messages.

We don't ever want to allow non-ASCII in *source messages*, and doing
so has hid e.g. a buggy message introduced in
a6226fd772b (submodule--helper: convert the bulk of cmd_add() to C,
2021-08-10) from us, we'd warn about it before, but only when running
"make pot", but the operation would still succeed. Now we'll error out
on it when running "make pot".

Since the preceding Makefile changes made this easy: let's add a "make
check-pot" target with the same prerequisites as the "po/git.pot"
target, but without changing the file "po/git.pot". Running it as part
of the "static-analysis" CI target will ensure that we catch any such
issues in the future. E.g.:

    $ make check-pot
        XGETTEXT .build/pot/po/builtin/submodule--helper.c.po
    xgettext: Non-ASCII string at builtin/submodule--helper.c:3381.
              Please specify the source encoding through --from-code.
    make: *** [.build/pot/po/builtin/submodule--helper.c.po] Error 1

1. cd5513a7168 (i18n: Makefile: "pot" target to extract messages
   marked for translation, 2011-02-22)
2. adc3b2b2767 (Makefile: add xgettext target for *.sh files,
   2011-05-14)
3. 5e9637c6297 (i18n: add infrastructure for translating Git with
   gettext, 2011-11-18)

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Jiang Xin &lt;zhiyou.jx@alibaba-inc.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ci(github): mention where the full logs can be found</title>
<updated>2022-05-21T23:25:56Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2022-05-21T22:18:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aeea0084a0d72410422e5a4dccda5829240a5fc1'/>
<id>urn:sha1:aeea0084a0d72410422e5a4dccda5829240a5fc1</id>
<content type='text'>
The full logs are contained in the `failed-tests-*.zip` artifacts that
are attached to the failed CI run. Since this is not immediately
obvious to the well-disposed reader, let's mention it explicitly.

Suggested-by: Victoria Dye &lt;vdye@github.com&gt;
Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ci: use `--github-workflow-markup` in the GitHub workflow</title>
<updated>2022-05-21T23:25:56Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2022-05-21T22:18:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0068c82a13d321b567cade0309eff8421bb2358d'/>
<id>urn:sha1:0068c82a13d321b567cade0309eff8421bb2358d</id>
<content type='text'>
This makes the output easier to digest.

Note: since workflow output currently cannot contain any nested groups
(see https://github.com/actions/runner/issues/802 for details), we need
to remove the explicit grouping that would span the entirety of each
failed test script.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
