diff options
author | Mikhail Shchatko <mikhail.shchatko@mongodb.com> | 2021-07-15 13:14:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-23 07:30:05 +0000 |
commit | fcdbc97ec75cad751764c43343e018d0ffd3f642 (patch) | |
tree | 902bf711dc6e14bc887e8aadb76e708ced0b703c /evergreen | |
parent | 00840fd3470baa28ff6ed6a50b8b59327e6bac45 (diff) | |
download | mongo-fcdbc97ec75cad751764c43343e018d0ffd3f642.tar.gz |
SERVER-55858 Enforce transition to requires-fcv after feature flag is changed from disabled to enabled by default
Diffstat (limited to 'evergreen')
-rwxr-xr-x | evergreen/feature_flag_tags_check.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/evergreen/feature_flag_tags_check.sh b/evergreen/feature_flag_tags_check.sh new file mode 100755 index 00000000000..62072e0631c --- /dev/null +++ b/evergreen/feature_flag_tags_check.sh @@ -0,0 +1,38 @@ +DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" +. "$DIR/prelude.sh" + +cd src + +activate_venv + +set -o verbose +set -o errexit + +# get the list of feature flags from the patched version +$python buildscripts/idl/gen_all_feature_flag_list.py --import-dir src --import-dir src/mongo/db/modules/enterprise/src +mv all_feature_flags.txt patch_all_feature_flags.txt + +# get the list of feature flags from the base commit +git stash +if [ -d src/mongo/db/modules/enterprise ]; then + pushd src/mongo/db/modules/enterprise + git stash + popd +fi + +$python buildscripts/idl/gen_all_feature_flag_list.py --import-dir src --import-dir src/mongo/db/modules/enterprise/src +mv all_feature_flags.txt base_all_feature_flags.txt + +set +o errexit +git stash pop +if [ -d src/mongo/db/modules/enterprise ]; then + pushd src/mongo/db/modules/enterprise + git stash pop + popd +fi +set -o errexit + +# print out the list of tests that previously had feature flag tag, that was +# enabled by default in the current patch, and currently don't have requires +# latests FCV tag +$python buildscripts/feature_flag_tags_check.py |