devo-ps / pipelines

Build pipelines for automation, deployment, testing...
MIT License
119 stars 13 forks source link

Add the default vaule for start_time field when fetch the old runs #130

Closed kaleocheng closed 2 years ago

kaleocheng commented 2 years ago

it's possible that there is no status.json file for a task run, it may fail before generate status json for some reasons.

in that case, ret.sort() will try to use < to compare the NonType and str, it's OK in Python 2 but doesn't work in Python 3:

TypeError: '<' not supported between instances of 'NoneType' and 'str'