Closed Bug 1176759 Opened 10 years ago Closed 10 years ago

Ship-it returns 500

Categories

(Release Engineering :: Release Automation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Unassigned)

Details

Attachments

(1 file)

Looks like related to https://github.com/mozilla/ship-it/pull/23: Traceback (most recent call last): File "/data/www/ship-it.mozilla.org/release-kickoff/vendor/lib/python/flask/app.py", line 1687, in wsgi_app response = self.full_dispatch_request() File "/data/www/ship-it.mozilla.org/release-kickoff/vendor/lib/python/flask/app.py", line 1360, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib64/python2.6/site-packages/newrelic-2.44.0.36/newrelic/hooks/framework_flask.py", line 98, in _nr_wrapper_Flask_handle_exception_ return wrapped(*args, **kwargs) File "/data/www/ship-it.mozilla.org/release-kickoff/vendor/lib/python/flask/app.py", line 1358, in full_dispatch_request rv = self.dispatch_request() File "/data/www/ship-it.mozilla.org/release-kickoff/vendor/lib/python/flask/app.py", line 1344, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/lib64/python2.6/site-packages/newrelic-2.44.0.36/newrelic/hooks/framework_flask.py", line 40, in _nr_wrapper_handler_ return wrapped(*args, **kwargs) File "/data/www/ship-it.mozilla.org/release-kickoff/vendor/lib/python/flask/views.py", line 83, in view return self.dispatch_request(*args, **kwargs) File "/data/www/ship-it.mozilla.org/release-kickoff/vendor/lib/python/flask/views.py", line 150, in dispatch_request return meth(*args, **kwargs) File "/data/www/ship-it.mozilla.org/release-kickoff/kickoff/views/releases.py", line 58, in get return jsonify(table.query.filter_by(name=releaseName).first().toDict()) File "/data/www/ship-it.mozilla.org/release-kickoff/kickoff/model.py", line 81, in toDict me[c.name] = getattr(self, c.name) File "/usr/lib64/python2.6/site-packages/sqlalchemy/ext/hybrid.py", line 465, in __get__ return self.fget(instance) File "/data/www/ship-it.mozilla.org/release-kickoff/kickoff/model.py", line 51, in shippedAt return pytz.utc.localize(self._shippedAt).isoformat() File "/usr/lib/python2.6/site-packages/pytz/__init__.py", line 196, in localize if dt.tzinfo is not None: AttributeError: 'NoneType' object has no attribute 'tzinfo'
FTR, mysql> select count(*) from firefox_release where shippedAt is NULL; +----------+ | count(*) | +----------+ | 72 | +----------+ 1 row in set (0.00 sec) mysql> select count(*) from firefox_release; +----------+ | count(*) | +----------+ | 640 | +----------+ 1 row in set (0.00 sec)
Attached file Do not operate on None
Attachment #8625352 - Flags: review?(bhearsum)
Another option would be reverting https://github.com/mozilla/ship-it/pull/23. I'm not sure what should we also do to revert the db changes (if needed).
(In reply to Rail Aliiev [:rail] from comment #4) > Another option would be reverting > https://github.com/mozilla/ship-it/pull/23. I'm not sure what should we also > do to revert the db changes (if needed). I would prefer this option, because the change made in this PR is big enough to make us patch it multiple times.
Sure, the priority goes to the release. I can also use the work week to work with Ben and you on this.
Attachment #8625352 - Flags: review?(bhearsum)
Rail, Ben, I would like to try to deploy https://github.com/mozilla/ship-it/pull/23 (aka bug 1083718). However, we will have this bug again. Does Rail's patch in comment #7 have a chance to work? Or do we have now a staging env to test that? Of course, I won't ask for a deployment of that before 40 is released. thanks
Flags: needinfo?(rail)
Flags: needinfo?(bhearsum)
It's been a while, but IIRC the patch should fix the issue.
Flags: needinfo?(rail)
Flags: needinfo?(bhearsum)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: