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

Changeset 92137 in webkit


Ignore:
Timestamp:
Aug 1, 2011, 1:39:31 PM (15 years ago)
Author:
abarth@webkit.org
Message:

Remove unused functionality from gardeningserver
https://bugs.webkit.org/show_bug.cgi?id=65479

Reviewed by Dimitri Glazkov.

We now handle these operations directly from the front-end. That means
they work even without the gardening server running!

Also, add some missing files to the list of static files.

  • Scripts/webkitpy/tool/servers/gardeningserver.py:
  • Scripts/webkitpy/tool/servers/gardeningserver_unittest.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r92136 r92137  
     12011-08-01  Adam Barth  <abarth@webkit.org>
     2
     3        Remove unused functionality from gardeningserver
     4        https://bugs.webkit.org/show_bug.cgi?id=65479
     5
     6        Reviewed by Dimitri Glazkov.
     7
     8        We now handle these operations directly from the front-end.  That means
     9        they work even without the gardening server running!
     10
     11        Also, add some missing files to the list of static files.
     12
     13        * Scripts/webkitpy/tool/servers/gardeningserver.py:
     14        * Scripts/webkitpy/tool/servers/gardeningserver_unittest.py:
     15
    1162011-08-01  Dimitri Glazkov  <dglazkov@chromium.org>
    217
  • trunk/Tools/Scripts/webkitpy/tool/servers/gardeningserver.py

    r92053 r92137  
    3939    STATIC_FILE_NAMES = frozenset([
    4040        "base.js",
     41        "Bugzilla.js",
     42        "builders.js",
    4143        "checkout.js",
    4244        "config.js",
     
    6769        return self.server.tool.executive.run_command([self.server.tool.path()] + args, cwd=self.server.tool.scm().checkout_root)
    6870
    69     def changelog(self):
    70         revision = self.query['revision'][0]
    71         head_revision = self.server.tool.scm().head_svn_revision()
    72         if revision > head_revision:
    73             # Updating the working copy could conflict with any rebaselines we have in progress.
    74             update_webkit_command = self.server.tool.port().update_webkit_command()
    75             self.server.tool.executive.run_and_throw_if_fail(update_webkit_command, quiet=True, cwd=self.server.tool.scm().checkout_root)
    76         commit_info = self.server.tool.checkout().commit_info_for_revision(revision)
    77         if not commit_info:
    78             self.send_error(404, "File not found")
    79         else:
    80             self._serve_json(commit_info.to_json())
    81 
    82     def buildbot(self):
    83         builder_statuses = self.server.tool.chromium_buildbot().builder_statuses()
    84         self._serve_json(builder_statuses)
    85 
    8671    def rollout(self):
    8772        revision = self.query['revision'][0]
  • trunk/Tools/Scripts/webkitpy/tool/servers/gardeningserver_unittest.py

    r91210 r92137  
    7070        OutputCapture().assert_outputs(self, handler.do_POST, expected_stderr=expected_stderr, expected_stdout=expected_stdout)
    7171
    72     def test_changelog(self):
    73         expected_stderr = "MOCK run_and_throw_if_fail: ['mock-update-webkit'], cwd=/mock-checkout\n"
    74         expected_stdout = """== Begin JSON Response ==
    75 {"bug_id": 42, "author_email": "abarth@webkit.org", "reviewer_text": "Darin Adler", "author_name": "Adam Barth", "changed_files": ["path/to/file", "another/file"]}
    76 == End JSON Response ==
    77 """
    78         self._post_to_path("/changelog?revision=2314", expected_stderr=expected_stderr, expected_stdout=expected_stdout)
    79 
    80     def test_buildbot(self):
    81         expected_stdout = '== Begin JSON Response ==\n[{"is_green": true, "name": "Builder1", "activity": "building"}, {"is_green": true, "name": "Builder2", "activity": "idle"}]\n== End JSON Response ==\n'
    82         self._post_to_path("/buildbot", expected_stdout=expected_stdout, expected_stderr='')
    83 
    8472    def test_rollout(self):
    8573        expected_stderr = "MOCK run_command: ['echo', 'rollout', '--force-clean', '--non-interactive', '2314', 'MOCK rollout reason'], cwd=/mock-checkout\n"
Note: See TracChangeset for help on using the changeset viewer.