[Feature] Populate [runtimes] in the CI Workbench config so test_runtime_versions runs
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 74/100
Research direction
Read workbench-smoke.yml and RuntimesConfig in src/vip/config.py:390, then inspect workbench/test_runtime_versions.py. Verify the /opt/R and /opt/python layout in the running Workbench container, populate the generated vip.toml [runtimes] block, and choose the tier from measured runtime. Done means all three tests run rather than skip and their results appear in smoke-results.xml.
Written by the indexing model from the issue text.
Description
Child of #409. Found while measuring the Workbench suite for #539.
workbench/test_runtime_versions.py contributes three tests, and all three skip on every run — not because a Docker Workbench cannot support them, but because the generated config omits one section:
test_r_versions SKIPPED — No expected R versions specified in vip.toml [runtimes]
test_r_version_in_session SKIPPED — No expected R versions specified in vip.toml [runtimes]
test_python_versions SKIPPED — No expected Python versions specified in vip.toml [runtimes]
This is free coverage. workbench-smoke.yml writes vip.toml from scratch, so it can populate [runtimes] with whatever the container actually ships.
Scope
RuntimesConfig (src/vip/config.py:390) takes r_versions and python_versions as lists of version strings. The Workbench image installs runtimes under /opt/R and /opt/python, so the workflow can enumerate them from the running container and write them into the config before pytest starts.
Sketch, to be verified against the real image layout:
R_VERSIONS=$(docker exec "$CID" ls /opt/R 2>/dev/null | jq -R . | jq -sc .)
PY_VERSIONS=$(docker exec "$CID" ls /opt/python 2>/dev/null | jq -R . | jq -sc .)
Then emit a [runtimes] block into the generated vip.toml.
Watch out
Populating [runtimes] from the same container the tests then assert against makes the check partly tautological — it proves the versions Workbench reports in-session match what is installed on disk, which is a real check (test_r_version_in_session runs R and compares), but it cannot catch "the wrong runtimes were installed". That is the correct scope for a container smoke test; pinning expected versions is a customer-deployment concern.
These belong in the full tier at minimum. Whether they are fast enough for the PR gate depends on whether each spawns a session — test_r_version_in_session does, so budget roughly 30s for it.
Acceptance
workbench-smoke.ymlwrites a[runtimes]block derived from the running container.- The three
test_runtime_versionstests execute rather than skip, verified in thesmoke-results.xmlartifact. - The tier placement (gate vs full) is chosen from the measured runtime, and recorded in the workflow.
- Dominant language
- Python
- Stars
- 9
- Forks
- 1
- Avg merge
- 15h 31m
- Merged PRs (30d)
- 44
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/vip
-
bug team: connect team: package manager
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
posit-dev/vip#875 · 2 comments ·
Maintainers usually reply within 1 day
-
team: workbench
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
nightly-failure
Difficulty 4/5 1-2 days Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
nightly-failure
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
Similar issues
-
jira: an unquoted JQL number of more than 4300 digits is a plain-text 500, where real answers 200Openfidelity
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
A JSON chat answer blocks the backend event loop for the whole RAG runPossibly taken @NopeCharon claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
The-OpenROAD-Project/ORAssistant#656 ·
Maintainers usually reply within 1 day
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day