Skip to content

feat(e2e): install Python on CI and gate Python REPL completion test on py_available() - #18062

Merged
kevinushey merged 4 commits into
mainfrom
feature/python-repl-windows-e2e
Jun 25, 2026
Merged

kevinushey merged 4 commits into
mainfrom
feature/python-repl-windows-e2e

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Fixes #17984.

This PR addresses the Windows CI flake in the Python REPL completion test (python_completions.test.ts) by:

  1. Installing Python on all CI runners — Adds actions/setup-python@v5 (Python 3.x) to the shared .github/actions/e2e-deps/action.yml composite action, so Python is available on Windows, macOS, and Linux runners before any tests execute.

  2. Gating the test on py_available(initialize = TRUE) — Adds a beforeEach hook that checks whether a Python interpreter is actually available via reticulate::py_available(initialize = TRUE). If it returns FALSE, the test is cleanly skipped with the message "No Python interpreter available", replacing the previous blind test.fixme guard on the completion popup.

Once the test passes consistently on Windows CI with Python installed, the test.fixme line and the os import can be removed from the test.

…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.
@github-actions

github-actions Bot commented Jun 25, 2026 •

Copy link
Copy Markdown

🍎 macOS Desktop E2E · ARM64

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
402 0 18 0
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · macos-26 ARM64 · commit 23e04665f560c19206fde39531c86affbf671bd5 · Run #178

@github-actions

github-actions Bot commented Jun 25, 2026 •

Copy link
Copy Markdown

🪟 Windows Desktop E2E · Server 2025 x64

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
409 0 13 0
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · Windows Server 2025 x64 · commit 23e04665f560c19206fde39531c86affbf671bd5 · Run #178

@kevinushey
kevinushey merged commit c1368ef into main Jun 25, 2026
15 checks passed
@kevinushey
kevinushey deleted the feature/python-repl-windows-e2e branch June 25, 2026 19:57
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.

e2e: Python REPL completion popup does not appear on Windows CI

1 participant