| Summary: | Python3 for lighttpd | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Pascal Abresch <nep-webkit> | ||||||||
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | darin, ews-watchlist, glenn, jbedard, pulkomandy, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Other | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Pascal Abresch
2022-02-20 03:28:35 PST
Created attachment 452689 [details]
Patch
Comment on attachment 452689 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452689&action=review > Tools/Scripts/webkitpy/layout_tests/servers/http_server.py:114 > + ' ".php" => "%s"\n' Worth noting that we won’t be adding PHP tests, and all existing tests have been replaced with Python. You should be able to remove PHP entirely, should you desire. Good day, I don't mind much either way, I can submit a patch that replaces php instead. Yes, replacing php seems better and makes it clearer that it is not needed anymore. Created attachment 453304 [details]
Patch
Comment on attachment 453304 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=453304&action=review > Tools/Scripts/webkitpy/layout_tests/servers/http_server.py:-115 > - ' ".php" => "%s" )\n\n') % > - self._port_obj._path_to_lighttpd_php()) Change log doesn’t mention why we’re removing ".php". Maybe a good idea, but why? Also, why not remove the _path_to_lighttpd_php function too? > Tools/Scripts/webkitpy/layout_tests/servers/lighttpd.conf:41 > -static-file.exclude-extensions = ( ".php", ".pl", ".cgi" ) > +static-file.exclude-extensions = ( ".py", ".pl", ".cgi" ) Same question: What’s the rationale for removing ".php"? Also, not great to leave the mention of it in the comment on the line above. Comment on attachment 453304 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=453304&action=review >> Tools/Scripts/webkitpy/layout_tests/servers/http_server.py:-115 >> - self._port_obj._path_to_lighttpd_php()) > > Change log doesn’t mention why we’re removing ".php". Maybe a good idea, but why? Also, why not remove the _path_to_lighttpd_php function too? I see Jonathan Bedard advising you to remove php, so all you need to do is to mention this in the change log. And I do think we should remove the _path_to_lighttpd_php function and any other php-only code. Created attachment 453308 [details]
Patch
I've updated the patch, it should be clearer now. Comment on attachment 453308 [details]
Patch
r=me, but as usual, best to wait for EWS results before we set commit-queue+
I don't think any port but haiku uses lighttpd for tests currently, so it may be broken even if EWS passes. I don't currently have a reference to test against for this. (The haiku port already patches this file differently so not a straightforward replacement to test with) OK, we’ll just use EWS to verify that this change, which should not affect the ports in EWS, does not affect them. EWS passed, it should be ready to commit now. (In reply to Pascal Abresch from comment #14) > EWS passed, it should be ready to commit now. Ok! Sending through commit-queue now. Committed r290599 (247875@main): <https://commits.webkit.org/247875@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 453308 [details]. |