Skip to content

inconsistent result in multiple runs #2573

@ihji

Description

@ihji

I'm looking into the strange result from pylint on Apache Beam Python SDK. Multiple runs return slightly different results. It looks something related to multi-processing thing because I couldn't find any pattern from this behavior.

Steps to reproduce

  1. Clone https://github.com/apache/beam and checkout 0c8ccae9aa608f4d64b22c08d57b9aaa8724bfee
  2. Go into sdks/python directory.
  3. Run scripts/run_pylint.sh multiple times and compare the result.

Current behavior

beam/sdks/python$ for i in `seq 100`; do scripts/run_pylint.sh; done > lint_100.txt
beam/sdks/python$ grep slots-on-old-class lint_100.txt | wc -l
100
beam/sdks/python$ grep no-self-argument lint_100.txt | wc -l
42

Expected behavior

Consistently return the same result

pylint --version output

Using config file beam/sdks/python/.pylintrc
pylint 1.9.3, 
astroid 1.6.5
Python 2.7.13 (default, Nov 24 2017, 17:33:09) 
[GCC 6.3.0 20170516]

Related issue: https://issues.apache.org/jira/browse/BEAM-5846

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions