Haricharanpanjwani commented on PR #828:
URL: https://github.com/apache/burr/pull/828#issuecomment-4952316393
Thanks for putting this together @vaquarkhan. I think the runtime fix is
headed in the right direction, especially the `generate_schemas(safe=True)`
change for the fresh-start/no-snapshot case.
I do have two concerns around test coverage:
1. The new regression file does not appear to be exercised by CI. In
`.github/workflows/python-package.yml`, the S3 tracking job still only runs
`tests/tracking/test_bip0042_s3_buffering.py`, so
`tests/tracking/test_s3_backend_bug574.py` is not currently part of the tracked
workflow.
2. I don’t think the bug-2 tests actually reproduce the paginator bug from
#574: `test_gather_paths_respects_max_paths_cap()` creates only 15 objects and
does not force multi-page pagination. The original bug was that hitting
`max_paths` only broke the inner loop, while the outer paginator loop kept
fetching later pages. If everything comes back in one page, the pre-fix code
would still pass this test.
- `test_watermark_advances_only_to_last_indexed_file()` never exercises
`_gather_paths_to_update()` or `_scan_and_update_db_for_project()`; it just
computes `max(...)` over a handcrafted slice, so it doesn’t validate the actual
watermark advancement behavior under the broken pagination path.
Would you mind tightening this by:
- wiring the new regression file into CI, and
- adding a test that forces multiple paginator pages and then verifies we
stop after `max_paths` and persist the expected watermark?
Once that’s in place, I think this will be in much better shape.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]