Skip to content

Let run_all.sh finish when rerunning into a separate BSS_OUT - #132

Merged
denis-samatov merged 1 commit into
mainfrom
fix/run-all-graphical-abstract
Oct 13, 2026
Merged

denis-samatov merged 1 commit into
mainfrom
fix/run-all-graphical-abstract

Conversation

@denis-samatov

Copy link
Copy Markdown
Owner

Summary

Since v2.2.0, make_graphical_abstract.py plots E9 results (e9_property_mode/outer_summary.csv), which run_e9_property_mode.sh produces. run_all.sh (the E0–E8 chain) still called it unconditionally, so the documented independent rerun into a separate directory (README §4.2, BSS_OUT=... ./run_all.sh) always exited 1 at the last step with FileNotFoundError. The canonical run into outputs/ was unaffected because the E9 files already exist there.

The driver test did not catch this because its fake interpreter succeeds for every stage.

Changes

  • run_all.sh runs the graphical abstract only when $OUTDIR/e9_property_mode/outer_summary.csv exists; otherwise it logs graphical abstract skipped. The canonical run behaves as before.
  • New audit test test_full_driver_into_separate_directory_handles_missing_e9_outputs[has_e9=False|True]. It failed before the fix.
  • README §4.2 note and an Unreleased CHANGELOG entry.

No scientific code, configuration, data or recorded outputs changed.

Validation

Clean worktree from 5f1bf83, environment installed from requirements-lock.txt, verify_environment.py passes.

  • pytest tests/audit -q: 99 passed (97 before + 2 new)
  • pytest tests/unit -q: 87 passed
  • ruff check tests/audit/test_paper_reproducibility.py, bash -n run_all.sh
  • verify_outputs.sh: PASSED (125 files match SHA256SUMS; 14 tables and number files identical; 227 manuscript macros)
  • Full rerun from SHA-256-verified inputs into a separate BSS_OUT (before the fix, all scientific stages completed), then compare_rerun.py: RERUN MATCHES; 873 macros, 8 timing-only differences, 0 non-timing differences; E1–E5, E7, E8 and Wilcoxon files identical; E0 informational differences as documented
  • run_e9_property_mode.sh --reproduce: 2,080 rows reproduced, max absolute difference 0.0; claim checker passed
  • Full run_tbmd_optimization.sh rerun: not executed

Not addressed here (owner decision)

run_e9_property_mode.sh --reproduce rewrites outputs/e9_property_mode/reproduction_validation.json, which is listed in SHA256SUMS. The committed file predates the current comparator schema (it lacks the empty extra_columns / missing_columns keys), so after that documented command verify_outputs.sh would report a checksum mismatch even though no values change.

Since v2.2.0 the graphical abstract plots E9 results, which
run_e9_property_mode.sh produces. run_all.sh still called it
unconditionally, so the documented independent rerun into a separate
BSS_OUT (README section 4.2) always exited 1 at the last step. The canonical
run into outputs/ was unaffected because the E9 files already exist there.

Skip the graphical abstract with a log message when the output directory has
no E9 results, and add a regression test for both cases.
@denis-samatov
denis-samatov merged commit 6a99424 into main Oct 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant