{"thread":{"id":"59052","subject":"Github actions failing","startedAt":"2023-01-08T10:03:06Z","lastAt":"2023-01-09T13:03:20Z","messageCount":7,"participants":["NSENGIYUMVA WILBERFORCE","Christian Couder","Andreas Schwab"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"469911","messageId":"CA+PPyiG=+rs_bOQbaNB311_DVdSc2g44SkLzpaqOER7rfxykrQ@mail.gmail.com","threadId":"59052","inReplyTo":null,"subject":"Github actions failing","fromName":"NSENGIYUMVA WILBERFORCE","fromEmail":"nsengiyumvawilberforce@gmail.com","sentAt":"2023-01-08T10:02:50Z","receivedAt":"2023-01-08T10:03:06Z","isPatch":false,"sender":{"key":"nsengiyumvawilberforce@gmail.com","avatar":"https://avatars.githubusercontent.com/u/65920105?v=4"},"body":"Hi,\nSo I wanted to send the next patch after review.  All the tests pass\nwhen I run them on my PC but I get something like the following error\nwhen I test from my git branch\n>\n> + git checkout -b signed\n> 2283 Switched to a new branch 'signed'\n> 2284 + echo 1\n> 2285 + git add file\n> 2286 + test_tick\n> 2287 + test -z set\n> 2288 + test_tick=1112912113\n> 2289 + GIT_COMMITTER_DATE='1112912113 -0700'\n> 2290 + GIT_AUTHOR_DATE='1112912113 -0700'\n> 2291 + export GIT_COMMITTER_DATE GIT_AUTHOR_DATE\n> 2292 + git commit -S -m initial\n> 2293 error: cannot run gpg: No such file or directory\n> 2294 error: gpg failed to sign the data\n> 2295 fatal: failed to write commit object\n> 2296 error: last command exited with $?=128\n> 2297 not ok 338 - test bare signature atom\nWhat could be wrong?\n"},{"id":"469912","messageId":"CA+PPyiGEaJnwtPtD2XwJPWD_M_ze83p7sg33g9Pu24N6VZyjMA@mail.gmail.com","threadId":"59052","inReplyTo":"CA+PPyiG=+rs_bOQbaNB311_DVdSc2g44SkLzpaqOER7rfxykrQ@mail.gmail.com","subject":"Re: Github actions failing","fromName":"NSENGIYUMVA WILBERFORCE","fromEmail":"nsengiyumvawilberforce@gmail.com","sentAt":"2023-01-08T10:07:23Z","receivedAt":"2023-01-08T10:07:40Z","isPatch":false,"sender":{"key":"nsengiyumvawilberforce@gmail.com","avatar":"https://avatars.githubusercontent.com/u/65920105?v=4"},"body":"Hi,\nSo I wanted to send the next patch after review.  All the tests pass\nwhen I run them on my PC but I get something like the following error\nwhen I test from my git branch\n>\n> + git checkout -b signed\n> 2283 Switched to a new branch 'signed'\n> 2284 + echo 1\n> 2285 + git add file\n> 2286 + test_tick\n> 2287 + test -z set\n> 2288 + test_tick=1112912113\n> 2289 + GIT_COMMITTER_DATE='1112912113 -0700'\n> 2290 + GIT_AUTHOR_DATE='1112912113 -0700'\n> 2291 + export GIT_COMMITTER_DATE GIT_AUTHOR_DATE\n> 2292 + git commit -S -m initial\n> 2293 error: cannot run gpg: No such file or directory\n> 2294 error: gpg failed to sign the data\n> 2295 fatal: failed to write commit object\n> 2296 error: last command exited with $?=128\n> 2297 not ok 338 - test bare signature atom\n>\n> What could be wrong?\n\nThis is the branch:\nhttps://github.com/nsengiyumva-wilberforce/git/commits/signature10\n\n\nOn Sun, Jan 8, 2023 at 1:02 PM NSENGIYUMVA WILBERFORCE\n<nsengiyumvawilberforce@gmail.com> wrote:\n>\n> Hi,\n> So I wanted to send the next patch after review.  All the tests pass\n> when I run them on my PC but I get something like the following error\n> when I test from my git branch\n> >\n> > + git checkout -b signed\n> > 2283 Switched to a new branch 'signed'\n> > 2284 + echo 1\n> > 2285 + git add file\n> > 2286 + test_tick\n> > 2287 + test -z set\n> > 2288 + test_tick=1112912113\n> > 2289 + GIT_COMMITTER_DATE='1112912113 -0700'\n> > 2290 + GIT_AUTHOR_DATE='1112912113 -0700'\n> > 2291 + export GIT_COMMITTER_DATE GIT_AUTHOR_DATE\n> > 2292 + git commit -S -m initial\n> > 2293 error: cannot run gpg: No such file or directory\n> > 2294 error: gpg failed to sign the data\n> > 2295 fatal: failed to write commit object\n> > 2296 error: last command exited with $?=128\n> > 2297 not ok 338 - test bare signature atom\n> What could be wrong?\n"},{"id":"469923","messageId":"CAP8UFD2huFgTjB1hNGyGnMKPONOG6ZV-wvxWkTaz-iZNfxrhJA@mail.gmail.com","threadId":"59052","inReplyTo":"CA+PPyiG=+rs_bOQbaNB311_DVdSc2g44SkLzpaqOER7rfxykrQ@mail.gmail.com","subject":"Re: Github actions failing","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2023-01-08T18:17:31Z","receivedAt":"2023-01-08T18:18:18Z","isPatch":false,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Hi,\n\nOn Sun, Jan 8, 2023 at 11:07 AM NSENGIYUMVA WILBERFORCE\n<nsengiyumvawilberforce@gmail.com> wrote:\n>\n> Hi,\n> So I wanted to send the next patch after review.  All the tests pass\n> when I run them on my PC but I get something like the following error\n> when I test from my git branch\n> >\n> > + git checkout -b signed\n> > 2283 Switched to a new branch 'signed'\n> > 2284 + echo 1\n> > 2285 + git add file\n> > 2286 + test_tick\n> > 2287 + test -z set\n> > 2288 + test_tick=1112912113\n> > 2289 + GIT_COMMITTER_DATE='1112912113 -0700'\n> > 2290 + GIT_AUTHOR_DATE='1112912113 -0700'\n> > 2291 + export GIT_COMMITTER_DATE GIT_AUTHOR_DATE\n> > 2292 + git commit -S -m initial\n> > 2293 error: cannot run gpg: No such file or directory\n> > 2294 error: gpg failed to sign the data\n> > 2295 fatal: failed to write commit object\n> > 2296 error: last command exited with $?=128\n> > 2297 not ok 338 - test bare signature atom\n> What could be wrong?\n\nThere is the following in the above log:\n\n> 2293 error: cannot run gpg: No such file or directory\n\nso maybe gpg isn't installed on the test system.\n\nIt looks like the test you added doesn't have the \"GPG\" prerequisite. Compare:\n\n-> test_expect_success 'test bare signature atom'\n\nwith:\n\n-> test_expect_success GPG 'show good signature with custom format'\n\nThere is a \"GPG\" prerequisite in the latter but not the former.\n"},{"id":"469940","messageId":"CA+PPyiHOLUm87eHuxyhbqqML33Q6g-he_DKRxTEb2fu-2p3NSQ@mail.gmail.com","threadId":"59052","inReplyTo":"CAP8UFD2huFgTjB1hNGyGnMKPONOG6ZV-wvxWkTaz-iZNfxrhJA@mail.gmail.com","subject":"Re: Github actions failing","fromName":"NSENGIYUMVA WILBERFORCE","fromEmail":"nsengiyumvawilberforce@gmail.com","sentAt":"2023-01-09T04:40:07Z","receivedAt":"2023-01-09T04:42:20Z","isPatch":false,"sender":{"key":"nsengiyumvawilberforce@gmail.com","avatar":"https://avatars.githubusercontent.com/u/65920105?v=4"},"body":"> There is the following in the above log:\n>\n> > 2293 error: cannot run gpg: No such file or directory\n>\n> so maybe gpg isn't installed on the test system.\n>\n> It looks like the test you added doesn't have the \"GPG\" prerequisite. Compare:\n>\n> -> test_expect_success 'test bare signature atom'\n>\n> with:\n>\n> -> test_expect_success GPG 'show good signature with custom format'\n>\n> There is a \"GPG\" prerequisite in the latter but not the former.\n>\nThanks, I missed the GPG flag. Now I get the following after forcing\nthe push. I have been looking for the problem but I can't figure it\nout. I will be glad for any help\n>\n> git checkout -b signed &&\n> 1840 echo 1 >file && git add file &&\n> 1841 test_tick && git commit -S -m initial &&\n> 1842 git verify-commit signed 2>out &&\n> 1843 head -3 out >expected &&\n> 1844 tail -1 out >>expected &&\n> 1845 echo >>expected &&\n> 1846 git for-each-ref refs/heads/signed --format=\"%(signature)\" >actual &&\n> 1847 test_cmp actual expected\n> 1848\n> 1849 + git checkout -b signed\n> 1850 Switched to a new branch 'signed'\n> 1851 + echo 1\n> 1852 + git add file\n> 1853 + test_tick\n> 1854 + test -z set\n> 1855 + test_tick=1112912113\n> 1856 + GIT_COMMITTER_DATE=1112912113 -0700\n> 1857 + GIT_AUTHOR_DATE=1112912113 -0700\n> 1858 + export GIT_COMMITTER_DATE GIT_AUTHOR_DATE\n> 1859 + git commit -S -m initial\n> 1860 [signed 4dc4b90] initial\n> 1861 Author: A U Thor <author@example.com>\n> 1862 1 file changed, 1 insertion(+)\n> 1863 create mode 100644 file\n> 1864 + git verify-commit signed\n> 1865 + head -3 out\n> 1866 + tail -1 out\n> 1867 + echo\n> 1868 + git for-each-ref refs/heads/signed --format=%(signature)\n> 1869 + test_cmp actual expected\n> 1870 + test 2 -ne 2\n> 1871 + eval diff -u \"$@\"\n> 1872 + diff -u actual expected\n> 1873 --- actual 2023-01-08 19:40:42.169214115 +0000\n> 1874 +++ expected 2023-01-08 19:40:42.121213837 +0000\n> 1875 @@ -1,4 +1,5 @@\n> 1876 gpg: Signature made Sun Jan 8 19:40:42 2023 UTC\n> 1877 gpg: using DSA key 13B6F51ECDDE430D\n> 1878 +gpg: checking the trustdb\n> 1879 gpg: Good signature from \"C O Mitter <committer@example.com>\"\n> 1880\n> 1881 error: last command exited with $?=1\n> 1882 not ok 338 - test bare signature atom\n\n\n\n\nOn Sun, Jan 8, 2023 at 1:17 PM Christian Couder\n<christian.couder@gmail.com> wrote:\n>\n> Hi,\n>\n> On Sun, Jan 8, 2023 at 11:07 AM NSENGIYUMVA WILBERFORCE\n> <nsengiyumvawilberforce@gmail.com> wrote:\n> >\n> > Hi,\n> > So I wanted to send the next patch after review.  All the tests pass\n> > when I run them on my PC but I get something like the following error\n> > when I test from my git branch\n> > >\n> > > + git checkout -b signed\n> > > 2283 Switched to a new branch 'signed'\n> > > 2284 + echo 1\n> > > 2285 + git add file\n> > > 2286 + test_tick\n> > > 2287 + test -z set\n> > > 2288 + test_tick=1112912113\n> > > 2289 + GIT_COMMITTER_DATE='1112912113 -0700'\n> > > 2290 + GIT_AUTHOR_DATE='1112912113 -0700'\n> > > 2291 + export GIT_COMMITTER_DATE GIT_AUTHOR_DATE\n> > > 2292 + git commit -S -m initial\n> > > 2293 error: cannot run gpg: No such file or directory\n> > > 2294 error: gpg failed to sign the data\n> > > 2295 fatal: failed to write commit object\n> > > 2296 error: last command exited with $?=128\n> > > 2297 not ok 338 - test bare signature atom\n> > What could be wrong?\n>\n> There is the following in the above log:\n>\n> > 2293 error: cannot run gpg: No such file or directory\n>\n> so maybe gpg isn't installed on the test system.\n>\n> It looks like the test you added doesn't have the \"GPG\" prerequisite. Compare:\n>\n> -> test_expect_success 'test bare signature atom'\n>\n> with:\n>\n> -> test_expect_success GPG 'show good signature with custom format'\n>\n> There is a \"GPG\" prerequisite in the latter but not the former.\n"},{"id":"469959","messageId":"CAP8UFD23ObbQaeQi2WsZ3oy0QTKiBxs3wExaHTU2QzJBPwKOmA@mail.gmail.com","threadId":"59052","inReplyTo":"CA+PPyiHOLUm87eHuxyhbqqML33Q6g-he_DKRxTEb2fu-2p3NSQ@mail.gmail.com","subject":"Re: Github actions failing","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2023-01-09T09:22:01Z","receivedAt":"2023-01-09T09:24:12Z","isPatch":false,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"On Mon, Jan 9, 2023 at 5:40 AM NSENGIYUMVA WILBERFORCE\n<nsengiyumvawilberforce@gmail.com> wrote:\n\n> Thanks, I missed the GPG flag. Now I get the following after forcing\n> the push. I have been looking for the problem but I can't figure it\n> out. I will be glad for any help\n> >\n> > git checkout -b signed &&\n> > 1840 echo 1 >file && git add file &&\n> > 1841 test_tick && git commit -S -m initial &&\n> > 1842 git verify-commit signed 2>out &&\n> > 1843 head -3 out >expected &&\n> > 1844 tail -1 out >>expected &&\n> > 1845 echo >>expected &&\n> > 1846 git for-each-ref refs/heads/signed --format=\"%(signature)\" >actual &&\n> > 1847 test_cmp actual expected\n> > 1848\n> > 1849 + git checkout -b signed\n> > 1850 Switched to a new branch 'signed'\n> > 1851 + echo 1\n> > 1852 + git add file\n> > 1853 + test_tick\n> > 1854 + test -z set\n> > 1855 + test_tick=1112912113\n> > 1856 + GIT_COMMITTER_DATE=1112912113 -0700\n> > 1857 + GIT_AUTHOR_DATE=1112912113 -0700\n> > 1858 + export GIT_COMMITTER_DATE GIT_AUTHOR_DATE\n> > 1859 + git commit -S -m initial\n> > 1860 [signed 4dc4b90] initial\n> > 1861 Author: A U Thor <author@example.com>\n> > 1862 1 file changed, 1 insertion(+)\n> > 1863 create mode 100644 file\n> > 1864 + git verify-commit signed\n> > 1865 + head -3 out\n> > 1866 + tail -1 out\n> > 1867 + echo\n> > 1868 + git for-each-ref refs/heads/signed --format=%(signature)\n> > 1869 + test_cmp actual expected\n\nI think in general we prefer \"test_cmp expected actual\" over \"test_cmp\nactual expected\". I think it's easier to understand what happened with\nthe former.\n\nAlso most of the tests in t6300 are like \"test_cmp expected actual\":\n\n$ grep -c 'test_cmp expect' t6300-for-each-ref.sh\n67\n$ grep -c 'test_cmp actual' t6300-for-each-ref.sh\n1\n\n> > 1870 + test 2 -ne 2\n> > 1871 + eval diff -u \"$@\"\n> > 1872 + diff -u actual expected\n> > 1873 --- actual 2023-01-08 19:40:42.169214115 +0000\n> > 1874 +++ expected 2023-01-08 19:40:42.121213837 +0000\n> > 1875 @@ -1,4 +1,5 @@\n> > 1876 gpg: Signature made Sun Jan 8 19:40:42 2023 UTC\n> > 1877 gpg: using DSA key 13B6F51ECDDE430D\n> > 1878 +gpg: checking the trustdb\n\nThe + before \"gpg\" means that the above line is in what we expect, but\nnot in what we actually get.\n\nI think the reason might be that gpg's output could have changed\nbetween different versions of gpg and it might just not be possible\nand wise to rely on the exact output it emits.\n\nIn both t7510-signed-commit.sh t7528-signed-commit-ssh.sh for example,\nwe don't test the '%GG' format, and that might be the reason why.\n\nSo I see the following possibilities to overcome this issue:\n\n  - just drop the test you added for the %(signature) format\n  - find a way to require a specific version of gpg for that test\n(unfortunately I don't think our test framework allows that, so you\nwould have to add custom code to the test, and this is likely to\nbitrot as time passes and the required gpg version becomes unused)\n  - find a way to make the test independent of the gpg version (this\nmight bitrot too as new gpg versions might further change their\noutput)\n\n> > 1879 gpg: Good signature from \"C O Mitter <committer@example.com>\"\n> > 1880\n> > 1881 error: last command exited with $?=1\n> > 1882 not ok 338 - test bare signature atom\n"},{"id":"469961","messageId":"87pmbo2f2y.fsf@igel.home","threadId":"59052","inReplyTo":"CAP8UFD23ObbQaeQi2WsZ3oy0QTKiBxs3wExaHTU2QzJBPwKOmA@mail.gmail.com","subject":"Re: Github actions failing","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2023-01-09T10:10:45Z","receivedAt":"2023-01-09T10:13:01Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"On Jan 09 2023, Christian Couder wrote:\n\n>> > 1870 + test 2 -ne 2\n>> > 1871 + eval diff -u \"$@\"\n>> > 1872 + diff -u actual expected\n>> > 1873 --- actual 2023-01-08 19:40:42.169214115 +0000\n>> > 1874 +++ expected 2023-01-08 19:40:42.121213837 +0000\n>> > 1875 @@ -1,4 +1,5 @@\n>> > 1876 gpg: Signature made Sun Jan 8 19:40:42 2023 UTC\n>> > 1877 gpg: using DSA key 13B6F51ECDDE430D\n>> > 1878 +gpg: checking the trustdb\n>\n> The + before \"gpg\" means that the above line is in what we expect, but\n> not in what we actually get.\n>\n> I think the reason might be that gpg's output could have changed\n> between different versions of gpg and it might just not be possible\n> and wise to rely on the exact output it emits.\n\nI think the \"checking the trustdb\" message is time-dependent, as the\ntrustdb is normally updated only after some interval has passed.\nAccording to the gpg manpage, automatic trustdb checking can be\nsuppressed with --no-auto-check-trustdb.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1\n\"And now for something completely different.\"\n"},{"id":"469970","messageId":"CA+PPyiGo=DVwsCxQdKQD=irR1-KiJwpbZZqAz5ib9UB4XxBgwQ@mail.gmail.com","threadId":"59052","inReplyTo":"CAP8UFD23ObbQaeQi2WsZ3oy0QTKiBxs3wExaHTU2QzJBPwKOmA@mail.gmail.com","subject":"Re: Github actions failing","fromName":"NSENGIYUMVA WILBERFORCE","fromEmail":"nsengiyumvawilberforce@gmail.com","sentAt":"2023-01-09T13:01:20Z","receivedAt":"2023-01-09T13:03:20Z","isPatch":false,"sender":{"key":"nsengiyumvawilberforce@gmail.com","avatar":"https://avatars.githubusercontent.com/u/65920105?v=4"},"body":"> I think in general we prefer \"test_cmp expected actual\" over \"test_cmp\n> actual expected\". I think it's easier to understand what happened with\n> the former.\n>\n> Also most of the tests in t6300 are like \"test_cmp expected actual\":\n>\n> $ grep -c 'test_cmp expect' t6300-for-each-ref.sh\n> 67\n> $ grep -c 'test_cmp actual' t6300-for-each-ref.sh\n> 1\n>\n> > > 1870 + test 2 -ne 2\n> > > 1871 + eval diff -u \"$@\"\n> > > 1872 + diff -u actual expected\n> > > 1873 --- actual 2023-01-08 19:40:42.169214115 +0000\n> > > 1874 +++ expected 2023-01-08 19:40:42.121213837 +0000\n> > > 1875 @@ -1,4 +1,5 @@\n> > > 1876 gpg: Signature made Sun Jan 8 19:40:42 2023 UTC\n> > > 1877 gpg: using DSA key 13B6F51ECDDE430D\n> > > 1878 +gpg: checking the trustdb\n>\n> The + before \"gpg\" means that the above line is in what we expect, but\n> not in what we actually get.\n>\n> I think the reason might be that gpg's output could have changed\n> between different versions of gpg and it might just not be possible\n> and wise to rely on the exact output it emits.\n>\n> In both t7510-signed-commit.sh t7528-signed-commit-ssh.sh for example,\n> we don't test the '%GG' format, and that might be the reason why.\n>\n> So I see the following possibilities to overcome this issue:\n>\n>   - just drop the test you added for the %(signature) format\n>   - find a way to require a specific version of gpg for that test\n> (unfortunately I don't think our test framework allows that, so you\n> would have to add custom code to the test, and this is likely to\n> bitrot as time passes and the required gpg version becomes unused)\n>   - find a way to make the test independent of the gpg version (this\n> might bitrot too as new gpg versions might further change their\n> output)\n\nFrom your suggestions, I will consider removing it for now\n\n\nOn Mon, Jan 9, 2023 at 4:22 AM Christian Couder\n<christian.couder@gmail.com> wrote:\n>\n> On Mon, Jan 9, 2023 at 5:40 AM NSENGIYUMVA WILBERFORCE\n> <nsengiyumvawilberforce@gmail.com> wrote:\n>\n> > Thanks, I missed the GPG flag. Now I get the following after forcing\n> > the push. I have been looking for the problem but I can't figure it\n> > out. I will be glad for any help\n> > >\n> > > git checkout -b signed &&\n> > > 1840 echo 1 >file && git add file &&\n> > > 1841 test_tick && git commit -S -m initial &&\n> > > 1842 git verify-commit signed 2>out &&\n> > > 1843 head -3 out >expected &&\n> > > 1844 tail -1 out >>expected &&\n> > > 1845 echo >>expected &&\n> > > 1846 git for-each-ref refs/heads/signed --format=\"%(signature)\" >actual &&\n> > > 1847 test_cmp actual expected\n> > > 1848\n> > > 1849 + git checkout -b signed\n> > > 1850 Switched to a new branch 'signed'\n> > > 1851 + echo 1\n> > > 1852 + git add file\n> > > 1853 + test_tick\n> > > 1854 + test -z set\n> > > 1855 + test_tick=1112912113\n> > > 1856 + GIT_COMMITTER_DATE=1112912113 -0700\n> > > 1857 + GIT_AUTHOR_DATE=1112912113 -0700\n> > > 1858 + export GIT_COMMITTER_DATE GIT_AUTHOR_DATE\n> > > 1859 + git commit -S -m initial\n> > > 1860 [signed 4dc4b90] initial\n> > > 1861 Author: A U Thor <author@example.com>\n> > > 1862 1 file changed, 1 insertion(+)\n> > > 1863 create mode 100644 file\n> > > 1864 + git verify-commit signed\n> > > 1865 + head -3 out\n> > > 1866 + tail -1 out\n> > > 1867 + echo\n> > > 1868 + git for-each-ref refs/heads/signed --format=%(signature)\n> > > 1869 + test_cmp actual expected\n>\n> I think in general we prefer \"test_cmp expected actual\" over \"test_cmp\n> actual expected\". I think it's easier to understand what happened with\n> the former.\n>\n> Also most of the tests in t6300 are like \"test_cmp expected actual\":\n>\n> $ grep -c 'test_cmp expect' t6300-for-each-ref.sh\n> 67\n> $ grep -c 'test_cmp actual' t6300-for-each-ref.sh\n> 1\n>\n> > > 1870 + test 2 -ne 2\n> > > 1871 + eval diff -u \"$@\"\n> > > 1872 + diff -u actual expected\n> > > 1873 --- actual 2023-01-08 19:40:42.169214115 +0000\n> > > 1874 +++ expected 2023-01-08 19:40:42.121213837 +0000\n> > > 1875 @@ -1,4 +1,5 @@\n> > > 1876 gpg: Signature made Sun Jan 8 19:40:42 2023 UTC\n> > > 1877 gpg: using DSA key 13B6F51ECDDE430D\n> > > 1878 +gpg: checking the trustdb\n>\n> The + before \"gpg\" means that the above line is in what we expect, but\n> not in what we actually get.\n>\n> I think the reason might be that gpg's output could have changed\n> between different versions of gpg and it might just not be possible\n> and wise to rely on the exact output it emits.\n>\n> In both t7510-signed-commit.sh t7528-signed-commit-ssh.sh for example,\n> we don't test the '%GG' format, and that might be the reason why.\n>\n> So I see the following possibilities to overcome this issue:\n>\n>   - just drop the test you added for the %(signature) format\n>   - find a way to require a specific version of gpg for that test\n> (unfortunately I don't think our test framework allows that, so you\n> would have to add custom code to the test, and this is likely to\n> bitrot as time passes and the required gpg version becomes unused)\n>   - find a way to make the test independent of the gpg version (this\n> might bitrot too as new gpg versions might further change their\n> output)\n>\n> > > 1879 gpg: Good signature from \"C O Mitter <committer@example.com>\"\n> > > 1880\n> > > 1881 error: last command exited with $?=1\n> > > 1882 not ok 338 - test bare signature atom\n"}]}