<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>49798</bug_id>
          
          <creation_ts>2010-11-19 05:21:51 -0800</creation_ts>
          <short_desc>webkit-patch build should never fail due to local commits</short_desc>
          <delta_ts>2017-07-18 08:29:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>33378</dependson>
    
    <dependson>50766</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>311376</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-11-19 05:21:51 -0800</bug_when>
    <thetext>webkit-patch build should never fail due to local commits

http://queues.webkit.org/results/6204049

Failed to run &quot;[&apos;./WebKitTools/Scripts/webkit-patch&apos;, &apos;--status-host=queues.webkit.org&apos;, &apos;--bot-id=eseidel-cq-sl&apos;, &apos;build&apos;, &apos;--no-clean&apos;, &apos;--no-update&apos;, &apos;--build-style=both&apos;]&quot; exit_code: 1
ERROR: Working directory has local commits, pass --force-clean to continue.

That seems wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>313266</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-11-24 06:37:04 -0800</bug_when>
    <thetext>It occured again on the CQ bot. :( The git svn dcommit failed,
but the local commit remained and it made webkit-patch build fail


http://queues.webkit.org/results/6372028
-----------------------------------------
Failed to run &quot;[&apos;./WebKitTools/Scripts/webkit-patch&apos;, &apos;--status-host=queues.webkit.org&apos;, &apos;--bot-id=abarth-cq-sl&apos;, &apos;land-attachment&apos;, &apos;--force-clean&apos;, &apos;--ignore-builders&apos;, &apos;--non-interactive&apos;, &apos;--parent-command=commit-queue&apos;, 74673]&quot; exit_code: 2
Logging in as commit-queue@webkit.org...
Fetching: https://bugs.webkit.org/attachment.cgi?id=74673&amp;action=edit
Fetching: https://bugs.webkit.org/show_bug.cgi?id=49973&amp;ctype=xml
Processing 1 patch from 1 bug.
Cleaning working directory
Updating working directory
Processing patch 74673 from bug 49973.
Parsing ChangeLog: /Users/abarth/git/webkit-queue/WebCore/ChangeLog
Parsing ChangeLog: /Users/abarth/git/webkit-queue/WebKit/qt/ChangeLog
Parsing ChangeLog: /Users/abarth/git/webkit-queue/WebKit2/ChangeLog
Failed to run &quot;[u&apos;git&apos;, u&apos;svn&apos;, u&apos;dcommit&apos;]&quot; exit_code: 1
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
RA layer request failed: Server sent unexpected return value (500 Internal Server Error) in response to PUT request for &apos;/repository/webkit/!svn/wrk/2a76944f-3c7f-41d5-9907-b010ee326c57/trunk/WebCore/ChangeLog&apos; at /usr/local/git/libexec/git-core/git-svn line 558


Failed to run &quot;[u&apos;git&apos;, u&apos;svn&apos;, u&apos;dcommit&apos;]&quot; exit_code: 1
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
RA layer request failed: Server sent unexpected return value (500 Internal Server Error) in response to PUT request for &apos;/repository/webkit/!svn/wrk/2a76944f-3c7f-41d5-9907-b010ee326c57/trunk/WebCore/ChangeLog&apos; at /usr/local/git/libexec/git-core/git-svn line 558


Failed to run &quot;[u&apos;git&apos;, u&apos;svn&apos;, u&apos;dcommit&apos;]&quot; exit_code: 1


http://queues.webkit.org/results/6299043
-----------------------------------------
Failed to run &quot;[&apos;./WebKitTools/Scripts/webkit-patch&apos;, &apos;--status-host=queues.webkit.org&apos;, &apos;--bot-id=abarth-cq-sl&apos;, &apos;build&apos;, &apos;--no-clean&apos;, &apos;--no-update&apos;, &apos;--build-style=both&apos;]&quot; exit_code: 1
ERROR: Working directory has local commits, pass --force-clean to continue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315720</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-01 10:23:51 -0800</bug_when>
    <thetext>Bug 48697 hit the local commits issue too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>320077</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-10 03:15:51 -0800</bug_when>
    <thetext>I&apos;m not sure why build even needs to clean.

Especially when --no-clean is passed:

class Build(AbstractSequencedCommand):
    name = &quot;build&quot;
    help_text = &quot;Update working copy and build&quot;
    steps = [
        steps.CleanWorkingDirectory,
        steps.Update,
        steps.Build,
    ]

class CleanWorkingDirectory(AbstractStep):
    def __init__(self, tool, options, allow_local_commits=False):
        AbstractStep.__init__(self, tool, options)
        self._allow_local_commits = allow_local_commits

    @classmethod
    def options(cls):
        return AbstractStep.options() + [
            Options.force_clean,
            Options.clean,
        ]

    def run(self, state):
        os.chdir(self._tool.scm().checkout_root)
        if not self._allow_local_commits:
            self._tool.scm().ensure_no_local_commits(self._options.force_clean)
        if self._options.clean:
            self._tool.scm().ensure_clean_working_directory(force_clean=self._options.force_clean)

We should probably have run() just return early if not self._options.clean?  I don&apos;t know when it makes sense to remove local commits when --no-clean is passed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>320078</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-10 03:16:11 -0800</bug_when>
    <thetext>I&apos;m not sure what about our setup changed to make this such a common failure though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>320079</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-10 03:25:11 -0800</bug_when>
    <thetext>It seems this step has always been this way:
http://trac.webkit.org/changeset/51431</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>320080</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-10 03:28:05 -0800</bug_when>
    <thetext>Yeah, I think the class was just written this way: http://trac.webkit.org/changeset/51233.  I think I&apos;ll fix --no-clean to not even remove local commits.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>320355</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-12-10 13:19:30 -0800</bug_when>
    <thetext>I often run build --force-clean when I want to start new day of work with a fresh, clean build.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>