ReleaseEngineering/How To/Fix Build4h not updating
< ReleaseEngineering | How To
Jump to navigation
Jump to search
- Issue
Notification Type: PROBLEM Service: http file age - /buildjson/builds-4hr.js.gz Host: builddata.pub.build.mozilla.org Address: 63.245.215.57 State: CRITICAL
- Problem on buildbot-master
- Invalid data imported on buildbot-master
- In order to sort the request we can use the following sequence
mysql> select * from builds, build_properties, properties where builds.id = build_properties.build_id and build_properties.property_id = properties.id and name = 'request_times' and value like '"%'; build_properties.property_id = properties.id and name = 'request_times' and value like '"%'; +-----------+-------------+------------+----------+-----------+---------------------+---------------------+--------+------------------------------------------------+-----------+------+-------------+-----------+-----------+---------------+------------+--------------------------------------------------------------------------------------------------------------------------------------+ | id | buildnumber | builder_id | slave_id | master_id | starttime | endtime | result | reason | source_id | lost | property_id | build_id | id | name | source | value | +-----------+-------------+------------+----------+-----------+---------------------+---------------------+--------+------------------------------------------------+-----------+------+-------------+-----------+-----------+---------------+------------+--------------------------------------------------------------------------------------------------------------------------------------+ | 110001696 | 705 | 615690 | 13071 | 213 | 2016-10-20 09:08:06 | 2016-10-20 10:32:59 | 2 | scheduler | 16077227 | 0 | 403588549 | 110001696 | 403588549 | request_times | postrun.py | "{'128606532': 1476951285L}" | | 110002178 | 707 | 615690 | 12017 | 213 | 2016-10-20 09:57:12 | 2016-10-20 11:21:48 | 2 | scheduler | 16077868 | 0 | 403590537 | 110002178 | 403590537 | request_times | postrun.py | "{'128608528': 1476952425L}" |
- In this case the issue is that we have a number of rows in the statusdb with invalid request times.
- The fix
To fix this someone need to decode the values as json, eval()'ing as python expressions, re-encoding as json, and writing back to the database.
- See also Bug 1311964