Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: [email protected], 
[email protected]
Control: affects -1 + src:golang-github-henrybear327-go-proton-api
User: [email protected]
Usertags: pu

[ Reason ]
Fix two flaky tests.

[ Impact ]
Package may FTBFS.

[ Tests ]
I've checked that the package builds ok on the systems where it used to fail.

[ Risks ]
Very low. We are disabling a test in a _test file, and increasing a timeout 
value in a non _test file
in code which is otherwise only used by tests.

[ Checklist ]
  [X] *all* changes are documented in the d/changelog
  [X] I reviewed all changes and I approve them
  [X] attach debdiff against the package in (old)stable
  [X] the issue is verified as fixed in unstable

[ Changes ]
One flaky test has been disabled.
The other test has an increased timeout.

[ Other info ]
I will upload the package next.
diff -Nru golang-github-henrybear327-go-proton-api-1.0.0/debian/changelog 
golang-github-henrybear327-go-proton-api-1.0.0/debian/changelog
--- golang-github-henrybear327-go-proton-api-1.0.0/debian/changelog     
2025-01-02 08:50:23.000000000 +0100
+++ golang-github-henrybear327-go-proton-api-1.0.0/debian/changelog     
2026-09-28 20:35:00.000000000 +0200
@@ -1,3 +1,11 @@
+golang-github-henrybear327-go-proton-api (1.0.0-4+deb13u1) trixie; 
urgency=medium
+
+  * Team upload.
+  * Use at least 2 workers in TestPool_NewJob. Closes: #1102302.
+  * Raise NetCtl response header timeout to 10s. Closes: #1145073.
+
+ -- Santiago Vila <[email protected]>  Mon, 28 Sep 2026 20:35:00 +0200
+
 golang-github-henrybear327-go-proton-api (1.0.0-4) unstable; urgency=medium
 
   * Skip TestDecrypt (Closes: #1075766)
diff -Nru 
golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/raise-netctl-timeout.patch
 
golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/raise-netctl-timeout.patch
--- 
golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/raise-netctl-timeout.patch
    1970-01-01 01:00:00.000000000 +0100
+++ 
golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/raise-netctl-timeout.patch
    2026-09-28 18:04:00.000000000 +0200
@@ -0,0 +1,15 @@
+From: Santiago Vila <[email protected]>
+Subject: Raise NetCtl response header timeout to 10s
+Bug-Debian: https://bugs.debian.org/1145073
+
+--- a/netctl.go
++++ b/netctl.go
+@@ -401,7 +401,7 @@
+                       return c.dial(ctx, &tls.Dialer{Config: tlsConfig}, 
network, addr)
+               },
+               TLSClientConfig:       tlsConfig,
+-              ResponseHeaderTimeout: time.Second,
++              ResponseHeaderTimeout: 10 * time.Second,
+               ExpectContinueTimeout: time.Second,
+       }
+ }
diff -Nru golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/series 
golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/series
--- golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/series        
2025-01-02 08:47:30.000000000 +0100
+++ golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/series        
2026-09-28 18:00:00.000000000 +0200
@@ -1,2 +1,4 @@
 fix-async-fn-call.patch
 skip-TestDecrypt.patch
+single-cpu.patch
+raise-netctl-timeout.patch
diff -Nru 
golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/single-cpu.patch 
golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/single-cpu.patch
--- 
golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/single-cpu.patch  
    1970-01-01 01:00:00.000000000 +0100
+++ 
golang-github-henrybear327-go-proton-api-1.0.0/debian/patches/single-cpu.patch  
    2026-09-28 18:03:00.000000000 +0200
@@ -0,0 +1,20 @@
+From: Santiago Vila <[email protected]>
+Subject: Use at least 2 workers in TestPool_NewJob
+Bug-Debian: https://bugs.debian.org/1102302
+
+--- a/pool_test.go
++++ b/pool_test.go
+@@ -14,7 +14,12 @@
+ )
+ 
+ func TestPool_NewJob(t *testing.T) {
+-      doubler := newDoubler(runtime.NumCPU())
++      workers := runtime.NumCPU()
++      if workers < 2 {
++              workers = 2
++      }
++
++      doubler := newDoubler(workers)
+       defer doubler.Done()
+ 
+       job1, done1, err := doubler.newJob(context.Background(), 1)

Reply via email to