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

PulpQE / pulp-smash / 2017 / 1
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 04 Jan 2018 10:12PM UTC
Files 7
Run time 1s
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

04 Jan 2018 10:02PM UTC coverage: 62.209%. Remained the same
2017.1

push

travis-ci

Ichimonji10
Make lint-pylint make target faster and stricter

The lint-pylint make target runs pylint over nearly the entire code
base. The make target calls pylint twice, to check different parts of
the code base. The code in `pulp_smash/tests/` is not subject to the
duplicate-code check, and the remaining code is.

This distinction was implemented when Pulp Smash was a much newer
entity. At that time, the goal was to build up a functional testing
suite quickly, and loosening checks on the functional tests was
considered a reasonable shortcut to achieve that goal faster. Since
then, the code base has matured, and strategies for dealing with
duplicate code have been implemented. The `utils` modules are a good
example.

There are two down-sides to allowing this distinction to live on:

* A bad coding practice is given a pass within certain parts of the code
  base.
* The fact that the `lint-pylint` job is implemented as a pair of tasks
  means that a serial bottleneck is introduced into the job, the impact
  of which should be especially pronounced on modern multi-core CPUs.
  [1]

Erase the distinction between the two sections of the code base.

Some quick benchmarks show that:

* On a host with a 4C/8T CPU, lint-pylint execution time drops by 8%.
* On a host with an 8C/16T CPU, lint-pylint execution time drops by 20%.

535 of 860 relevant lines covered (62.21%)

0.62 hits per line

Source Files on job 2017.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2017
  • Travis Job 2017.1
  • bf36f9d7 on github
  • Prev Job for on master (#2015.1)
  • Next Job for on master (#2018.1)
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