Skip to content

Commit 011b6ad

Browse files
committed
docs(plan): replace the too-slow regression gate in task 2 (#27)
test/test_cli.py drives full CLI analyses and exceeds ten minutes, which is the wrong check for a task-level gate. A direct analysis over a small fixture proves the same wiring in seconds.
1 parent 4497b00 commit 011b6ad

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

docs/design/plans/2026-08-20-entrypoint-detection-units-1-3.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,17 @@ then add to `AnalysisOptions`:
299299
entrypoint_rules: Tuple[Path, ...] = ()
300300
```
301301

302-
- [ ] **Step 6: Run the broader suite to confirm nothing regressed**
302+
- [ ] **Step 6: Confirm nothing regressed**
303303

304-
Run: `uv run pytest test/test_cli.py -q --no-cov`
305-
Expected: all pass
304+
Do NOT run `test/test_cli.py` — it drives full CLI analyses and exceeds 10 minutes. Run a
305+
direct analysis over a small fixture instead:
306+
307+
```bash
308+
uv run canpy -i test/fixtures/single_functionalities/decorators_and_hof -a 1 -o /tmp/t2check
309+
python3 -c "import json; a=json.load(open('/tmp/t2check/analysis.json'))['application']; \
310+
print('report:', a['entrypoint_report'])"
311+
```
312+
Expected: analysis completes; `entrypoint_report` is present with empty lists and no errors.
306313

307314
- [ ] **Step 7: Commit**
308315

0 commit comments

Comments
 (0)