Repository navigation
chore(tests): enforce LF via .gitattributes and fix Windows test-harness portability - #19
Merged
Merged
Conversation
…ess portability No product logic, dependencies, versions, or frozen scope documents touched. - Add .gitattributes (* text=auto eol=lf; *.wasm, *.vsix, *.bin binary) so checkouts on Windows preserve exact LF byte masses and SHA-256 catalog digests. - phase121_bindings: invoke npm.cmd and node_modules/.bin/tsc.cmd on Windows. - phase129_checker, phase158_component_probes: normalize '\\' to '/' when sorting and checking relative repo paths. - phase156_vscode, phase157_gate_merge: use Windows built-in tar (-tf / -xOf) to inspect .vsix archives when unzip is absent (Unix retains unzip). - phase158..161: fall back from HOME to USERPROFILE and append EXE_SUFFIX for cargo/rustup. - phase166_gate: fall back from sha256sum to morphic::registry::sha256_hex when sha256sum is not on PATH. - phase164_registry_verbs, phase166_gate: call stream.set_nonblocking(false) and shutdown(Write) on accepted sockets (Winsock2 inherits nonblocking mode from the listener). Verified solo across all three frozen configurations on Windows without manual HOME: - default: 981 passed / 0 failed / 29 ignored - --features bootstrap-codegen: 981 passed / 0 failed / 29 ignored - --no-default-features: 837 passed / 0 failed / 22 ignored
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.
Summary
Enforce LF line endings across platforms via
.gitattributesand fix Windows-only test-harness assumptions so the full test suite passes natively on Windows without manual environment workarounds or touching any product code.Changes
.gitattributes:* text=auto eol=lffor text files plusbinaryfor*.wasm,*.vsix, and*.binso Windows clones keep exact checked-in LF byte masses (packages/bundles/267,156 B,registry/index.json10,927 B,packages/npm/71,873 B) and SHA-256 catalog digests.tests/):phase121_bindings.rs: invokenpm.cmdandnode_modules/.bin/tsc.cmdon Windows.phase129_checker.rs,phase158_component_probes.rs: normalize\to/when sorting and asserting relative repo paths.phase156_vscode.rs,phase157_gate_merge.rs: use built-intar(-tf/-xOf) on Windows to inspect.vsixarchives whereunzipis absent (Unix behavior unchanged).phase158_component_probes.rs,phase159_component.rs,phase160_callbacks.rs,phase161_gate_merge.rs: fall back fromHOMEtoUSERPROFILEand appendstd::env::consts::EXE_SUFFIXforcargo/rustup.phase166_gate.rs: fall back fromsha256sumtomorphic::registry::sha256_hexwhensha256sumis not onPATH.phase164_registry_verbs.rs,phase166_gate.rs: explicitly callstream.set_nonblocking(false)andstream.shutdown(Shutdown::Write)on accepted sockets in the in-test localhost HTTP servers (Winsock2 inherits nonblocking mode from the listener).CHANGELOG.md: recorded the change under[Unreleased]in a separate docs commit.Non-movers
src/), zero dependencies (Cargo.toml/Cargo.lock), zero version strings, and zero frozen scope documents touched.Local verification (Windows, solo, without manual
HOME)cargo test: 981 passed / 0 failed / 29 ignoredcargo test --features bootstrap-codegen: 981 passed / 0 failed / 29 ignoredcargo test --no-default-features: 837 passed / 0 failed / 22 ignored