Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-81200

Add diagnostics logging to evg_api. Enable it for validate_commit_message.py

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • DAG 2023-10-02
    • 7
    • 1

      Motivation for Request

      Sometimes validate_commit_message.py fails because an evergreen response isn't what's expected. It'd be nice to have the request that was sent and the response received to give insight into where the bug lies and what the bug might be.

      Context

      Given the following error, it's hard to tell if this is a bug in validate_commit_messages.py or in evergreen. If this is an evergreen bug, knowing the request/response gives them valuable clues on what code path is of interest.

      [2023/02/02 15:39:49.085] Traceback (most recent call last):
      [2023/02/02 15:39:49.085]   File "/data/mci/ec85e526070d7208b93ee6bb8f7ed7c6/src/buildscripts/validate_commit_message.py", line 281, in <module>
      [2023/02/02 15:39:49.085]     sys.exit(main(sys.argv[1:]))
      [2023/02/02 15:39:49.085]   File "/data/mci/ec85e526070d7208b93ee6bb8f7ed7c6/src/buildscripts/validate_commit_message.py", line 277, in main
      [2023/02/02 15:39:49.085]     return orchestrator.validate_commit_messages(args.version_id)
      [2023/02/02 15:39:49.085]   File "/data/mci/ec85e526070d7208b93ee6bb8f7ed7c6/src/buildscripts/validate_commit_message.py", line 249, in validate_commit_messages
      [2023/02/02 15:39:49.085]     for message in change.commit_messages:
      [2023/02/02 15:39:49.085] TypeError: 'NoneType' object is not iterable 

      Description

            Assignee:
            aldo.aguilar@mongodb.com Aldo Aguilar
            Reporter:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: