You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b5bdb76
Browse filesBrowse the repository at this point in the historyBrowse files
perf(compile): delta-compile dynamic columns, audit factories and model rules (#1201)
* fix(compile): name what changed when a delta compile falls back on identity
Delta compile reported one message for any invocation, runtime, search
path, environment, settings or module change. Name the first component
that differs instead.
SQLBUILD_VERIFY_DELTA_COMPILE was a tracked variable, so turning it on
for one compile changed the reuse identity and made the very edit it
was meant to verify fall back. It does not change compile output, so it
no longer invalidates a stored compile.
* perf(compile): delta-compile projects with dynamic columns, audit factories and model rules
Three project shapes made every edit compile in full:
- Any enforced model declaring dynamic_columns ruled out the project
image. The image now keeps the analysis request's families and a
delta injects them for models it does not analyse; an edit that
changes a model's own families still falls back.
- A delta saw only the rerun models' headers, so every audit factory
attached elsewhere was reported as orphaned and the delta fell back.
The image keeps each model's attached factories.
- Any custom rule that had to run again ruled out the delta, so editing
a model a model-subject rule reads always compiled in full. A delta
now runs model-subject rules for its own models when their recorded
reads are limited to those models' SQL, columns and contract, project
files, and the source list (kept in full when a rule reads it). It
checks the stored read sets before starting and the new ones after,
and falls back otherwise.
The image format moves to v9.
* docs(compile): regenerate the docs skill compile page
* fix(compile): fall back when a delta's custom rule lists models under a folder
tree.resources_under is listed from the project's models, not the
filesystem, and a delta compile holds only the models it reruns. A
model-subject rule reading it for an edited model ran on the partial
list and could report different findings than a full compile. Treat it
as a read beyond the changed models so the delta falls back.
0 commit comments