Skip to content

fix: make the documented checks pass on Windows checkouts - #50

Merged
drevendev merged 1 commit into
masterfrom
beautifulrepo/windows-checkout-parity-20261022
Oct 22, 2026
Merged

drevendev merged 1 commit into
masterfrom
beautifulrepo/windows-checkout-parity-20261022

Conversation

@drevendev

Copy link
Copy Markdown
Owner

Reader problem and change

The README says the checks need only "Python 3.11+" with no installs, but on a default Windows checkout (core.autocrlf=true) python -m unittest discover -s tests fails on master with 3 failures:

Failure Cause Fix
test_fixture_integrity_matches_documented_sha256 (and the nested-regressions wrapper) CRLF checkout changes the bytes of observations.csv .gitattributes: * text=auto eol=lf
test_valid_unicode_output_and_mode_are_preserved (438 != 416) Windows chmod only toggles the read-only bit compare with the mode the platform actually stored after chmod
test_unicode_paths_and_encoded_characters_are_supported (UnicodeEncodeError: 'charmap') curate.py printed through a cp1252 stdout when redirected curate.py reconfigures stdout to UTF-8; tests decode subprocess output as UTF-8

CI only ran on Ubuntu, so none of this was visible. This PR adds a Python 3.14 (Windows) job. The Linux jobs keep their names (Python 3.11, Python 3.14), which the new master ruleset requires.

Evidence

  • Local run on Windows 11, Python 3.14.7, after re-checking out the tree with the new attributes:
    • python -m unittest discover -s tests: Ran 221 tests ... OK (skipped=5) (it was FAILED (failures=3) on master)
    • python tools/catalog.py, python tools/docs_links.py and python tools/html_navigation.py all print OK.
    • python examples/curated-starter/curate.py --format json > out.json now succeeds.
  • The repository index already stored every file with LF (git ls-files --eol: 93 × i/lf), so .gitattributes changes no committed content.

Verification

  • Catalog validation and generated-view check completed.
  • Relevant tests passed; exact commands and results are recorded above.
  • Documentation links and examples were inspected.
  • Accessibility and visual checks: not applicable (no rendered surface changed).

Limitations

  • macOS is still not in the CI matrix.
  • Windows CI runs Python 3.14 only. The 3.11 minimum stays covered on Linux.
  • Contributors who already have a CRLF working tree need to refresh it once (for example, run git rm --cached -r . && git reset --hard on a clean tree). A fresh clone needs nothing.

🤖 Generated with Claude Code

On a default Windows checkout (core.autocrlf=true) three tests failed on
master: the research fixture SHA-256 changed with CRLF, the catalog mode
assertion expected POSIX bits, and curate.py crashed writing non-ASCII
JSON to a redirected cp1252 stdout.

- .gitattributes forces LF checkouts for text files.
- curate.py writes UTF-8 output; tests decode subprocess output as UTF-8.
- The mode test compares with the mode the platform actually stored.
- CI adds a Windows / Python 3.14 job; Linux job names are unchanged so
  the master ruleset's required checks still match.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@drevendev
drevendev merged commit 15187b0 into master Oct 22, 2026
3 checks passed
@drevendev
drevendev deleted the beautifulrepo/windows-checkout-parity-20261022 branch October 22, 2026 11:01
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