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

Recover from setting fix version failure in merge script

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: Project Infra
    • Labels:
      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

          Issue Links

            Activity

              People

              • Assignee:
                hyukjin.kwon Hyukjin Kwon
                Reporter:
                hyukjin.kwon Hyukjin Kwon
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: