pylint 3.3.9 astroid 3.3.8 Python 3.14.3 (main, Feb 4 2026, 00:00:00) [GCC 15.2.1 20260123 (Red Hat 15.2.1-7)] Redirect to /tmp/tmp.TTKNSYOdbA and /tmp/tmp.z0QUFO6rpJ Tree base: ed0abfe93fd1 ("Merge branch 'net-phy-improve-stats-handling-in-mdio_bus-c'") Now at: e0e13054cfdb ("selftests: drv-net: rss: Fix error calculation in test_hitless_key_update") ====== Checking before the patch ====== ************* Module rss_ctx tools/testing/selftests/drivers/net/hw/rss_ctx.py:62:0: C0301: Line too long (104/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:70:0: C0301: Line too long (110/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:264:0: C0301: Line too long (102/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:268:0: C0301: Line too long (107/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:276:0: C0301: Line too long (110/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:297:0: C0301: Line too long (106/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:489:0: C0301: Line too long (102/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:490:0: C0301: Line too long (106/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:492:0: C0301: Line too long (102/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:579:0: C0301: Line too long (102/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:631:0: C0301: Line too long (101/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:745:0: C0301: Line too long (103/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:796:0: C0301: Line too long (103/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:1:0: C0114: Missing module docstring (missing-module-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:20:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/drivers/net/hw/rss_ctx.py:36:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:40:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:50:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:57:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:65:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:79:12: R1728: Consider using a generator instead 'max(x['queue-id'] for x in data)' (consider-using-generator) tools/testing/selftests/drivers/net/hw/rss_ctx.py:211:8: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise KsftSkipEx('Not enough queues for the test or qstat not supported') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:264:8: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/drivers/net/hw/rss_ctx.py:276:12: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/drivers/net/hw/rss_ctx.py:297:12: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/drivers/net/hw/rss_ctx.py:193:0: R0912: Too many branches (15/12) (too-many-branches) tools/testing/selftests/drivers/net/hw/rss_ctx.py:193:0: R0915: Too many statements (70/50) (too-many-statements) tools/testing/selftests/drivers/net/hw/rss_ctx.py:351:8: W0612: Unused variable 'errors0' (unused-variable) tools/testing/selftests/drivers/net/hw/rss_ctx.py:380:45: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation) tools/testing/selftests/drivers/net/hw/rss_ctx.py:383:45: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation) tools/testing/selftests/drivers/net/hw/rss_ctx.py:390:12: W0707: Consider explicitly re-raising using 'except CmdExitFailure as exc' and 'raise KsftSkipEx('Unable to add any contexts') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:399:17: R1718: Consider using a set comprehension (consider-using-set-comprehension) tools/testing/selftests/drivers/net/hw/rss_ctx.py:427:17: R1718: Consider using a set comprehension (consider-using-set-comprehension) tools/testing/selftests/drivers/net/hw/rss_ctx.py:432:17: R1718: Consider using a set comprehension (consider-using-set-comprehension) tools/testing/selftests/drivers/net/hw/rss_ctx.py:456:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise KsftSkipEx('Not enough queues for the test') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:508:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:512:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:516:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:520:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:543:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise KsftSkipEx('Not enough queues for the test') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:615:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise KsftSkipEx('Not enough queues for the test') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:664:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:733:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise KsftSkipEx('Not enough queues for the test') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:749:8: W0707: Consider explicitly re-raising using 'except CmdExitFailure as exc' and 'raise KsftSkipEx('Ntuple filter with RSS and nonzero action not supported') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:815:0: R0914: Too many local variables (16/15) (too-many-locals) tools/testing/selftests/drivers/net/hw/rss_ctx.py:906:0: C0116: Missing function or method docstring (missing-function-docstring) ------------------------------------------------------------------ Your code has been rated at 9.14/10 (previous run: 9.06/10, +0.08) ====== Checking the tree with the patch ====== ************* Module rss_ctx tools/testing/selftests/drivers/net/hw/rss_ctx.py:62:0: C0301: Line too long (104/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:70:0: C0301: Line too long (110/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:264:0: C0301: Line too long (102/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:268:0: C0301: Line too long (107/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:276:0: C0301: Line too long (110/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:297:0: C0301: Line too long (106/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:489:0: C0301: Line too long (102/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:490:0: C0301: Line too long (106/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:492:0: C0301: Line too long (102/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:579:0: C0301: Line too long (102/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:631:0: C0301: Line too long (101/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:745:0: C0301: Line too long (103/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:796:0: C0301: Line too long (103/100) (line-too-long) tools/testing/selftests/drivers/net/hw/rss_ctx.py:1:0: C0114: Missing module docstring (missing-module-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:20:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/drivers/net/hw/rss_ctx.py:36:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:40:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:50:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:57:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:65:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:79:12: R1728: Consider using a generator instead 'max(x['queue-id'] for x in data)' (consider-using-generator) tools/testing/selftests/drivers/net/hw/rss_ctx.py:211:8: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise KsftSkipEx('Not enough queues for the test or qstat not supported') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:264:8: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/drivers/net/hw/rss_ctx.py:276:12: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/drivers/net/hw/rss_ctx.py:297:12: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/drivers/net/hw/rss_ctx.py:193:0: R0912: Too many branches (15/12) (too-many-branches) tools/testing/selftests/drivers/net/hw/rss_ctx.py:193:0: R0915: Too many statements (70/50) (too-many-statements) tools/testing/selftests/drivers/net/hw/rss_ctx.py:380:45: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation) tools/testing/selftests/drivers/net/hw/rss_ctx.py:383:45: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation) tools/testing/selftests/drivers/net/hw/rss_ctx.py:390:12: W0707: Consider explicitly re-raising using 'except CmdExitFailure as exc' and 'raise KsftSkipEx('Unable to add any contexts') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:399:17: R1718: Consider using a set comprehension (consider-using-set-comprehension) tools/testing/selftests/drivers/net/hw/rss_ctx.py:427:17: R1718: Consider using a set comprehension (consider-using-set-comprehension) tools/testing/selftests/drivers/net/hw/rss_ctx.py:432:17: R1718: Consider using a set comprehension (consider-using-set-comprehension) tools/testing/selftests/drivers/net/hw/rss_ctx.py:456:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise KsftSkipEx('Not enough queues for the test') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:508:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:512:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:516:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:520:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:543:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise KsftSkipEx('Not enough queues for the test') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:615:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise KsftSkipEx('Not enough queues for the test') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:664:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/drivers/net/hw/rss_ctx.py:733:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise KsftSkipEx('Not enough queues for the test') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:749:8: W0707: Consider explicitly re-raising using 'except CmdExitFailure as exc' and 'raise KsftSkipEx('Ntuple filter with RSS and nonzero action not supported') from exc' (raise-missing-from) tools/testing/selftests/drivers/net/hw/rss_ctx.py:815:0: R0914: Too many local variables (16/15) (too-many-locals) tools/testing/selftests/drivers/net/hw/rss_ctx.py:906:0: C0116: Missing function or method docstring (missing-function-docstring) ------------------------------------------------------------------ Your code has been rated at 9.16/10 (previous run: 9.14/10, +0.02)