mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 13:00:19 +00:00
ci: support diff manifest sha with the base commit
This commit is contained in:
@@ -89,6 +89,7 @@ def main(arguments: argparse.Namespace) -> None:
|
||||
marker_expr='not host_test',
|
||||
config_rules_str=DEFAULT_CONFIG_RULES_STR,
|
||||
extra_default_build_targets=extra_default_build_targets,
|
||||
compare_manifest_sha_filepath=arguments.compare_manifest_sha_filepath,
|
||||
modified_components=arguments.modified_components,
|
||||
modified_files=arguments.modified_files,
|
||||
ignore_app_dependencies_filepatterns=arguments.ignore_app_dependencies_filepatterns,
|
||||
@@ -165,6 +166,11 @@ if __name__ == '__main__':
|
||||
default=os.path.join(IDF_PATH, '.gitlab', 'ci', 'default-build-test-rules.yml'),
|
||||
help='default build test rules config file',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--compare-manifest-sha-filepath',
|
||||
default=os.path.join(IDF_PATH, '.manifest_sha'),
|
||||
help='Path to the recorded manifest sha file generated by `idf-build-apps dump-manifest-sha`'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--modified-components',
|
||||
type=_separate_str_to_list,
|
||||
@@ -237,4 +243,8 @@ if __name__ == '__main__':
|
||||
# setting default values
|
||||
args.ignore_app_dependencies_filepatterns = DEFAULT_FULL_BUILD_TEST_FILEPATTERNS
|
||||
|
||||
if not os.path.isfile(args.compare_manifest_sha_filepath):
|
||||
# ignore if the file does not exist
|
||||
args.compare_manifest_sha_filepath = None
|
||||
|
||||
main(args)
|
||||
|
Reference in New Issue
Block a user