pkl icon indicating copy to clipboard operation
pkl copied to clipboard

Delete stale files in LanguageSnippetTests/output

Open translatenix opened this issue 1 year ago • 3 comments

When I delete pkl-core/src/test/files/LanguageSnippetTests/output and run "gw test", most output files are regenerated, but 46 of them aren't. I assume these are stale files that should be deleted.

translatenix avatar Feb 20 '24 06:02 translatenix

Your reasoning is sound, but your conclusion is a leap... I'm thinking this is signal some of our tests aren't being executed as expected. This requires a little more deep-diving.

holzensp avatar Feb 20 '24 14:02 holzensp

It seems that for every stale output file there's a similarly named generated output file. For example jsonRenderer1/2/3/6.json.pcf (stale) vs. jsonRenderer1/2/3/6.json (generated).

translatenix avatar Feb 20 '24 16:02 translatenix

Another observation is that out of 46 stale output files, 44 have the extension .pcf.

translatenix avatar Feb 20 '24 16:02 translatenix