Bug 1701936

Summary: comment-on-issue smoke job is experiencing crashes in certain conditions
Product: [Community] GlusterFS Reporter: Shyamsundar <srangana>
Component: project-infrastructureAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, bugs, dkhandel, gluster-infra, sankarshan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-22 18:16:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Shyamsundar 2019-04-22 13:54:32 UTC
Description of problem:

The smoke job at [1] failed with the following stack trace, and hence smoke is failing for the patch under consideration.

The stack in the logs looks as follows,

03:04:53 [comment-on-issue] $ /bin/sh -xe /tmp/jenkins7951448835552971908.sh
03:04:53 + echo https://review.gluster.org/22471
03:04:53 https://review.gluster.org/22471
03:04:53 + echo master
03:04:53 master
03:04:53 + /opt/qa/github/handle_github.py --repo glusterfs -c
03:04:55 Issues found in the commit message: [{u'status': u'Fixes', u'id': u'647'}]
03:04:55 Bug fix, no extra flags required
03:04:55 No issues found in the commit message
03:04:55 Old issues: []
03:04:55 Traceback (most recent call last):
03:04:55   File "/opt/qa/github/handle_github.py", line 187, in <module>
03:04:55     main(ARGS.repo, ARGS.dry_run, ARGS.comment_file)
03:04:55   File "/opt/qa/github/handle_github.py", line 165, in main
03:04:55     github.comment_on_issues(newissues, commit_msg)
03:04:55   File "/opt/qa/github/handle_github.py", line 47, in comment_on_issues
03:04:55     self._comment_on_issue(issue['id'], comment)
03:04:55 TypeError: string indices must be integers

Request an analysis and fix of the same as required.

[1] Smoke job link: https://build.gluster.org/job/comment-on-issue/13672/console

Comment 2 Deepshikha khandelwal 2019-04-22 18:16:34 UTC
It is fixed now: https://build.gluster.org/job/comment-on-issue/13697/console