🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6438

Bug#1155551: autopkgtest fails on 32-bit architectures

#6438
From: 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
Technical Details
Message-ID: <O45TX-eubM-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Rob Weir <rweir@ertius.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155551: autopkgtest fails on 32-bit architectures
Date: Fri, 27 Nov 2026 16:20:01 +0100
Message-ID: <O45TX-eubM-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Nov 27 15:13:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Rob Weir <rweir@ertius.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: report 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: text/plain
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005405
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 41
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 27 Nov 2026 15:11:30 +0000
X-Original-Message-ID: <m2se0m2tst.fsf@ertius.net>