|
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.
|