Skip to content

Enable Python test GitHub actions workflow on the windows-latest runner and fix several Windows compatibility issues: - #500

Merged
fdxmw merged 3 commits into
UCSBarchlab:developmentfrom
fdxmw:windows
Jul 27, 2026
Merged

Enable Python test GitHub actions workflow on the windows-latest runner and fix several Windows compatibility issues:#500
fdxmw merged 3 commits into
UCSBarchlab:developmentfrom
fdxmw:windows

Conversation

@fdxmw

@fdxmw fdxmw commented Jul 24, 2026

Copy link
Copy Markdown
Contributor
  • Rename the cp437 renderer constants to utf-8-basic. The old constants were actually Unicode, and not actually code page 437, so they weren't working as advertised. This removes code page 437 support, since nobody seems to be using it.

  • Make render_trace's platform detection code more reliable.

  • Fix test_examples.py's path handling so it works on Windows.

  • Don't use render_trace in doctests outside of Simulation, and disable Simulation doctests when Unicode is not supported. Simulation doctest examples expect Unicode output for render_trace.

  • Fix examples so they don't require Unicode.

  • Fix justfile to work on Windows.

  • Add doctests for Simulation and Simulation.step.

…nner and fix several Windows compatibility issues:

* Rename the `cp437` renderer constants to `utf-8-basic`. The old constants
  were actually Unicode, and not actually code page 437, so they weren't
  working as advertised. This removes code page 437 support, since nobody seems
  to be using it.

* Make `render_trace`'s platform detection code more reliable.

* Fix `test_examples.py`'s path handling so it works on Windows.

* Don't use `render_trace` in doctests outside of `Simulation`, and disable
  `Simulation` doctests when Unicode is not supported. `Simulation` doctest
  examples expect Unicode output for `render_trace`.

* Fix `examples` so they don't require Unicode.

* Fix `justfile` to work on Windows.

* Add doctests for `Simulation` and `Simulation.step`.
@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.8%. Comparing base (954dcc1) to head (a2e8b72).

Files with missing lines Patch % Lines
pyrtl/simulation.py 66.7% 2 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           development    #500     +/-   ##
=============================================
- Coverage         93.8%   93.8%   -0.0%     
=============================================
  Files               30      30             
  Lines             7138    7141      +3     
=============================================
+ Hits              6690    6692      +2     
- Misses             448     449      +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fdxmw

fdxmw commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

I also tested this PR manually by running uv run just presubmit and some examples on Windows, in cmd.exe, PowerShell, and Cygwin.

@fdxmw
fdxmw merged commit 82d8858 into UCSBarchlab:development Jul 27, 2026
6 checks passed
@fdxmw
fdxmw deleted the windows branch July 27, 2026 22:07
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.

1 participant