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

PulpQE / pulp-smash / 2017
63%

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

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%)

1.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2017.1 04 Jan 2018 10:12PM UTC 0
62.21
Travis Job 2017.1
2 2017.2 04 Jan 2018 10:12PM UTC 0
62.21
Travis Job 2017.2
3 2017.3 04 Jan 2018 10:11PM UTC 0
62.21
Travis Job 2017.3
Source Files on build 2017
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #2017
  • bf36f9d7 on github
  • Prev Build on master (#2015)
  • Next Build on master (#2018)
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

© 2025 Coveralls, Inc