Repository navigation
test: drain durable publication work before fixture cleanup - #256
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 11, 2026, 6:06 PM ET / 22:06 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR gives publication integration tests a 30-second timeout and waits for their filesystem work before restoring mocks and deleting fixtures. Merge readiness⛔ Blocked before merge - 3 items remain The focused repair remains useful and has no identified correctness defect. The new validation report is helpful, but the earlier request for observable publication-versus-cleanup ordering remains unresolved. Priority: P3 Review scores
Verification
How this fits togetherThe publication tests exercise fs-safe’s JavaScript and native file-copy paths against real temporary files. They verify bytes and permissions, then restore process settings and remove fixtures. flowchart TD
A[Temporary source file] --> B[Select publication backend]
B --> C[Publish under restrictive umask]
C --> D[Restore umask and check result]
D --> E[Wait for pending test work]
E --> F[Restore mocks and remove fixtures]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the narrow test-lifecycle repair, preserving real durability operations and all byte, permission, and backend assertions. Do we have a high-confidence way to reproduce the issue? Yes: delay source opening beyond the original five-second test deadline while real publication remains pending. Current-main teardown lacks a drain, and the contributor reports this baseline failure; this read-only review did not execute it. Is this the best way to solve the issue? Yes: retaining the test promise and awaiting it before cleanup is a focused repair, while the per-case timeout avoids changing suite-wide defaults. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e8a087715a65. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Maintainer proof for
Ready for squash merge. The consolidated release note is in #257. |
The default-branch coverage run timed out during real durable publication under restrictive umask. Vitest deadlines do not cancel filesystem promises, so immediate teardown can also restore mocks and remove fixtures while publication is still running.
Give these integration cases a 30-second I/O budget and drain pending work before restoring mocks or removing fixtures. Every byte, mode, and backend assertion remains intact.
Validation:
Release notes are consolidated in #257, which should land last. Hosted CI and merged coverage both pass at the exact PR head.