RESOLVED FIXED 231374
[webkitperl] Fix webkitperl on Windows
https://bugs.webkit.org/show_bug.cgi?id=231374
Summary [webkitperl] Fix webkitperl on Windows
Basuke Suzuki
Reported 2021-10-07 10:35:14 PDT
Some tests are failed because of the handling of environment variables.
Attachments
PATCH (4.34 KB, patch)
2021-10-07 11:31 PDT, Basuke Suzuki
no flags
PATCH (7.20 MB, patch)
2021-10-07 12:31 PDT, Basuke Suzuki
no flags
PATCH (6.38 KB, patch)
2021-10-07 12:34 PDT, Basuke Suzuki
no flags
patch (6.05 KB, patch)
2021-10-18 14:25 PDT, Basuke Suzuki
no flags
Basuke Suzuki
Comment 1 2021-10-07 11:31:24 PDT
Basuke Suzuki
Comment 2 2021-10-07 12:31:16 PDT
Basuke Suzuki
Comment 3 2021-10-07 12:34:49 PDT
Stephan Szabo
Comment 4 2021-10-07 13:06:10 PDT
Comment on attachment 440526 [details] PATCH View in context: https://bugs.webkit.org/attachment.cgi?id=440526&action=review > Tools/Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl:703 > + $ENV{RC_ProjectSourceVersion} = $testCase->{'RC_ProjectSourceVersion'}; I think if you're going to set our ENV like this, you'll need to reset it between tests, otherwise values will leak from test to test (or doing something more complicated that will only set the env in the created shell). > Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl:508 > + plan skip_all => 'Please add `pathc` to the $PATH'; Nitpick: pathc -> patch
Fujii Hironori
Comment 5 2021-10-07 13:18:50 PDT
Comment on attachment 440526 [details] PATCH View in context: https://bugs.webkit.org/attachment.cgi?id=440526&action=review > Tools/Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl:691 > +# Test can only be run if VersionStamper.exe exists This comment doesn't match with the code. Which do yo want to check VersionStamper.exe or auto-version.pl here? > Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl:34 > +use VCSUtils; Why do you need this change? > Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl:509 > + exit 0; I think the test should fail if patch isn't found.
Basuke Suzuki
Comment 6 2021-10-07 13:59:40 PDT
Comment on attachment 440526 [details] PATCH View in context: https://bugs.webkit.org/attachment.cgi?id=440526&action=review >> Tools/Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl:691 >> +# Test can only be run if VersionStamper.exe exists > > This comment doesn't match with the code. Which do yo want to check VersionStamper.exe or auto-version.pl here? Correct. Thanks. >> Tools/Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl:703 >> + $ENV{RC_ProjectSourceVersion} = $testCase->{'RC_ProjectSourceVersion'}; > > I think if you're going to set our ENV like this, you'll need to reset it between tests, otherwise values will leak from test to test (or doing something more complicated that will only set the env in the created shell). I thought each test will be run in different process, but there seems no such assumption at all. I'll save and restore them at the end of each loop. >> Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl:34 >> +use VCSUtils; > > Why do you need this change? It was failed to load VCSUtils on the initial location. I bet this is related with the change on 5.26: https://metacpan.org/pod/perl5260delta#Removal-of-the-current-directory-(%22.%22)-from-@INC Anyway, it is dependent on the @INC so it is reasonable to move the usage bellow that. >> Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl:508 >> + plan skip_all => 'Please add `pathc` to the $PATH'; > > Nitpick: pathc -> patch Right. >> Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl:509 >> + exit 0; > > I think the test should fail if patch isn't found. Well, I want to hear the opinion from others.
Radar WebKit Bug Importer
Comment 7 2021-10-14 10:36:24 PDT
Basuke Suzuki
Comment 8 2021-10-18 14:25:12 PDT
Basuke Suzuki
Comment 9 2021-10-18 14:26:50 PDT
Make `patch` required to run test. Also environment variable is recovered after getting result from process invocation.
EWS
Comment 10 2021-10-18 15:21:12 PDT
Committed r284405 (?): <https://commits.webkit.org/r284405> All reviewed patches have been landed. Closing bug and clearing flags on attachment 441640 [details].
Note You need to log in before you can comment on or make changes to this bug.