Summary:
The last few releases overlooked adding to this test. This
change fixes that.
This change also fixes the problem of older branches not understanding
ROCKSDB_NO_FBCODE and referencing compilers no longer supported.
During the test, build_detect_platform is patched to force no FBCODE
compiler usage. (We should not need to update old branches perpetually.)
Pull Request resolved: https://github.com/facebook/rocksdb/pull/8651
Test Plan: local run reproduces regression described in https://github.com/facebook/rocksdb/issues/8650
Reviewed By: jay-zhuang, zhichao-cao
Differential Revision: D30261872
Pulled By: pdillinger
fbshipit-source-id: 02b447d224d7e0eb8613c63185437ded146713bc
main
Peter Dillinger3 years agocommitted byFacebook GitHub Bot
# To check for DB forward compatibility with loading options (old version
# To check for DB forward compatibility with loading options (old version
# reading data from new), as well as backward compatibility
# reading data from new), as well as backward compatibility
declare -a db_forward_with_options_refs=("6.6.fb""6.7.fb""6.8.fb""6.9.fb""6.10.fb""6.11.fb""6.12.fb""6.13.fb""6.14.fb""6.15.fb""6.16.fb""6.17.fb""6.18.fb""6.19.fb""6.20.fb")
declare -a db_forward_with_options_refs=("6.6.fb""6.7.fb""6.8.fb""6.9.fb""6.10.fb""6.11.fb""6.12.fb""6.13.fb""6.14.fb""6.15.fb""6.16.fb""6.17.fb""6.18.fb""6.19.fb""6.20.fb""6.21.fb""6.22.fb""6.23.fb")
# To check for DB forward compatibility without loading options (in addition
# To check for DB forward compatibility without loading options (in addition
# to the "with loading options" set), as well as backward compatibility
# to the "with loading options" set), as well as backward compatibility
declare -a db_forward_no_options_refs=()# N/A at the moment
declare -a db_forward_no_options_refs=()# N/A at the moment
@ -237,6 +238,13 @@ member_of_array()
return1
return1
}
}
force_no_fbcode()
{
# Not all branches recognize ROCKSDB_NO_FBCODE and we should not need
# to patch old branches for changes to available FB compilers.
sed -i -e 's|-d /mnt/gvfs/third-party|"$ROCKSDB_FORCE_FBCODE"|' build_tools/build_detect_platform
}
# General structure from here:
# General structure from here:
# * Check out, build, and do stuff with the "current" branch.
# * Check out, build, and do stuff with the "current" branch.