-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Replace os.path.split with .dirname or .basename where appropriate #25008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I believe that https://github.com/web-platform-tests/wpt/pull/25008/checks?check_run_id=984077316 can be ignored, these tests even say "Note: this test will only work as expected once per browsing session. Restart browser to re-test". @stephenmcgruer @jgraham I've seen this kind of stability failure many times, but this is the first time I've spotted it documented in the tests. Should we have some way of marking such tests as needing restart to avoid these failures? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we shouldn't touch tools/third_party
?
Oops, I wasn't paying attention to where the changes were. |
Most of the changes made by: > git grep -lF os.path.split | xargs sed -i '' 's/os\.path\.split(\(.*\))\[0\]/os.path.dirname(\1)/g' That gets some things wrong, so all changes were vetted and some fixed or simplified.
I've sent most of the tools/third_party changes in html5lib/html5lib-python#508 + GoogleChromeLabs/pywebsocket3#11 and reverted them here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks safe to me
Looking for regressions from this, it seems OK: @stephenmcgruer this is fewer failures due to flakiness than I remember typically seeing. Might that mean it's more feasible to label the remaining flakiness and make it possible to search excluding flaky tests? |
@foolip I think you more want https://wpt.fyi/results/?diff&filter=ADC&q=is%3Adifferent&run_id=657990001&run_id=661940001 Its still not huge (25 vs 50 subtests for Chrome, 10 vs 46 for Firefox), albeit this is only across two runs, but if we're saying flake is rare then it almost feels like a disincentive to add infrastructure around it rather than a reason to do it? |
I was looking for regressions and flakes were getting in the way. Filtering to just PASS→!PASS gets rid of the flakes that can't be regressions at least :) |
Most of the changes made by:
That gets some things wrong, so all changes were vetted and some fixed
or simplified.