You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5b00bcf
Browse filesBrowse the repository at this point in the historyBrowse files
Stabilize rewatch scheduling and integration tests (#8667)
* Fix deterministic rewatch scheduling
Signed-off-by: Christoph Knittel <ck@cca.io>
* Stabilize rewatch integration tests
Signed-off-by: Christoph Knittel <ck@cca.io>
* Preserve blocked dependents across full rewatch rebuilds
Signed-off-by: Christoph Knittel <ck@cca.io>
* Abort warning persistence test if watcher stays running
Signed-off-by: Christoph Knittel <ck@cca.io>
* Abort watcher tests when shutdown times out
Signed-off-by: Christoph Knittel <ck@cca.io>
---------
Signed-off-by: Christoph Knittel <ck@cca.io>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@
20
20
21
21
#### :bug: Bug fix
22
22
23
+
- Make rewatch compile independent modules after an unrelated failure and recompile blocked dependents when a changed interface survives a failed implementation, including across full watcher rebuilds. https://github.com/rescript-lang/rescript/pull/8667
Copy file name to clipboardExpand all lines: rewatch/AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,5 +217,5 @@ When clippy suggests refactoring that could impact performance, consider the tra
217
217
## CI Gotchas
218
218
219
219
-**`sleep` is fragile** — Prefer polling (e.g., `wait_for_file`) over fixed sleeps. CI runners are slower than local machines.
220
-
-**`exit_watcher` is async** — It only signals the watcher to stop (removes the lock file), it doesn't wait for the process to exit. Avoid triggering config-change events before exiting, as the watcher may start a concurrent rebuild.
220
+
-**Wait for watcher shutdown with `exit_watcher`** — It removes the lock file and waits for the recorded watcher process to exit. Check its return status before continuing when later mutations could race with the watcher.
221
221
-**`sed -i` differs across platforms** — macOS requires `sed -i '' ...`, Linux does not. Use the `replace` / `normalize_paths` helpers from `rewatch/tests/utils.sh` instead of raw `sed`.
0 commit comments