This is an automated email from the ASF dual-hosted git repository.
arm pushed a commit to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/arm by this push:
new 96e1972f Remove cache ignore logic from cache key methods since we
can't have an empty cache key now. Add policy dependencies to license and RAT
checks.
96e1972f is described below
commit 96e1972f523e753ba6ed4bdd0bccaf530813b556
Author: Alastair McFarlane <[email protected]>
AuthorDate: Fri Feb 20 12:19:53 2026 +0000
Remove cache ignore logic from cache key methods since we can't have an
empty cache key now. Add policy dependencies to license and RAT checks.
---
atr/tasks/checks/__init__.py | 11 -----------
atr/tasks/checks/license.py | 2 +-
atr/tasks/checks/rat.py | 2 +-
3 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/atr/tasks/checks/__init__.py b/atr/tasks/checks/__init__.py
index ffc8251e..910e69d7 100644
--- a/atr/tasks/checks/__init__.py
+++ b/atr/tasks/checks/__init__.py
@@ -35,7 +35,6 @@ if TYPE_CHECKING:
import atr.models.schema as schema
import atr.attestable as attestable
-import atr.config as config
import atr.db as db
import atr.file_paths as file_paths
import atr.hashes as hashes
@@ -217,16 +216,6 @@ class Recorder:
) -> bool:
# TODO: Should this just be in the constructor?
- if config.get().DISABLE_CHECK_CACHE:
- return False
-
- if not await self.use_check_cache():
- return False
-
- no_cache_file = self.abs_path_base() / ".atr-no-cache"
- if await aiofiles.os.path.exists(no_cache_file):
- return False
-
async with db.session() as data:
release = await data.release(
name=self.release_name, _release_policy=True,
_project_release_policy=True, _project=True
diff --git a/atr/tasks/checks/license.py b/atr/tasks/checks/license.py
index fecb3fa9..050b1066 100644
--- a/atr/tasks/checks/license.py
+++ b/atr/tasks/checks/license.py
@@ -80,7 +80,7 @@ INCLUDED_PATTERNS: Final[list[str]] = [
]
# Release policy fields which this check relies on - used for result caching
-INPUT_POLICY_KEYS: Final[list[str]] = [""]
+INPUT_POLICY_KEYS: Final[list[str]] = ["license_check_mode",
"source_excludes_lightweight"]
INPUT_EXTRA_ARGS: Final[list[str]] = ["is_podling"]
CHECK_VERSION: Final[str] = "1"
diff --git a/atr/tasks/checks/rat.py b/atr/tasks/checks/rat.py
index 486ad18c..ef9d2972 100644
--- a/atr/tasks/checks/rat.py
+++ b/atr/tasks/checks/rat.py
@@ -66,7 +66,7 @@ _STD_EXCLUSIONS_EXTENDED: Final[list[str]] = [
"STANDARD_SCMS",
]
# Release policy fields which this check relies on - used for result caching
-INPUT_POLICY_KEYS: Final[list[str]] = []
+INPUT_POLICY_KEYS: Final[list[str]] = ["license_check_mode",
"source_excludes_rat"]
INPUT_EXTRA_ARGS: Final[list[str]] = []
CHECK_VERSION: Final[str] = "1"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]