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

Handle unknown error codes in Jenkins rather then leaving incomplete comment in PRs

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: Project Infra
    • Labels:
      None

      Description

      Recently, Jenkins tests were unstable due to unknown reasons as below:

       /home/jenkins/workspace/SparkPullRequestBuilder/dev/lint-r ; process was terminated by signal 9
          test_result_code, test_result_note = run_tests(tests_timeout)
        File "./dev/run-tests-jenkins.py", line 140, in run_tests
          test_result_note = ' * This patch **fails %s**.' % failure_note_by_errcode[test_result_code]
      KeyError: -9
      
      Traceback (most recent call last):
        File "./dev/run-tests-jenkins.py", line 226, in <module>
          main()
        File "./dev/run-tests-jenkins.py", line 213, in main
          test_result_code, test_result_note = run_tests(tests_timeout)
        File "./dev/run-tests-jenkins.py", line 140, in run_tests
          test_result_note = ' * This patch **fails %s**.' % failure_note_by_errcode[test_result_code]
      KeyError: -10
      

      This exception looks causing failing to update the comments in the PR. For example:

      Test build #78508 has started for PR 18320 at commit 53e00d7.
      

      comment just remains.

      This always requires, for both reviewers and the author, a overhead to click and check the logs, which I believe are not really useful.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: