You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix Windows clean-install managed runtime smoke for ktx sl query #219
PR #215 fixed the Windows pnpm/package-artifact invocation path enough for the artifact unit tests and clean npm package install to get much further, but the Windows clean-install smoke still fails when the installed CLI first uses the managed Python runtime.
On a fresh Windows Server 2022 environment with Git available, this passed:
The stderr output only showed the managed Python runtime install starting with uv before the process exited with code 1.
Expected
A clean installed ktx npm package on Windows should be able to install/use the managed Python runtime and complete the ktx sl query smoke.
Suggested Follow-Up
Investigate why the managed runtime install exits 1 on Windows during the clean-install smoke, then add or update Windows coverage so scripts/package-artifacts.mjs check can validate this path end to end.
That fresh run also completed successfully on my machine.
What I investigated next
Since I could not reproduce the failure with the normal 30_000ms timeout, I tested whether this was a timeout/cold-start issue.
I built the normal package artifacts:
node scripts/package-artifacts.mjs build
Then I created a throwaway packed-package smoke workspace from the generated tarball, modified only the generated temp verify-installed-cli.mjs timeout, and reran the installed-CLI smoke with fresh runtime/cache state.
Timeout hypothesis results
With the timeout reduced to 5_000ms, the smoke failed too early at ktx setup, so that value was too aggressive to be useful.
With the timeout reduced to 20_000ms, the smoke failed at the exact reported step:
ktx sl query first managed runtime install failed with code 1
The stderr for that failure showed the managed runtime install starting and finishing:
Based on local testing, I could not reproduce this with the normal artifact smoke flow, even with a fresh runtime root and fresh uv cache.
However, reducing the allowed timeout in the generated installed-CLI smoke reproduced the same failing step on Windows. That strongly suggests this is likely a timeout/cold-start issue in the clean-install smoke path, rather than a general functional failure of managed runtime installation on Windows.
The first ktx sl query --yes path has to do the initial managed Python runtime install with uv, and that appears to be sensitive to the available time budget on fresh/slower Windows environments.
Hey @luca-martial , I was waiting for the confirmation. If you would like, I can investigate further. I was also able to find some more edge cases regarding Windows machines, but I am not sure yet. Once I test them properly, I will let you know as well.
Hi @luca-martial@Aryan1718 — checking in on this one, it's been quiet
for a few weeks. Aryan, are you still working through this, or would
it be okay if I picked it up from where you left off (the timeout/
cold-start hypothesis)? Happy to build on your investigation either way.
Activity
andreybavt commentedon May 26, 2026
@Aryan1718 would you like to look into it?
Aryan1718 commentedon May 26, 2026
Hello @andreybavt , I will look into it and let you know.
Aryan1718 commentedon May 26, 2026
Hello @andreybavt ,
What I tested
From the repo root:
This completed successfully, including the same first managed-runtime install path that was reported as failing:
I also reran the same flow with a fresh local environment to reduce the chance of reusing an existing runtime or
uvcache:That fresh run also completed successfully on my machine.
What I investigated next
Since I could not reproduce the failure with the normal
30_000mstimeout, I tested whether this was a timeout/cold-start issue.I built the normal package artifacts:
Then I created a throwaway packed-package smoke workspace from the generated tarball, modified only the generated temp
verify-installed-cli.mjstimeout, and reran the installed-CLI smoke with fresh runtime/cache state.Timeout hypothesis results
5_000ms, the smoke failed too early atktx setup, so that value was too aggressive to be useful.20_000ms, the smoke failed at the exact reported step:The stderr for that failure showed the managed runtime install starting and finishing:
Current conclusion
Based on local testing, I could not reproduce this with the normal artifact smoke flow, even with a fresh runtime root and fresh
uvcache.However, reducing the allowed timeout in the generated installed-CLI smoke reproduced the same failing step on Windows. That strongly suggests this is likely a timeout/cold-start issue in the clean-install smoke path, rather than a general functional failure of managed runtime installation on Windows.
The first
ktx sl query --yespath has to do the initial managed Python runtime install withuv, and that appears to be sensitive to the available time budget on fresh/slower Windows environments.Aryan1718 commentedon May 27, 2026
Hey @andreybavt , do you want me to update this and create a PR so you can test it out?
luca-martial commentedon Jul 3, 2026
Hey @Aryan1718 sorry we missed your message. Were you able to investigate further?
Aryan1718 commentedon Jul 3, 2026
Hey @luca-martial , I was waiting for the confirmation. If you would like, I can investigate further. I was also able to find some more edge cases regarding Windows machines, but I am not sure yet. Once I test them properly, I will let you know as well.
luca-martial commentedon Jul 4, 2026
Yes feel free to take them, thanks for your contributions so far Aryan!
KeymelGaston commentedon Jul 26, 2026
Hi @luca-martial @Aryan1718 — checking in on this one, it's been quiet
for a few weeks. Aryan, are you still working through this, or would
it be okay if I picked it up from where you left off (the timeout/
cold-start hypothesis)? Happy to build on your investigation either way.