Commit b38395d
miranov25
PHASE 13.34.DF FIX2 — BUG-011: run_tests.sh pre-bundle staging check
Catches the class of bugs where new test files in tests/ are created
in the working tree but never staged. pytest finds them and reports
a green gate; the bundle ships with that gate; reviewers read it as
trustworthy; but the commit has fewer tests than the gate claims.
Real incident: Phase 13.34.DF FIX1 BUG-010 (commit 879a083 pre-amend
contained drawer.py only; tests/test_phase_13_34_df_fix1_bug010.py
was untracked but pytest ran it, producing 822/0/0 gate over a 817-
test commit). Cost: 1 review cycle.
Patch: ~35 lines inserted in run_tests.sh between the test-summary
section and the bundle-packaging section. Blocks bundle (exit 1)
when 'git status --porcelain tests/ | grep ^?? | grep .py$' is
non-empty. Override: DFDRAW_SKIP_STAGING_CHECK=1 bash run_tests.sh.
Test results from the blocked run are still saved to test_logs/ —
only the reviewer.zip artifact is prevented.
Discovered by Sonet50 in PHASE_13_34_DF_FIX1_BUG010 review.
Validated by manual reproduction of 5 scenarios (clean, untracked,
override, non-py untracked, modified-tracked).1 parent 14851d4 commit b38395d
2 files changed
Lines changed: 44 additions & 0 deletions
File tree
- UTILS/dfextensions
- AliasDataFrame/examples/time_series
- dfdraw
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
328 | 372 | | |
329 | 373 | | |
330 | 374 | | |
| |||
0 commit comments