https://lakefs.io/ logo
#help
Title
# help
g

Giuseppe Barbieri

02/06/2024, 9:07 AM
I cant understand why aren't all the examples here using
pre-commit
, that is the File Format and the Basic File Schema Validator why would I want to run those two on
pre-merge
instead?
o

Oz Katz

02/06/2024, 10:36 AM
I think this has more to do with your branching strategy. Typically, transformations will run on their own isolated branch, and once completed - merged into a "main" branch to be made available to downstream consumers (either other transformations or plain old humans 🙂). In that case, using
pre-merge
allows committing on the isolated branch at any state, while merging to that "main" branch requires validation and testing. For a flatter branching strategy (i.e. transformations running directly on the branch that is availalbe to others), you'd probably want to apply the same logic as a
pre-commit
hook and instruct your downstream consumers to only read committed data This page has a few (hopefully) useful illustrations of this..
g

Giuseppe Barbieri

02/06/2024, 10:37 AM
ah, in this regards that makes sense, thanks for clearing it up, Oz
jumping lakefs 1