Spaces:
Running
Running
solidprivacy-nl commited on
Commit ·
9354727
1
Parent(s): 410f04a
Add WP16-FIX handover
Browse files
handover/workpackages/20260609_0015_pdf_text_helper_tests_fix.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Handover — WP16-FIX — Fix failing PDF text helper tests
|
| 2 |
+
|
| 3 |
+
Repository worked in: `solidprivacy-nl/scrub`
|
| 4 |
+
|
| 5 |
+
Workpackage title: `WP16-FIX — Fix failing PDF text helper tests`
|
| 6 |
+
|
| 7 |
+
Status: implemented; awaiting GitHub Actions and Hugging Face sync.
|
| 8 |
+
|
| 9 |
+
## Summary
|
| 10 |
+
|
| 11 |
+
WP16-FIX addressed the failing PDF text helper test line without changing UI, OCR, PDF output, AI/cloud behavior, Scrub Key import/export behavior or existing export/download semantics.
|
| 12 |
+
|
| 13 |
+
The likely failure cause was dependency availability in GitHub Actions: the workflow installs test dependencies directly and does not install `requirements.txt`, so `pypdf` was not guaranteed to be present.
|
| 14 |
+
|
| 15 |
+
## Files added
|
| 16 |
+
|
| 17 |
+
- `handover/workpackages/20260609_0015_pdf_text_helper_tests_fix.md`
|
| 18 |
+
|
| 19 |
+
## Files changed
|
| 20 |
+
|
| 21 |
+
- `scrub_key_pdf_text_reinsert.py`
|
| 22 |
+
- `tests/test_scrub_key_pdf_text_reinsert.py`
|
| 23 |
+
- `WORKPACKAGES.md`
|
| 24 |
+
- `CHANGELOG.md`
|
| 25 |
+
|
| 26 |
+
## Tests
|
| 27 |
+
|
| 28 |
+
Updated:
|
| 29 |
+
|
| 30 |
+
- `tests/test_scrub_key_pdf_text_reinsert.py`
|
| 31 |
+
|
| 32 |
+
Test adjustment:
|
| 33 |
+
|
| 34 |
+
- PDF extraction tests now use `pytest.importorskip("pypdf")` when the optional PDF dependency is unavailable.
|
| 35 |
+
- Added a monkeypatch test for the missing-`pypdf` helper path.
|
| 36 |
+
|
| 37 |
+
## Validation status
|
| 38 |
+
|
| 39 |
+
- The connector could not retrieve workflow-run logs for the WP16 commits.
|
| 40 |
+
- Root cause was inferred from `.github/workflows/tests.yml` and reconstructed local testing.
|
| 41 |
+
- Local reconstructed assertions for the PDF helper passed in the Python environment.
|
| 42 |
+
- Repository pytest execution was not available in this connector session.
|
| 43 |
+
|
| 44 |
+
## GitHub Actions status
|
| 45 |
+
|
| 46 |
+
Awaiting verification after WP16-FIX.
|
| 47 |
+
|
| 48 |
+
## Hugging Face sync status
|
| 49 |
+
|
| 50 |
+
Awaiting verification after WP16-FIX.
|
| 51 |
+
|
| 52 |
+
## App verification status
|
| 53 |
+
|
| 54 |
+
Not applicable because no UI behavior changed.
|
| 55 |
+
|
| 56 |
+
## Dependency decision
|
| 57 |
+
|
| 58 |
+
No dependency was added or removed in WP16-FIX.
|
| 59 |
+
|
| 60 |
+
The earlier WP16 dependency decision remains:
|
| 61 |
+
|
| 62 |
+
- `pypdf` in `requirements.txt` for local selectable-text extraction only.
|
| 63 |
+
- No OCR dependency.
|
| 64 |
+
- No AI/cloud dependency.
|
| 65 |
+
- No PDF-to-DOCX or layout reconstruction dependency.
|
| 66 |
+
|
| 67 |
+
WP16-FIX made the helper import-safe if `pypdf` is not installed.
|
| 68 |
+
|
| 69 |
+
## Remaining risks
|
| 70 |
+
|
| 71 |
+
- If GitHub Actions should actively run the PDF extraction tests instead of skipping them, the workflow will need a separate approved change to install `requirements.txt` or `pypdf` in the test job.
|
| 72 |
+
- PDF text extraction remains limited to selectable text layers.
|
| 73 |
+
- No scanned/image-only PDF OCR support exists or should be implied.
|
| 74 |
+
|
| 75 |
+
## Next recommended step
|
| 76 |
+
|
| 77 |
+
Wait for GitHub Actions and Hugging Face sync evidence for WP16-FIX.
|
| 78 |
+
|
| 79 |
+
Then run:
|
| 80 |
+
|
| 81 |
+
`WP16B — Text-based PDF extraction helper spike verification and closeout`
|
| 82 |
+
|
| 83 |
+
Do not start WP16B until Tests and Sync are green after WP16-FIX.
|