RESOLVED FIXED Bug 198136
generate-xcfilelists should not store temporary build files in /tmp
https://bugs.webkit.org/show_bug.cgi?id=198136
Summary generate-xcfilelists should not store temporary build files in /tmp
Keith Rollin
Reported 2019-05-22 12:38:40 PDT
Provide the build infrastructure control of the location of generate-xcfilelists' temporary files by creating them in the build directory when possible. <rdar://problem/49490262>
Attachments
Patch (3.46 KB, patch)
2019-05-22 12:41 PDT, Keith Rollin
no flags
Archive of layout-test-results from ews215 for win-future (13.64 MB, application/zip)
2019-05-22 14:23 PDT, EWS Watchlist
no flags
Keith Rollin
Comment 1 2019-05-22 12:41:44 PDT
Jonathan Bedard
Comment 2 2019-05-22 13:16:13 PDT
Comment on attachment 370432 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=370432&action=review > Tools/ChangeLog:10 > + directory when possible. This isn't actually accurate, though. We're totally bailing out if we don't have a PROJECT_TEMP_DIR.
Keith Rollin
Comment 3 2019-05-22 13:43:35 PDT
I believe the comment to be accurate. There are five places where temporary files are created. We use the project temp directory in the three places where it's available.
EWS Watchlist
Comment 4 2019-05-22 14:23:20 PDT
Comment on attachment 370432 [details] Patch Attachment 370432 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/12261166 New failing tests: fast/block/float/float-with-anonymous-previous-sibling.html
EWS Watchlist
Comment 5 2019-05-22 14:23:23 PDT
Created attachment 370444 [details] Archive of layout-test-results from ews215 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews215 Port: win-future Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
Jonathan Bedard
Comment 6 2019-05-22 14:33:19 PDT
(In reply to Keith Rollin from comment #3) > I believe the comment to be accurate. There are five places where temporary > files are created. We use the project temp directory in the three places > where it's available. I guess the part I'm a bit unclear on is why _get_temp_dir() will fail if we aren't in Xcode. Basically, the 'when possible' part of the comment doesn't seem true to me because if PROJECT_TEMP_DIR isn't available, _generate_derived and _generate_unified will raise exceptions, unless I'm missing something.
Keith Rollin
Comment 7 2019-05-22 15:20:53 PDT
_generate_derived and _generate_unified are only executed within the Xcode context, at which time PROJECT_TEMP_DIR is available and we can make use of it. set_environment_and_generate is executed outside one the Xcode context, and so PROJECT_TEMP_DIR is not available and so we can't make use of it.
WebKit Commit Bot
Comment 8 2019-05-23 10:33:33 PDT
Comment on attachment 370432 [details] Patch Clearing flags on attachment: 370432 Committed r245692: <https://trac.webkit.org/changeset/245692>
WebKit Commit Bot
Comment 9 2019-05-23 10:33:34 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.