[Bug 1972735] Re: "go test archive/zip" fails, gophercolor16x16.png wrong size
Launchpad Bug Tracker
1972735 at bugs.launchpad.net
Thu May 12 20:33:43 UTC 2022
** Merge proposal linked:
https://code.launchpad.net/~sergiodj/ubuntu/+source/golang-1.18/+git/golang-1.18/+merge/422246
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang-1.18 in Ubuntu.
https://bugs.launchpad.net/bugs/1972735
Title:
"go test archive/zip" fails, gophercolor16x16.png wrong size
Status in golang-1.18 package in Ubuntu:
New
Bug description:
Go's test suite shows a problem:
$ go test archive/zip
--- FAIL: TestReader (0.06s)
--- FAIL: TestReader/test.zip (0.00s)
reader_test.go:675: gophercolor16x16.png: len=785, want 664
--- FAIL: TestReader/test-trailing-junk.zip (0.00s)
reader_test.go:675: gophercolor16x16.png: len=785, want 664
FAIL
FAIL archive/zip 26.182s
FAIL
The source for the test shows that it is comparing the size of the file
/usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png
to the size of the same file inside the archive test.zip in the same directory:
$ ls -l /usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png
-rw-r--r-- 1 root root 664 Apr 13 14:52 /usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png
$ unzip -v /usr/share/go-1.18/src/archive/zip/testdata/test.zip
...
785 Stored 785 0% 2010-09-04 22:52 54d531fe gophercolor16x16.png
The same file in the upstream tarball,
http://archive.ubuntu.com/ubuntu/pool/main/g/golang-1.18/golang-1.18_1.18.1.orig.tar.gz
has the expected size:
$ tar -tvf golang-1.18_1.18.1.orig.tar.gz | grep gophercolor
-rw-r--r-- root/root 785 2022-04-12 08:42 go/src/archive/zip/testdata/gophercolor16x16.png
The file appears to be installed correctly per dpkg:
$ grep gophercolor /var/lib/dpkg/info/golang-1.18-src.md5sums
75631d6d103ce71fe8d58aff2386c4a4 usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png
$ md5sum /usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png
75631d6d103ce71fe8d58aff2386c4a4 /usr/share/go-1.18/src/archive/zip/testdata/gophercolor16x16.png
Where in the packaging pipeline did the file become smaller?
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: golang-1.18-src 1.18.1-1ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Mon May 9 14:29:13 2022
Dependencies:
InstallationDate: Installed on 2020-10-17 (569 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: golang-1.18
UpgradeStatus: Upgraded to jammy on 2022-05-01 (8 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-1.18/+bug/1972735/+subscriptions
More information about the foundations-bugs
mailing list