File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
turbopack/crates/turbo-tasks-fuzz/src Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ struct FsWatcher {
5050 file_modifications : u32 ,
5151 #[ arg( long, default_value_t = 2 ) ]
5252 directory_modifications : u32 ,
53+ #[ arg( long) ]
54+ print_missing_invalidations : bool ,
5355}
5456
5557#[ tokio:: main]
@@ -135,6 +137,19 @@ async fn fuzz_fs_watcher(args: FsWatcher) -> anyhow::Result<()> {
135137 modified_file_paths. len( ) ,
136138 invalidations. len( )
137139 ) ;
140+ if args. print_missing_invalidations {
141+ let absolute_path_invalidations = invalidations
142+ . iter ( )
143+ . map ( |relative_path| fs_root. join ( relative_path) )
144+ . collect :: < FxHashSet < PathBuf > > ( ) ;
145+ let mut missing = modified_file_paths
146+ . difference ( & absolute_path_invalidations)
147+ . collect :: < Vec < _ > > ( ) ;
148+ missing. sort_unstable ( ) ;
149+ for path in & missing {
150+ println ! ( " missing {path:?}" ) ;
151+ }
152+ }
138153 invalidations. clear ( ) ;
139154 }
140155 }
You can’t perform that action at this time.
0 commit comments