posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.82k stars 91 forks source link

New Supervisor (Kallichore) failed to start in smoke test #5337

Open jonvanausdeln opened 1 week ago

jonvanausdeln commented 1 week ago

System details:

Positron and OS details:

Positron: main after kallichore set as default supervisor Operationg System: Ubuntu 22

Interpreter details:

Describe the issue:

In CI smoke test, the test-explorer test failed due to Kallichore not starting.

Image

See CI Run And another CI Smoke Run

This is the first time we've seen this error. So not sure how prevalent.

Expected or desired behavior:

Kallichore to start up

Were there any error messages in the UI, Output panel, or Developer Tools console?

midleman commented 1 week ago

I also ran into this error today on Ubuntu, so it appears to not be isolated to Windows.

jmcphers commented 1 week ago

@midleman Did you see this error interactively, or in a smoke test run? If the latter, could you link it?

(so far I've been unable to reproduce on Windows)

midleman commented 1 week ago

In a smoke test run, but it's on my branch, let me grab the logs ...

jonvanausdeln commented 1 week ago

Sorry.. I got confused looking at failures.. this one was on Ubuntu 22 (as the CI link correctly points to) ...ignore the windows part

jmcphers commented 1 week ago

This scenario passed in my smoke test run with Kallichore enabled so perhaps this is timing related?

Some notes from an initial look:

2024-11-12 14:49:25.336 [info] Positron Kernel Supervisor activated
Starting Kallichore server /home/runner/work/positron/positron/extensions/positron-supervisor/resources/kallichore/kcserver on port 55683
Kallichore 0.1.18 server online with 0 sessions
Kallichore server started in 273ms
...
14:49:32 [INFO] [client r-97ae99a4-0] Websocket closed by client

...

2024-11-12 14:49:38.638 [info] Positron Kernel Supervisor activated
Starting Kallichore server /home/runner/work/positron/positron/extensions/positron-supervisor/resources/kallichore/kcserver on port 51542
Waiting for Kallichore server to start (attempt 1, 589ms)
Waiting for Kallichore server to start (attempt 6, 853ms)
Waiting for Kallichore server to start (attempt 11, 1130ms)
Waiting for Kallichore server to start (attempt 16, 1391ms)
Kallichore server did not start after 1599ms

So what's interesting here is that Kallichore starts successfully the first time, but after a project switch the IDE restarts and Kallichore doesn't.