[pkg-go] Bug#1155551: Bug#1155551: autopkgtest fails on 32-bit architectures

Félix Sipma felix at debian.org
Fri Nov 27 15:58:06 GMT 2026


Hi Rob,

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 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 we 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 report 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
> 
> 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},

-- 
Félix
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 325 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-go-maintainers/attachments/20261127/5409e067/attachment.sig>


More information about the Pkg-go-maintainers mailing list