Fix needinfo field length
ClosedPublic

Authored by mkrizek on Feb 21 2014, 12:07 PM.

Details

Summary

Now that we support multiple needinfo flags, we also need to increase length of the needinfo field.

Test Plan

Works on my dev machine

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Has this been a problem in production? If so, why isn't there a bug for it? How often has this been a problem and is an increase to 80 chars really enough if we're getting many bugs with multiple needinfos?

Has this been a problem in production? If so, why isn't there a bug for it? How often has this been a problem and is an increase to 80 chars really enough if we're getting many bugs with multiple needinfos?

It hasn't been a problem in production since the feature is not included in any release yet [1] :)

Increasing to 80 chars is plenty, usually there are not more than 3 people in needinfo flag, e.g.:
len('Adam Williamson, Josef Skladanka, Petr Schindler') = 48

So, 80 seems enough to me, do you think we shoud change the value?

"if we're getting many bugs with multiple needinfos"

I don't think I understand what you mean.

[1] https://git.fedorahosted.org/cgit/blockerbugs.git/commit/?h=develop&id=0618ae3bc89431f9d00a3cc103b19fc0376697ed

tflink requested changes to this revision.Feb 25 2014, 4:33 AM

> Has this been a problem in production? If so, why isn't there a bug for it? How often has this been a problem and is an increase to 80 chars really enough if we're getting many bugs with multiple needinfos?

It hasn't been a problem in production since the feature is not included in any release yet [1] :)

Increasing to 80 chars is plenty, usually there are not more than 3 people in needinfo flag, e.g.:

len('Adam Williamson, Josef Skladanka, Petr Schindler') = 48

So, 80 seems enough to me, do you think we shoud change the value?

No, I just didn't realize that's where this was coming from. If there really aren't any bugs with more needinfo people then we should be fine. However, the first bug we hit with with more than 80 chars of needinfo people would cause problems during sync, no? If that's the case, unless we have proof that it can't be more than 80 chars, I'd rather have something like 1024 just to be really safe.

mkrizek updated this revision.Feb 25 2014, 9:55 AM

Increase needinfo length to 1024 for safety

tflink accepted this revision.Mar 3 2014, 4:22 PM

Looks good to me, please merge to develop

mkrizek closed this revision.Mar 4 2014, 9:10 AM

Closed by commit rBLKR9f659cf2c5fa (authored by @mkrizek).