⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 227782 in webkit


Ignore:
Timestamp:
Jan 30, 2018, 5:29:32 AM (9 years ago)
Author:
Carlos Garcia Campos
Message:

Unreviewed. Try to avoid webdriver tests step timing out in the bots.

The process itself doesn't seem to be timing out, but the buildbot is always reporting the step as finished
after timeout. I think there's a race condition or something in buildbot, and it keeps watching the json log
file even when it has already been written. This is a speculative workaround, assuming that's the problem, that
creates the json file before running the tests. I'll revert this if it doesn't fix the issue in the end.

  • Scripts/run-webdriver-tests:
  • Scripts/webkitpy/webdriver_tests/webdriver_test_runner.py:

(WebDriverTestRunner.dump_results_to_json_file):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r227778 r227782  
     12018-01-30  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Unreviewed. Try to avoid webdriver tests step timing out in the bots.
     4
     5        The process itself doesn't seem to be timing out, but the buildbot is always reporting the step as finished
     6        after timeout. I think there's a race condition or something in buildbot, and it keeps watching the json log
     7        file even when it has already been written. This is a speculative workaround, assuming that's the problem, that
     8        creates the json file before running the tests. I'll revert this if it doesn't fix the issue in the end.
     9
     10        * Scripts/run-webdriver-tests:
     11        * Scripts/webkitpy/webdriver_tests/webdriver_test_runner.py:
     12        (WebDriverTestRunner.dump_results_to_json_file):
     13
    1142018-01-30  Basuke Suzuki  <Basuke.Suzuki@sony.com>
    215
  • trunk/Tools/Scripts/run-webdriver-tests

    r227193 r227782  
    7575        print '***'
    7676
     77if options.json_output is not None:
     78    # Create the json output file now, because buildbot watches it and it seems
     79    # that creating it a t once after the tests causes problems.
     80    directory = os.path.dirname(options.json_output)
     81    if directory and not os.path.exists(directory):
     82        os.makedirs(directory)
     83    open(options.json_output, 'wb').close()
     84
    7785port._display_server = options.display_server
    7886runner = WebDriverTestRunner(port)
  • trunk/Tools/Scripts/webkitpy/webdriver_tests/webdriver_test_runner.py

    r227677 r227782  
    153153            json_results['results'].append(results)
    154154
    155         directory = os.path.dirname(output_path)
    156         if directory and not os.path.exists(directory):
    157             os.makedirs(directory)
    158 
    159155        with open(output_path, 'wb') as fp:
    160156            json.dump(json_results, fp)
Note: See TracChangeset for help on using the changeset viewer.