vars-check: enable debug logging for cache misses

This commit is contained in:
DavHau
2025-06-18 21:00:46 +07:00
parent 8ea465d331
commit 7e18dc6bb4
2 changed files with 6 additions and 0 deletions

View File

@@ -659,6 +659,8 @@ class Flake:
nix_metadata, nix_metadata,
) )
log.debug(f"Invalidating cache for {self.identifier}")
self.prefetch() self.prefetch()
self._cache = FlakeCache() self._cache = FlakeCache()

View File

@@ -2,6 +2,7 @@
import argparse import argparse
import json import json
import logging
import os import os
import shutil import shutil
import subprocess import subprocess
@@ -16,6 +17,8 @@ from clan_lib.flake.flake import Flake
from clan_lib.machines.machines import Machine from clan_lib.machines.machines import Machine
from clan_lib.nix import nix_config, nix_eval, nix_test_store from clan_lib.nix import nix_config, nix_eval, nix_test_store
log = logging.getLogger(__name__)
sops_priv_key = ( sops_priv_key = (
"AGE-SECRET-KEY-1PL0M9CWRCG3PZ9DXRTTLMCVD57U6JDFE8K7DNVQ35F4JENZ6G3MQ0RQLRV" "AGE-SECRET-KEY-1PL0M9CWRCG3PZ9DXRTTLMCVD57U6JDFE8K7DNVQ35F4JENZ6G3MQ0RQLRV"
) )
@@ -141,6 +144,7 @@ def parse_args() -> Options:
def main() -> None: def main() -> None:
logging.basicConfig(level=logging.DEBUG)
os.environ["CLAN_NO_COMMIT"] = "1" os.environ["CLAN_NO_COMMIT"] = "1"
opts = parse_args() opts = parse_args()
test_dir = opts.test_dir test_dir = opts.test_dir