Message ID | 20240402172813.418770-6-chris.larson@siemens.com |
---|---|
State | Superseded, archived |
Headers | show |
Series | Add more signature cachability tests to the testsuite | expand |
On Tue, 2024-04-02 at 17:28 +0000, kergoth@gmail.com wrote: > From: Christopher Larson <chris.larson@seimens.com> > > Currently isar-sstate ignores image_wic, but not the other image > tasks. > Add additional image tasks to align with this behavior. > > Signed-off-by: Christopher Larson <chris.larson@siemens.com> > --- > scripts/isar-sstate | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/scripts/isar-sstate b/scripts/isar-sstate > index b77f73eb..5270f944 100755 > --- a/scripts/isar-sstate > +++ b/scripts/isar-sstate > @@ -146,6 +146,8 @@ try: > except ModuleNotFoundError: > s3_supported = False > > +DEFAULT_IGNORED_TASKS = "rootfs_wicenv image_wic image_cpio > image_tar image_ext4" It might be better to ignore all image tasks, like "image_*". But as we have more and more image typedeps chains (e.g. image_squashfs -> image_verity -> image_wic), I'm wondering if ignoring this part still makes sense. Maybe Adriaan can comment on this. Felix > + > SstateCacheEntry = namedtuple( > 'SstateCacheEntry', 'hash path arch pn task suffix islink > age size'.split()) > > @@ -811,7 +813,7 @@ def sstate_lint(target, verbose, sources_dir, > build_dir, exit_code, pedantic, li > # note that these still can break caching of other tasks that > depend on these. > # Run in pedantic mode to also look for these issues (e.g. in > image-in-image builds) > # To make a build fully cacheable, avoid absolute paths in > BBLAYERS > - ADDITIONAL_IGNORED_TASKS = list() if pedantic else > 'rootfs_wicenv image_wic'.split() > + ADDITIONAL_IGNORED_TASKS = list() if pedantic else > DEFAULT_IGNORED_TASKS.split() > if not target.exists(): > print(f"WARNING: target {target} does not exist. Nothing to > analyze.") > return 0 > -- > 2.39.2 >
diff --git a/scripts/isar-sstate b/scripts/isar-sstate index b77f73eb..5270f944 100755 --- a/scripts/isar-sstate +++ b/scripts/isar-sstate @@ -146,6 +146,8 @@ try: except ModuleNotFoundError: s3_supported = False +DEFAULT_IGNORED_TASKS = "rootfs_wicenv image_wic image_cpio image_tar image_ext4" + SstateCacheEntry = namedtuple( 'SstateCacheEntry', 'hash path arch pn task suffix islink age size'.split()) @@ -811,7 +813,7 @@ def sstate_lint(target, verbose, sources_dir, build_dir, exit_code, pedantic, li # note that these still can break caching of other tasks that depend on these. # Run in pedantic mode to also look for these issues (e.g. in image-in-image builds) # To make a build fully cacheable, avoid absolute paths in BBLAYERS - ADDITIONAL_IGNORED_TASKS = list() if pedantic else 'rootfs_wicenv image_wic'.split() + ADDITIONAL_IGNORED_TASKS = list() if pedantic else DEFAULT_IGNORED_TASKS.split() if not target.exists(): print(f"WARNING: target {target} does not exist. Nothing to analyze.") return 0