Bug 194124 - Enable the automatic checking and regenerations of .xcfilelists during builds
Summary: Enable the automatic checking and regenerations of .xcfilelists during builds
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Keith Rollin
URL:
Keywords: InRadar
: 193834 (view as bug list)
Depends on: 194121
Blocks:
  Show dependency treegraph
 
Reported: 2019-01-31 16:34 PST by Keith Rollin
Modified: 2019-02-06 15:01 PST (History)
12 users (show)

See Also:


Attachments
Patch (6.39 KB, patch)
2019-01-31 16:58 PST, Keith Rollin
no flags Details | Formatted Diff | Diff
Patch (6.39 KB, patch)
2019-02-04 14:04 PST, Keith Rollin
no flags Details | Formatted Diff | Diff
Patch (308.30 KB, patch)
2019-02-05 13:21 PST, Keith Rollin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Rollin 2019-01-31 16:34:06 PST
Bug 193790 add a facility for checking -- during build time -- that any needed .xcfilelist files are up-to-date and for updating them if they are not. This facility was initially opt-in by setting WK_ENABLE_CHECK_XCFILELISTS until other pieces were in place and until the process seemed robust. Its now time to enable this facility and make it opt-out. If there is a need to disable this facility, set and export WK_DISABLE_CHECK_XCFILELISTS=1 in your environment before running `make` or `build-webkit`, or before running Xcode from the command line.
Comment 1 Radar WebKit Bug Importer 2019-01-31 16:34:30 PST
<rdar://problem/47721277>
Comment 2 Keith Rollin 2019-01-31 16:58:20 PST
Created attachment 360807 [details]
Patch
Comment 3 Keith Rollin 2019-01-31 19:08:15 PST
EWS isn't catching a problem. This patch should not be passing -- the build should be failing because Bug 194121 is not yet landed and so the .xcfilelists are out-of-date. Enabling this patch should be catching that. It looks like incremental rebuilds are not triggering the checking facility if nothing else has changed.

After Bug 194121 lands, I'm going to re-upload this patch. The new patch will include any last-minute changes to the .xcfilelists. I'll also see if I can put in place a dependency that will cause the "Check .xcfilelists" phase to run if any check-xcfilelists.sh script changes.
Comment 4 Keith Rollin 2019-02-04 13:25:03 PST
(In reply to Keith Rollin from comment #3)
> EWS isn't catching a problem. This patch should not be passing -- the build
> should be failing because Bug 194121 is not yet landed and so the
> .xcfilelists are out-of-date. Enabling this patch should be catching that.
> It looks like incremental rebuilds are not triggering the checking facility
> if nothing else has changed.
> 
> After Bug 194121 lands, I'm going to re-upload this patch. The new patch
> will include any last-minute changes to the .xcfilelists. I'll also see if I
> can put in place a dependency that will cause the "Check .xcfilelists" phase
> to run if any check-xcfilelists.sh script changes.

Wait a second. The patch originally uploaded should have been fine. The "check xcfilelists" phase has no stated dependencies, which should cause it to execute unconditionally. I've verified locally that it does this. I don't know why it wouldn't do that on EWS.
Comment 5 Keith Rollin 2019-02-04 14:04:45 PST
Created attachment 361098 [details]
Patch
Comment 6 Keith Rollin 2019-02-05 13:17:56 PST
Tim Horton pointed out that specifying all source files participating in the UnifieSources facility is unnecessary. We only need to specify Sources.txt and SourcesCocoa.txt. Uploading a patch that reflects that.
Comment 7 Keith Rollin 2019-02-05 13:21:21 PST
Created attachment 361216 [details]
Patch
Comment 8 WebKit Commit Bot 2019-02-05 14:58:26 PST
Comment on attachment 361216 [details]
Patch

Clearing flags on attachment: 361216

Committed r240994: <https://trac.webkit.org/changeset/240994>
Comment 9 WebKit Commit Bot 2019-02-05 14:58:28 PST
All reviewed patches have been landed.  Closing bug.
Comment 10 Keith Rollin 2019-02-06 15:01:33 PST
*** Bug 193834 has been marked as a duplicate of this bug. ***