moomindani opened a new pull request, #4517: URL: https://github.com/apache/iceberg-python/pull/4517
# Rationale for this change The manifest cache size tests in `tests/utils/test_manifest.py` call `importlib.reload(pyiceberg.manifest)` to pick up a new `manifest-cache-size`. A reload replaces the module's classes, so test modules that imported them earlier fail when they run afterwards. Running `tests/utils/test_manifest.py` and then `tests/table/test_validate.py` fails seven tests on `main`. CI doesn't hit it only because `tests/table` runs first. The size is read when `_ManifestCache` is created, so the tests now build one directly and patch it in with `monkeypatch`, which also restores it. ## Are these changes tested? Yes, this is a test-only change. The nine cache tests pass, and running `test_manifest.py` before `test_validate.py` now passes (77 tests). If `_ManifestCache` ignores the configured size, the five size tests fail. ## Are there any user-facing changes? No. This pull request and its description were written by Claude Code. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
