Re: debugging test failures in reverse dependencies (Re: Build of Glow fails to load)
- To: Otto Kekäläinen <otto@debian.org>
- Cc: debian-go@lists.debian.org
- Subject: Re: debugging test failures in reverse dependencies (Re: Build of Glow fails to load)
- From: Nicolas Peugnet <nicolas@club1.fr>
- Date: Sun, 1 Dec 2024 16:08:58 +0100
- Message-id: <[🔎] 7ecad960-4713-4b64-9ddc-e590cd3ff4f0@club1.fr>
- In-reply-to: <CAOU6tAChP7=ATKDDtX2TDFrpMak9mQCyPNt+ujbxT03NRurugA@mail.gmail.com>
- References: <CAOU6tAD8oacpGvXx=RZx7sqg76+02uhW4+b1HK0TyRk_cDJsjw@mail.gmail.com> <f9f82565-bb07-4d7e-a965-08771d0da279@club1.fr> <CAOU6tAAb3D+jnp9zK5O9fJY5FTYnLf7nivMFaDPV78y_khtP7w@mail.gmail.com> <66501187-7038-4735-bf2f-df3a6cce27a5@riseup.net> <CAOU6tABGQtgBCNfF+Arfan5t2oDcqyX6=Bk0xOEU=Ng5dMNJ6Q@mail.gmail.com> <CAOU6tAD4BmJvvfccr-81hJ8xfAf1QqqKVfNDbKSZTVLWYbWZTQ@mail.gmail.com> <340a7290-547d-420f-9a0a-93f5bc19bfff@club1.fr> <CAOU6tAAg2Yqv=TdymKPmx5px=kTSaW02t5LbkyuhLE2rXtqx+w@mail.gmail.com> <8c93c400-d714-4c4f-8d68-47232560d83c@riseup.net> <CAOU6tAChP7=ATKDDtX2TDFrpMak9mQCyPNt+ujbxT03NRurugA@mail.gmail.com>
On 30/11/2024 3:59 AM, Otto Kekäläinen wrote:
About the reverse dependencies that actually fail now in
https://salsa.debian.org/otto/golang-github-charmbracelet-glamour/-/jobs/6673305
## dh-make-golang:
https://salsa.debian.org/otto/golang-github-charmbracelet-glamour/-/jobs/6673305
TestMarkdownToLongDescription seems to have a hard-coded description
from golang-github-charmbracelet-glamour. There is no way to
pre-emptively fix this? I guess I just need to upload and then after
that file PR to dh-make-golang to update the text.
As this is a native package, we can probably just update the test to
work with glamour v0.8. Here is the diff, it seems the wrapping
algorithm has changed:
$ diff before after
--- before 2024-12-01 16:03:55.587723034 +0100
+++ after 2024-12-01 16:03:45.691595613 +0100
@@ -9,10 +9,10 @@
.
1. Call glamour.Render(inputText, "desiredStyle")
2. Set the GLAMOUR_STYLE environment variable to your
desired default
- style or a file location for a style and call
- glamour.RenderWithEnvironmentConfig(inputText)
- 3. Set the GLAMOUR_STYLE environment variable and pass
- glamour.WithEnvironmentConfig() to your custom renderer
+ style or a file location for a style and call glamour.
+ RenderWithEnvironmentConfig(inputText)
+ 3. Set the GLAMOUR_STYLE environment variable and pass glamour.
+ WithEnvironmentConfig() to your custom renderer
.
Glamourous Projects
.
@@ -24,3 +24,4 @@
line tool.
* GLab (https://github.com/profclems/glab), An open source
GitLab
command line tool.
+
## gh: https://salsa.debian.org/otto/golang-github-charmbracelet-glamour/-/jobs/6673306
--- FAIL: Test_viewRun (0.01s)
--- FAIL: Test_viewRun/view_specific_release (0.01s)
--- FAIL: Test_viewRun/view_latest_release (0.00s)
--- PASS: Test_viewRun/view_machine-readable (0.00s)
--- PASS: Test_viewRun/view_machine-readable_but_body_has_no_ending_newline
(0.00s)
...
FAIL github.com/cli/cli/v2/pkg/cmd/release/view 0.070s
For gh, it looks like mainly whitespace differences (see the raw log
[2]), so I would probably simply add a patch to comment these tests out
while upstream continues to test against glamour v0.7, then drop the
patch if a newer release update these tests.
[1]
https://salsa.debian.org/otto/golang-github-charmbracelet-glamour/-/jobs/6673305/raw
[2]
https://salsa.debian.org/otto/golang-github-charmbracelet-glamour/-/jobs/6673306/raw
--
Nicolas Peugnet
Reply to: