Uploaded image for project: 'releng'
  1. releng
  2. RELENG-149

tox/pre-commit failing in integration-test-tox-verify-master: failing to checkout robot-tidy repo master branch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Lowest Lowest
    • None
    • None
    • None
    • None

      Not sure the root cause yet, but some things I noticed.

      the high level problem is saying that we can't check out 'master' branch of
      the robot-tidy hook:

      [INFO] Initializing environment for https://github.com/guykisel/pre-commit-robotframework-tidy.
      An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/git', 'checkout', 'master')
      return code: 1
      expected return code: 0
      stdout: (none)
      stderr:
          error: pathspec 'master' did not match any file(s) known to git.
          
      Check the log at /home/jenkins/.cache/pre-commit/pre-commit.log
      ERROR: InvocationError for command /w/workspace/integration-test-tox-verify-master/.tox/pre-commit/bin/pre-commit run --all-files (exited with code 1)
      

      pre-commit is installing importlib-resources which recently released 2.0.0 and that
      is showing up as incompatible with the virtualenv==20.0.21 that is also installed
      with pre-commit.

      lftools has us locked to pre-commit==2.2.0, although a new release of that (2.5.0)
      also came out this week.

      I cannot reproduce this locally, so trying to figure out slowly in the sandbox.

            zxiiro Thanh Ha (zxiiro)
            jluhrsen Jamo Luhrsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: