[SERVER-29640] buildscripts/update_test_lifecycle.py should remove tags for combinations that are no longer run in Evergreen Created: 14/Jun/17  Updated: 30/Oct/23  Resolved: 17/Jul/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.5.11

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Yves Duhem
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: TIG 2017-07-10, TIG 2017-07-31
Participants:

 Description   

With the initial version of buildscripts/update_test_lifecycle.py from SERVER-28786, tags for (test, task, variant, distro) combinations that no longer run in Evergreen will remain in the etc/test_lifecycle.yml file. We should make it possible for buildscripts/update_test_lifecycle.py to remove these tags when it generates a new version of the YAML file.

More specifically, if a test is renamed or removed, then we should remove any tags for the test. This can be accomplished by iterating through all the tests that are tagged and removing any for which that os.path.isfile() returns false. We should additionally remove any tags mentioning Evergreen tasks, build variants, or distros that are renamed or removed. This can be accomplished by parsing all tags into their consistute parts via tag_str.split("|") and comparing against the current etc/evergreen.yml project configuration if that combination is no longer being run.



 Comments   
Comment by Githook User [ 17/Jul/17 ]

Author:

{u'username': u'syev', u'name': u'Yves Duhem', u'email': u'yves.duhem@mongodb.com'}

Message: SERVER-29640 Cleanup test lifecycle invalid tags
Branch: master
https://github.com/mongodb/mongo/commit/9d7e8192a10dc40ae8ce00e0f7cdfe71b8e17c04

Generated at Thu Feb 08 04:21:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.