Closed Bug 1615559 Opened 4 years ago Closed 4 years ago

Perma browsertime AttributeError: 'bool' object has no attribute 'lower'

Categories

(Testing :: Raptor, defect, P1)

Version 3
defect

Tracking

(firefox-esr68 unaffected, firefox73 unaffected, firefox74 unaffected, firefox75 fixed)

RESOLVED FIXED
mozilla75
Tracking Status
firefox-esr68 --- unaffected
firefox73 --- unaffected
firefox74 --- unaffected
firefox75 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: marauder)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

Filed by: archaeopteryx [at] coole-files.de
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=288890965&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/VS-U2Cl4S52a8N8uGDZrVw/runs/0/artifacts/public/logs/live_backing.log


[task 2020-02-14T09:49:09.209Z] 09:49:09 INFO - perftest-results-handler Info: parsing results from browsertime json
[task 2020-02-14T09:49:09.209Z] 09:49:09 ERROR - Traceback (most recent call last):
[task 2020-02-14T09:49:09.209Z] 09:49:09 INFO - File "/home/cltbld/tasks/task_1581653631/build/tests/raptor/raptor/raptor.py", line 193, in <module>
[task 2020-02-14T09:49:09.209Z] 09:49:09 INFO - main()
[task 2020-02-14T09:49:09.209Z] 09:49:09 INFO - File "/home/cltbld/tasks/task_1581653631/build/tests/raptor/raptor/raptor.py", line 143, in main
[task 2020-02-14T09:49:09.209Z] 09:49:09 INFO - success = raptor.run_tests(raptor_test_list, raptor_test_names)
[task 2020-02-14T09:49:09.209Z] 09:49:09 INFO - File "/home/cltbld/tasks/task_1581653631/build/tests/raptor/raptor/perftest.py", line 322, in run_tests
[task 2020-02-14T09:49:09.209Z] 09:49:09 INFO - return self.process_results(tests, test_names)
[task 2020-02-14T09:49:09.210Z] 09:49:09 INFO - File "/home/cltbld/tasks/task_1581653631/build/tests/raptor/raptor/perftest.py", line 350, in process_results
[task 2020-02-14T09:49:09.210Z] 09:49:09 INFO - return self.results_handler.summarize_and_output(self.config, tests, test_names)
[task 2020-02-14T09:49:09.210Z] 09:49:09 INFO - File "/home/cltbld/tasks/task_1581653631/build/tests/raptor/raptor/results.py", line 642, in summarize_and_output
[task 2020-02-14T09:49:09.210Z] 09:49:09 INFO - self.results.append(_new_benchmark_result(new_result))
[task 2020-02-14T09:49:09.210Z] 09:49:09 INFO - File "/home/cltbld/tasks/task_1581653631/build/tests/raptor/raptor/results.py", line 620, in _new_benchmark_result
[task 2020-02-14T09:49:09.210Z] 09:49:09 INFO - strtobool(test.get("subtest_lower_is_better", "True"))
[task 2020-02-14T09:49:09.210Z] 09:49:09 INFO - File "/usr/lib/python2.7/distutils/util.py", line 319, in strtobool
[task 2020-02-14T09:49:09.210Z] 09:49:09 INFO - val = string.lower(val)
[task 2020-02-14T09:49:09.210Z] 09:49:09 INFO - File "/usr/lib/python2.7/string.py", line 228, in lower
[task 2020-02-14T09:49:09.210Z] 09:49:09 INFO - return s.lower()
[task 2020-02-14T09:49:09.210Z] 09:49:09 INFO - AttributeError: 'bool' object has no attribute 'lower'
[task 2020-02-14T09:49:09.232Z] 09:49:09 ERROR - Return code: 1

Flags: needinfo?(marian.raiciof)
Keywords: regression
Regressed by: 1615062

[1] does nor work. you can't use bool() on a string and expect it to work

>>> bool("True")
True
>>> bool("False")
True
Assignee: nobody → marian.raiciof
Status: NEW → ASSIGNED

Hey Tarek, i changed the logic there and i am using a ternary operator now.

Push to try:
https://treeherder.mozilla.org/#/jobs?repo=try&tier=1%2C2%2C3&revision=0adef2aef5c5b41993cac71c957a02ec55fc8ec3&group_state=expanded

Flags: needinfo?(tarek)

I am confused about the reason why we have to test if the value is a boolean or a string. why do we have this uncertainty ?
The current patch is fixing the error by trying both cases, but I think the real fix is to have a single type everywhere and the reason why it's not the case is the bug to find

Flags: needinfo?(tarek)
Pushed by mraiciof@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d5dadc09e19b
Perma browsertime AttributeError: 'bool' object has no attribute 'lower' r=perftest-reviewers,sparky
See Also: → 1616066
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: