Project

General

Profile

Actions

Bug #58264

closed

scrape log type error

Added by Laura Flores over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

/a/yuriw-2022-12-10_00:03:28-rados-wip-yuri7-testing-2022-12-09-1107-quincy-distro-default-smithi/results.log

2022-12-10T00:05:50.103 INFO:root:teuthology version: 0.0.1.dev18+g19d18db
2022-12-10T00:05:50.103 INFO:teuthology.results:subset: '111/120000'
2022-12-10T00:05:50.103 INFO:teuthology.results:seed: '778'
2022-12-10T03:58:22.195 INFO:root:teuthology version: 0.0.1.dev18+g19d18db
2022-12-10T03:58:22.230 INFO:teuthology.results:Waiting up to 43200 seconds for tests to finish...
2022-12-10T12:53:20.115 INFO:teuthology.results:Tests finished! gathering results...
2022-12-10T12:53:46.574 INFO:scrape:Found 317 jobs
2022-12-10T12:53:47.962 ERROR:teuthology.results:error generating memo/results
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/results.py", line 33, in main
    results(args['--archive-dir'], args['--name'], args['--email'],
  File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/results.py", line 71, in results
    Scraper(archive_dir).analyze()
  File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/scrape.py", line 490, in analyze
    if reason.match(job):
  File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/scrape.py", line 203, in match
    ratio = difflib.SequenceMatcher(None, self.last_tlog_line,
  File "/usr/lib/python3.8/difflib.py", line 644, in ratio
    matches = sum(triple[-1] for triple in self.get_matching_blocks())
  File "/usr/lib/python3.8/difflib.py", line 467, in get_matching_blocks
    la, lb = len(self.a), len(self.b)
TypeError: object of type 'NoneType' has no len()

The scrape log ends up being an empty file.

Actions #1

Updated by Nitzan Mordechai about 1 year ago

  • Assignee set to Nitzan Mordechai

scrapy.py calling difflib when we have noneType returned from get_last_tlog_line

Actions #2

Updated by Laura Flores about 1 year ago

/a/lflores-2023-02-06_22:55:02-rados-wip-yuri10-testing-2023-02-06-0846-distro-default-smithi

Actions #3

Updated by Nitzan Mordechai about 1 year ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Laura Flores about 1 year ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF