0c15fc97e266dc509be2476c0299746b4a2e3c54,src/python/pants/engine/scheduler.py,LocalScheduler,invalidate_files,#LocalScheduler#Any#,417
Before Change
// NB: Watchman will never trigger an invalidation event for the root directory that
// is being watched. Instead, we treat any invalidation of a path directly in the
// root directory as an invalidation of the root.
if any(os.path.dirname(f) in ("", ".") for f in filenames):
filenames = tuple(filenames) + ("", ".")
with self._product_graph_lock:
invalidated = self._scheduler.invalidate(filenames)
logger.debug("invalidated %d nodes for: %s", invalidated, filenames)
return invalidated
After Change
// NB: Watchman no longer triggers events when children are created/deleted under a directory,
// so we always need to invalidate the direct parent as well.
filenames = set(direct_filenames)
filenames.update(os.path.dirname(f) for f in direct_filenames)
with self._product_graph_lock:
invalidated = self._scheduler.invalidate(filenames)
logger.debug("invalidated %d nodes for: %s", invalidated, filenames)
return invalidated
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pantsbuild/pants
Commit Name: 0c15fc97e266dc509be2476c0299746b4a2e3c54
Time: 2017-10-19
Author: stuhood@twitter.com
File Name: src/python/pants/engine/scheduler.py
Class Name: LocalScheduler
Method Name: invalidate_files
Project Name: masa-su/pixyz
Commit Name: a0021cb982c25923a75cd3a1eeaee00058f2cdbb
Time: 2020-07-27
Author: kaneko@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/distributions.py
Class Name: DistGraph
Method Name: sample
Project Name: dnouri/skorch
Commit Name: e70c008f4184ab91412e6b40987e6bb2944384e7
Time: 2018-05-02
Author: benjamin.bossan@ottogroup.com
File Name: skorch/net.py
Class Name: NeuralNet
Method Name: set_params