Skip to content

add reproduction test for #10236 - #10241

Merged
gridbugs merged 1 commit into
ocaml:mainfrom
tatchi:repro-test-10236
Mar 14, 2024
Merged

gridbugs merged 1 commit into
ocaml:mainfrom
tatchi:repro-test-10236

Conversation

@tatchi

@tatchi tatchi commented Mar 8, 2024

Copy link
Copy Markdown
Contributor

This adds a reproduction test for #10236. Unfortunately, watch tests are disabled due to some issues on CI (+macos)

(cram
(enabled_if
;; On macos it looks like dune has a chance to miss filesystem events if they
;; occur too close together in time. Tests of `dune exec -w` run a program with a
;; visible side effect (touching a file), and wait for the side effect before
;; modifying the program to trigger a rebuild/rerun. On macos, these changes can
;; sometimes go undetected. Adding a delay (e.g. `sleep 1`) before modifying the
;; program seems to guarantee a rebuild will be triggered, but that is too
;; unreliable to depend on in a test so these tests are disabled on macos.
;; (<> "macosx" %{ocaml-config:system})
;; disabled until it works in CI
false))
(cram
(deps wait-for-file.sh))

Perhaps this one would cause less problems as we don't actually need to watch anything? In any case, I hope this will help to fix the problem.

@rgrinberg

Copy link
Copy Markdown
Member

@gridbugs could you have a look at this one?

@gridbugs

Copy link
Copy Markdown
Contributor

Happy for this to be merged. I've got a PR open which fixes this issue (#10262) which I will merge after the current PR is merged.

@tatchi

tatchi commented Mar 14, 2024

Copy link
Copy Markdown
Contributor Author

Thanks for the fix @gridbugs 🙏

@gridbugs
gridbugs merged commit e45ac2f into ocaml:main Mar 14, 2024
@Alizter Alizter added this to the 3.15.0 milestone Jul 9, 2026
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.

4 participants