Repository navigation
feat(e2e): install Python on CI and gate Python REPL completion test on py_available() - #18062
Merged
Merged
Conversation
…on py_available() - Add actions/setup-python@v5 step to e2e-deps composite action so Python is available on all CI runners (Windows, macOS, Linux). - Add a beforeEach hook to the Python REPL completion test that checks reticulate::py_available(initialize = TRUE) and skips the test with a clear message if no Python interpreter is available, replacing the blind test.fixme guard on the completion popup. Addresses #17984
The test.fixme guard for Windows CI is no longer needed now that Python is installed on all CI runners via the e2e-deps action and the beforeEach hook gates on py_available(initialize = TRUE). If the completion popup still fails to appear on Windows, it is a genuine product bug that should fail the test rather than silently skip.
🍎 macOS Desktop E2E · ARM64✅ All tests passed!
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · macos-26 ARM64 · commit |
🪟 Windows Desktop E2E · Server 2025 x64✅ All tests passed!
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · Windows Server 2025 x64 · commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #17984.
This PR addresses the Windows CI flake in the Python REPL completion test (
python_completions.test.ts) by:Installing Python on all CI runners — Adds
actions/setup-python@v5(Python 3.x) to the shared.github/actions/e2e-deps/action.ymlcomposite action, so Python is available on Windows, macOS, and Linux runners before any tests execute.Gating the test on
py_available(initialize = TRUE)— Adds abeforeEachhook that checks whether a Python interpreter is actually available viareticulate::py_available(initialize = TRUE). If it returnsFALSE, the test is cleanly skipped with the message "No Python interpreter available", replacing the previous blindtest.fixmeguard on the completion popup.Once the test passes consistently on Windows CI with Python installed, the
test.fixmeline and theosimport can be removed from the test.