Skip to content

test: fix exec-watch-server test and demonstrate issue - #12361

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Alizter:test-exec-watch-server
Sep 13, 2025
Merged

Alizter merged 1 commit into
ocaml:mainfrom
Alizter:test-exec-watch-server

Conversation

@Alizter

@Alizter Alizter commented Aug 30, 2025

Copy link
Copy Markdown
Collaborator

The sleep time set in this test was way too high. I set it back to a sensible level so that when it fails it doesn't stall. I've also added a timeout to the exec-watch tests in general, since there shouldn't be any slow tests.

The exec-watch-server test has been re-enabled and the issue in #12323 is demonstrated.

@Alizter
Alizter requested a review from rgrinberg August 30, 2025 19:51
@Alizter
Alizter force-pushed the test-exec-watch-server branch from c32f6b0 to d79171b Compare August 30, 2025 23:40
@Alizter
Alizter force-pushed the test-exec-watch-server branch 3 times, most recently from 115c4da to 8410ce1 Compare September 10, 2025 13:41
The timeout set in this test was way too high. I set it back to a
sensible level so that when it fails it doesn't stall. I've also added a
timeout to the exec-watch tests in general, since there shouldn't be any
slow tests.

The exec-watch-server test has been reenabled and the issue in
ocaml#12323 is demonstrated.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter
Alizter force-pushed the test-exec-watch-server branch from 8410ce1 to dced6aa Compare September 13, 2025 18:28
@Alizter
Alizter merged commit a51f27a into ocaml:main Sep 13, 2025
@Alizter
Alizter deleted the test-exec-watch-server branch September 13, 2025 18:28
Alizter added a commit that referenced this pull request Feb 6, 2026
We add a way of tracking whether a job is a process group leader to the
scheduler. This allows us to avoid sending a signal to a process group
when it isn't needed.

Doing so fixes an issue with dune exec -w where rebuilds would send a
kill signal to a non-existant process group assumed to be attached to
the process we were execing.

- [x] depends on #12361 
- [x] changelog
- fixes #12323
@Alizter Alizter added this to the 3.21.0 milestone Jul 8, 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.

2 participants