Repository navigation
End an embedded run when its services are quiet, and let a kill end a service with a pending call - #716
Merged
Conversation
lagergren
added a commit
that referenced
this pull request
Oct 23, 2026
ab9fbdd (a container's kill ending a service whose fiber ended with a call still pending) and 1473c7e (an embedded run ending when its services are quiet) went to master as #716, from lagergren/fix-embedded-run-end off master 7a79c6e, written for master: without the SessionDebuggerTest change, the server README's line and the debugger's InterpreterConnector context. There :javatools:test passes 459 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #716. - docs/errs-integration-plan.md: the pull request and how it differs. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 23, 2026
As asked in review of master pull request #716, which has the same change: the statusIndicator case of xContainerControl's invokeNativeGet fits one line. No change in behaviour.
lagergren
added a commit
that referenced
this pull request
Oct 23, 2026
…icates The lexer's missing break at a string that the source ends in (from 7b9b585) and genUID()'s hashed parameters (814153a) went to master as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master 7a79c6e, each with a test written for master's own API that fails without its fix. There :javatools:test passes 458 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #717. - docs/errs-integration-plan.md: #717, and #716's review change. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 23, 2026
Collaborator
|
This definitely looks like one for @ggleyzer to review |
lagergren
force-pushed
the
lagergren/fix-embedded-run-end
branch
from
October 26, 2026 16:25
3bcb040 to
815f90c
Compare
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
ab9fbdd (a container's kill ending a service whose fiber ended with a call still pending) and 1473c7e (an embedded run ending when its services are quiet) went to master as #716, from lagergren/fix-embedded-run-end off master 7a79c6e, written for master: without the SessionDebuggerTest change, the server README's line and the debugger's InterpreterConnector context. There :javatools:test passes 459 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #716. - docs/errs-integration-plan.md: the pull request and how it differs. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
As asked in review of master pull request #716, which has the same change: the statusIndicator case of xContainerControl's invokeNativeGet fits one line. No change in behaviour.
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
…icates The lexer's missing break at a string that the source ends in (from 7b9b585) and genUID()'s hashed parameters (814153a) went to master as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master 7a79c6e, each with a test written for master's own API that fails without its fix. There :javatools:test passes 458 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #717. - docs/errs-integration-plan.md: #717, and #716's review change. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
ab9fbdd (a container's kill ending a service whose fiber ended with a call still pending) and 1473c7e (an embedded run ending when its services are quiet) went to master as #716, from lagergren/fix-embedded-run-end off master 7a79c6e, written for master: without the SessionDebuggerTest change, the server README's line and the debugger's InterpreterConnector context. There :javatools:test passes 459 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #716. - docs/errs-integration-plan.md: the pull request and how it differs. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
As asked in review of master pull request #716, which has the same change: the statusIndicator case of xContainerControl's invokeNativeGet fits one line. No change in behaviour.
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
…icates The lexer's missing break at a string that the source ends in (from 7b9b585) and genUID()'s hashed parameters (814153a) went to master as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master 7a79c6e, each with a test written for master's own API that fails without its fix. There :javatools:test passes 458 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #717. - docs/errs-integration-plan.md: #717, and #716's review change. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 26, 2026
lagergren
force-pushed
the
lagergren/fix-embedded-run-end
branch
from
October 26, 2026 21:30
815f90c to
cf52cd6
Compare
lagergren
added a commit
that referenced
this pull request
Oct 27, 2026
remaining.md ticks the soak on macOS and Linux, parity between the editors, current docs and each runtime PR validated on its own, and adds the soak on Windows as open. The execution plan and the integration plan say the same. The R8 entries now cite the commits on the current history, as the 2026-10-26b rebase map gives them. Validation: - Linux: arm64, JDK 25, in a Podman container on the Mac, as a user other than root, with one test fork, at 6b8f5bb. javatools' 686 tests pass (42 skipped). With --init on a quiet host, lsp-server's 2401 tests pass but the 2 always skipped, with the soak at 50 rounds (56 s), in 34 minutes. EmbeddedExecutionTest alone passes, 46 tests in 50 s, and its console test alone passes 3 times out of 3. - Parity at 718ddd6: VS Code passes all 34 run and debug cases; IntelliJ passes 21 of its 32 and the other 11 are partial, each with its recorded limit (the test driver, or LSP4IJ 0.21.0's UP32-UP42). - #716, #717, #718, #724, #731 and #693 pass CI on their heads, rebased onto master ddaa3d0. - CI's lang checks run on ubuntu-latest only (commit.yml), which is why Windows stays open. Problems found, as recorded in remaining.md: - As root, the read-only tests failed; they skip there (e4a8e68). - With Gradle as the container's PID 1, which does not reap, a killed server's worker stayed a zombie and the worker-exit test timed out. It passes with --init. - Under a load average of 37-75 on the Mac's 10 cores, time limits failed: XdkOnTypeFormattingTest's 20 ms, and the runtime's 1 s limit on a lazy toString() in the console test, whose program then stayed stopped on the class's shared worker, so three later tests failed. Limits: docs only. Windows is not validated. Dated records elsewhere keep the hashes they were written with.
lagergren
force-pushed
the
lagergren/fix-embedded-run-end
branch
from
October 27, 2026 09:09
cf52cd6 to
f358e97
Compare
lagergren
added a commit
that referenced
this pull request
Oct 27, 2026
ab9fbdd (a container's kill ending a service whose fiber ended with a call still pending) and 1473c7e (an embedded run ending when its services are quiet) went to master as #716, from lagergren/fix-embedded-run-end off master 7a79c6e, written for master: without the SessionDebuggerTest change, the server README's line and the debugger's InterpreterConnector context. There :javatools:test passes 459 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #716. - docs/errs-integration-plan.md: the pull request and how it differs. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 27, 2026
As asked in review of master pull request #716, which has the same change: the statusIndicator case of xContainerControl's invokeNativeGet fits one line. No change in behaviour.
lagergren
added a commit
that referenced
this pull request
Oct 27, 2026
…icates The lexer's missing break at a string that the source ends in (from 7b9b585) and genUID()'s hashed parameters (814153a) went to master as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master 7a79c6e, each with a test written for master's own API that fails without its fix. There :javatools:test passes 458 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #717. - docs/errs-integration-plan.md: #717, and #716's review change. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 27, 2026
lagergren
added a commit
that referenced
this pull request
Oct 27, 2026
remaining.md ticks the soak on macOS and Linux, parity between the editors, current docs and each runtime PR validated on its own, and adds the soak on Windows as open. The execution plan and the integration plan say the same. The R8 entries now cite the commits on the current history, as the 2026-10-26b rebase map gives them. Validation: - Linux: arm64, JDK 25, in a Podman container on the Mac, as a user other than root, with one test fork, at 6b8f5bb. javatools' 686 tests pass (42 skipped). With --init on a quiet host, lsp-server's 2401 tests pass but the 2 always skipped, with the soak at 50 rounds (56 s), in 34 minutes. EmbeddedExecutionTest alone passes, 46 tests in 50 s, and its console test alone passes 3 times out of 3. - Parity at 718ddd6: VS Code passes all 34 run and debug cases; IntelliJ passes 21 of its 32 and the other 11 are partial, each with its recorded limit (the test driver, or LSP4IJ 0.21.0's UP32-UP42). - #716, #717, #718, #724, #731 and #693 pass CI on their heads, rebased onto master ddaa3d0. - CI's lang checks run on ubuntu-latest only (commit.yml), which is why Windows stays open. Problems found, as recorded in remaining.md: - As root, the read-only tests failed; they skip there (e4a8e68). - With Gradle as the container's PID 1, which does not reap, a killed server's worker stayed a zombie and the worker-exit test timed out. It passes with --init. - Under a load average of 37-75 on the Mac's 10 cores, time limits failed: XdkOnTypeFormattingTest's 20 ms, and the runtime's 1 s limit on a lazy toString() in the console test, whose program then stayed stopped on the class's shared worker, so three later tests failed. Limits: docs only. Windows is not validated. Dated records elsewhere keep the hashes they were written with.
lagergren
added a commit
that referenced
this pull request
Oct 27, 2026
errs-integration-plan.md records the rebase of errs, #693, #716, #717 and #724 onto master bcd8e30, and errs-rebase-2026-10-27.tsv maps errs' 1037 old commits to their 1035 replays: two absorbed by #718, and one that keeps only its lsp-server test. Validation: every replayed commit has its old subject; the rebased tree differs from the old tip only in the files #731 and #718 change. :javatools:test 688 (42 skipped) and :lang:lsp-server:test 2401 (2 skipped) pass on the rebased errs. Limits: records only.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
remaining.md ticks the soak on macOS and Linux, parity between the editors, current docs and each runtime PR validated on its own, and adds the soak on Windows as open. The execution plan and the integration plan say the same. The R8 entries now cite the commits on the current history, as the 2026-10-26b rebase map gives them. Validation: - Linux: arm64, JDK 25, in a Podman container on the Mac, as a user other than root, with one test fork, at 6b8f5bb. javatools' 686 tests pass (42 skipped). With --init on a quiet host, lsp-server's 2401 tests pass but the 2 always skipped, with the soak at 50 rounds (56 s), in 34 minutes. EmbeddedExecutionTest alone passes, 46 tests in 50 s, and its console test alone passes 3 times out of 3. - Parity at 718ddd6: VS Code passes all 34 run and debug cases; IntelliJ passes 21 of its 32 and the other 11 are partial, each with its recorded limit (the test driver, or LSP4IJ 0.21.0's UP32-UP42). - #716, #717, #718, #724, #731 and #693 pass CI on their heads, rebased onto master ddaa3d0. - CI's lang checks run on ubuntu-latest only (commit.yml), which is why Windows stays open. Problems found, as recorded in remaining.md: - As root, the read-only tests failed; they skip there (e4a8e68). - With Gradle as the container's PID 1, which does not reap, a killed server's worker stayed a zombie and the worker-exit test timed out. It passes with --init. - Under a load average of 37-75 on the Mac's 10 cores, time limits failed: XdkOnTypeFormattingTest's 20 ms, and the runtime's 1 s limit on a lazy toString() in the console test, whose program then stayed stopped on the class's shared worker, so three later tests failed. Limits: docs only. Windows is not validated. Dated records elsewhere keep the hashes they were written with.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
errs-integration-plan.md records the rebase of errs, #693, #716, #717 and #724 onto master bcd8e30, and errs-rebase-2026-10-27.tsv maps errs' 1037 old commits to their 1035 replays: two absorbed by #718, and one that keeps only its lsp-server test. Validation: every replayed commit has its old subject; the rebased tree differs from the old tip only in the files #731 and #718 change. :javatools:test 688 (42 skipped) and :lang:lsp-server:test 2401 (2 skipped) pass on the rebased errs. Limits: records only.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
…rt() - runner.x: endWhenQuiet is now endWhenIdle, declared inside start(), its only caller. The comment on the clock alarm is gone, and kill() is back to master's order without its comment: the task service cannot be re-entered while kill() runs, so the order of the two lines does not matter. - ServiceContext: the fibers that ended with a call still pending get a one-line comment, and shutdown() no longer exempts its own fiber from their removal. That fiber is running, not terminating, so the predicate never matched it, and the assert allows an empty set. - Container.getStatus() says in one sentence what it computes, and keeps the one that tells it apart from isIdle(): neither the parent container nor the nested ones count. - xContainerControl: the statusIndicator comment says that it overrides the main service's property, and the long line is split. Control.running() keeps its javadoc. It is the contract of a public API, which #716 changes, and it names only what an Ecstasy program has under any back end; as review then asked, it says an HTTP server. The same change as #716's ca7ede0 and f4bf0e6, and #693's commit 39. Validation, on errs after the rebase onto master c98975b, before the one-word javadoc change: spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, the 42 existing skips; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
ab9fbdd (a container's kill ending a service whose fiber ended with a call still pending) and 1473c7e (an embedded run ending when its services are quiet) went to master as #716, from lagergren/fix-embedded-run-end off master 7a79c6e, written for master: without the SessionDebuggerTest change, the server README's line and the debugger's InterpreterConnector context. There :javatools:test passes 459 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #716. - docs/errs-integration-plan.md: the pull request and how it differs. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
…icates The lexer's missing break at a string that the source ends in (from 7b9b585) and genUID()'s hashed parameters (814153a) went to master as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master 7a79c6e, each with a test written for master's own API that fails without its fix. There :javatools:test passes 458 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #717. - docs/errs-integration-plan.md: #717, and #716's review change. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
remaining.md ticks the soak on macOS and Linux, parity between the editors, current docs and each runtime PR validated on its own, and adds the soak on Windows as open. The execution plan and the integration plan say the same. The R8 entries now cite the commits on the current history, as the 2026-10-26b rebase map gives them. Validation: - Linux: arm64, JDK 25, in a Podman container on the Mac, as a user other than root, with one test fork, at 6b8f5bb. javatools' 686 tests pass (42 skipped). With --init on a quiet host, lsp-server's 2401 tests pass but the 2 always skipped, with the soak at 50 rounds (56 s), in 34 minutes. EmbeddedExecutionTest alone passes, 46 tests in 50 s, and its console test alone passes 3 times out of 3. - Parity at 718ddd6: VS Code passes all 34 run and debug cases; IntelliJ passes 21 of its 32 and the other 11 are partial, each with its recorded limit (the test driver, or LSP4IJ 0.21.0's UP32-UP42). - #716, #717, #718, #724, #731 and #693 pass CI on their heads, rebased onto master ddaa3d0. - CI's lang checks run on ubuntu-latest only (commit.yml), which is why Windows stays open. Problems found, as recorded in remaining.md: - As root, the read-only tests failed; they skip there (e4a8e68). - With Gradle as the container's PID 1, which does not reap, a killed server's worker stayed a zombie and the worker-exit test timed out. It passes with --init. - Under a load average of 37-75 on the Mac's 10 cores, time limits failed: XdkOnTypeFormattingTest's 20 ms, and the runtime's 1 s limit on a lazy toString() in the console test, whose program then stayed stopped on the class's shared worker, so three later tests failed. Limits: docs only. Windows is not validated. Dated records elsewhere keep the hashes they were written with.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
errs-integration-plan.md records the rebase of errs, #693, #716, #717 and #724 onto master bcd8e30, and errs-rebase-2026-10-27.tsv maps errs' 1037 old commits to their 1035 replays: two absorbed by #718, and one that keeps only its lsp-server test. Validation: every replayed commit has its old subject; the rebased tree differs from the old tip only in the files #731 and #718 change. :javatools:test 688 (42 skipped) and :lang:lsp-server:test 2401 (2 skipped) pass on the rebased errs. Limits: records only.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
#716 merged while the receipts of the rebase onto c98975b ran. errs-rebase-2026-10-28b.tsv maps errs' 1129 commits of 7db1c21 to their 1127 replays; #716 absorbed two of them. The plan's entry gives the conflicts, which all resolve to #716's final form. Validation: errs' tree is byte for byte 7db1c21's, which the suites in the entry before passed. #693's tree is byte for byte f7f8620's.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
#693 passed its suites on f7f8620 and was pushed there, then replayed onto master's #716 and pushed as d3aceb5, whose commits 1 to 38 compile again and whose commits 39 to 71 have the validated trees. errs-693-rebase-2026-10-28.tsv maps the regroup's commits to both histories. Validation: as recorded: every commit compiles; :javatools:test 660 (42 skipped), :lang:dap-server:test 38, :lang:lsp-server:test 2,420 (2 skipped), compilerStdioTest 83, :lang:intellij-plugin:test 151, the VS Code headless suite 70, verifyPlugin Compatible. One timing failure under load passed when rerun.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
ab9fbdd (a container's kill ending a service whose fiber ended with a call still pending) and 1473c7e (an embedded run ending when its services are quiet) went to master as #716, from lagergren/fix-embedded-run-end off master 7a79c6e, written for master: without the SessionDebuggerTest change, the server README's line and the debugger's InterpreterConnector context. There :javatools:test passes 459 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #716. - docs/errs-integration-plan.md: the pull request and how it differs. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
…icates The lexer's missing break at a string that the source ends in (from 7b9b585) and genUID()'s hashed parameters (814153a) went to master as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master 7a79c6e, each with a test written for master's own API that fails without its fix. There :javatools:test passes 458 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #717. - docs/errs-integration-plan.md: #717, and #716's review change. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
remaining.md ticks the soak on macOS and Linux, parity between the editors, current docs and each runtime PR validated on its own, and adds the soak on Windows as open. The execution plan and the integration plan say the same. The R8 entries now cite the commits on the current history, as the 2026-10-26b rebase map gives them. Validation: - Linux: arm64, JDK 25, in a Podman container on the Mac, as a user other than root, with one test fork, at 6b8f5bb. javatools' 686 tests pass (42 skipped). With --init on a quiet host, lsp-server's 2401 tests pass but the 2 always skipped, with the soak at 50 rounds (56 s), in 34 minutes. EmbeddedExecutionTest alone passes, 46 tests in 50 s, and its console test alone passes 3 times out of 3. - Parity at 718ddd6: VS Code passes all 34 run and debug cases; IntelliJ passes 21 of its 32 and the other 11 are partial, each with its recorded limit (the test driver, or LSP4IJ 0.21.0's UP32-UP42). - #716, #717, #718, #724, #731 and #693 pass CI on their heads, rebased onto master ddaa3d0. - CI's lang checks run on ubuntu-latest only (commit.yml), which is why Windows stays open. Problems found, as recorded in remaining.md: - As root, the read-only tests failed; they skip there (e4a8e68). - With Gradle as the container's PID 1, which does not reap, a killed server's worker stayed a zombie and the worker-exit test timed out. It passes with --init. - Under a load average of 37-75 on the Mac's 10 cores, time limits failed: XdkOnTypeFormattingTest's 20 ms, and the runtime's 1 s limit on a lazy toString() in the console test, whose program then stayed stopped on the class's shared worker, so three later tests failed. Limits: docs only. Windows is not validated. Dated records elsewhere keep the hashes they were written with.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
errs-integration-plan.md records the rebase of errs, #693, #716, #717 and #724 onto master bcd8e30, and errs-rebase-2026-10-27.tsv maps errs' 1037 old commits to their 1035 replays: two absorbed by #718, and one that keeps only its lsp-server test. Validation: every replayed commit has its old subject; the rebased tree differs from the old tip only in the files #731 and #718 change. :javatools:test 688 (42 skipped) and :lang:lsp-server:test 2401 (2 skipped) pass on the rebased errs. Limits: records only.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
#716 merged while the receipts of the rebase onto c98975b ran. errs-rebase-2026-10-28b.tsv maps errs' 1129 commits of 7db1c21 to their 1127 replays; #716 absorbed two of them. The plan's entry gives the conflicts, which all resolve to #716's final form. Validation: errs' tree is byte for byte 7db1c21's, which the suites in the entry before passed. #693's tree is byte for byte f7f8620's.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
#693 passed its suites on f7f8620 and was pushed there, then replayed onto master's #716 and pushed as d3aceb5, whose commits 1 to 38 compile again and whose commits 39 to 71 have the validated trees. errs-693-rebase-2026-10-28.tsv maps the regroup's commits to both histories. Validation: as recorded: every commit compiles; :javatools:test 660 (42 skipped), :lang:dap-server:test 38, :lang:lsp-server:test 2,420 (2 skipped), compilerStdioTest 83, :lang:intellij-plugin:test 151, the VS Code headless suite 70, verifyPlugin Compatible. One timing failure under load passed when rerun.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
remaining.md: L82's uninterrupted full-catalog VS Code run is done (run-Pc161s, 332 of 333 with UP23's accepted X218; again on vscode-languageclient 11.0.0); the master candidates name what merged (#716, #717, #718, #720, #723, #731, #735), what closed, and #724 as the one still open; #693's sync line has its rebase onto #742 and its commit 71. The plan's opening and inventory name the 2026-10-28 full-catalog runs in both editors instead of the October 7 checkpoint. Validation: docs only; each state read from GitHub and the run reports on 2026-10-29; spotlessCheck and git diff --check pass.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
ab9fbdd (a container's kill ending a service whose fiber ended with a call still pending) and 1473c7e (an embedded run ending when its services are quiet) went to master as #716, from lagergren/fix-embedded-run-end off master 7a79c6e, written for master: without the SessionDebuggerTest change, the server README's line and the debugger's InterpreterConnector context. There :javatools:test passes 459 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #716. - docs/errs-integration-plan.md: the pull request and how it differs. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
…icates The lexer's missing break at a string that the source ends in (from 7b9b585) and genUID()'s hashed parameters (814153a) went to master as #717, from lagergren/fix-lexer-hang-and-false-duplicates off master 7a79c6e, each with a test written for master's own API that fails without its fix. There :javatools:test passes 458 tests, the 42 existing skips, and spotlessCheck passes. - docs/remaining.md: both master candidate entries name #717. - docs/errs-integration-plan.md: #717, and #716's review change. Documentation only; nothing to build.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
remaining.md ticks the soak on macOS and Linux, parity between the editors, current docs and each runtime PR validated on its own, and adds the soak on Windows as open. The execution plan and the integration plan say the same. The R8 entries now cite the commits on the current history, as the 2026-10-26b rebase map gives them. Validation: - Linux: arm64, JDK 25, in a Podman container on the Mac, as a user other than root, with one test fork, at 6b8f5bb. javatools' 686 tests pass (42 skipped). With --init on a quiet host, lsp-server's 2401 tests pass but the 2 always skipped, with the soak at 50 rounds (56 s), in 34 minutes. EmbeddedExecutionTest alone passes, 46 tests in 50 s, and its console test alone passes 3 times out of 3. - Parity at 718ddd6: VS Code passes all 34 run and debug cases; IntelliJ passes 21 of its 32 and the other 11 are partial, each with its recorded limit (the test driver, or LSP4IJ 0.21.0's UP32-UP42). - #716, #717, #718, #724, #731 and #693 pass CI on their heads, rebased onto master ddaa3d0. - CI's lang checks run on ubuntu-latest only (commit.yml), which is why Windows stays open. Problems found, as recorded in remaining.md: - As root, the read-only tests failed; they skip there (e4a8e68). - With Gradle as the container's PID 1, which does not reap, a killed server's worker stayed a zombie and the worker-exit test timed out. It passes with --init. - Under a load average of 37-75 on the Mac's 10 cores, time limits failed: XdkOnTypeFormattingTest's 20 ms, and the runtime's 1 s limit on a lazy toString() in the console test, whose program then stayed stopped on the class's shared worker, so three later tests failed. Limits: docs only. Windows is not validated. Dated records elsewhere keep the hashes they were written with.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
errs-integration-plan.md records the rebase of errs, #693, #716, #717 and #724 onto master bcd8e30, and errs-rebase-2026-10-27.tsv maps errs' 1037 old commits to their 1035 replays: two absorbed by #718, and one that keeps only its lsp-server test. Validation: every replayed commit has its old subject; the rebased tree differs from the old tip only in the files #731 and #718 change. :javatools:test 688 (42 skipped) and :lang:lsp-server:test 2401 (2 skipped) pass on the rebased errs. Limits: records only.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
#716 merged while the receipts of the rebase onto c98975b ran. errs-rebase-2026-10-28b.tsv maps errs' 1129 commits of 7db1c21 to their 1127 replays; #716 absorbed two of them. The plan's entry gives the conflicts, which all resolve to #716's final form. Validation: errs' tree is byte for byte 7db1c21's, which the suites in the entry before passed. #693's tree is byte for byte f7f8620's.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
#693 passed its suites on f7f8620 and was pushed there, then replayed onto master's #716 and pushed as d3aceb5, whose commits 1 to 38 compile again and whose commits 39 to 71 have the validated trees. errs-693-rebase-2026-10-28.tsv maps the regroup's commits to both histories. Validation: as recorded: every commit compiles; :javatools:test 660 (42 skipped), :lang:dap-server:test 38, :lang:lsp-server:test 2,420 (2 skipped), compilerStdioTest 83, :lang:intellij-plugin:test 151, the VS Code headless suite 70, verifyPlugin Compatible. One timing failure under load passed when rerun.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two fixes to how an embedded run (
EmbeddingSupport.run(), from #703) ends. Both left a closed run's program running, orclose()waiting forever:Container.kill()never returns, with assertions on, once one of the container's services has a fiber that ended while a call it made was still out.Control.close(), through the runner'skillTask, then waits forever with every interpreter worker idle. Assertions are on in tests and in thexecandxcclaunchers' default options (javatools_launcher,DEFAULT_OPTS "-ea").run()started, ran on in the host's runtime.close()found the run ended and killed nothing, and a server kept its port. The command-line runner instead waits until the runtime is idle (InterpreterConnector.join()).Root cause
Terminatinguntil the answer comes (ServiceContext.terminateFiber()), and it is in no queue.Container.kill()asks each service to shut down, andServiceContext.terminate()then asserts that no fibers are left. The assertion fails on the worker thread, anddrainWork()reportsUnexpected service execution failure. The service then ends holding its scheduling lock, and its shutdown future is never completed.shutdown(frame)asserts the same.lib_runner'sTask.start(), the invocation's completion handler set the task stopped, dropped its container, and unregistered the task, all as soon as the entry method returned. After that,Task.kill()had no container to kill.Change
terminate()andshutdown(frame)drop such ended fibers before the assertion. They have nothing left to run, and an answer that comes later finds the service terminated.Container.getStatus()takes a container's own services together. It is busy while work is scheduled or any service is busy. It is waiting while a service waits, or while a native callback that keeps the container alive is registered, such as akeepAlivealarm or a server. Otherwise it is idle, and it is terminated once the container has been killed. A container'sstatusIndicator(xContainerControl) now reports this, rather than the status of its main service alone.run()has returned, the runner'sTaskchecks that status every 10 ms, through the injectedClock, until it is idle. It then kills the container, so that not even a daemon alarm can wake the program later, and completes the task as before. A kill during the wait ends it at once.Task.kill()marks the task stopped before it kills, so the two cannot both kill.InterpreterControlis unchanged. Its run stays running until the runner completes the task, soclose()takes the path that kills.EmbeddingSupport.Control.running()andjoin()says when a run ends.The runner polls through the
Clockbecause an injectedTimerstarts stopped, and an alarm on a stopped timer never fires.Validation
EmbeddingSupportTestcases:closingARunEndsAServiceWhoseFiberEndedWithACallStillPending: aHelperservice's fiber returns while itsspin^()call runs, the run goes on, andclose()ends it. Without the fix it fails at its 60 s limit.nothingOfARunStillRunsOnceItIsClosed:run()returns with a spinner running, and onceclose()returns, the runtime is idle within the limit. Before the change, the spinner was still running after 60 s. The test reads the runtime through a new package-privateInterpreterConnector.isRuntimeIdle().aRunEndsWhenItsServicesHaveNothingLeftToDo:run()returns with a 300 mskeepAlivealarm and a 60-minute daemon alarm pending.join()returns after the first has printed, and the second has not fired.close()after a timed-out one would wait without a limit, and hang the build instead of failing the test.:javatools:testpasses 459 tests, 0 failures, the 42 existing skips (EmbeddingSupportTest27, of them 3 new);spotlessCheckpasses.Limits
xec.