Skip to content

Enable Rego tests on Windows (Regal v0.39.0 fixes upstream path handling)#1114

Merged
MischaPanch merged 2 commits intooraios:mainfrom
antigenius0910:feature/rego-windows-support
Mar 4, 2026
Merged

Enable Rego tests on Windows (Regal v0.39.0 fixes upstream path handling)#1114
MischaPanch merged 2 commits intooraios:mainfrom
antigenius0910:feature/rego-windows-support

Conversation

@antigenius0910
Copy link
Contributor

@antigenius0910 antigenius0910 commented Mar 2, 2026

Summary

  • Bumps Regal from v0.36.1 → v0.39.0, which includes the upstream Windows path handling fix for the LSP (see StyraInc/regal#1683, closed November 3, 2025)
  • Removes the @pytest.mark.skipif(sys.platform == "win32", ...) guard from TestRegoLanguageServer — the sys import is also cleaned up as it's no longer needed

Background

PR #670 added Rego language support but had to skip all tests on Windows due to a Regal LSP bug where Windows paths were not parsed correctly (file://D:\... instead of file:///D:/...). The Regal team confirmed the fix and shipped it in v0.37.0 (November 6, 2025). We're upgrading to the latest stable v0.39.0.

Test plan

  • CI passes on Linux ✅ (was already passing)
  • CI passes on macOS ✅ (was already passing)
  • CI passes on Windows 🆕 (previously all 6 Rego tests were skipped — now they run)
  • If Windows CI reveals the async workspace-loading race condition is still present, a follow-up PR will add a retry/wait mechanism in regal_server.py

- Bump Regal from v0.36.1 to v0.39.0 which includes Windows path fixes
  (upstream fix: open-policy-agent/regal#1683)
- Remove sys.platform == "win32" skipif from TestRegoLanguageServer

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Picks up FSharp/dotnet handling fixes from oraios#1115 and global
memories feature from oraios#1091.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@MischaPanch
Copy link
Contributor

Nice, thanks!

@MischaPanch MischaPanch merged commit 4b86e7b into oraios:main Mar 4, 2026
3 of 4 checks passed
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