Repository navigation
build: bump meson floor to >=1.11.0 (fixes Windows DirectoryLock crash) - #2483
Conversation
meson 1.9.x and 1.10.x have a Windows-only bug in DirectoryLock.__enter__ where a missing raise in the OSError handler causes a cryptic AttributeError: 'NoneType' object has no attribute 'fileno' crash instead of surfacing the real underlying OSError. This blocks the WASM build pipeline on Windows. Upstream fix landed in mesonbuild/meson@fb6db407 (utils: make .wraplock optional, 2025-08-26), first released in meson 1.11.0. Closes #2482 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe meson build tool dependency floor in ChangesMeson version constraint update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
* fix(build): clean stale meson lockfile before setup On Windows, meson <= 1.10.x crashed cryptically in DirectoryLock.__enter__ when the underlying lockfile open() raised an OSError (e.g., from a stale lockfile left by a killed or abandoned meson process). meson 1.11.0 (PR #2483) fixed the crash itself, but the underlying cause -- a stale meson-private/meson.lock file -- still produces an avoidable setup failure on Windows. This patch adds a small helper cleanup_stale_meson_lockfile() that removes the stale lockfile before invoking meson setup, eliminating the failure entirely. The helper is tolerant of file-in-use errors: on failure it logs and continues so the caller still sees the underlying meson error (now visible thanks to the 1.11.0 bump). Call sites: - ci/meson/build_config.py: setup_meson_build() -- before main meson setup invocation (and before the cache-clear retry). - ci/wasm_build.py: ensure_meson_configured() -- before the initial setup and the reconfigure paths. - ci/wasm_build.py: _recover_stale_wasm_build() -- before the self-healing reconfigure attempt. Closes #2484. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix(build): address CodeRabbit feedback on lockfile cleanup Apply two corrections to cleanup_stale_lockfile() per CodeRabbit review on PR #2486 (thread 3262492253): - Add Windows-only platform guard via os.name != "nt". The stale lockfile cleanup is only needed for the Windows DirectoryLock bug. On POSIX, the build system uses fcntl/flock (advisory), so removing an in-use lockfile could let a concurrent setup bypass the lock. - Add explicit KeyboardInterrupt handling before the OSError handler, routed through handle_keyboard_interrupt() per project convention. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Summary
Bumps the meson floor in
pyproject.tomlfrom>=1.10.0to>=1.11.0.meson 1.9.x and 1.10.x have a Windows-only bug in
DirectoryLock.__enter__where a missingraisein theexcept OSErrorblock causes a crypticAttributeError: 'NoneType' object has no attribute 'fileno'crash instead of surfacing the real underlyingOSError. This blocks the WASM build pipeline on Windows.Upstream fix landed in mesonbuild/meson@fb6db407 ("utils: make .wraplock optional", 2025-08-26), first released in meson 1.11.0.
Closes #2482
Test plan
pip install fastled(orpip install meson) now pulls meson >=1.11.0OSErroroccurs, the real error is surfaced instead of the misleadingNoneTypeAttributeError🤖 Generated with Claude Code
Summary by CodeRabbit