🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
3 messages
3 total messages Started by Rob Weir Fri, 27 Nov 2026 15:20
Bug#1155551: autopkgtest fails on 32-bit architectures
#6438
Author: Rob Weir
Date: Fri, 27 Nov 2026 15:20
41 lines
3689 bytes
Source: golang-github-backblaze-blazer
Version:  0.9.0-1
Tags: patch

Hi there,

I noticed some failures in deb-ci on armhf[0] and i386[1], and had a
look at the log:

148s # github.com/Backblaze/blazer/b2 [github.com/Backblaze/blazer/b2.test]
148s src/github.com/Backblaze/blazer/b2/file_info_by_name_test.go:25:23: cannot use 1700000001000 (untyped int constant) as int value in map literal (overflows)
148s src/github.com/Backblaze/blazer/b2/file_info_by_name_test.go:26:158: cannot use 1735689600000 (untyped int constant) as int value in map literal (overflows)

It's reproducible on any arch with: GOOS=linux GOARCH=386 go test -c ./b2

I've included a patch that fixes it, but it is also fixed upstream[2] in
v0.10.1 (as part of a quite large PR).

0: https://ci.debian.net/packages/g/golang-github-backblaze-blazer/testing/armhf/78124602/
1: https://ci.debian.net/packages/g/golang-github-backblaze-blazer/testing/i386/78122246/
2: https://github.com/Backblaze/blazer/issues/150

diff --git c/b2/file_info_by_name_test.go i/b2/file_info_by_name_test.go
index d0a2ee3..e590e50 100644
--- c/b2/file_info_by_name_test.go
+++ i/b2/file_info_by_name_test.go
@@ -22,8 +22,8 @@ func TestGetFileInfoByName(t *testing.T) {
                        "fileId": "file-id", "fileName": "dir/file.txt", "action": "upload",
                        "contentLength": 7, "contentSha1": "a-sha1", "contentType": "text/plain",
                        "fileInfo":        map[string]string{"source": "by-name", "src_last_modified_millis": "1700000000000"},
-                       "uploadTimestamp": 1700000001000,
-                       "fileRetention":   map[string]interface{}{"isClientAuthorizedToRead": true, "value": map[string]interface{}{"mode": "governance", "retainUntilTimestamp": 1735689600000}},
+                       "uploadTimestamp": int64(1700000001000),
+                       "fileRetention":   map[string]interface{}{"isClientAuthorizedToRead": true, "value": map[string]interface{}{"mode": "governance", "retainUntilTimestamp": int64(1735689600000)}},
                        "legalHold":       map[string]interface{}{"isClientAuthorizedToRead": true, "value": "on"},
                }}},
                {name: "missing file", notFound: true},


-- 
-rob
Bug#1155551: [pkg-go] Bug#1155551: autopkgtest fails on 32-bit architectures
#6446
Author: Félix Sipma
Date: Fri, 27 Nov 2026 16:00
92 lines
5682 bytes
--3ADnH8Hx13aSEH/n
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Rob,

Thanks for your bug report and patch. I also had a look a few days ago at h=
ttps://github.com/Backblaze/blazer/issues/150, trying to fix this 32-bit bu=
ild failure. But it seemed to me that the proper fix was to cherry pick all=
 the PR https://github.com/Backblaze/blazer/pull/127, which seemed not easy=
 and probably too big... Sure, your patch makes the test pass, but aren't w=
e hiding issues, which will pop at runtime?

My conclusion was that maybe we should wait for restic to update to github.=
com/Backblaze/blazer/b2 v0.10.x, and I thought that I should at least repor=
t a bug to restic upstream, but then, I went to other things :-).

What do you think?


On 2026-11-27 15:11+0000, Rob Weir wrote:
> Source: golang-github-backblaze-blazer
> Version:  0.9.0-1
> Tags: patch
>=20
> Hi there,
>=20
> I noticed some failures in deb-ci on armhf[0] and i386[1], and had a
> look at the log:
>=20
> 148s # github.com/Backblaze/blazer/b2 [github.com/Backblaze/blazer/b2.tes=
t]
> 148s src/github.com/Backblaze/blazer/b2/file_info_by_name_test.go:25:23: =
cannot use 1700000001000 (untyped int constant) as int value in map literal=
 (overflows)
