Compare commits

...
Author SHA1 Message Date
Stefan Hansson 2c6ce24a17 CI: Allow skipping archived in get_changed_packages()
Packages can be moved to archive because they don't meet a certain
quality standard, so it is useful to be able to exclude them from
certain checks as to not block packages from being moved there just
because they don't comply with our standards.

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
2025-11-12 22:19:04 +01:00
Stefan Hansson 79bf410851 CI: Don't check kconfig for archived kernels
It doesn't make any sense to require people to fix the kconfig just
because they want to move a device into archived or fix some minor issue
in an archived device. So, let's not enforce this on archived devices
since that's supposed to be where broken devices go.

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
2025-11-12 22:18:55 +01:00
Stefan Hansson fafab7fc4d DO NOT MERGE: linux-htc-golfu: move to archived
Just for testing purposes.
2025-11-12 22:15:04 +01:00
11 changed files with 5 additions and 5 deletions

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ if __name__ == "__main__":
exit(1)
exit(0)
pkgnames = common.get_changed_kernels()
pkgnames = common.get_changed_kernels(skip_archived=True)
print(f"Changed kernels: {pkgnames}")
if len(pkgnames) == 0:
+4 -4
View File
@@ -141,7 +141,7 @@ def get_changed_files(removed=True):
return ret
def get_changed_packages():
def get_changed_packages(skip_archived: bool = False):
ret = set()
for file in get_changed_files():
dirname, filename = os.path.split(file)
@@ -149,7 +149,7 @@ def get_changed_packages():
# Skip files:
# * in the root dir of pmaports (e.g. README.md)
# * path with a dot (e.g. .ci/, device/.shared-patches/)
if not dirname or file.startswith(".") or "/." in file:
if not dirname or file.startswith(".") or "/." in file or skip_archived and dirname.startswith("device/archived"):
continue
if filename != "APKBUILD":
@@ -178,9 +178,9 @@ def get_changed_packages():
return ret
def get_changed_kernels():
def get_changed_kernels(skip_archived: bool = False):
ret = []
for pkgname in get_changed_packages():
for pkgname in get_changed_packages(skip_archived):
if pkgname.startswith("linux-"):
ret += [pkgname]
return ret