-
Couldn't load subscription status.
- Fork 76
Check file sizes as well as "last modified" times. #2221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Package publishing
Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation. |
PR HealthBreaking changes ✔️
This check can be disabled by tagging the PR with Changelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. This check can be disabled by tagging the PR with Coverage ✔️
This check for test coverage is informational (issues shown here will not fail the PR). This check can be disabled by tagging the PR with API leaks ✔️The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.
This check can be disabled by tagging the PR with License Headers ✔️
All source files should start with a license header. Unrelated files missing license headers
This check can be disabled by tagging the PR with |
3adc1b8 to
8dac3f3
Compare
8dac3f3 to
11815bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm assuming my comment on line 166 of pkgs/watcher/lib/src/directory_watcher/polling.dart is addressed
|
Thanks :) |
Revisions updated by `dart tools/rev_sdk_deps.dart`. dartdoc (https://github.com/dart-lang/dartdoc/compare/98d03ad..6d1aa6f): 6d1aa6f5 2025-10-23 Sam Rawlins Refactor Locatable into an interface, HasLocation (dart-lang/dartdoc#4118) f82cd35d 2025-10-23 Sam Rawlins Remove unused extension method, replaced in analyzer 8.4.0 (dart-lang/dartdoc#4119) protobuf (https://github.com/dart-lang/protobuf/compare/78cf743..7db0784): 7db0784 2025-10-24 Ömer Sinan Ağacan Avoid redundant nullability checks when updating repeated fields (google/protobuf.dart#1069) a77f9a6 2025-10-23 Ömer Sinan Ağacan More field validation tests (google/protobuf.dart#1068) 27730db 2025-10-21 Ömer Sinan Ağacan Move PbMap to its own library (google/protobuf.dart#1066) 9b4c46f 2025-10-21 Ömer Sinan Ağacan More clearExtension tests: (google/protobuf.dart#1064) 5a44489 2025-10-21 Ömer Sinan Ağacan Move PbList to its own library (google/protobuf.dart#1063) test (https://github.com/dart-lang/test/compare/8083c8f..5855358): 58553580 2025-10-24 Nate Bosch Add a sentence to clarify "Platform" (dart-lang/test#2550) tools (https://github.com/dart-lang/tools/compare/5fe6ee6..e0cc0bc): e0cc0bcc 2025-10-27 Morgan :) Test DirectoryWatcher exception on missing path. (dart-lang/tools#2224) e6ce99da 2025-10-24 Morgan :) Test new link to directory races, fix for them (dart-lang/tools#2223) 9053fae7 2025-10-24 Morgan :) Check file sizes as well as "last modified" times. (dart-lang/tools#2221) Change-Id: Ica6937ba0af21c5ba435e97bd0673fbe7b3043cc Tested: update test goldens Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/457800 Auto-Submit: Devon Carew <devoncarew@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
I realized that checking file sizes as well as "last modified" is basically free, since it's included in the
statresult.Then I realized that not only does it help real users because it catches some file changes that would not have been caught, it makes testing easier because it helps with the "that was too quick, modification time didn't change" testing problem. I think with this we don't need the "mock modification times" at all, most tests can just work, and a few tests need to insert a delay to work.
So it seems worth doing overall :)