nathanchance · GitHub

@nathanchance

@nathanchance

Currently, the frontend caching infrastructure is unaware of the patches
being applied. This is problematic if we have changed either added,
removed, or changed any patches since the previously cached run because
the caching would skip the build even when the build's expected outcome
would be different than the cached build's result.
Hash the contents of the patches folder using the hashlib library and
add that to the cache so that when the patches folder changes at all,
the cache is skipped and the build proceeds.
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

@nathanchance

bwendling

This makes changing the inner text easier and it is more readable.
Suggested-by: Bill Wendling <morbo@google.com>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

JustinStitt

Use more concise f-string syntax and add patches_hash.
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

bwendling

@nathanchance

@nathanchance

Read the original on github.com ↗