obspy / reporter

ObsPy test reporter app
3 stars 5 forks source link

Reporter fails submit report to server #8

Closed petrrr closed 10 years ago

petrrr commented 10 years ago

This is for an issue I already addressed on the developer's list, but I create this one to keep other developers in the loop.

Not sure which exactly is the condition to triggers this problem, so here are the test conditions:

Only hypothesis: All works fine with Python 2.6 and 2.7, so this might be related to Python 3.3 or unittest.mock.

The observed behavior is the following:

petr% obspy-runtests-3.3
..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................ss..F..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

======================================================================
FAIL: test_CatchOutput (obspy.core.tests.test_util_misc.UtilMiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/obspy/core/tests/test_util_misc.py", line 78, in test_CatchOutput
  self.assertEqual(out.stdout, "abc\nghi\njkl\n")
AssertionError: 'abc\n\x1b[?1034hdef\nghi\njkl\n' != 'abc\nghi\njkl\n'
abc
- def
ghi
jkl

----------------------------------------------------------------------
Ran 985 tests in 94.031s

FAILED (failures=1)
Do you want to report this to tests.obspy.org? [n]: y

Error: Could not sent a test report to tests.obspy.org.
BAD REQUEST
petr% 
petrrr commented 10 years ago

I set a breakpoint at obspy/core/scripts/runtests.py:312 (https://github.com/obspy/obspy/blob/master/obspy/core/scripts/runtests.py#L312) and report some variable values here:

(Pdb) pp xml_doc
b'<report><obspy><arclink /><fdsn /><earthworm /><installed>0.0.0-tar/zipball</installed><neic /><xseed><skipped>0</skipped><timetaken>7.523508071899414</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>38</tests></xseed><core><skipped>3</skipped><timetaken>139.87583994865417</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors><f0>Traceback (most recent call last):\n  File "/Users/petr/sandbox/PyVEnvs/py33-MP-obspy-devel/lib/python3.3/site-packages/obspy/core/tests/test_util_misc.py", line 78, in test_CatchOutput\n    self.assertEqual(out.stdout, "abc\\nghi\\njkl\\n")\nAssertionError: \'abc\\ndef\\nghi\\njkl\\n\' != \'abc\\nghi\\njkl\\n\'\n  abc\n- def\n  ghi\n  jkl\n\n</f0></errors><failures /><tests>483</tests></core><iris /><realtime><skipped>0</skipped><timetaken>4.194576025009155</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>22</tests></realtime><neries /><mseed><skipped>0</skipped><timetaken>12.604191064834595</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>81</tests></mseed><db><skipped>0</skipped><timetaken>0.3847498893737793</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>9</tests></db><datamark><skipped>0</skipped><timetaken>0.1738879680633545</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>2</tests></datamark><pde><skipped>0</skipped><timetaken>2.827984094619751</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>13</tests></pde><y><skipped>0</skipped><timetaken>0.0758061408996582</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>4</tests></y><seisan><skipped>0</skipped><timetaken>0.17412018775939941</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>7</tests></seisan><wav><skipped>0</skipped><timetaken>0.5644159317016602</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>8</tests></wav><segy><skipped>0</skipped><timetaken>2.3614890575408936</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>47</tests></segy><taup><skipped>0</skipped><timetaken>0.047556161880493164</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>5</tests></taup><seedlink /><station><skipped>0</skipped><timetaken>2.5163769721984863</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>17</tests></station><imaging /><signal /><seishub /><sh><skipped>0</skipped><timetaken>0.7781119346618652</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>17</tests></sh><sac><skipped>0</skipped><timetaken>1.8891451358795166</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>66</tests></sac><gse2><skipped>0</skipped><timetaken>2.201066017150879</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>36</tests></gse2><seg2><skipped>0</skipped><timetaken>0.2479259967803955</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>1</tests></seg2><css><skipped>0</skipped><timetaken>5.136369943618774</timetaken><installed>0.0.0-tar/zipball</installed><tested>True</tested><errors /><failures /><tests>3</tests></css></obspy><timetaken>183.57712054252625</timetaken><timestamp>1392657563</timestamp><skipped>3</skipped><platform><architecture>64bit</architecture><node>radegast</node><processor>i386</processor><machine>x86_64</machine><python_version>3.3.4</python_version><python_compiler>GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))</python_compiler><system>Darwin</system><release>12.5.0</release><version>Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64</version><python_implementation>CPython</python_implementation></platform><errors>1</errors><failures>0</failures><dependencies><scipy>0.13.3</scipy><mpl_toolkits.basemap /><suds>0.5</suds><matplotlib>1.3.1</matplotlib><nose>1.3.0</nose><mock /><sqlalchemy>0.9.2</sqlalchemy><numpy>1.8.0</numpy><lxml.etree>3.3.1</lxml.etree></dependencies><tests>859</tests></report>'
(Pdb) pp headers
{'Accept': 'text/plain', 'Content-type': 'application/x-www-form-urlencoded'}
(Pdb) pp params
'architecture=64bit&python_version=3.3.4&timestamp=1392657563&xml=%3Creport%3E%3Cobspy%3E%3Carclink+%2F%3E%3Cfdsn+%2F%3E%3Cearthworm+%2F%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Cneic+%2F%3E%3Cxseed%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E7.523508071899414%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E38%3C%2Ftests%3E%3C%2Fxseed%3E%3Ccore%3E%3Cskipped%3E3%3C%2Fskipped%3E%3Ctimetaken%3E139.87583994865417%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors%3E%3Cf0%3ETraceback+%28most+recent+call+last%29%3A%0A++File+%22%2FUsers%2Fpetr%2Fsandbox%2FPyVEnvs%2Fpy33-MP-obspy-devel%2Flib%2Fpython3.3%2Fsite-packages%2Fobspy%2Fcore%2Ftests%2Ftest_util_misc.py%22%2C+line+78%2C+in+test_CatchOutput%0A++++self.assertEqual%28out.stdout%2C+%22abc%5Cnghi%5Cnjkl%5Cn%22%29%0AAssertionError%3A+%27abc%5Cndef%5Cnghi%5Cnjkl%5Cn%27+%21%3D+%27abc%5Cnghi%5Cnjkl%5Cn%27%0A++abc%0A-+def%0A++ghi%0A++jkl%0A%0A%3C%2Ff0%3E%3C%2Ferrors%3E%3Cfailures+%2F%3E%3Ctests%3E483%3C%2Ftests%3E%3C%2Fcore%3E%3Ciris+%2F%3E%3Crealtime%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E4.194576025009155%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E22%3C%2Ftests%3E%3C%2Frealtime%3E%3Cneries+%2F%3E%3Cmseed%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E12.604191064834595%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E81%3C%2Ftests%3E%3C%2Fmseed%3E%3Cdb%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.3847498893737793%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E9%3C%2Ftests%3E%3C%2Fdb%3E%3Cdatamark%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.1738879680633545%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E2%3C%2Ftests%3E%3C%2Fdatamark%3E%3Cpde%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E2.827984094619751%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E13%3C%2Ftests%3E%3C%2Fpde%3E%3Cy%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.0758061408996582%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E4%3C%2Ftests%3E%3C%2Fy%3E%3Cseisan%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.17412018775939941%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E7%3C%2Ftests%3E%3C%2Fseisan%3E%3Cwav%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.5644159317016602%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E8%3C%2Ftests%3E%3C%2Fwav%3E%3Csegy%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E2.3614890575408936%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E47%3C%2Ftests%3E%3C%2Fsegy%3E%3Ctaup%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.047556161880493164%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E5%3C%2Ftests%3E%3C%2Ftaup%3E%3Cseedlink+%2F%3E%3Cstation%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E2.5163769721984863%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E17%3C%2Ftests%3E%3C%2Fstation%3E%3Cimaging+%2F%3E%3Csignal+%2F%3E%3Cseishub+%2F%3E%3Csh%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.7781119346618652%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E17%3C%2Ftests%3E%3C%2Fsh%3E%3Csac%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E1.8891451358795166%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E66%3C%2Ftests%3E%3C%2Fsac%3E%3Cgse2%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E2.201066017150879%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E36%3C%2Ftests%3E%3C%2Fgse2%3E%3Cseg2%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.2479259967803955%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E1%3C%2Ftests%3E%3C%2Fseg2%3E%3Ccss%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E5.136369943618774%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E3%3C%2Ftests%3E%3C%2Fcss%3E%3C%2Fobspy%3E%3Ctimetaken%3E183.57712054252625%3C%2Ftimetaken%3E%3Ctimestamp%3E1392657563%3C%2Ftimestamp%3E%3Cskipped%3E3%3C%2Fskipped%3E%3Cplatform%3E%3Carchitecture%3E64bit%3C%2Farchitecture%3E%3Cnode%3Eradegast%3C%2Fnode%3E%3Cprocessor%3Ei386%3C%2Fprocessor%3E%3Cmachine%3Ex86_64%3C%2Fmachine%3E%3Cpython_version%3E3.3.4%3C%2Fpython_version%3E%3Cpython_compiler%3EGCC+4.2.1+Compatible+Apple+Clang+4.1+%28%28tags%2FApple%2Fclang-421.11.66%29%29%3C%2Fpython_compiler%3E%3Csystem%3EDarwin%3C%2Fsystem%3E%3Crelease%3E12.5.0%3C%2Frelease%3E%3Cversion%3EDarwin+Kernel+Version+12.5.0%3A+Sun+Sep+29+13%3A33%3A47+PDT+2013%3B+root%3Axnu-2050.48.12%7E1%2FRELEASE_X86_64%3C%2Fversion%3E%3Cpython_implementation%3ECPython%3C%2Fpython_implementation%3E%3C%2Fplatform%3E%3Cerrors%3E1%3C%2Ferrors%3E%3Cfailures%3E0%3C%2Ffailures%3E%3Cdependencies%3E%3Cscipy%3E0.13.3%3C%2Fscipy%3E%3Cmpl_toolkits.basemap+%2F%3E%3Csuds%3E0.5%3C%2Fsuds%3E%3Cmatplotlib%3E1.3.1%3C%2Fmatplotlib%3E%3Cnose%3E1.3.0%3C%2Fnose%3E%3Cmock+%2F%3E%3Csqlalchemy%3E0.9.2%3C%2Fsqlalchemy%3E%3Cnumpy%3E1.8.0%3C%2Fnumpy%3E%3Clxml.etree%3E3.3.1%3C%2Flxml.etree%3E%3C%2Fdependencies%3E%3Ctests%3E859%3C%2Ftests%3E%3C%2Freport%3E&failures=0&errors=1&system=Darwin&tests=859&modules=18'

What I found somewhat surprising is the fact that xml_doc of bytes type. I somehow would expect it should be better be unicode. But I do not understand the details, so probably it is okay.

One more information might be useful: I already was able to submit a report for Python 3.3 with as similar setup. It was for commit fc3bd5c4b8 and can be found here: http://tests.obspy.org/12841/. This was without mock installed and before f84d350 was committed.

barsch commented 10 years ago

hmm I just tested this manually under Windows 64bit Py3.3 with the following script (using headers + params from above)

# -*- coding: utf-8 -*-
import urllib.request
urlopen = urllib.request.urlopen
from urllib.parse import urlparse
from http.client import HTTPConnection

server = "tests.obspy.org"

params = 'architecture=64bit&python_version=3.3.4&timestamp=1392657563&xml=%3Creport%3E%3Cobspy%3E%3Carclink+%2F%3E%3Cfdsn+%2F%3E%3Cearthworm+%2F%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Cneic+%2F%3E%3Cxseed%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E7.523508071899414%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E38%3C%2Ftests%3E%3C%2Fxseed%3E%3Ccore%3E%3Cskipped%3E3%3C%2Fskipped%3E%3Ctimetaken%3E139.87583994865417%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors%3E%3Cf0%3ETraceback+%28most+recent+call+last%29%3A%0A++File+%22%2FUsers%2Fpetr%2Fsandbox%2FPyVEnvs%2Fpy33-MP-obspy-devel%2Flib%2Fpython3.3%2Fsite-packages%2Fobspy%2Fcore%2Ftests%2Ftest_util_misc.py%22%2C+line+78%2C+in+test_CatchOutput%0A++++self.assertEqual%28out.stdout%2C+%22abc%5Cnghi%5Cnjkl%5Cn%22%29%0AAssertionError%3A+%27abc%5Cndef%5Cnghi%5Cnjkl%5Cn%27+%21%3D+%27abc%5Cnghi%5Cnjkl%5Cn%27%0A++abc%0A-+def%0A++ghi%0A++jkl%0A%0A%3C%2Ff0%3E%3C%2Ferrors%3E%3Cfailures+%2F%3E%3Ctests%3E483%3C%2Ftests%3E%3C%2Fcore%3E%3Ciris+%2F%3E%3Crealtime%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E4.194576025009155%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E22%3C%2Ftests%3E%3C%2Frealtime%3E%3Cneries+%2F%3E%3Cmseed%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E12.604191064834595%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E81%3C%2Ftests%3E%3C%2Fmseed%3E%3Cdb%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.3847498893737793%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E9%3C%2Ftests%3E%3C%2Fdb%3E%3Cdatamark%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.1738879680633545%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E2%3C%2Ftests%3E%3C%2Fdatamark%3E%3Cpde%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E2.827984094619751%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E13%3C%2Ftests%3E%3C%2Fpde%3E%3Cy%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.0758061408996582%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E4%3C%2Ftests%3E%3C%2Fy%3E%3Cseisan%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.17412018775939941%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E7%3C%2Ftests%3E%3C%2Fseisan%3E%3Cwav%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.5644159317016602%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E8%3C%2Ftests%3E%3C%2Fwav%3E%3Csegy%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E2.3614890575408936%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E47%3C%2Ftests%3E%3C%2Fsegy%3E%3Ctaup%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.047556161880493164%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E5%3C%2Ftests%3E%3C%2Ftaup%3E%3Cseedlink+%2F%3E%3Cstation%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E2.5163769721984863%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E17%3C%2Ftests%3E%3C%2Fstation%3E%3Cimaging+%2F%3E%3Csignal+%2F%3E%3Cseishub+%2F%3E%3Csh%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.7781119346618652%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E17%3C%2Ftests%3E%3C%2Fsh%3E%3Csac%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E1.8891451358795166%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E66%3C%2Ftests%3E%3C%2Fsac%3E%3Cgse2%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E2.201066017150879%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E36%3C%2Ftests%3E%3C%2Fgse2%3E%3Cseg2%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E0.2479259967803955%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E1%3C%2Ftests%3E%3C%2Fseg2%3E%3Ccss%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctimetaken%3E5.136369943618774%3C%2Ftimetaken%3E%3Cinstalled%3E0.0.0-tar%2Fzipball%3C%2Finstalled%3E%3Ctested%3ETrue%3C%2Ftested%3E%3Cerrors+%2F%3E%3Cfailures+%2F%3E%3Ctests%3E3%3C%2Ftests%3E%3C%2Fcss%3E%3C%2Fobspy%3E%3Ctimetaken%3E183.57712054252625%3C%2Ftimetaken%3E%3Ctimestamp%3E1392657563%3C%2Ftimestamp%3E%3Cskipped%3E3%3C%2Fskipped%3E%3Cplatform%3E%3Carchitecture%3E64bit%3C%2Farchitecture%3E%3Cnode%3Eradegast%3C%2Fnode%3E%3Cprocessor%3Ei386%3C%2Fprocessor%3E%3Cmachine%3Ex86_64%3C%2Fmachine%3E%3Cpython_version%3E3.3.4%3C%2Fpython_version%3E%3Cpython_compiler%3EGCC+4.2.1+Compatible+Apple+Clang+4.1+%28%28tags%2FApple%2Fclang-421.11.66%29%29%3C%2Fpython_compiler%3E%3Csystem%3EDarwin%3C%2Fsystem%3E%3Crelease%3E12.5.0%3C%2Frelease%3E%3Cversion%3EDarwin+Kernel+Version+12.5.0%3A+Sun+Sep+29+13%3A33%3A47+PDT+2013%3B+root%3Axnu-2050.48.12%7E1%2FRELEASE_X86_64%3C%2Fversion%3E%3Cpython_implementation%3ECPython%3C%2Fpython_implementation%3E%3C%2Fplatform%3E%3Cerrors%3E1%3C%2Ferrors%3E%3Cfailures%3E0%3C%2Ffailures%3E%3Cdependencies%3E%3Cscipy%3E0.13.3%3C%2Fscipy%3E%3Cmpl_toolkits.basemap+%2F%3E%3Csuds%3E0.5%3C%2Fsuds%3E%3Cmatplotlib%3E1.3.1%3C%2Fmatplotlib%3E%3Cnose%3E1.3.0%3C%2Fnose%3E%3Cmock+%2F%3E%3Csqlalchemy%3E0.9.2%3C%2Fsqlalchemy%3E%3Cnumpy%3E1.8.0%3C%2Fnumpy%3E%3Clxml.etree%3E3.3.1%3C%2Flxml.etree%3E%3C%2Fdependencies%3E%3Ctests%3E859%3C%2Ftests%3E%3C%2Freport%3E&failures=0&errors=1&system=Darwin&tests=859&modules=18'
headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}

conn = HTTPConnection(server)
conn.request("POST", "/", params, headers)
response = conn.getresponse()
if response.status == 301:
    o = urlparse(response.msg['location'])
    conn = HTTPConnection(o.netloc)
    conn.request("POST", o.path, params, headers)
    response = conn.getresponse()
if response.status == 200:
    print(("Test report has been sent to %s. Thank you!" % (server)))
else:
    print(("Error: Could not sent a test report to %s." % (server)))
    print((response.reason))

and it works as expected -> http://tests.obspy.org/12984/

I currently have no clue what the issue could be - anyone any ideas?

petrrr commented 10 years ago

Interesting! Will try to test different commits, to see when this problem appears.

Any tipps on how to do this in a efficient way?

barsch commented 10 years ago

@petrrr: what happens if you run the script above - does it work for you?

petrrr commented 10 years ago

@barsch: Yes, the script works.

petr% python3.3 test-reporter.py
Test report has been sent to tests.obspy.org. Thank you!
barsch commented 10 years ago

I didn't expect that - because thats the relevant part for submitting the error to tests.obspy.org and I used the data you provided above - can you just try to rerun the whole test and see if submitting now works - maybe it was a network issue? Oh and did you use Python 3.3?

petrrr commented 10 years ago

I rebuilt the version and run the test, and ... The problem still persists. Would it be possible that there is some invalid character which is cleaned out during copy and paste?

barsch commented 10 years ago

either copy & paste issue or some issue with one of the imported libs for py3.3 - unfortunately I have no way to debug this as it works for me :/

petrrr commented 10 years ago

@barsch: Interesting finding, the problem is related to the error to be transmitted itself. If there is no error, there is no problem with the submission. See below.

petr% obspy-runtests-3.3 -x core
/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/oldnumeric/__init__.py:11: ModuleDeprecationWarning: The oldnumeric module will be dropped in Numpy 1.9
  warnings.warn(_msg, ModuleDeprecationWarning)
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 502 tests in 59.612s

OK
Do you want to report this to tests.obspy.org? [n]: y

Test report has been sent to tests.obspy.org. Thank you!
barsch commented 10 years ago

ok so params must be the issue - what happens if you use params=str(params) or params=params.encode('ascii')

petrrr commented 10 years ago

Working hypothesis: The error is somehow related to string encoding. So it is possible the error-message introduces some special character which invalidates the request?

barsch commented 10 years ago

jupp - see comment above ^^

petrrr commented 10 years ago

@barsch: I did the change you were proposing, non of the two changes the situation.

petrrr commented 10 years ago

Hi Robert (@barsch),

I was looking a the problem again and discovered some strange behavior which might be relevant. More precisely, it should be relevant to understand why we could no reproduce the test with the test script.

When I run with the debugger I get a slightly different result, with respect running the script directly. The difference is in the output of the Assertion error, but apparently also in the string recorded in the result dict.

When running the script itself I get the following

[ ... shortened output ...]

======================================================================
FAIL: test_CatchOutput (obspy.core.tests.test_util_misc.UtilMiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/tests/test_util_misc.py", line 78, in test_CatchOutput
    self.assertEqual(out.stdout, "abc\nghi\njkl\n")
AssertionError: 'abc\n\x1b[?1034hdef\nghi\njkl\n' != 'abc\nghi\njkl\n'
  abc
- def
  ghi
  jkl

----------------------------------------------------------------------
Ran 859 tests in 39.136s

and here the output of print(result['obspy']['core']['errors']) and the length of the error string:

{'f0': 'Traceback (most recent call last):\n  File "/Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/tests/test_code_formatting.py", line 23, in test_flake8\n    self.assertEqual(error_count, 0, message)\nAssertionError: 3 != 0 : /Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/scripts/runtests.py:313:1: W293 blank line contains whitespace\n/Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/scripts/runtests.py:314:1: W293 blank line contains whitespace\n/Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/scripts/runtests.py:315:5: E303 too many blank lines (2)\n\n', 'f1': 'Traceback (most recent call last):\n  File "/Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/tests/test_util_misc.py", line 78, in test_CatchOutput\n    self.assertEqual(out.stdout, "abc\\nghi\\njkl\\n")\nAssertionError: \'abc\\n\\x1b[?1034hdef\\nghi\\njkl\\n\' != \'abc\\nghi\\njkl\\n\'\n  abc\n- \x1b[?1034hdef\n  ghi\n  jkl\n\n'}
304

Now the same run with the pdb:

======================================================================
FAIL: test_CatchOutput (obspy.core.tests.test_util_misc.UtilMiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/tests/test_util_misc.py", line 78, in test_CatchOutput
    self.assertEqual(out.stdout, "abc\nghi\njkl\n")
AssertionError: 'abc\ndef\nghi\njkl\n' != 'abc\nghi\njkl\n'
  abc
- def
  ghi
  jkl

----------------------------------------------------------------------
Ran 859 tests in 38.788s

and the corresponding part of result:

{'f1': 'Traceback (most recent call last):\n  File "/Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/tests/test_util_misc.py", line 78, in test_CatchOutput\n    self.assertEqual(out.stdout, "abc\\nghi\\njkl\\n")\nAssertionError: \'abc\\ndef\\nghi\\njkl\\n\' != \'abc\\nghi\\njkl\\n\'\n  abc\n- def\n  ghi\n  jkl\n\n', 'f0': 'Traceback (most recent call last):\n  File "/Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/tests/test_code_formatting.py", line 23, in test_flake8\n    self.assertEqual(error_count, 0, message)\nAssertionError: 3 != 0 : /Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/scripts/runtests.py:313:1: W293 blank line contains whitespace\n/Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/scripts/runtests.py:314:1: W293 blank line contains whitespace\n/Users/petr/sandbox/GitHub/obspy/obspy/obspy/core/scripts/runtests.py:315:5: E303 too many blank lines (2)\n\n'}
285

When running with the debugger the output is clean and actually the error is not triggered. You see the successful submission here http://tests.obspy.org/13032/

So I thing we need to address different issues here:

I will now provide an updated test script and report on the result

petrrr commented 10 years ago

I pasted the output of params -- now created with a print command instead using pdb -- into the script and was able to reproduce the error.

Here the updated test script:

# -*- coding: utf-8 -*-

import urllib.request
urlopen = urllib.request.urlopen
from urllib.parse import urlparse
from http.client import HTTPConnection

server = "tests.obspy.org"

params = 'errors=1&tests=859&timestamp=1393257729&xml=%3Creport%3E%3Cdependencies%3E%3Csqlalchemy%3E0.9.3%3C%2Fsqlalchemy%3E%3Cmock+%2F%3E%3Cnose%3E1.3.0%3C%2Fnose%3E%3Cnumpy%3E1.8.0%3C%2Fnumpy%3E%3Cscipy%3E0.13.3%3C%2Fscipy%3E%3Cmpl_toolkits.basemap+%2F%3E%3Csuds%3E0.5%3C%2Fsuds%3E%3Clxml.etree%3E3.3.1%3C%2Flxml.etree%3E%3Cmatplotlib%3E1.3.1%3C%2Fmatplotlib%3E%3C%2Fdependencies%3E%3Cobspy%3E%3Cmseed%3E%3Cerrors+%2F%3E%3Ctests%3E81%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E1.740732192993164%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fmseed%3E%3Ciris+%2F%3E%3Cstation%3E%3Cerrors+%2F%3E%3Ctests%3E17%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.8532309532165527%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fstation%3E%3Carclink+%2F%3E%3Cneic+%2F%3E%3Cdb%3E%3Cerrors+%2F%3E%3Ctests%3E9%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.04127621650695801%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fdb%3E%3Crealtime%3E%3Cerrors+%2F%3E%3Ctests%3E22%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.8109970092773438%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Frealtime%3E%3Cfdsn+%2F%3E%3Cseg2%3E%3Cerrors+%2F%3E%3Ctests%3E1%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.03453707695007324%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fseg2%3E%3Cxseed%3E%3Cerrors+%2F%3E%3Ctests%3E38%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E1.2640681266784668%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fxseed%3E%3Csh%3E%3Cerrors+%2F%3E%3Ctests%3E17%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.14840412139892578%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fsh%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Csac%3E%3Cerrors+%2F%3E%3Ctests%3E66%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.2851390838623047%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fsac%3E%3Cneries+%2F%3E%3Csegy%3E%3Cerrors+%2F%3E%3Ctests%3E47%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.654792070388794%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fsegy%3E%3Cgse2%3E%3Cerrors+%2F%3E%3Ctests%3E36%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.24102401733398438%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fgse2%3E%3Cy%3E%3Cerrors+%2F%3E%3Ctests%3E4%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.012447118759155273%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fy%3E%3Ccss%3E%3Cerrors+%2F%3E%3Ctests%3E3%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.6071720123291016%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fcss%3E%3Ctaup%3E%3Cerrors+%2F%3E%3Ctests%3E5%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.025228023529052734%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Ftaup%3E%3Cdatamark%3E%3Cerrors+%2F%3E%3Ctests%3E2%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.06771612167358398%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fdatamark%3E%3Cwav%3E%3Cerrors+%2F%3E%3Ctests%3E8%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.05240297317504883%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fwav%3E%3Ccore%3E%3Cerrors%3E%3Cf0%3ETraceback+%28most+recent+call+last%29%3A%0A++File+%22%2FUsers%2Fpetr%2Fsandbox%2FGitHub%2Fobspy%2Fobspy%2Fobspy%2Fcore%2Ftests%2Ftest_util_misc.py%22%2C+line+78%2C+in+test_CatchOutput%0A++++self.assertEqual%28out.stdout%2C+%22abc%5Cnghi%5Cnjkl%5Cn%22%29%0AAssertionError%3A+%27abc%5Cn%5Cx1b%5B%3F1034hdef%5Cnghi%5Cnjkl%5Cn%27+%21%3D+%27abc%5Cnghi%5Cnjkl%5Cn%27%0A++abc%0A-+%1B%5B%3F1034hdef%0A++ghi%0A++jkl%0A%0A%3C%2Ff0%3E%3C%2Ferrors%3E%3Ctests%3E483%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E33.321699142456055%3C%2Ftimetaken%3E%3Cskipped%3E2%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fcore%3E%3Csignal+%2F%3E%3Cseisan%3E%3Cerrors+%2F%3E%3Ctests%3E7%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.036682844161987305%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fseisan%3E%3Cimaging+%2F%3E%3Cearthworm+%2F%3E%3Cseedlink+%2F%3E%3Cpde%3E%3Cerrors+%2F%3E%3Ctests%3E13%3C%2Ftests%3E%3Cfailures+%2F%3E%3Cinstalled%3E0.8.3-196-ge21b5%3C%2Finstalled%3E%3Ctimetaken%3E0.5624380111694336%3C%2Ftimetaken%3E%3Cskipped%3E0%3C%2Fskipped%3E%3Ctested%3ETrue%3C%2Ftested%3E%3C%2Fpde%3E%3Cseishub+%2F%3E%3C%2Fobspy%3E%3Ctimestamp%3E1393257729%3C%2Ftimestamp%3E%3Ctimetaken%3E40.759987115859985%3C%2Ftimetaken%3E%3Ctests%3E859%3C%2Ftests%3E%3Cskipped%3E2%3C%2Fskipped%3E%3Cerrors%3E1%3C%2Ferrors%3E%3Cplatform%3E%3Cpython_implementation%3ECPython%3C%2Fpython_implementation%3E%3Cpython_compiler%3EGCC+4.2.1+Compatible+Apple+Clang+4.1+%28%28tags%2FApple%2Fclang-421.11.66%29%29%3C%2Fpython_compiler%3E%3Crelease%3E12.5.0%3C%2Frelease%3E%3Cmachine%3Ex86_64%3C%2Fmachine%3E%3Csystem%3EDarwin%3C%2Fsystem%3E%3Carchitecture%3E64bit%3C%2Farchitecture%3E%3Cversion%3EDarwin+Kernel+Version+12.5.0%3A+Sun+Sep+29+13%3A33%3A47+PDT+2013%3B+root%3Axnu-2050.48.12%7E1%2FRELEASE_X86_64%3C%2Fversion%3E%3Cnode%3Eradegast-wifi%3C%2Fnode%3E%3Cpython_version%3E3.3.4%3C%2Fpython_version%3E%3Cprocessor%3Ei386%3C%2Fprocessor%3E%3C%2Fplatform%3E%3Cfailures%3E0%3C%2Ffailures%3E%3C%2Freport%3E&python_version=3.3.4&architecture=64bit&failures=0&system=Darwin&modules=18'

headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}

conn = HTTPConnection(server)
conn.request("POST", "/", params, headers)
response = conn.getresponse()
if response.status == 301:
    o = urlparse(response.msg['location'])
    conn = HTTPConnection(o.netloc)
    conn.request("POST", o.path, params, headers)
    response = conn.getresponse()
if response.status == 200:
    print(("Test report has been sent to %s. Thank you!" % (server)))
else:
    print(("Error: Could not sent a test report to %s." % (server)))
    print((response.reason))
barsch commented 10 years ago

@petrrr - issue occured due to broken XML - should be fixed now at least on server side - however there is still an issue on client side - the client should never send broken XML

could you please try again submitting your report - thanks!

petrrr commented 10 years ago

@barsch - Yes I can submit now. The test report is here: http://tests.obspy.org/13338/ Note: For this report I use obspy git commit 4d67519 instead of the commit I used when starting this issue, but the problem is equivalent.