narrow-activity-17405
07/14/2021, 1:20 PM./pants --changed-since=origin/master --changed-dependees=transitive test). Some of the code within the repo depends on files stored using git lfs, but most of it doesn't. Right now, we are checking out lfs for every pull request, which generates unnecessary bandwidth. It would be great if (somehow) I could run lfs checkout conditionally - only for tests that need it. Any ideas on how this could be done please? :-)narrow-activity-17405
07/14/2021, 1:21 PMhappy-kitchen-89482
07/14/2021, 3:26 PM--changed-since check? Or do they only come into play later, when the test is run?witty-crayon-22786
07/14/2021, 4:27 PMgit-lfs makes placeholder files or notwitty-crayon-22786
07/14/2021, 4:29 PMgit diff --name-only does the right thing when the contents have not been fetched.witty-crayon-22786
07/14/2021, 7:00 PMgit-lfs after doing a --changed calculation, 2) poking git-lfs while expanding globswitty-crayon-22786
07/14/2021, 7:02 PM./pants --changed-since=origin/master --changed-dependees=transitive filedeps --transitive to get all affected files, make sure that git-lfs has materialized them, and then pass the list of files in to ./pants test as a file with --spec-fileswitty-crayon-22786
07/14/2021, 7:05 PM2) pokingÂand… actually, this is maybe workable from a performance perspective, now that i think about it. if there are placeholder files, you don’t need to ask while expanding globsgit-lfs
git-lfs to materialize them unless you want to capture their content: and that is a separate operation where it wouldn’t be too bad to interact with git-lfs (especially if you were able to do it lazily, where you only poked git-lfs if after capturing the file it was shaped like a placeholder file… i.e. contained a hash or w/e)narrow-activity-17405
07/15/2021, 5:32 AMnarrow-activity-17405
07/15/2021, 5:54 AMruntime_package_dependencies which needs them.narrow-activity-17405
07/15/2021, 5:56 AM./pants --changed-since=origin/master --changed-dependees=transitive filedeps --transitive and it gives me quite a lot of files even when there are no changes - is this expected? :-)witty-crayon-22786
07/15/2021, 3:50 PMwitty-crayon-22786
07/15/2021, 3:50 PM./pants --changed-since=origin/master listwitty-crayon-22786
07/15/2021, 3:51 PM