[SERVER-81200] Add diagnostics logging to evg_api. Enable it for validate_commit_message.py Created: 02/Feb/23  Updated: 29/Oct/23  Resolved: 21/Sep/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Aldo Aguilar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes SERVER-81404 Poetry lock file is out of date Closed
Backwards Compatibility: Fully Compatible
Sprint: DAG 2023-10-02
Participants:
Linked BF Score: 7
Story Points: 1

 Description   

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



 Comments   
Comment by Githook User [ 21/Sep/23 ]

Author:

{'name': 'aldo-aguilar', 'email': '57504606+aldo-aguilar@users.noreply.github.com', 'username': 'aldo-aguilar'}

Message: SERVER-81200 added optional debug logs for buildscript validate_commit_messages
Branch: master
https://github.com/mongodb/mongo/commit/de3e64d98e13ff31a048ba28d1546266ad0cf8b5

Generated at Thu Feb 08 06:45:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.