Skip to content

Fix Windows clean-install managed runtime smoke for ktx sl query #219

@andreybavt

Description

@andreybavt

Problem

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:

  • node --test scripts/package-artifacts.test.mjs (18 tests, 0 failures)
  • npm tarball build/package/install
  • pnpm exec ktx --version
  • ktx setup --no-input ...
  • ktx wiki ...
  • ktx sl ... search

The remaining failure is on the first query that needs the managed runtime:

pnpm exec ktx sl query --connection-id warehouse --measure orders.order_count --format json --yes --project-dir <temp-project>
AssertionError [ERR_ASSERTION]: ktx sl query first managed runtime install failed with code 1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageNeeds maintainer review before work begins

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions