Closed Bug 1197023 Opened 11 years ago Closed 11 years ago

Getting ValueError: No JSON object could be decoded tracebacks from restmail.net/beta123done.org BIDPOM automated tests

Categories

(Cloud Services :: Operations: Miscellaneous, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Unassigned)

References

()

Details

(Whiteboard: [fromAutomation])

cc:ing a few folks with history At least since 5:18pm PDT[0], our bidpom[1].stage.saucelabs job started failing (5 tests, all of which use restmail.net, and which run against beta.123done.org) due to: (Just picking one of five tests, here, for brevity.) 17:23:22 ____________________ TestSignIn.test_sign_in_returning_user ____________________ 17:23:22 tests/check_sign_in.py:75: in test_sign_in_returning_user 17:23:22 self.create_verified_user(mozwebqa.selenium, mozwebqa.timeout) 17:23:22 tests/base.py:44: in create_verified_user 17:23:22 mail = restmail.get_mail(user.primary_email, timeout=timeout) 17:23:22 tests/restmail.py:20: in get_mail 17:23:22 restmail = json.loads(response.content) 17:23:22 /usr/local/lib/python2.7/json/__init__.py:338: in loads 17:23:22 return _default_decoder.decode(s) 17:23:22 /usr/local/lib/python2.7/json/decoder.py:366: in decode 17:23:22 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 17:23:22 /usr/local/lib/python2.7/json/decoder.py:384: in raw_decode 17:23:22 raise ValueError("No JSON object could be decoded") 17:23:22 E ValueError: No JSON object could be decoded 17:23:22 ------------------------------- pytest-mozwebqa -------------------------------- 17:23:22 Failing URL: http://beta.123done.org/ 17:23:22 generated xml file: /var/lib/jenkins/jobs/bidpom.stage.saucelabs/workspace/results.xml 17:23:22 =========================== short test summary info ============================ 17:23:22 FAIL tests/check_add_email.py::TestAddEmail::()::test_add_email 17:23:22 FAIL tests/check_reset_password.py::TestResetPassword::()::test_reset_password 17:23:22 FAIL tests/check_sign_in.py::TestSignIn::()::test_sign_in_new_user_helper 17:23:22 FAIL tests/check_sign_in.py::TestSignIn::()::test_sign_in_new_user 17:23:22 FAIL tests/check_sign_in.py::TestSignIn::()::test_sign_in_returning_user 17:23:22 ===================== 5 failed, 5 passed in 298.14 seconds ===================== This is an unusual error (at least, I don't believe we've encountered this particular condition/stacktrace, before). [0] https://webqa-ci.mozilla.com/view/BIDPOM/job/bidpom.stage.saucelabs/481/ [1] https://github.com/mozilla/bidpom
It appears that the certificate for https://restmail.net/ has expired... "restmail.net uses an invalid security certificate. The certificate expired on 21/08/2015 00:59. The current time is 21/08/2015 10:37. (Error code: sec_error_expired_certificate)" While we do indicate that the get should not verify certs, it still appears to be causing an issue for our Jenkins box. Locally it's working, but I think the correct fix is to renew this cert as soon as possible, and ahead of any further expirations.
We can avoid the certificate issues by using HTTP instead. See https://github.com/mozilla/bidpom/pull/97 for a pull request to fix our tests. Adhoc run: http://webqa-ci-staging1.qa.scl3.mozilla.com:8080/job/bidpom.adhoc/15/
No longer depends on: 1197129
(In reply to Dave Hunt (:davehunt) from comment #2) > We can avoid the certificate issues by using HTTP instead. See > https://github.com/mozilla/bidpom/pull/97 for a pull request to fix our > tests. Adhoc run: > http://webqa-ci-staging1.qa.scl3.mozilla.com:8080/job/bidpom.adhoc/15/ Since we have bug 1197129 separate (and still open), and https://github.com/mozilla/bidpom/pull/97 was reviewed and merged, we saw our jobs https://webqa-ci.mozilla.com/view/BIDPOM/job/bidpom.stage.saucelabs/492/ and https://webqa-ci.mozilla.com/view/BIDPOM/job/bidpom.stage/367/ fixed. Dave - not sure if you want to mark this fixed, as we still have bug 1197129 open, or what; thanks for the fixing pull!
Flags: needinfo?(dave.hunt)
Let's mark this as fixed. Thanks Stephen.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(dave.hunt)
Resolution: --- → FIXED
(In reply to Dave Hunt (:davehunt) from comment #4) > Let's mark this as fixed. Thanks Stephen. Verified FIXED; no, thanks to you and :jrgm for the fix :-)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.