> 148s src/github.com/Backblaze/blazer/b2/file_info_by_name_test.go:26:158:=
 cannot use 1735689600000 (untyped int constant) as int value in map litera=
l (overflows)
>=20
> It's reproducible on any arch with: GOOS=3Dlinux GOARCH=3D386 go test -c =
=2E/b2
>=20
> I've included a patch that fixes it, but it is also fixed upstream[2] in
> v0.10.1 (as part of a quite large PR).
>=20
> 0: https://ci.debian.net/packages/g/golang-github-backblaze-blazer/testin=
g/armhf/78124602/
> 1: https://ci.debian.net/packages/g/golang-github-backblaze-blazer/testin=
g/i386/78122246/
> 2: https://github.com/Backblaze/blazer/issues/150
>=20
> diff --git c/b2/file_info_by_name_test.go i/b2/file_info_by_name_test.go
> index d0a2ee3..e590e50 100644
> --- c/b2/file_info_by_name_test.go
> +++ i/b2/file_info_by_name_test.go
> @@ -22,8 +22,8 @@ func TestGetFileInfoByName(t *testing.T) {
>                        "fileId": "file-id", "fileName": "dir/file.txt", "=
action": "upload",
>                        "contentLength": 7, "contentSha1": "a-sha1", "cont=
entType": "text/plain",
>                        "fileInfo":        map[string]string{"source": "by=
-name", "src_last_modified_millis": "1700000000000"},
> -                       "uploadTimestamp": 1700000001000,
> -                       "fileRetention":   map[string]interface{}{"isClie=
ntAuthorizedToRead": true, "value": map[string]interface{}{"mode": "governa=
nce", "retainUntilTimestamp": 1735689600000}},
> +                       "uploadTimestamp": int64(1700000001000),
> +                       "fileRetention":   map[string]interface{}{"isClie=
ntAuthorizedToRead": true, "value": map[string]interface{}{"mode": "governa=
nce", "retainUntilTimestamp": int64(1735689600000)}},
>                        "legalHold":       map[string]interface{}{"isClien=
tAuthorizedToRead": true, "value": "on"},
>                }}},
>                {name: "missing file", notFound: true},

--=20
F=C3=A9lix

--3ADnH8Hx13aSEH/n
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

wr0EARYKAG8FgmsJqIoJELtioCGI8O6vRxQAAAAAAB4AIHNhbHRAbm90YXRpb25z
LnNlcXVvaWEtcGdwLm9yZ1c90BMySu54RGkN1SIENsDvIkQcMgnvi43VMk1DtRyA
FiEERCFH4/vwtP5LJ7Y1u2KgIYjw7q8AAHa9AP9NNpnPGr98BOe23BbEdv+JgHbc
vt8FWXU4KeVEDi41awD9HIBpJkIPiMlIubYWB7klTdJobedBUa+LkAaooUAVLgQ=
=VVQk
-----END PGP SIGNATURE-----

--3ADnH8Hx13aSEH/n--
Bug#1155551: [pkg-go] Bug#1155551: autopkgtest fails on 32-bit architectures
#6448
Author: Félix Sipma
Date: Fri, 27 Nov 2026 16:30
97 lines
5981 bytes
--v6s0PDmhXoGX0pYh
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Anyway, I had a second thought, we're just fixing the type of a constant in=
 this test. Applied :-). Thanks!

On 2026-11-27 16:58+0100, F=C3=A9lix Sipma wrote:
> Hi Rob,
>=20
> Thanks for your bug report and patch. I also had a look a few days ago at=
 https://github.com/Backblaze/blazer/issues/150, trying to fix this 32-bit =
build failure. But it seemed to me that the proper fix was to cherry pick a=
ll the PR https://github.com/Backblaze/blazer/pull/127, which seemed not ea=
sy and probably too big... Sure, your patch makes the test pass, but aren't=
 we hiding issues, which will pop at runtime?
>=20
> My conclusion was that maybe we should wait for restic to update to githu=
b.com/Backblaze/blazer/b2 v0.10.x, and I thought that I should at least rep=
ort a bug to restic upstream, but then, I went to other things :-).
>=20
> What do you think?
>=20
> On 2026-11-27 15:11+0000, Rob Weir wrote:
>> Source: golang-github-backblaze-blazer
>> Version:  0.9.0-1
>> Tags: patch
>>=20
>> Hi there,
>>=20
>> I noticed some failures in deb-ci on armhf[0] and i386[1], and had a
>> look at the log:
>>=20
>> 148s # github.com/Backblaze/blazer/b2 [github.com/Backblaze/blazer/b2.te=
st]
>> 148s src/github.com/Backblaze/blazer/b2/file_info_by_name_test.go:25:23:=
 cannot use 1700000001000 (untyped int constant) as int value in map litera=
