Make the write-watch test tolerate earlier journal entries #60
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/PastiiJay--klbf-lab!60
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-60"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@HandshakeHackin on GitHub · 2026-11-26 02:47 UTC · original
HandshakeHackin:test/write-watch-journal-history→beta· +18 −10 · 1 files · 1 commits · openIn #19 the same write-watch test twice failed at
before.is_empty()in a shared Proton run, then passed on its own. The journal records writes by virtual page for the lifetime of the process, so a reused address can carry an older entry even when Windows reports no new write.The test now checks that an untouched query has no freshly stamped pages, writes one page, and verifies that a second asker still receives the same write stamp. It repeats on a different page of the same allocation so the second pass always sees prior history. The change is confined to the test.
On native Windows I seeded one historical entry through the normal write-watch path on beta
78ad571and reproduced the originalbefore.is_empty()failure. The unmodified candidate passed the focused test and all 11 tests inwatch::tests(0 failures). A repeat on the reporter’s Proton configuration would complete the platform check. Windows verification@PastiiJay on GitHub · 2026-11-26 02:48 UTC · original
Good fix for the flaky test from #19, and nice that you reproduced the original failure first. @Adiker, if you get a moment, a run of
watch::testswith this PR on your Proton setup would close the loop.@HandshakeHackin on GitHub · 2026-11-26 02:59 UTC · original
I independently ran the Windows test executable for
6f55eaeon Ubuntu 24.04 with stock Wine 9.0. The focused case passed, and all 11watch::testspassed in one process. I also reconstructed the reporter’s published tree (84f13c6797070797971a86dfb873114dd793f1ee) from both patches linked in #19 and verified that this test-only change applies cleanly. This leaves the retest on the reporter’s particular Proton build. Wine logView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.