Open leondz opened 2 months ago
(workaround is to touch
the updated file, e.g. touch garak/probes/packagehallucination.py
)
This is a quirk of how git
does the checkout process, the workaround suggested is a short term solution. Will give some thought to how this can be better detected and accounted for.
I followed these steps with a local garak repo:
This broke:
Despite the probe being in place:
mod_time
anduser_time
are identical for this module in_plugins._valid_loaded_cache()
.Looking deeper, the mtime for both my package cache and for the plugin's module file are the same:
This skips a check because (I think) (a) all the files are in place, and (b)
if base_time > user_time:
on_plugins.py
L77 does not eval to True, so the file date checking doesn't fire either - even though the cache entry is both out of date, and missing an entry for the probe.As a fan of CRCs, ... is that the fix? Do we want to actually check the specified module for the class even if the cache doesn't have it, before declaring a failure?