[Bug 6499] New: 5.7.1: test-archive.t test failure
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Wed Mar 17 11:13:07 UTC 2021
https://bz.mercurial-scm.org/show_bug.cgi?id=6499
Bug ID: 6499
Summary: 5.7.1: test-archive.t test failure
Product: Mercurial
Version: 5.7.1
Hardware: All
OS: NetBSD
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: tk at giga.or.at
CC: mercurial-devel at mercurial-scm.org
Python Version: ---
I see a new failure in 5.7.1.
It might be that this is also reported in
https://bz.mercurial-scm.org/show_bug.cgi?id=6352 but that also reports other
problems, so I thought it'd be good to have a separate bug report for this
particular issue.
Just close it if you disagree :)
--- /scratch/devel/py-mercurial/work/mercurial-5.7.1/tests/test-archive.t
+++ /scratch/devel/py-mercurial/work/mercurial-5.7.1/tests/test-archive.t.err
@@ -350,49 +350,52 @@
> sys.stderr.write(str(e) + '\n')
> EOF
$ "$PYTHON" getarchive.py "$TIP" gz | gunzip | tar tf - 2>/dev/null
- test-archive-1701ef1f1510/.hg_archival.txt
- test-archive-1701ef1f1510/.hgsub
- test-archive-1701ef1f1510/.hgsubstate
- test-archive-1701ef1f1510/bar
- test-archive-1701ef1f1510/baz/bletch
- test-archive-1701ef1f1510/foo
- test-archive-1701ef1f1510/subrepo/sub
+ HTTP Error 400: no such method: archive;node=1701ef1f1510;type=gz
+ gunzip: (stdin): unexpected end of file
$ "$PYTHON" getarchive.py "$TIP" bz2 | bunzip2 | tar tf - 2>/dev/null
- test-archive-1701ef1f1510/.hg_archival.txt
- test-archive-1701ef1f1510/.hgsub
- test-archive-1701ef1f1510/.hgsubstate
- test-archive-1701ef1f1510/bar
- test-archive-1701ef1f1510/baz/bletch
- test-archive-1701ef1f1510/foo
- test-archive-1701ef1f1510/subrepo/sub
+ HTTP Error 400: no such method: archive;node=1701ef1f1510;type=bz2
+
+ bunzip2: Compressed file ends unexpectedly;
+ perhaps it is corrupted? *Possible* reason follows.
+ bunzip2: Inappropriate ioctl for device
+ Input file = (stdin), output file = (stdout)
+
+ It is possible that the compressed file(s) have become corrupted.
+ You can use the -tvv option to test integrity of such files.
+
+ You can use the `bzip2recover' program to attempt to recover
+ data from undamaged sections of corrupted files.
+
$ "$PYTHON" getarchive.py "$TIP" zip > archive.zip
+ HTTP Error 400: no such method: archive;node=1701ef1f1510;type=zip
$ unzip -t archive.zip
Archive: archive.zip
- testing: test-archive-1701ef1f1510/.hg_archival.txt*OK (glob)
- testing: test-archive-1701ef1f1510/.hgsub*OK (glob)
- testing: test-archive-1701ef1f1510/.hgsubstate*OK (glob)
- testing: test-archive-1701ef1f1510/bar*OK (glob)
- testing: test-archive-1701ef1f1510/baz/bletch*OK (glob)
- testing: test-archive-1701ef1f1510/foo*OK (glob)
- testing: test-archive-1701ef1f1510/subrepo/sub*OK (glob)
- No errors detected in compressed data of archive.zip.
+ End-of-central-directory signature not found. Either this file is not
+ a zipfile, or it constitutes one disk of a multi-part archive. In the
+ latter case the central directory and zipfile comment will be found on
+ the last disk(s) of this archive.
+ unzip: cannot find zipfile directory in one of archive.zip or
+ archive.zip.zip, and cannot find archive.zip.ZIP, period.
+ [9]
test that we can download single directories and files
$ "$PYTHON" getarchive.py "$TIP" gz baz | gunzip | tar tf - 2>/dev/null
- test-archive-1701ef1f1510/baz/bletch
+ HTTP Error 400: no such method: archive;node=1701ef1f1510;type=gz;file=baz
+ gunzip: (stdin): unexpected end of file
$ "$PYTHON" getarchive.py "$TIP" gz foo | gunzip | tar tf - 2>/dev/null
- test-archive-1701ef1f1510/foo
+ HTTP Error 400: no such method: archive;node=1701ef1f1510;type=gz;file=foo
+ gunzip: (stdin): unexpected end of file
test that we detect file patterns that match no files
$ "$PYTHON" getarchive.py "$TIP" gz foobar
- HTTP Error 404: file(s) not found: foobar
+ HTTP Error 400: no such method:
archive;node=1701ef1f1510;type=gz;file=foobar
test that we reject unsafe patterns
$ "$PYTHON" getarchive.py "$TIP" gz relre:baz
- HTTP Error 404: file(s) not found: relre:baz
+ HTTP Error 400: no such method:
archive;node=1701ef1f1510;type=gz;file=relre:baz
$ killdaemons.py
ERROR: test-archive.t output changed
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list