Bug 15642 - Report build errors to users on Windows
Summary: Report build errors to users on Windows
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 523.x (Safari 3)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-23 12:23 PDT by Kevin Ollivier
Modified: 2007-11-01 02:41 PDT (History)
0 users

See Also:


Attachments
Patch to report build errors on Windows (2.23 KB, patch)
2007-10-23 12:25 PDT, Kevin Ollivier
aroben: review-
Details | Formatted Diff | Diff
Fixed version of patch (2.27 KB, patch)
2007-10-26 16:12 PDT, Kevin Ollivier
aroben: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Ollivier 2007-10-23 12:23:58 PDT
Currently, the build-webkit script leaves it up to the build tool to report errors, but since MSVC doesn't do this, no actual error message is reported and the build looks as if it succeeds. This patch changes it so that the build script reports that a build error has occurred, and explains where to find build errors on MSVC.
Comment 1 Kevin Ollivier 2007-10-23 12:25:00 PDT
Created attachment 16821 [details]
Patch to report build errors on Windows
Comment 2 Adam Roben (:aroben) 2007-10-23 13:12:15 PDT
Comment on attachment 16821 [details]
Patch to report build errors on Windows

+    if (1 || exitStatus($result)) {

I assume the "1 ||" was for debugging purposes? In any case I think it should be removed.

+sub getRelativeScriptsDir()

I don't think the "get" prefix is helpful here.

It would be great at some point to enhance the script to look through the build logs to figure out which project(s) failed and point the user at those logs more specifically.

I'll r+ once the above two issues are fixed.
Comment 3 Kevin Ollivier 2007-10-26 16:12:59 PDT
Created attachment 16891 [details]
Fixed version of patch

Sorry, yes, the 1 was a leftover from debugging that I overlooked. Fixed now. This version also makes relativeScriptsDir consistent with other function names in webkitdirs.pm. I agree with the suggestion of tracking down which projects failed using the build logs and would like to see it as well, but don't have time to implement that feature ATM so it is not in this version.
Comment 4 Adam Roben (:aroben) 2007-10-26 19:09:21 PDT
Comment on attachment 16891 [details]
Fixed version of patch

r=me

Thanks! This will be a great help.
Comment 5 Mark Rowe (bdash) 2007-11-01 02:41:39 PDT
Landed in r27348.