Repository navigation
Commit a1d313e
authored
refactor: run build, audit, scenario, query, dag, contract, init, format and cost natively (#1103)
* feat: run sqb audit natively
* refactor(lint): neutralize interpolation, apply suppressions and scan fixture nulls natively
Interpolation sentinels for lint and formatting (references, macros,
templates, hook context and generic-audit parameters), sentinel
restoration, interpolation tokens at an offset, reason-required
suppressions and the fixture typed-null candidate scan run in the new
sqlbuild-rules lint_text module. SQL lint preparation now handles
non-ASCII text natively with character offsets, so the Python fallback
is gone. Delete the Python token, suppression and candidate modules.
* refactor(lint): format SQL bodies natively
Body ranges by project role, trailing-whitespace and omitted ceremonial
SELECT handling, sentinel widths, deduplicated batch formatting,
restoration and splicing, and the format-unsafe faults run in
sqlbuild-rules. Delete the Python body formatter.
* refactor(lint): lint and map SQL bodies natively
Build the native lint requests (rule selection, thresholds, identifiers,
relation keys and the omitted ceremonial SELECT), run them in one
deduplicated batch and map every diagnostic, end position and fix back
through the expansion passes onto authored source in sqlbuild-rules.
Parse failures become authored faults as before. Delete the Python
native SQL lint boundary and its engine-response injection tests.
* chore: update the Python boundary ratchet
* test: report interpolation restore failures without branching in the lint helper
* feat: run sqb query natively
* feat: run sqb dag natively
* chore: update the Python boundary ratchet
* refactor(core): scenario command selection, namespaces, result rows and runtime SQL
* feat: run sqb scenario test and capture natively
* chore: update the Python boundary ratchet
* feat: run sqb contract natively
* feat: run sqb init natively
* chore: update the Python boundary ratchet
* refactor: share terminal cell widths and text wrapping in sqlbuild-core
* refactor(format): render format reports and resolve formatter selectors in sqlbuild-core
* feat: run sqb format natively
* refactor(lint): run lint passes and collect lint inputs natively
* chore: update the Python boundary ratchet
* feat: run sqb cost natively
* chore: update the Python boundary ratchet
* refactor(core): build command safety gates, limits, run context, timings and Python-node rows
* feat: enforce build plan safety gates natively
* feat: run sqb build natively
* chore: update the Python boundary ratchet
* test: raise the dense 10k all-rules compile memory budget1 parent fac17f3 commit a1d313e
411 files changed
Lines changed: 20091 additions & 11950 deletions
File tree
- crates
- sqlbuild-cli/src
- argv
- _helpers
- tests
- diff_report/_helpers
- dispatch
- sqlbuild-core/src
- audit_command
- main
- tests
- build_command
- _helpers
- main
- tests
- contract_command
- _helpers
- main
- tests
- cost_command
- main
- tests
- format_command
- _helpers
- main
- tests
- init_command
- main
- tests
- query_command
- _helpers
- main
- tests
- scenario_command
- _helpers
- main
- tests
- text
- _helpers
- main
- tests
- sqlbuild-python/src/bindings/_helpers
- audit_command
- build_command
- check
- cli
- compile_driver
- contract_command
- cost_command
- format_command
- init_command
- load
- query_command
- rules
- scenario_command
- seed_command
- sql_test_command
- sqlbuild-rules
- src
- engine/tests
- lint_text
- _helpers
- main
- tests
- sql_lint
- _helpers
- main
- src/sqlbuild
- cli/commands
- _helpers
- audit
- build_execution
- build_planning
- build_python_nodes
- contract
- cost
- dbt
- init
- lint
- query
- scenario_capture
- scenario_execution
- scenario_output
- classes
- main
- execution
- inspection
- project
- workspace
- compiler
- compile/main
- contract_adoption/main
- discovery/main
- pipeline/main
- planner
- _helpers/changes
- main
- commands
- cursor_window
- selection
- python_nodes/main
- executor
- auditing/main
- python_nodes/main
- lint
- _helpers
- classes
- main
- rule_engine/_helpers/run
- spec/contracts/main
- tests
- e2e/src/sqlbuild/cli/commands/main/compile
- integration/src/sqlbuild/cli/commands
- _helpers/runtime
- main
- unit/src/sqlbuild
- cli
- commands
- _helpers
- build_execution
- build_planning
- cost
- query
- scenario_execution
- scenario_output
- main
- dag
- execution
- init
- inspection
- cost
- query
- output/main/build_execution_json
- compiler/planner/main
- lint
- _helpers
- spec/contracts/main
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
| |||
179 | 185 | | |
180 | 186 | | |
181 | 187 | | |
182 | | - | |
| 188 | + | |
183 | 189 | | |
184 | 190 | | |
185 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
7 | 2 | | |
8 | 3 | | |
9 | 4 | | |
| |||
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 3 | + | |
| 4 | + | |
40 | 5 | | |
41 | 6 | | |
42 | 7 | | |
| |||
0 commit comments