Article View: linux.debian.bugs.dist
Article #6446Bug#1155551: [pkg-go] Bug#1155551: autopkgtest fails on 32-bit architectures
From: Félix Sipma
Date: Fri, 27 Nov 2026 16:00
Date: Fri, 27 Nov 2026 16:00
92 lines
5682 bytes
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--
Technical Details
Message-ID:
<O46wF-euq7-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O45TX-eubM-3@gated-at.bofh.it> <O45TX-eubM-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.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:00:01 +0100 Message-ID: <O46wF-euq7-1@gated-at.bofh.it> References: <O45TX-eubM-3@gated-at.bofh.it> <O45TX-eubM-3@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 15:59:11 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="3ADnH8Hx13aSEH/n" Content-Disposition: inline X-Debian-User: felix X-Crossassassin-Score: 2 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005415 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 92 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: submit@bugs.debian.org X-Original-Date: Fri, 27 Nov 2026 16:58:06 +0100 X-Original-Message-ID: <awmog7KJ2Pdoftep@capeo.gueux.org> X-Original-References: <m2se0m2tst.fsf@ertius.net> <m2se0m2tst.fsf@ertius.net>