• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PyCQA / pylint / 4534
92%
main: 95%

Build:
Build:
LAST BUILD BRANCH: maintenance/2.15.x
DEFAULT BRANCH: main
Ran 02 Jan 2021 09:03AM UTC
Jobs 6
Files 101
Run time 11min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4534

push

travis-ci

Pierre-Sassoulas
mapreduce| Fixes -jN for map/reduce Checkers (e.g. SimilarChecker)

This integrate the map/reduce functionality into lint.check_process().

We previously had `map` being invoked, here we add `reduce` support.

We do this by collecting the map-data by worker and then passing it to a
reducer function on the Checker object, if available - determined by
whether they confirm to the `mapreduce_checker.MapReduceMixin` mixin
interface or nor.

This allows Checker objects to function across file-streams when using
multiprocessing/-j2+. For example SimilarChecker needs to be able to
compare data across all files.

The tests, that we also add here, check that a Checker instance returns
and reports expected data and errors, such as error-messages and stats -
at least in a exit-ok (0) situation.

On a personal note, as we are copying more data across process
boundaries, I suspect that the memory implications of this might cause
issues for large projects already running with -jN and duplicate code
detection on. That said, given that it takes a long time to perform
lints of large code bases that is an issue for the [near?] future and
likely to be part of the performance work. Either way but let's get it
working first and deal with memory and perforamnce considerations later
- I say this as there are many quick wins we can make here, e.g.
file-batching, hashing lines, data compression and so on.

30 of 30 new or added lines in 4 files covered. (100.0%)

11443 of 12619 relevant lines covered (90.68%)

5.42 hits per line

Jobs
ID Job ID Ran Files Coverage
6 4534.6 (TOXENV=py35) 02 Jan 2021 09:04AM UTC 0
90.26
Travis Job 4534.6
7 4534.7 (TOXENV=py36) 02 Jan 2021 09:03AM UTC 0
90.45
Travis Job 4534.7
8 4534.8 (TOXENV=py37) 02 Jan 2021 09:03AM UTC 0
90.53
Travis Job 4534.8
9 4534.9 (TOXENV=py38) 02 Jan 2021 09:03AM UTC 0
90.7
Travis Job 4534.9
10 4534.10 (TOXENV=py39) 02 Jan 2021 09:07AM UTC 0
90.67
Travis Job 4534.10
11 4534.11 (TOXENV=pypy) 02 Jan 2021 09:14AM UTC 0
90.05
Travis Job 4534.11
Source Files on build 4534
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4534
  • b41e8d94 on github
  • Prev Build on master (#4530)
  • Next Build on master (#4540)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc