New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 719310 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 718707



Sign in to add a comment

'unicode' object has no attribute 'original_string' when parsing test_expectations failure

Project Member Reported by tansell@chromium.org, May 8 2017

Issue description

We seem to be occasionally getting the following error when running Layout Tests on Swarming on windows;

-------------------------
12:38:42.239 2644 Parsing expectations ...

AttributeError raised: 'unicode' object has no attribute 'original_string'
Traceback (most recent call last):
  File "e:\b\s\w\ir\third_party\WebKit\Tools\Scripts\webkitpy\layout_tests\run_webkit_tests.py", line 68, in main
    return run(port, options, args, stderr, stdout).exit_code
  File "e:\b\s\w\ir\third_party\WebKit\Tools\Scripts\webkitpy\layout_tests\run_webkit_tests.py", line 580, in run
    run_details = _run_tests(port, options, args, printer)
  File "e:\b\s\w\ir\third_party\WebKit\Tools\Scripts\webkitpy\layout_tests\run_webkit_tests.py", line 571, in _run_tests
    return manager.run(args)
  File "e:\b\s\w\ir\third_party\WebKit\Tools\Scripts\webkitpy\layout_tests\controllers\manager.py", line 132, in run
    self._expectations.remove_tests(tests_in_other_chunks)
  File "e:\b\s\w\ir\third_party\WebKit\Tools\Scripts\webkitpy\layout_tests\models\test_expectations.py", line 1186, in remove_tests
    self.remove_expectation_line(test)
  File "e:\b\s\w\ir\third_party\WebKit\Tools\Scripts\webkitpy\layout_tests\models\test_expectations.py", line 1205, in remove_expectation_line
    if not self._model.has_test(test):
  File "e:\b\s\w\ir\third_party\WebKit\Tools\Scripts\webkitpy\layout_tests\models\test_expectations.py", line 663, in has_test
    return test in self._test_to_expectation_line
  File "e:\b\s\w\ir\third_party\WebKit\Tools\Scripts\webkitpy\layout_tests\models\test_expectations.py", line 253, in __eq__
    return (self.original_string == other.original_string
AttributeError: 'unicode' object has no attribute 'original_string'
--------------------------

https://chromium-swarm.appspot.com/task?id=35f80c7792d51110&refresh=10&show_raw=1

 
Blocking: 718707
Labels: -Restrict-View-Google
Labels: Pri-2 Type-Bug
Status: Available (was: Untriaged)
So, somewhere there is a TestExpectationLine being compared directly with a string (unicode object), which is definitely a bug. But it only occurs in particular circumstances?
I don't understand why it is only happening on this bot and not everywhere...
I've uploaded https://codereview.chromium.org/2872593004

But I don't yet understand why this is happening only on this machine...
Again - this working on a different machine -> https://chromium-swarm.appspot.com/task?id=3604bbbab3782210&refresh=10&show_raw=1

Again - it worked when retried on the same machine -> https://chromium-swarm.appspot.com/task?id=3604bc1a9810e810&refresh=10&show_raw=1
Owner: tansell@chromium.org
Status: Fixed (was: Available)
This should now be fixed :-)

Sign in to add a comment