flake8, bugbear, pyupgrade → ruff#12002
Conversation
6214b7c to
c3a941f
Compare
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 9 files ±0 9 suites ±0 3h 6m 6s ⏱️ - 2m 9s Results for commit b172c5f7. ± Comparison against base commit a9d0e52. ♻️ This comment has been updated with latest results. |
528a8d5 to
ec55aa1
Compare
ec55aa1 to
4fb3bd3
Compare
4fb3bd3 to
9698fa7
Compare
9698fa7 to
d6449da
Compare
|
Done. Note that |
|
This is a new issue. Is it caused by this PR? The remote file dask/dask/bytes/tests/test_http.py Lines 173 to 191 in d6449da |
2b4a07c to
6b7d4bb
Compare
jacobtomlinson
left a comment
There was a problem hiding this comment.
Overall this is looking good now thanks. I note that CI is passing on main, and failing here, which suggests failures are related to the changes in here. Could you take a look?
|
@jacobtomlinson I may be missing something here, I don't see how the failure could be related to the changes in this PR. I haven't changed actual code, just linting tools and linting directives. This is certainly caused by the update of a dependency, but I cannot identify which one. Time permitting, I'll download logs from both branches and diff them to find the culprit. |
3809468 to
4a36165
Compare
|
After rebasing, most tests pass. Some transient error probably caused previous failures. The only test that fails shows a new error, probably some "random" error again. Could you please restart the failing test? Eventually it should pass. I think the tests have become fragile for some reason, and fail "randomly". I don't know enough about this package to fix this fragility, it's probably related to multiprocessing. |
|
Based on other PRs that have been raised recently I've not found CI to be very flaky, so I'm concerned that this PR is behaving this way. I agree that the changes here should just be format/lint related and not change actual functionality. But the fact the CI keeps failing in these ways makes me nervous that there is in fact some functional change in here that we've missed. |
|
I know, but I've looked again and again and I only see changed - raise ValueError(
- f"Index column {index_name} not found in statistics" # noqa: E713
- )
+ raise ValueError(f"Index column {index_name} not found in statistics")
The only possible effect I can imagine is that ruff runs much faster than flake8/pyupgrade, and this has an effect on tests running in parallel or after the linter somehow - but again the failure would result from a preexisting race condition in other tests. |
|
Also note that the error is stochastic, as shown by the success of the new run of the previously failing test. This does seem to point to some sort of race condition. |
F841 Local variable is assigned to but never used
RUF100 Unused `noqa` directive
Co-authored-by: Jacob Tomlinson <jacobtomlinson@users.noreply.github.com>
4a36165 to
b172c5f
Compare
jacobtomlinson
left a comment
There was a problem hiding this comment.
Yeah I've gone over the diff again and can't see anything that causes concern.
I plan on moving from
isortto rule setIand fromblacktoruff format(if that's indeed what you want) in different PRs.pre-commit run --all-files