Skip to content

Skip sim CSVs exceeding a configurable size limit#19

Merged
AnHeuermann merged 1 commit intomainfrom
commit-less
Mar 13, 2026
Merged

Skip sim CSVs exceeding a configurable size limit#19
AnHeuermann merged 1 commit intomainfrom
commit-less

Conversation

@AnHeuermann
Copy link
Member

Changes

Simulation result CSVs can exceed GitHub's 100 MB file size limit, preventing pushes to gh-pages. Fix by checking the CSV size after writing and, if it exceeds the limit (default 20 MB), deleting the file and leaving a _sim.csv.toobig marker in its place.

The HTML report detects the marker and shows "(CSV N/A)" with a tooltip instead of a download link. The limit is exposed as a csv_max_size_mb keyword argument on main(), test_model(), run_simulate(), and generate_report(), defaulting to the module-level constant CSV_MAX_SIZE_MB = 20.

@AnHeuermann AnHeuermann self-assigned this Mar 13, 2026
@AnHeuermann
Copy link
Member Author

TODO: Generate the diff CSV files even if the CSV itself is too large to upload to GitHub.

Add CSV_MAX_SIZE_MB constant (default 20 MB) and a csv_max_size_mb
keyword argument threaded through main → test_model → run_simulate and
generate_report → _cmp_cell. When a sim CSV exceeds the limit a
.toobig marker file is written alongside it; the report shows "(CSV N/A)"
for those models. The CSV is kept on disk for local inspection but
excluded from the gh-pages upload via an rsync exclude list generated
from the .toobig markers.

Also removes a stray @show debug line from _bm_sha.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AnHeuermann AnHeuermann marked this pull request as ready for review March 13, 2026 13:41
@AnHeuermann
Copy link
Member Author

The HTML is looking good:
image

Hard to test how the upload on git is working. Let's merge and try it.

@AnHeuermann AnHeuermann merged commit a359056 into main Mar 13, 2026
4 checks passed
@AnHeuermann AnHeuermann deleted the commit-less branch March 13, 2026 13:48
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