RESOLVED FIXED 47981
[NRWT] Get child process number from environment variable
https://bugs.webkit.org/show_bug.cgi?id=47981
Summary [NRWT] Get child process number from environment variable
Gabor Rapcsanyi
Reported 2010-10-20 06:23:20 PDT
Get the child process number from an environment variable if it exists. It would be useful for buildbots.
Attachments
proposed patch (1.38 KB, patch)
2010-10-20 06:33 PDT, Gabor Rapcsanyi
no flags
Gabor Rapcsanyi
Comment 1 2010-10-20 06:33:25 PDT
Created attachment 71284 [details] proposed patch
Csaba Osztrogonác
Comment 2 2010-10-20 06:37:47 PDT
(In reply to comment #1) > Created an attachment (id=71284) [details] > proposed patch LGTM. ;)
Ojan Vafai
Comment 3 2010-10-20 08:33:08 PDT
Comment on attachment 71284 [details] proposed patch I don't have a problem with this, but how is an environment variable easier than just passing something on the commandline?
Csaba Osztrogonác
Comment 4 2010-10-20 08:38:31 PDT
(In reply to comment #3) > (From update of attachment 71284 [details]) > I don'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.
Eric Seidel (no email)
Comment 5 2010-10-20 09:30:50 PDT
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.
Gabor Rapcsanyi
Comment 6 2010-10-20 11:35:22 PDT
(In reply to comment #5) > 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. 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't set them on the buildbot master. The wrapper is not good because the buildbot master will "call" the original script not your wrapper. So I think that'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.
WebKit Commit Bot
Comment 7 2010-10-20 11:54:41 PDT
Comment on attachment 71284 [details] proposed patch Rejecting patch 71284 from commit-queue. Failed to run "['./WebKitTools/Scripts/webkit-patch', '--status-host=queues.webkit.org', 'apply-attachment', '--force-clean', '--non-interactive', '--quiet', 71284]" exit_code: 2 Cleaning working directory Updating working directory Failed to run "['WebKitTools/Scripts/update-webkit']" exit_code: 2 Full output: http://queues.webkit.org/results/4534020
Eric Seidel (no email)
Comment 8 2010-10-20 11:57:36 PDT
Comment on attachment 71284 [details] proposed patch I think this was a false rejection from a run-away commit-node.
Dirk Pranke
Comment 9 2010-10-20 13:39:24 PDT
Comment on attachment 71284 [details] proposed patch The patch looks good to me as well, although I'm not a reviewer. As with others, I'm not generally a fan of environmental variables, but it sounds like it is useful here. Ideally there'd be a comment next to this line in the code about *why* we're looking at the variable (since it's easily settable on the bots, unlike the command line)
WebKit Commit Bot
Comment 10 2010-10-20 17:01:11 PDT
The commit-queue encountered the following flaky tests while processing attachment 71284 [details]: 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.
WebKit Commit Bot
Comment 11 2010-10-21 02:35:14 PDT
Comment on attachment 71284 [details] proposed patch Clearing flags on attachment: 71284 Committed r70217: <http://trac.webkit.org/changeset/70217>
WebKit Commit Bot
Comment 12 2010-10-21 02:35:21 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.