Skip to content

test(files): make watcher propagation mtime regression test deterministic#62329

Open
joshtrichards wants to merge 2 commits into
masterfrom
jtr/test-ViewTest-watcher
Open

test(files): make watcher propagation mtime regression test deterministic#62329
joshtrichards wants to merge 2 commits into
masterfrom
jtr/test-ViewTest-watcher

Conversation

@joshtrichards

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

  • The existing watcher regression test could pass if the cached mtime and request timestamp land in the same second.
  • The test now uses a fixed root mtime and etag before accessing the folder.
  • Checking the etag as well is valid, because an unwanted propagation can invalidate ancestor etags.

Related/context: #59539

Assisted-by: GitHubCopilot:GPT-5

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

- The existing watcher regression test could pass if the cached mtime and request timestamp land in the same second.
- The test now uses a fixed root mtime and etag before accessing the folder.
- Checking the etag as well is valid, because an unwanted propagation can invalidate ancestor etags.

Assisted-by: GitHubCopilot:GPT-5

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>

@Antreesy Antreesy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and makes sense to me, but I'm leaving the decision to PHP experts.
Thanks for the follow-up!

@Antreesy
Antreesy requested a review from CarlSchwan July 20, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants