Changeset 57550 in webkit


Ignore:
Timestamp:
Apr 13, 2010 4:54:42 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-13 Eric Seidel <eric@webkit.org>

Unreviewed, just adding a sanity check.

Add check to make sure commit-queue can never commit too short a message
https://bugs.webkit.org/show_bug.cgi?id=37528

The commit-queue made bogus messages here:
http://trac.webkit.org/changeset/57532
http://trac.webkit.org/changeset/57534

This was a regression caused by adding unicode parsing for
our ChangeLog files. Popen does not seem to play nice with
unicode strings.

I'm also adding an "assert" to make sure short ChangeLogs never happen again.

  • Scripts/webkitpy/common/system/executive.py:
    • Cast input to strings before passing to POpen
  • Scripts/webkitpy/tool/steps/commit.py:
    • Validate that commit messages are not to short.
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r57546 r57550  
     12010-04-13  Eric Seidel  <eric@webkit.org>
     2
     3        Unreviewed, just adding a sanity check.
     4
     5        Add check to make sure commit-queue can never commit too short a message
     6        https://bugs.webkit.org/show_bug.cgi?id=37528
     7
     8        The commit-queue made bogus messages here:
     9        http://trac.webkit.org/changeset/57532
     10        http://trac.webkit.org/changeset/57534
     11
     12        This was a regression caused by adding unicode parsing for
     13        our ChangeLog files.  Popen does not seem to play nice with
     14        unicode strings.
     15
     16        I'm also adding an "assert" to make sure short ChangeLogs never happen again.
     17
     18        * Scripts/webkitpy/common/system/executive.py:
     19         - Cast input to strings before passing to POpen
     20        * Scripts/webkitpy/tool/steps/commit.py:
     21         - Validate that commit messages are not to short.
     22
    1232010-04-13  Adam Roben  <aroben@apple.com>
    224
  • trunk/WebKitTools/Scripts/webkitpy/common/system/executive.py

    r57450 r57550  
    180180            if input:
    181181                stdin = subprocess.PIPE
    182             string_to_communicate = input
     182            # string_to_communicate seems to need to be a str for proper
     183            # communication with shell commands.
     184            # See https://bugs.webkit.org/show_bug.cgi?id=37528
     185            # For an example of a regresion caused by passing a unicode string through.
     186            string_to_communicate = str(input)
    183187        if return_stderr:
    184188            stderr = subprocess.STDOUT
  • trunk/WebKitTools/Scripts/webkitpy/tool/steps/commit.py

    r56592 r57550  
    3333    def run(self, state):
    3434        commit_message = self._tool.checkout().commit_message_for_this_commit()
     35        if len(commit_message.message()) < 50:
     36            raise Exception("Attempted to commit with a commit message shorter than 50 characters.  Either your patch is missing a ChangeLog or webkit-patch may have a bug.")
    3537        state["commit_text"] =  self._tool.scm().commit_with_message(commit_message.message())
Note: See TracChangeset for help on using the changeset viewer.