WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
231055
Python 3: run-inspector-generator-tests and generate-inspector-protocol-bindings.py
https://bugs.webkit.org/show_bug.cgi?id=231055
Summary
Python 3: run-inspector-generator-tests and generate-inspector-protocol-bindi...
Fujii Hironori
Reported
2021-09-30 18:01:20 PDT
Let's convert run-inspector-generator-tests and generate-inspector-protocol-bindings.py to Python 3.
Attachments
Patch
(12.00 KB, patch)
2021-09-30 18:12 PDT
,
Fujii Hironori
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Fujii Hironori
Comment 1
2021-09-30 18:12:44 PDT
Created
attachment 439810
[details]
Patch
EWS Watchlist
Comment 2
2021-09-30 18:13:47 PDT
This patch modifies the inspector protocol generator. Please ensure that you have rebaselined any generator test results (i.e., by running `Tools/Scripts/run-inspector-generator-tests --reset-results`)
Devin Rousso
Comment 3
2021-10-01 12:06:29 PDT
Can you explain why this needs to be done? AFAICT none of the other inspector protocol python scripts are Python3?
Jonathan Bedard
Comment 4
2021-10-01 12:18:23 PDT
(In reply to Devin Rousso from
comment #3
)
> Can you explain why this needs to be done? AFAICT none of the other > inspector protocol python scripts are Python3?
I think folks working on Windows are trying to drop Python 2 from their bots entirely.
Don Olmstead
Comment 5
2021-10-01 13:02:30 PDT
(In reply to Jonathan Bedard from
comment #4
)
> (In reply to Devin Rousso from
comment #3
) > > Can you explain why this needs to be done? AFAICT none of the other > > inspector protocol python scripts are Python3? > > I think folks working on Windows are trying to drop Python 2 from their bots > entirely.
Yea dropping Python 2 would be great but I also thought Python 2 was leaving OS X in a default install.
Fujii Hironori
Comment 6
2021-10-03 13:09:31 PDT
(In reply to Devin Rousso from
comment #3
)
> Can you explain why this needs to be done? AFAICT none of the other > inspector protocol python scripts are Python3?
Because some Linux distributions don't allow packages to depends on Python 2, those scripts invokded while building WebKit have been Python 2&3 compatible since several years ago. (Note that this patch isn't 2&3 compatible, and it is a test script.)
Alexey Proskuryakov
Comment 7
2021-10-04 10:19:54 PDT
I think that at this point, we are just converting everything on every platform to python3, and completely ignoring python2 compatibility.
Jonathan Bedard
Comment 8
2021-10-06 14:32:32 PDT
Comment on
attachment 439810
[details]
Patch We don't have this running in infrastructure anywhere, so this should be save to land
Fujii Hironori
Comment 9
2021-10-06 17:00:39 PDT
Comment on
attachment 439810
[details]
Patch Thank you very much for the reveiw.
EWS
Comment 10
2021-10-06 17:09:24 PDT
Committed
r283682
(
242620@main
): <
https://commits.webkit.org/242620@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 439810
[details]
.
Radar WebKit Bug Importer
Comment 11
2021-10-06 17:10:24 PDT
<
rdar://problem/83959145
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug