Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suite/util: fix KeyError in get_sha1s #1643

Closed
wants to merge 2 commits into from
Closed

Commits on Apr 21, 2021

  1. suite/util: fix KeyError in get_sha1s

    The git.ceph.com:8080/history returns json with 'err' instead of 'error'.
    
      2021-04-21 08:29:51,334.334 DEBUG:teuthology.suite.util:got response: {'committish': 'e647a64c1e8147b04e84575a0fc53dee65cecab2', 'err': 'fatal: bad object e647a64c1e8147b04e84575a0fc53dee65cecab2\n', 'sha1s': []}
      Traceback (most recent call last):
        File "/home/runner/src/teuthology_master/virtualenv/bin/teuthology-suite", line 33, in <module>
          sys.exit(load_entry_point('teuthology', 'console_scripts', 'teuthology-suite')())
        File "/home/runner/src/teuthology_master/scripts/suite.py", line 189, in main
          return teuthology.suite.main(args)
        File "/home/runner/src/teuthology_master/teuthology/suite/__init__.py", line 143, in main
          run.prepare_and_schedule()
        File "/home/runner/src/teuthology_master/teuthology/suite/run.py", line 397, in prepare_and_schedule
          num_jobs = self.schedule_suite()
        File "/home/runner/src/teuthology_master/teuthology/suite/run.py", line 612, in schedule_suite
          util.find_git_parent('ceph', self.base_config.sha1)
        File "/home/runner/src/teuthology_master/teuthology/suite/util.py", line 491, in find_git_parent
          sha1s = get_sha1s(project, sha1, 2)
        File "/home/runner/src/teuthology_master/teuthology/suite/util.py", line 485, in get_sha1s
          int(count), sha1, project, resp.json()['error'])
      KeyError: 'error'
    
    Signed-off-by: Kyr Shatskyy <[email protected]>
    Kyr Shatskyy committed Apr 21, 2021
    Configuration menu
    Copy the full SHA
    dce3594 View commit details
    Browse the repository at this point in the history
  2. packaging: add debug for build_complete query check

    Signed-off-by: Kyr Shatskyy <[email protected]>
    Kyr Shatskyy committed Apr 21, 2021
    Configuration menu
    Copy the full SHA
    aa89a2d View commit details
    Browse the repository at this point in the history