Repository navigation
feat(loader): add support for gzip-compressed CSV and TSV files - #7
Conversation
|
Thank you for this — and for going after the part that was actually hard.
Two things block it, and one is worth knowing about even though it is not 1. The feature reaches the CLI and nothing else
2. Lint
CI has not actually run on this yet — fork workflows wait for approval here, so 3. Not yours, but we should not merge without decidingYour PR made me measure something. An ordinary repetitive CSV compresses about Right now bug 1 accidentally hides this, because the dashboard refuses these I do not think this belongs in your PR. My suggestion is that you fix 1 and 2, AlsoThe issue asked for the new extensions in both READMEs and in None of this is a criticism of your judgement — the first two are things you |
|
Implemented the review feedback in commit �319d90: public dataset_suffix() is now shared by loader, DVC, dashboard history/upload, and the PR script; compressed suffixes are preserved for fetched files; gzip import was moved to the test imports; regression tests and format documentation were added. Local validation: 161 passed, 2 skipped with the focused suite, and Ruff passed. |
a319d90 to
3d939ff
Compare
|
Сейчас заякорил ветку на HEAD base и отпишитесь, пожалуйста, на запуск после sync; изменений по багфиксам больше не добавлял в этот PR. |
|
This is good, and in two places it is better than what I asked for.
I ran the whole suite rather than a focused subset, since CI has not been able
One change, and it is my fault the scope grewI asked you to leave the dashboard out of this and then did not say clearly Here is why, measured against your branch through the real upload path: dashboard limit: 25.0 MB A quarter of a megabyte took half a gigabyte of memory and the dashboard So: could you revert just that one line back to
After thatThat is the last thing. I will open a separate issue for the decompressed-size Push that one revert and I will approve the workflow runs so we both see CI |
|
Implemented final blocker: kept upload dispatch on Path.suffix in datasemver_web/backend/main.py (with decompressed-size guard TODO comment), added regression test in tests/test_web.py, commit db1f7e9. Ready for your approval to proceed. |
|
This is ready. Merging it. The last change is exactly the right size: the import gone, I ran the full suite rather than a subset, and re-ran the measurement:
The regression test you added is the part I appreciate most. It stops someone — including me — from "fixing" that line back without reading why it is there. Two things I am taking off your handsYour fix left
I would rather not move the goalposts a fourth time on a PR that has already answered three rounds of review properly. Thank youThree things here were better than what I asked for: deriving This is a good first contribution to the project, and the review turnaround was faster and more careful than I had any right to expect. If you want another, #3 and #4 are open and neither is bigger than this was. |
Closes #2.
Changes
Adds support for .csv.gz and .tsv.gz files in load_frame.
What changed in loader.py
Tests added ( ests/test_loader.py)