From 69c1f9adaf61edf0b8a568f8f76864e7c97547c3 Mon Sep 17 00:00:00 2001 From: Mikhail Shchatko Date: Mon, 30 Sep 2024 11:09:23 +0300 Subject: [PATCH] SERVER-94835 Clear cache before getting test tags in feature_flag_tags_check.py (#27564) GitOrigin-RevId: 2d229229bf9ea0d0c4cd9422169ee2ae05d7121c --- buildscripts/feature_flag_tags_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/feature_flag_tags_check.py b/buildscripts/feature_flag_tags_check.py index ccd8db6aecb..747eec5ba92 100755 --- a/buildscripts/feature_flag_tags_check.py +++ b/buildscripts/feature_flag_tags_check.py @@ -44,6 +44,7 @@ def get_tests_with_feature_flag_tags(feature_flags, ent_path): def get_tests_missing_fcv_tag(tests): """Get the list of tests missing requires FCV tag.""" found_tests = [] + jscomment.get_tags.cache_clear() for test in tests: try: test_tags = jscomment.get_tags(test) @@ -72,7 +73,6 @@ def main(diff_file, ent_path): tests_with_feature_flag_tag = get_tests_with_feature_flag_tags(enabled_feature_flags, ent_path) _run_git_cmd(["apply", diff_file]) - _run_git_cmd(["apply", diff_file], cwd=ent_path) tests_missing_fcv_tag = get_tests_missing_fcv_tag(tests_with_feature_flag_tag) if tests_missing_fcv_tag: