flavorpack
2026-03-24
Windows ARM64 build support: defense-in-depth atomic file ops and Python install error handling
17 files · 3,034+ · 1,191-
Windows ARM64 build support
5 files changed
builder_windows.goDefense-in-depth atomicReplace() with 4 fallback strategies for ARM64 file locking: MoveFileEx+retry, GC+handle cleanup, delete-then-move, verify replacementbuilder_windows_test.go328-line Windows ARM64 test suite for atomic file operationsbuilder.goUpdated builder for ARM64 platform detection03-flavor-pipeline.ymlAdded windows_arm64 to build matrixrelease-pipeline.ymlAdded windows_arm64 to release pipeline
- atomicReplace() on Windows now uses a four-strategy defense-in-depth approach: (1) MoveFileEx with progressive retry delays handles most cases; (2) explicit GC + extended delay handles ARM64’s stricter file handle lifecycle; (3) delete-then-move fallback for persistent locks; (4) final verify step asserts the replacement succeeded. Failing all four logs an error with source/dest paths.
instantiate
behavioral
2 files
builder_windows.gobuilder_windows_test.go
Python installation error handling
1 file changed
environment_builder.pyStrategy 1 (uv python install --install-dir) now wrapped in try/except; failures fall through to strategy 2 (default managed location) rather than crashing
- Python installation strategy 1 wrapped in try/except Exception so failures (e.g. uv version incompatibilities or network issues) fall through to strategy 2 gracefully, with a diagnostic print, rather than raising and aborting the build.
harden
behavioral
1 file
environment_builder.py
Windows ARM64 documentation
8 files changed
WINDOWS_ARM64_COMPLETION_REPORT.md363-line completion report for Windows ARM64 implementationWINDOWS_ARM64_BUILD.md495-line Windows ARM64 build guideLOCAL_TESTING_WINDOWS_ARM64.md559-line local testing guide for Windows 11 ARM64DEFENSE_IN_DEPTH_FILE_OPS.md269-line defense-in-depth file operations documentationCODE_COVERAGE_REGRESSION.md365-line code coverage and regression testing guideCOVERAGE_ASSESSMENT.md347-line honest coverage assessment01-helper-prep.ymlMinor CI prep updatesbuild_wheel.pyMinor wheel build tool update
- Added comprehensive docs: Windows ARM64 build guide, local testing guide, defense-in-depth file operations rationale, code coverage guide, and completion report. Coverage assessment documents known gaps honestly.
specify
internal
3 files
WINDOWS_ARM64_BUILD.mdLOCAL_TESTING_WINDOWS_ARM64.mdDEFENSE_IN_DEPTH_FILE_OPS.md