Repository navigation
Commit 2bdb5ef
committed
test(pipeline): give the package cross/register scope cases a cross-walk call
The cross and register scope-failure cases defined S and called s.m()
inside pkg/__init__.py. The per-file LSP already resolves those calls,
and the parallel driver skips the cross-file walk for a file whose call
sites are all resolved, so CBM_TEST_PY_LSP_SCOPE_FAIL_STAGE=cross and
=register never fired on the parallel path and both parallel cases saw
no file error.
For those two stages, move S into memo_def.py (imported by
pkg/__init__.py) so run() holds calls only the cross walk resolves, and
count that module's File node. The raw stage keeps its single-file
fixture; the error assertions are unchanged.
With the corrected fixture all eight package-scope pipeline cases pass;
removing the CBM_PY_LSP_SCOPE_ERROR capture in pass_parallel.c turns
exactly the two parallel cross/register cases RED again.
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent 7effa3c commit 2bdb5ef
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10962 | 10962 | | |
10963 | 10963 | | |
10964 | 10964 | | |
| 10965 | + | |
| 10966 | + | |
| 10967 | + | |
| 10968 | + | |
| 10969 | + | |
10965 | 10970 | | |
10966 | 10971 | | |
10967 | 10972 | | |
10968 | 10973 | | |
10969 | | - | |
10970 | | - | |
10971 | | - | |
| 10974 | + | |
| 10975 | + | |
| 10976 | + | |
| 10977 | + | |
| 10978 | + | |
| 10979 | + | |
| 10980 | + | |
| 10981 | + | |
| 10982 | + | |
10972 | 10983 | | |
10973 | 10984 | | |
10974 | 10985 | | |
| |||
11033 | 11044 | | |
11034 | 11045 | | |
11035 | 11046 | | |
11036 | | - | |
| 11047 | + | |
| 11048 | + | |
11037 | 11049 | | |
11038 | 11050 | | |
11039 | 11051 | | |
| |||
0 commit comments