Skip to content

hot reload: replace notify recommended watcher with poll watcher#2276

Merged
garypen merged 7 commits intodevfrom
garypen/2245-poll-watcher
Dec 16, 2022
Merged

hot reload: replace notify recommended watcher with poll watcher#2276
garypen merged 7 commits intodevfrom
garypen/2245-poll-watcher

Conversation

@garypen
Copy link
Contributor

@garypen garypen commented Dec 15, 2022

To get consistent behaviour across multiple platforms and file systems.

fixes: #2245

The watcher may not be as reactive, but I think it's reactive enough for things which shouldn't change frequently.

As a bonus, we no longer get events if the content is the same, so less spurious reloads, which is good. That means I had to modify the tests though to use different contents.

The rhai file watching appeared to be working fine, but to be safe I converted it to the PollWatcher as well.

Gary Pennington added 4 commits December 15, 2022 15:51
fixes: #2245

To get consistent behaviour across multiple platforms and file systems.

The watcher may not be as reactive, but I think it's reactive enough for
things which shouldn't change frequently.
for less waiting around.
@garypen garypen requested a review from a team December 15, 2022 16:36
@garypen garypen self-assigned this Dec 15, 2022
@garypen garypen requested review from BrynCooke and SimonSapin and removed request for a team December 15, 2022 16:36
Gary Pennington added 2 commits December 15, 2022 16:37
I installed rustc on my windows PC and ran the tests repeatedly as they
were and they worked fine.

I can only conclude that the CI windows machines are really slow, so put
the delay back to 500 ms so that tests continue to pass in CI.
@garypen garypen enabled auto-merge (squash) December 16, 2022 10:56
@garypen garypen merged commit d515d96 into dev Dec 16, 2022
@garypen garypen deleted the garypen/2245-poll-watcher branch December 16, 2022 11:12
@abernix abernix added this to the v1.7.0 milestone Dec 22, 2022
@abernix abernix mentioned this pull request Dec 23, 2022
@abernix abernix changed the title replace notify recommended watcher with poll watcher hot-reload: replace notify recommended watcher with poll watcher Jan 19, 2023
@abernix abernix changed the title hot-reload: replace notify recommended watcher with poll watcher hot reload: replace notify recommended watcher with poll watcher Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hot-reload ignores supergraph changes after first reload

4 participants