Linter errors for unrelated files on local repo but not on bitcoin/bitcoin #14709

issue kallewoof opened this issue on November 12, 2018
  1. kallewoof commented at 7:35 AM on November 12, 2018: member

    I got a weird error with linters for files I haven't touched on my repository, but the error does not appear in the bitcoin repository. Compare

    https://travis-ci.org/kallewoof/bitcoin/jobs/453819495 (linter failure) https://travis-ci.org/bitcoin/bitcoin/builds/453819871 (no linter failure)

    It seems to dislike the regexp in

        match = re.search('^\+\+\+\ (.*?/){%s}(\S*)' % args.p, line)
    

    inside clangformat-diff.py, among other things.

    The PR in question is here: #13541

    As you can see, I am not touching any of the files being complained about.

  2. kallewoof renamed this:
    Linter errors
    Linter errors for unrelated files on local repo but not on bitcoin/bitcoin
    on Nov 12, 2018
  3. fanquake added the label Tests on Nov 12, 2018
  4. AkioNak commented at 8:49 AM on November 12, 2018: contributor

    @kallewoof It seems the versions of flake8 are different from each other.

    • 3.6.0 -> linter failure
    • 3.5.0 -> no linter failure

    I don't know why travis select these version, but It reproduced on my local enviroment (macos 10.13.6).

  5. kallewoof commented at 8:59 AM on November 12, 2018: member

    It seems .travis/lint_04_install.sh explicitly installs flake8 3.5.0, so that should not be the issue.

    Actually, that is the issue. The broken build is showing Collecting flake8 while the non-broken build is showing Collecting flake8==3.5.0. As for why... @practicalswift any ideas?

  6. kallewoof commented at 9:04 AM on November 12, 2018: member

    Rebuilding did not reproduce the issue. I'm neutral on leaving this open for further investigation or closing it.

  7. MarcoFalke commented at 4:31 PM on November 12, 2018: member

    The travis pull request builds run against a merge commit that includes current master and the pull request patch, they don't run on the branch you pushed to your repository. So the travis builds run different program versions and report different results.

  8. MarcoFalke closed this on Nov 12, 2018

  9. kallewoof commented at 5:02 AM on November 13, 2018: member

    @MarcoFalke First time I heard of this. Thanks for the heads up.

  10. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me