Make the write-watch test tolerate earlier journal entries #60

Open
github-bot wants to merge 1 commit from github-bot/gh-60 into beta AGit
Owner

@⁠HandshakeHackin on GitHub · 2026-11-26 02:47 UTC · original
HandshakeHackin:test/write-watch-journal-history → beta · +18 −10 · 1 files · 1 commits · open

In #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 78ad571 and reproduced the original before.is_empty() failure. The unmodified candidate passed the focused test and all 11 tests in watch::tests (0 failures). A repeat on the reporter’s Proton configuration would complete the platform check. Windows verification

**@⁠HandshakeHackin** on GitHub · 2026-11-26 02:47 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/60) `HandshakeHackin:test/write-watch-journal-history` → `beta` · +18 −10 · 1 files · 1 commits · open In #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 `78ad571` and reproduced the original `before.is_empty()` failure. The unmodified candidate passed the focused test and all 11 tests in `watch::tests` (0 failures). A repeat on the reporter’s Proton configuration would complete the platform check. [Windows verification](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45744273021/job/139656424681)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:54:08 +00:00
Author
Owner

@⁠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::tests with this PR on your Proton setup would close the loop.

**@⁠PastiiJay** on GitHub · 2026-11-26 02:48 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/60#issuecomment-7181130064) 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::tests` with this PR on your Proton setup would close the loop.
Author
Owner

@⁠HandshakeHackin on GitHub · 2026-11-26 02:59 UTC · original

I independently ran the Windows test executable for 6f55eae on Ubuntu 24.04 with stock Wine 9.0. The focused case passed, and all 11 watch::tests passed 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 log

**@⁠HandshakeHackin** on GitHub · 2026-11-26 02:59 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/60#issuecomment-7181290509) I independently ran the Windows test executable for `6f55eae` on Ubuntu 24.04 with stock Wine 9.0. The focused case passed, and all 11 `watch::tests` passed 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 log](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45745391361/job/139661137304)
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/60/head:github-bot/gh-60'
git switch 'github-bot/gh-60'

Merge

Merge the changes and update on Forgejo.
git switch 'beta'
git merge --no-ff 'github-bot/gh-60'
git switch 'github-bot/gh-60'
git rebase 'beta'
git switch 'beta'
git merge --ff-only 'github-bot/gh-60'
git switch 'github-bot/gh-60'
git rebase 'beta'
git switch 'beta'
git merge --no-ff 'github-bot/gh-60'
git switch 'beta'
git merge --squash 'github-bot/gh-60'
git switch 'beta'
git merge --ff-only 'github-bot/gh-60'
git switch 'beta'
git merge 'github-bot/gh-60'
git push origin 'beta'
This discussion has been locked. Commenting is limited to contributors.
No description provided.