l (overflows)
>> 148s src/github.com/Backblaze/blazer/b2/file_info_by_name_test.go:26:158=
: cannot use 1735689600000 (untyped int constant) as int value in map liter=
al (overflows)
>>=20
>> It's reproducible on any arch with: GOOS=3Dlinux GOARCH=3D386 go test -c=
 ./b2
>>=20
>> I've included a patch that fixes it, but it is also fixed upstream[2] in
>> v0.10.1 (as part of a quite large PR).
>>=20
>> 0: https://ci.debian.net/packages/g/golang-github-backblaze-blazer/testi=
ng/armhf/78124602/
>> 1: https://ci.debian.net/packages/g/golang-github-backblaze-blazer/testi=
ng/i386/78122246/
>> 2: https://github.com/Backblaze/blazer/issues/150
>>=20
>> diff --git c/b2/file_info_by_name_test.go i/b2/file_info_by_name_test.go
>> index d0a2ee3..e590e50 100644
>> --- c/b2/file_info_by_name_test.go
>> +++ i/b2/file_info_by_name_test.go
>> @@ -22,8 +22,8 @@ func TestGetFileInfoByName(t *testing.T) {
>>                       "fileId": "file-id", "fileName": "dir/file.txt", "=
action": "upload",
>>                       "contentLength": 7, "contentSha1": "a-sha1", "cont=
entType": "text/plain",
>>                       "fileInfo":        map[string]string{"source": "by=
-name", "src_last_modified_millis": "1700000000000"},
>> -                       "uploadTimestamp": 1700000001000,
>> -                       "fileRetention":   map[string]interface{}{"isCli=
entAuthorizedToRead": true, "value": map[string]interface{}{"mode": "govern=
ance", "retainUntilTimestamp": 1735689600000}},
>> +                       "uploadTimestamp": int64(1700000001000),
>> +                       "fileRetention":   map[string]interface{}{"isCli=
entAuthorizedToRead": true, "value": map[string]interface{}{"mode": "govern=
ance", "retainUntilTimestamp": int64(1735689600000)}},
>>                       "legalHold":       map[string]interface{}{"isClien=
tAuthorizedToRead": true, "value": "on"},
>>               }}},
>>               {name: "missing file", notFound: true},



--=20
F=C3=A9lix

--v6s0PDmhXoGX0pYh
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

wr0EARYKAG8FgmsJr5oJELtioCGI8O6vRxQAAAAAAB4AIHNhbHRAbm90YXRpb25z
LnNlcXVvaWEtcGdwLm9yZ68B7AaPKQ3op97znh6JoQESj5CZweZ+iE6Bz0hp86HR
FiEERCFH4/vwtP5LJ7Y1u2KgIYjw7q8AAKpiAP9MgFIGsgkXoXEACabvfQit/z7e
k0C67hj8+LLNDMCeHQD/ac50oJXqO6WHN0xkKTz1Epmg9EgM0PC7Fp1F4of5Qww=
=vQHa
-----END PGP SIGNATURE-----

--v6s0PDmhXoGX0pYh--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads