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)

defect
Not set
critical

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": []}]
Blocks: 1166683
Component: Treeherder: API → Treeherder: Python Client
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.
Yeah, this doesn't seem like a client side issue to me.
Component: Treeherder: Python Client → Treeherder: API
Whiteboard: [qa-automation-blocked]
It would be helpful to post a link to your code which is doing the submitting as well.
Flags: needinfo?(hskupin)
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(hskupin)
Resolution: --- → WORKSFORME
It's happening again. Looks like that this is a temporary issue with the server.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
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.
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 ago9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.