Closed
Bug 1177106
Opened 10 years ago
Closed 9 years ago
Cannot submit reports to treeherder staging: "TypeError: __str__ returned non-string (type WantReadError)"
Categories
(Tree Management :: Treeherder: API, defect)
Tree Management
Treeherder: API
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: whimboo, Unassigned)
References
Details
(Whiteboard: [qa-automation-blocked])
A couple of minutes ago I tried to upload reports for our firefox ui tests to https://treeherder.allizom.org and it fails with the following exception:
Traceback (most recent call last):
File "runtests.py", line 208, in <module>
main()
File "runtests.py", line 203, in main
runner.run_tests(options, args)
File "runtests.py", line 104, in run_tests
print('Cannot post job information to treeherder: %s' % e.message)
TypeError: __str__ returned non-string (type WantReadError)
The key and secret are fine, so maybe it relates to the job collection or a server side change, which is not clear from looking at this failure.
Here the job collection I'm posting:
Sending results to Treeherder: [{"project": "mozilla-central", "job": {"end_timestamp": 0, "submit_timestamp": 1435163873, "start_timestamp": 1435163873, "build_url": "", "name": "Firefox UI Test - functional (en-US)", "option_collection": {"opt": true}, "artifacts": [], "machine_platform": {"platform": "linux64", "os_name": "linux", "architecture": "x86_64"}, "who": "", "group_symbol": "Ff", "reason": "", "group_name": "Firefox UI Test - functional", "machine": "whimboo", "state": "running", "log_references": [], "result": "", "build_platform": {"platform": "linux64", "os_name": "linux", "architecture": "x86_64"}, "job_symbol": "en-US", "job_guid": "2e8192dd-b505-4c0d-9d30-1ed4b7564356", "product_name": "Firefox", "desc": ""}, "revision_hash": "3a6218bb5c12a4e4567e7d9001a54765c008ea1a", "coalesced": []}]
Updated•10 years ago
|
Component: Treeherder: API → Treeherder: Python Client
Reporter | ||
Comment 1•10 years ago
|
||
I traced this down to _post_json() in TreeherderClient where we use the requests module to post the data. So this should really be a server side issue.
Comment 2•10 years ago
|
||
Yeah, this doesn't seem like a client side issue to me.
Component: Treeherder: Python Client → Treeherder: API
Reporter | ||
Updated•10 years ago
|
Whiteboard: [qa-automation-blocked]
Comment 3•10 years ago
|
||
It would be helpful to post a link to your code which is doing the submitting as well.
Flags: needinfo?(hskupin)
Reporter | ||
Comment 4•10 years ago
|
||
Not sure why it wasn't working eariler but now all is fine and I can submit results:
https://treeherder.allizom.org/#/jobs?repo=mozilla-central&revision=be81b8d6fae9&filter-job_group_symbol=Ff&filter-job_group_symbol=Fr&filter-job_group_symbol=Fu
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(hskupin)
Resolution: --- → WORKSFORME
Reporter | ||
Comment 5•10 years ago
|
||
It's happening again. Looks like that this is a temporary issue with the server.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment 6•9 years ago
|
||
I'm not really sure how to proceed with this.
Without knowing exactly what was submitted, there isn't much to go on.
Newer versions of the client (can't remember if we've done a release since) will log more about what was submitted, so perhaps that will help.
Reporter | ||
Comment 7•9 years ago
|
||
The problem didn't occur all August so far. Lets close as WFM for now. I will reopen if it happens again.
Status: REOPENED → RESOLVED
Closed: 10 years ago → 9 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•