Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27277

Recover from setting fix version failure in merge script

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Project Infra
    • None

    Description

      I happened to meet this cases few times before:

      Enter comma-separated fix version(s) [3.0.0]: 3.0,0
      Restoring head pointer to master
      git checkout master
      Already on 'master'
      git branch
      Traceback (most recent call last):
        File "./dev/merge_spark_pr_jira.py", line 537, in <module>
          main()
        File "./dev/merge_spark_pr_jira.py", line 523, in main
          resolve_jira_issues(title, merged_refs, jira_comment)
        File "./dev/merge_spark_pr_jira.py", line 359, in resolve_jira_issues
          resolve_jira_issue(merge_branches, comment, jira_id)
        File "./dev/merge_spark_pr_jira.py", line 302, in resolve_jira_issue
          jira_fix_versions = map(lambda v: get_version_json(v), fix_versions)
        File "./dev/merge_spark_pr_jira.py", line 302, in <lambda>
          jira_fix_versions = map(lambda v: get_version_json(v), fix_versions)
        File "./dev/merge_spark_pr_jira.py", line 300, in get_version_json
          return filter(lambda v: v.name == version_str, versions)[0].raw
      IndexError: list index out of range
      

      I typed the fix version wrongly and it ended the loop in the merge script. Not a big deal but it bugged me few times.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gurwls223 Hyukjin Kwon Assign to me
            gurwls223 Hyukjin Kwon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment