Skip to content

Wire workflow tests to pixi-managed R environment#19

Draft
Copilot wants to merge 4 commits intomasterfrom
copilot/setup-pixi-manifest-for-r-env
Draft

Wire workflow tests to pixi-managed R environment#19
Copilot wants to merge 4 commits intomasterfrom
copilot/setup-pixi-manifest-for-r-env

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 24, 2026

r-cairo has no viable conda-forge builds for win-64 against r-base >=4.3, breaking pixi install on Windows. R environment provisioning for workflow tests was also left entirely to the CI agent (system R), making it non-reproducible.

Changes

workflow-tests/pixi.toml

  • Move r-cairo from global [dependencies] to [target.osx-64.dependencies] / [target.osx-arm64.dependencies] — Cairo is macOS-only in KNIME R anyway

workflow-tests/setup-{Linux,MacOSX,Windows}.sh (new, executable)

Platform setup scripts automatically sourced by workflowTests.runTests(). Each:

  • Runs pixi install in workflow-tests/ to provision the declared R environment
  • Derives R_HOME from the pixi env prefix (.pixi/envs/default/lib/R)
  • Substitutes the placeholder in the EPF file via sedi

Windows additionally escapes backslashes for Java properties format:

R_HOME="${WORKSPACE}\\workflow-tests\\.pixi\\envs\\default\\lib\\R"
sedi "s|<placeholder_for_r_home>|${R_HOME//\\/\\\\\\\\}|g" "...preferences-Windows.epf"

workflow-tests/preferences-{Linux,MacOSX,Windows}.epf

Added knime.r.home entry with a placeholder filled in at test-run time:

/instance/org.knime.ext.r.bin/knime.r.home=<placeholder_for_r_home>

.gitignore

Added **/.pixi/ to exclude the installed environment trees.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • pixi.sh
    • Triggering command: /usr/bin/curl curl -fsSL REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Setup a pixi manifest for creating an R environment for running the workflow tests. It should resolve and work on linux, windows, macos (x86 and arm).
Look at https://pixi.prefix.dev/latest/reference/pixi_manifest/ for pixi information (or on other sites of this documentation if needed).
Also look at https://docs.knime.com/ap/latest/r_installation_guide/ for the traditional way of setting up an R installation.

Created from VS Code.


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI changed the title [WIP] Setup pixi manifest for R environment and workflow tests Add pixi manifest for R workflow test environment Mar 24, 2026
Copilot AI requested a review from HedgehogCode March 24, 2026 08:44
- Add setup-Linux.sh, setup-MacOSX.sh, setup-Windows.sh to run pixi install
  and configure KNIME's knime.r.home preference to the pixi-installed R
- Add knime.r.home placeholder to the three EPF preferences files
- Ignore .pixi/ installed-environment directories in .gitignore

Co-authored-by: HedgehogCode <[email protected]>
Agent-Logs-Url: https://github.com/knime/knime-r/sessions/0c64bc24-2dd8-4e37-ba3c-07caecf0a050
Copilot AI changed the title Add pixi manifest for R workflow test environment Wire workflow tests to pixi-managed R environment Mar 24, 2026
@sonarqubecloud
Copy link
Copy Markdown

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.

2 participants