Bug 237490 - [XCBuild] Fix GeneratedSources dependency validation errors
Summary: [XCBuild] Fix GeneratedSources dependency validation errors
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: Elliott Williams
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-04 17:49 PST by Elliott Williams
Modified: 2022-03-10 14:19 PST (History)
9 users (show)

See Also:


Attachments
Patch (50.80 KB, patch)
2022-03-09 17:05 PST, Elliott Williams
no flags Details | Formatted Diff | Diff
Patch (50.67 KB, patch)
2022-03-09 21:30 PST, Elliott Williams
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elliott Williams 2022-03-04 17:49:41 PST
There are some miscellaneous task dependencies, mostly coming from DerivedSources Makefiles which do not declare everything the use or generate.
Comment 1 Elliott Williams 2022-03-09 17:05:44 PST
Created attachment 454298 [details]
Patch
Comment 2 Elliott Williams 2022-03-09 17:06:40 PST
(In reply to Elliott Williams from comment #1)
> Created attachment 454298 [details]
> Patch

There are still some dependency errors I'm seeing above WebCore, in WebKit and WebKitLegacy. But this is a large enough set of changes that it's probably time to get it reviewed.
Comment 3 Alexey Proskuryakov 2022-03-09 17:35:15 PST
Comment on attachment 454298 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=454298&action=review

This is already too long for me to deeply review all parts, but it looks fine.

> Tools/ChangeLog:1
> +2022-03-09  Elliott Williams  <emw@apple.com>

Duplicate ChangeLog.
Comment 4 EWS 2022-03-09 17:56:42 PST
ChangeLog entry in Tools/ChangeLog contains OOPS!.
Comment 5 Elliott Williams 2022-03-09 21:30:50 PST
Created attachment 454313 [details]
Patch
Comment 6 Elliott Williams 2022-03-09 21:32:26 PST
(In reply to Alexey Proskuryakov from comment #3)
> > Tools/ChangeLog:1
> > +2022-03-09  Elliott Williams  <emw@apple.com>
> 
> Duplicate ChangeLog.

Thanks -- fixed in the latest patch, and added your approval. I'll this without additional review.
Comment 7 Elliott Williams 2022-03-10 13:42:10 PST
It's worth noting that testing this patch on EWS broke subsequent EWS builds: Because this patch adds `JSCBuiltins.cpp` as an output file, the EWS builder thinks that the next patch it builds _removes_ JSCBuiltins.cpp, and will helpfully delete it as a stale build product.

For example, after building this patch in <https://ews-build.webkit.org/#/builders/61/builds/29660>, the next job <https://ews-build.webkit.org/#/builders/61/builds/29661> failed with:

    UnifiedSource2.cpp:2:10: fatal error: 'JSCBuiltins.cpp' file not found

Higher up in the build log, you see:

	Remove stale build products
	    /bin/rm -rf /Volumes/Data/worker/macOS-AppleSilicon-Big-Sur-Debug-Build-EWS/build/WebKitBuild/Debug/DerivedSources/JavaScriptCore/JSCBuiltins.cpp



I don't think there's anything worth fixing here. One of the goals of my work is to make it harder to forget to declare an output edge like this, requiring fewer bugfix patches like these that confuse EWS.
Comment 8 EWS 2022-03-10 14:18:44 PST
Committed r291133 (248293@main): <https://commits.webkit.org/248293@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454313 [details].
Comment 9 Radar WebKit Bug Importer 2022-03-10 14:19:16 PST
<rdar://problem/90121847>