ci(release_updater): some release_updater fixes and conf.defaults deprecated configs are non-fatal (#9076)

This commit is contained in:
Liam Howatt
2025-10-16 19:17:21 +02:00
committed by GitHub
parent 8897282c00
commit 663d92eb7b
2 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ def generate_config(path_destination: str, path_source: str, defaults: dict):
if len(keys_used) != len(defaults): if len(keys_used) != len(defaults):
unused_keys = [k for k in defaults.keys() if k not in keys_used] unused_keys = [k for k in defaults.keys() if k not in keys_used]
fatal('The following keys are deprecated:\n ' + '\n '.join(unused_keys)) print('WARNING: The following keys are deprecated:\n ' + '\n '.join(unused_keys))
with open(path_destination, 'w', encoding='utf-8') as f_dst: with open(path_destination, 'w', encoding='utf-8') as f_dst:
for dst_line in dst_lines: for dst_line in dst_lines:
+13 -4
View File
@@ -82,7 +82,7 @@ def main():
branches_to_update = lvgl_release_branches branches_to_update = lvgl_release_branches
if not skip_master: if not skip_master:
branches_to_update += [lvgl_default_branch] branches_to_update = branches_to_update + [lvgl_default_branch]
# from oldest to newest release... # from oldest to newest release...
for lvgl_branch in branches_to_update: for lvgl_branch in branches_to_update:
@@ -151,19 +151,28 @@ def main():
if "lvgl.path " in line if "lvgl.path " in line
), None) ), None)
# check if the submodule is really in the index and not just a leftover in .gitmodules
out = subprocess.check_output(("git", "-C", port_clone_tmpdir, "submodule", "status"))
if not any(
line.split(maxsplit=1)[1].rsplit(maxsplit=1)[0] == port_lvgl_submodule_path
for line
in out.decode().strip().splitlines()
):
port_lvgl_submodule_path = None
if port_lvgl_submodule_path is None: if port_lvgl_submodule_path is None:
print(LOG, "this port has no LVGL submodule") print(LOG, "this port has no LVGL submodule")
else: else:
print(LOG, "lvgl submodule found in port at:", port_lvgl_submodule_path) print(LOG, "lvgl submodule found in port at:", port_lvgl_submodule_path)
# get the SHA of LVGL in this release of LVGL # get the SHA of LVGL in this release of LVGL
out = subprocess.check_output(("git", "-C", lvgl_path, "rev-parse", "--verify", "--quiet", "HEAD")) out = subprocess.check_output(("git", "-C", lvgl_path, "rev-parse", "--verify", "HEAD"))
lvgl_sha = out.decode().strip() lvgl_sha = out.decode().strip()
print(LOG, "the SHA of LVGL in this release should be:", lvgl_sha) print(LOG, "the SHA of LVGL in this release should be:", lvgl_sha)
# get the SHA of LVGL this port wants to use in this release # get the SHA of LVGL this port wants to use in this release
out = subprocess.check_output(("git", "-C", port_clone_tmpdir, "rev-parse", out = subprocess.check_output(("git", "-C", port_clone_tmpdir, "rev-parse",
"--verify", "--quiet", f"HEAD:{port_lvgl_submodule_path}")) "--verify", f"HEAD:{port_lvgl_submodule_path}"))
port_lvgl_submodule_sha = out.decode().strip() port_lvgl_submodule_sha = out.decode().strip()
print(LOG, "the SHA of LVGL in the submodule of this port is:", port_lvgl_submodule_sha) print(LOG, "the SHA of LVGL in the submodule of this port is:", port_lvgl_submodule_sha)
@@ -233,7 +242,7 @@ def main():
def get_release_branches(working_dir): def get_release_branches(working_dir):
out = subprocess.check_output(("git", "-C", working_dir, "branch", "--quiet", "--format", "%(refname)", "--all")) out = subprocess.check_output(("git", "-C", working_dir, "branch", "--format", "%(refname)", "--all"))
branches = out.decode().strip().splitlines() branches = out.decode().strip().splitlines()
release_versions = [] release_versions = []