Article View: linux.debian.bugs.dist
Article #6448Bug#1155551: [pkg-go] Bug#1155551: autopkgtest fails on 32-bit architectures
From: Félix Sipma
Date: Fri, 27 Nov 2026 16:30
Date: Fri, 27 Nov 2026 16:30
97 lines
5981 bytes
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--
Technical Details
Message-ID:
<O46ZH-euJJ-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomodReferences:
<O45TX-eubM-3@gated-at.bofh.it> <O46wF-euq7-1@gated-at.bofh.it> <O45TX-eubM-3@gated-at.bofh.it> <O46wF-euq7-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: Félix Sipma <felix@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1155551: [pkg-go] Bug#1155551: autopkgtest fails on 32-bit architectures Date: Fri, 27 Nov 2026 17:30:01 +0100 Message-ID: <O46ZH-euJJ-3@gated-at.bofh.it> References: <O45TX-eubM-3@gated-at.bofh.it> <O46wF-euq7-1@gated-at.bofh.it> <O45TX-eubM-3@gated-at.bofh.it> <O46wF-euq7-1@gated-at.bofh.it> X-Original-To: Rob Weir <rweir@ertius.org>, 1155551@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 27 16:29:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Félix Sipma <felix@debian.org>, 1155551@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-go-maintainers@lists.alioth.debian.org X-Debian-Pr-Message: followup 1155551 X-Debian-Pr-Package: src:golang-github-backblaze-blazer X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: golang-github-backblaze-blazer MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="v6s0PDmhXoGX0pYh" Content-Disposition: inline X-Debian-User: felix X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005422 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 97 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 27 Nov 2026 17:28:10 +0100 X-Original-Message-ID: <awmvlL-AnCqAtyj9@capeo.gueux.org> X-Original-References: <m2se0m2tst.fsf@ertius.net> <awmog7KJ2Pdoftep@capeo.gueux.org> <m2se0m2tst.fsf@ertius.net> <awmog7KJ2Pdoftep@capeo.gueux.org>