[SERVER-56196] burn_in_tests should provide a better error when an invalid build variant is specified Created: 20/Apr/21  Updated: 29/Oct/23  Resolved: 07/May/21

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: David Bradford (Inactive) Assignee: Carlos Anaya (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: DAG 2021-05-17
Participants:
Story Points: 1

 Description   

Current if an invalid build variant is passed to burn_in_tests, it will display the following error:

  File "./buildscripts/burn_in_tests.py", line 560, in burn_in
    tests_by_task = create_tests_by_task(build_variant, self.evg_conf, changed_tests)
  File "./buildscripts/burn_in_tests.py", line 376, in create_tests_by_task
    if not evg_conf.get_variant(build_variant).is_enterprise_build():
AttributeError: 'NoneType' object has no attribute 'is_enterprise_build'

This isn't very clear to users what is going on. We should have a better error message if we cannot find the specified build variant.



 Comments   
Comment by Githook User [ 07/May/21 ]

Author:

{'name': 'Carlos Anaya', 'email': 'carlos.anaya@mongodb.com', 'username': 'carlos-anaya'}

Message: SERVER-56196 Fix pylint issue
Branch: master
https://github.com/mongodb/mongo/commit/439b3223337e76c0e340b0c77fe280c5a75c1d0c

Comment by Githook User [ 07/May/21 ]

Author:

{'name': 'Carlos Anaya', 'email': 'carlos.anaya@mongodb.com', 'username': 'carlos-anaya'}

Message: SERVER-56196 Added error msg in burn_in_tests for invalid build variant
Branch: master
https://github.com/mongodb/mongo/commit/41f7f3e43724ba6b8e20aaae7a8615d410d56bad

Generated at Thu Feb 08 05:38:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.