<?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>47981</bug_id>
          
          <creation_ts>2010-10-20 06:23:20 -0700</creation_ts>
          <short_desc>[NRWT] Get child process number from environment variable</short_desc>
          <delta_ts>2010-10-21 02:35:21 -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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gabor Rapcsanyi">rgabor</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abecsi</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>ojan</cc>
    
    <cc>ossy</cc>
    
    <cc>pol</cc>
    
    <cc>tony</cc>
    
    <cc>wsiegrist</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>296757</commentid>
    <comment_count>0</comment_count>
    <who name="Gabor Rapcsanyi">rgabor</who>
    <bug_when>2010-10-20 06:23:20 -0700</bug_when>
    <thetext>Get the child process number from an environment variable if it exists.
It would be useful for buildbots.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296766</commentid>
    <comment_count>1</comment_count>
      <attachid>71284</attachid>
    <who name="Gabor Rapcsanyi">rgabor</who>
    <bug_when>2010-10-20 06:33:25 -0700</bug_when>
    <thetext>Created attachment 71284
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296768</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-10-20 06:37:47 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Created an attachment (id=71284) [details]
&gt; proposed patch

LGTM. ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296811</commentid>
    <comment_count>3</comment_count>
      <attachid>71284</attachid>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2010-10-20 08:33:08 -0700</bug_when>
    <thetext>Comment on attachment 71284
proposed patch

I don&apos;t have a problem with this, but how is an environment variable easier than just passing something on the commandline?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296815</commentid>
    <comment_count>4</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-10-20 08:38:31 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 71284 [details])
&gt; I don&apos;t have a problem with this, but how is an environment variable easier than just passing something on the commandline?

If you would like to add/modify a commandline parameter on the buildbot, you have to modify the buildbot master config and ask Bill to update the buildbot master. But you can easily set an environment variable locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296835</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-10-20 09:30:50 -0700</bug_when>
    <thetext>I guess.  Always feels strange to have environment variables for these sorts of things.

I assume the command-line wins out over the environment variable.

If you have concerns like this you could also have the buildbot run some wrapper script that you can control more easily.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296883</commentid>
    <comment_count>6</comment_count>
    <who name="Gabor Rapcsanyi">rgabor</who>
    <bug_when>2010-10-20 11:35:22 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; I guess.  Always feels strange to have environment variables for these sorts of things.
&gt; 
&gt; I assume the command-line wins out over the environment variable.
&gt; 
&gt; If you have concerns like this you could also have the buildbot run some wrapper script that you can control more easily.

Yes, the command-line is the primary.
Now we run all of our buildbots with different and custom environment and these kind of options are not port or platform specifics so we can&apos;t set them on the buildbot master.
The wrapper is not good because the buildbot master will &quot;call&quot; the original script not your wrapper. So I think that&apos;s the simplest way to set different child process number on buildbots like WEBKIT_WAIT_FOR_HTTPD in ORWT to set http lock and BUILD_WEBKIT_ARGS in build-webkit script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296896</commentid>
    <comment_count>7</comment_count>
      <attachid>71284</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-20 11:54:41 -0700</bug_when>
    <thetext>Comment on attachment 71284
proposed patch

Rejecting patch 71284 from commit-queue.

Failed to run &quot;[&apos;./WebKitTools/Scripts/webkit-patch&apos;, &apos;--status-host=queues.webkit.org&apos;, &apos;apply-attachment&apos;, &apos;--force-clean&apos;, &apos;--non-interactive&apos;, &apos;--quiet&apos;, 71284]&quot; exit_code: 2
Cleaning working directory
Updating working directory
Failed to run &quot;[&apos;WebKitTools/Scripts/update-webkit&apos;]&quot; exit_code: 2

Full output: http://queues.webkit.org/results/4534020</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296901</commentid>
    <comment_count>8</comment_count>
      <attachid>71284</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-10-20 11:57:36 -0700</bug_when>
    <thetext>Comment on attachment 71284
proposed patch

I think this was a false rejection from a run-away commit-node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296986</commentid>
    <comment_count>9</comment_count>
      <attachid>71284</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2010-10-20 13:39:24 -0700</bug_when>
    <thetext>Comment on attachment 71284
proposed patch

The patch looks good to me as well, although I&apos;m not a reviewer. As with others, I&apos;m not generally a fan of environmental variables, but it sounds like it is useful here. Ideally there&apos;d be a comment next to this line in the code about *why* we&apos;re looking at the variable (since it&apos;s easily settable on the bots, unlike the command line)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>297146</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-20 17:01:11 -0700</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 71284:

transitions/transition-end-event-transform.html
http/tests/appcache/fail-on-update-2.html

Please file bugs against the tests.  The author(s) of the test(s) have been CCed on this bug.  The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>297312</commentid>
    <comment_count>11</comment_count>
      <attachid>71284</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-21 02:35:14 -0700</bug_when>
    <thetext>Comment on attachment 71284
proposed patch

Clearing flags on attachment: 71284

Committed r70217: &lt;http://trac.webkit.org/changeset/70217&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>297313</commentid>
    <comment_count>12</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-21 02:35:21 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>71284</attachid>
            <date>2010-10-20 06:33:25 -0700</date>
            <delta_ts>2010-10-21 02:35:14 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>environ.patch</filename>
            <type>text/plain</type>
            <size>1412</size>
            <attacher name="Gabor Rapcsanyi">rgabor</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDcwMDU2KQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpC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bnZlc3RpZ2F0ZSBwZXJmL2ZsYWtp
bmVzcyBpbXBhY3Qgb2YgdXNpbmcgY3B1X2NvdW50ICsgMS4KLSAgICAgICAgb3B0aW9ucy5jaGls
ZF9wcm9jZXNzZXMgPSBzdHIocG9ydF9vYmouZGVmYXVsdF9jaGlsZF9wcm9jZXNzZXMoKSkKKyAg
ICAgICAgb3B0aW9ucy5jaGlsZF9wcm9jZXNzZXMgPSBvcy5lbnZpcm9uLmdldCgiV0VCS0lUX1RF
U1RfQ0hJTERfUFJPQ0VTU0VTIiwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICBzdHIocG9ydF9vYmouZGVmYXVsdF9jaGlsZF9wcm9jZXNzZXMoKSkpCiAK
ICAgICBpZiBub3Qgb3B0aW9ucy5jb25maWd1cmF0aW9uOgogICAgICAgICBvcHRpb25zLmNvbmZp
Z3VyYXRpb24gPSBwb3J0X29iai5kZWZhdWx0X2NvbmZpZ3VyYXRpb24oKQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>