Closed
Bug 769082
Opened 13 years ago
Closed 10 years ago
browserInfo should not use the magical string "NULL"
Categories
(Testing :: Talos, defect)
Testing
Talos
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: k0scist, Assigned: wlach)
Details
Attachments
(1 file)
3.54 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
http://hg.mozilla.org/build/talos/file/0c2521dde365/talos/run_tests.py#l80
For 'repository' and 'sourcestamp' we use a special string "NULL":
http://hg.mozilla.org/build/talos/file/0c2521dde365/talos/run_tests.py#l203
Python has a singleton for this: None . browser_config should have
None as the default, then the logic can look as follows:
info = {'buildid': ('App', 'BuildID'),
'repository': ('App', 'SourceRepository')
'sourcestamp': ...,
...}
for key, value in info.items():
if not browser_config.get(key):
browser_config[key] = config.get(*value)
Comment 1•13 years ago
|
||
I thought we needed NULL for a reason, maybe to insert into the database?
Reporter | ||
Comment 2•13 years ago
|
||
(In reply to Joel Maher (:jmaher) from comment #1)
> I thought we needed NULL for a reason, maybe to insert into the database?
I haven't done a complete audit on what all would have to change. It is likely that 'NULL' should be used in the graphserver report, but IMHO that is an issue of serialization and not a string we should store and check against internally
Assignee | ||
Comment 3•10 years ago
|
||
I ran into this when working on bug 1068989. I believe we can just take this out, all valid builds (even user builds) should have these variables defined. Any objections if I file this as INVALID and remove the code in question in bug 1068989?
Flags: needinfo?(jmaher)
Comment 4•10 years ago
|
||
good idea. As long as we guarantee we have a value.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(jmaher)
Resolution: --- → WONTFIX
Assignee | ||
Comment 5•10 years ago
|
||
So this bug just resulted in a bunch of invalid information being submitted to Datazilla, which caused a whole bunch of confusion. I would like to fix this via bug 1068989, but I'm not sure when I'm going to finish that. Let's do up a quick patch to address this problem.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Assignee | ||
Comment 6•10 years ago
|
||
Assignee: nobody → wlachance
Attachment #8505776 -
Flags: review?(jmaher)
Comment 7•10 years ago
|
||
Comment on attachment 8505776 [details] [diff] [review]
Don't ever allow NULL values for repository or sourcestamp
Review of attachment 8505776 [details] [diff] [review]:
-----------------------------------------------------------------
please ensure you test this- especially on android. I don't like the hardcoded value, I assume that was a development/debugging thing.
::: talos/results.py
@@ +538,4 @@
> # make a browser_config dictionary with minimal information
> browser_config = {'branch_name': '',
> 'buildid': 'testbuildid',
> + 'sourcestamp': '62f0b771583c',
why the hardcoded value?
Attachment #8505776 -
Flags: review?(jmaher) → review-
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8505776 [details] [diff] [review]
Don't ever allow NULL values for repository or sourcestamp
Review of attachment 8505776 [details] [diff] [review]:
-----------------------------------------------------------------
::: talos/results.py
@@ +538,4 @@
> # make a browser_config dictionary with minimal information
> browser_config = {'branch_name': '',
> 'buildid': 'testbuildid',
> + 'sourcestamp': '62f0b771583c',
I agree that hardcoded values are normally bad, but this is just a test strawman. I don't think we ever shipped Firefox 3.14 :) I only removed NULL because I didn't want to give people the impression that it was acceptable value. :)
Assignee | ||
Comment 9•10 years ago
|
||
Comment on attachment 8505776 [details] [diff] [review]
Don't ever allow NULL values for repository or sourcestamp
Review of attachment 8505776 [details] [diff] [review]:
-----------------------------------------------------------------
Resetting r?, as I think the r- was due to a misunderstanding
Attachment #8505776 -
Flags: review- → review?(jmaher)
Comment 10•10 years ago
|
||
my concern is that we might be uploading 62f0b771583c as the sourcestamp instead of NULL; that will cause other problems in and of itself. Am I reading this wrong?
Assignee | ||
Comment 11•10 years ago
|
||
(In reply to Joel Maher (:jmaher) from comment #10)
> my concern is that we might be uploading 62f0b771583c as the sourcestamp
> instead of NULL; that will cause other problems in and of itself. Am I
> reading this wrong?
Yes, you are looking at test code which is not used in production.
Comment 12•10 years ago
|
||
Comment on attachment 8505776 [details] [diff] [review]
Don't ever allow NULL values for repository or sourcestamp
Review of attachment 8505776 [details] [diff] [review]:
-----------------------------------------------------------------
/me not dense anymore
Attachment #8505776 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 13•10 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•