Skip to content

End an embedded run when its services are quiet, and let a kill end a service with a pending call - #716

Merged
lagergren merged 5 commits into
masterfrom
lagergren/fix-embedded-run-end
Oct 28, 2026
Merged

lagergren merged 5 commits into
masterfrom
lagergren/fix-embedded-run-end

Conversation

@lagergren

Copy link
Copy Markdown
Contributor

Summary

Two fixes to how an embedded run (EmbeddingSupport.run(), from #703) ends. Both left a closed run's program running, or close() waiting forever:

  1. A kill that hangs. 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's killTask, then waits forever with every interpreter worker idle. Assertions are on in tests and in the xec and xcc launchers' default options (javatools_launcher, DEFAULT_OPTS "-ea").
  2. Services left running. A run ended as soon as its entry method returned, and the runner then dropped the task's container. A service still at work, such as a spinner or a server that 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

  1. A fiber that ends with an outstanding call stays in its service's fibers as Terminating until the answer comes (ServiceContext.terminateFiber()), and it is in no queue. Container.kill() asks each service to shut down, and ServiceContext.terminate() then asserts that no fibers are left. The assertion fails on the worker thread, and drainWork() reports Unexpected service execution failure. The service then ends holding its scheduling lock, and its shutdown future is never completed. shutdown(frame) asserts the same.
  2. In lib_runner's Task.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

  1. terminate() and shutdown(frame) drop such ended fibers before the assertion. They have nothing left to run, and an answer that comes later finds the service terminated.
  2. A run now lasts, as on the command line, until its entry method has returned and its container is quiet. Nothing of it runs after that.
    • 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 a keepAlive alarm or a server. Otherwise it is idle, and it is terminated once the container has been killed. A container's statusIndicator (xContainerControl) now reports this, rather than the status of its main service alone.
    • Once run() has returned, the runner's Task checks that status every 10 ms, through the injected Clock, 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.
    • InterpreterControl is unchanged. Its run stays running until the runner completes the task, so close() takes the path that kills.
    • The Javadoc of EmbeddingSupport.Control.running() and join() says when a run ends.

The runner polls through the Clock because an injected Timer starts stopped, and an alarm on a stopped timer never fires.

Validation

  • New EmbeddingSupportTest cases:
    • closingARunEndsAServiceWhoseFiberEndedWithACallStillPending: a Helper service's fiber returns while its spin^() call runs, the run goes on, and close() ends it. Without the fix it fails at its 60 s limit.
    • nothingOfARunStillRunsOnceItIsClosed: run() returns with a spinner running, and once close() 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-private InterpreterConnector.isRuntimeIdle().
    • aRunEndsWhenItsServicesHaveNothingLeftToDo: run() returns with a 300 ms keepAlive alarm and a 60-minute daemon alarm pending. join() returns after the first has printed, and the second has not fired.
    • The two tests that close a run with a time limit do it outside try-with-resources. A second close() after a timed-out one would wait without a limit, and hang the build instead of failing the test.
  • On this branch, from a fresh build: :javatools:test passes 459 tests, 0 failures, the 42 existing skips (EmbeddingSupportTest 27, of them 3 new); spotlessCheck passes.

Limits

  • Containers nested inside the program's container do not count toward its status.
  • The check is a 10 ms poll, not a notification.
  • A program whose services never become quiet, such as a server, now runs until it is closed, as it does under xec.

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
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.

(cherry picked from commit 89e519d)
lagergren added a commit that referenced this pull request Oct 23, 2026
#693 moved from a6c3f51 to 78e0a9d on 2026-10-23: 78e0a9d is
89e519d, the container control's statusIndicator return on one line,
as in master pull request #716. It compiles there.

Documentation only; nothing to build.
@cpurdy

cpurdy commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

This definitely looks like one for @ggleyzer to review

@lagergren
lagergren force-pushed the lagergren/fix-embedded-run-end branch from 3bcb040 to 815f90c Compare October 26, 2026 16:25
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.

(cherry picked from commit 89e519d)
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
#693 moved from a6c3f51 to 78e0a9d on 2026-10-23: 78e0a9d is
89e519d, the container control's statusIndicator return on one line,
as in master pull request #716. It compiles there.

Documentation only; nothing to build.
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
#693 moved from a6c3f51 to 78e0a9d on 2026-10-23: 78e0a9d is
89e519d, the container control's statusIndicator return on one line,
as in master pull request #716. It compiles there.

Documentation only; nothing to build.
@lagergren
lagergren force-pushed the lagergren/fix-embedded-run-end branch from 815f90c to cf52cd6 Compare October 26, 2026 21:30
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.

(cherry picked from commit 89e519d)
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
lagergren force-pushed the lagergren/fix-embedded-run-end branch from cf52cd6 to f358e97 Compare October 27, 2026 09:09
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.

(cherry picked from commit 89e519d)
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
#693 moved from a6c3f51 to 78e0a9d on 2026-10-23: 78e0a9d is
89e519d, the container control's statusIndicator return on one line,
as in master pull request #716. It compiles there.

Documentation only; nothing to build.
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
#693 moved from a6c3f51 to 78e0a9d on 2026-10-23: 78e0a9d is
89e519d, the container control's statusIndicator return on one line,
as in master pull request #716. It compiles there.

Documentation only; nothing to build.
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
#693 moved from a6c3f51 to 78e0a9d on 2026-10-23: 78e0a9d is
89e519d, the container control's statusIndicator return on one line,
as in master pull request #716. It compiles there.

Documentation only; nothing to build.
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
#693 moved from a6c3f51 to 78e0a9d on 2026-10-23: 78e0a9d is
89e519d, the container control's statusIndicator return on one line,
as in master pull request #716. It compiles there.

Documentation only; nothing to build.
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.
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.

3 participants