Commit 8e83781
committed
fix(ci): install [codebase] extra + skip tree-sitter tests without it
CI failure on 197155e+dc129b9: regex fallback path in
codebase_parser.parse_file produces basename-only symbol names ("bar"
not "Foo.bar") because tree-sitter isn't installed in CI. The L6-ring
feature legitimately requires tree-sitter; the fallback is graceful
but cannot emit caller-qualified chains.
Two-part fix:
1. .github/workflows/ci.yml — install `.[dev,postgresql,codebase]`
so CI actually exercises the feature with tree-sitter.
2. tests_py/infrastructure/test_workflow_graph_source_native_ast.py
— mark every test that depends on dotted qnames / MEMBER_OF /
CALLS with @requires_tree_sitter (`pytest.mark.skipif` on
ast_parser.is_available()). Local-dev configs without the
[codebase] extra now skip cleanly instead of asserting on
unachievable shapes.
Tests that don't require tree-sitter (empty list, non-source skip,
file cap, unresolved-import dropped) stay unmarked and continue to
run in both configs.
Local: 16 tests pass as before. CI should now pass the
codebase-extra-backed tests and skip nothing.1 parent dc129b9 commit 8e83781
2 files changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
19 | 32 | | |
20 | 33 | | |
21 | 34 | | |
| |||
44 | 57 | | |
45 | 58 | | |
46 | 59 | | |
| 60 | + | |
47 | 61 | | |
48 | 62 | | |
49 | 63 | | |
| |||
77 | 91 | | |
78 | 92 | | |
79 | 93 | | |
| 94 | + | |
80 | 95 | | |
81 | 96 | | |
82 | 97 | | |
| |||
96 | 111 | | |
97 | 112 | | |
98 | 113 | | |
| 114 | + | |
99 | 115 | | |
100 | 116 | | |
101 | 117 | | |
| |||
137 | 153 | | |
138 | 154 | | |
139 | 155 | | |
140 | | - | |
| 156 | + | |
| 157 | + | |
141 | 158 | | |
| 159 | + | |
142 | 160 | | |
143 | 161 | | |
144 | 162 | | |
| |||
168 | 186 | | |
169 | 187 | | |
170 | 188 | | |
| 189 | + | |
171 | 190 | | |
172 | 191 | | |
173 | 192 | | |
| |||
208 | 227 | | |
209 | 228 | | |
210 | 229 | | |
| 230 | + | |
211 | 231 | | |
212 | 232 | | |
213 | 233 | | |
| |||
240 | 260 | | |
241 | 261 | | |
242 | 262 | | |
| 263 | + | |
243 | 264 | | |
244 | 265 | | |
245 | 266 | | |
| |||
293 | 314 | | |
294 | 315 | | |
295 | 316 | | |
| 317 | + | |
296 | 318 | | |
297 | 319 | | |
298 | 320 | | |
| |||
0 commit comments