Repository navigation
Conversation
|
This only changes the internal SwiftLint baseline-preparation helper and has no user-visible desktop behavior. I do not have label permission; could a maintainer add the |
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for the focused fix. I reviewed the change to the SwiftLint baseline preparer: parsing the source baseline URL path as POSIX data before rebasing it onto the current checkout is the right shape for cross-host validation, and the change preserves the existing local-file/absolute-path/Desktop-relative safety checks.
I also smoke-tested the helper against a macOS-style file:///Users/.../Desktop/Foo.swift baseline URL on Linux and confirmed it rewrites only the checkout-rooted file URL as expected. The Desktop Swift checks are already green.
I added no-changelog-needed since this is an internal CI/helper-only change; that should let the metadata/changelog gate rerun. Leaving final maintainer review to a human because this touches CI/lint tooling and the formal approval gate is still blocked until checks are green.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
kodjima33
left a comment
There was a problem hiding this comment.
Concrete cross-host defect: SwiftLint baseline file:// URLs are macOS-absolute, so Windows rejected them. PurePosixPath parse is the minimal fix and the existing rebase/reject tests are the regression. 5 lines, green.
## What changed and why Make the repository preflight executable from ordinary Windows PowerShell, including checkouts whose absolute path contains spaces and non-ASCII characters. - Resolve Bash from the active Git for Windows installation instead of invoking the System32 WSL launcher. - Make GNU Make, hooks, release guards, readiness checks, and dev-harness entrypoints share the same Bash/Python resolver. - Reuse the repository Windows virtualenv (`Scripts/python.exe`) while preserving interpreter-specific `PYTHONPATH` separators. - Normalize manifest `bash` and `python3` commands at the runner boundary, and decode Git/check output as UTF-8 instead of the Windows ANSI code page. - Preserve Unicode Git paths and checkout roots through preflight selection, child environments, and single-flight fingerprints. - Make Windows cancellation/liveness handling read-only and race-safe with isolated process groups, `CTRL_BREAK_EVENT`, and Win32 wait state. - Run readiness behavior fixtures through Git Bash and the selected native Python. - Keep Ruby/iOS and POSIX permission contracts on Linux/macOS, where their semantics are faithful, while retaining Linux CI coverage. - Keep security-sensitive token mode checks fail-closed on Windows; only the unrelated candidate-provenance fixture mocks that boundary. - Remove fixed test-output paths and nested Make banner leakage that made checks order- or host-dependent. ## Product invariants affected none ## How it was verified - After syncing `origin/main` and dropping overlap already merged through #10838, #10842, and #10843, the PR diff is down from 40 files to 34 files. - The current PR head `ff80da22a` passed the official `make preflight`: **70 selected checks in 273.24s**. - A larger pending Windows integration stack passed `make preflight` from `J:\codex-omi-work\路径 空格\omi-main-20260729`: **79 selected checks in 323.17s**. - Dev-harness unit suite: 69 passed, 13 expected platform skips. - Preflight contract suite: 36 passed, 2 expected platform skips. - Manifest runner suite: 39 passed, 1 expected platform skip. - Readiness behavior: 5 passed. - Failure-class guard ratchet: 14 passed plus a real 90-day history scan. - Desktop backend candidate probe: 14 passed. - Desktop beta retry contract: 30 passed. - Setup contract passed baseline provisioning, dependency-sync rerun, and linked-worktree fallback. - Ruff, Bash syntax, and diff hygiene passed for touched modules. The desktop changes are internal-only. Local verification used `PRE_PUSH_SKIP_DESKTOP_CHANGELOG=1`, the documented equivalent of the required `no-changelog-needed` label; please add that label rather than publishing a user-facing changelog entry. ## Tests Coverage includes Git for Windows discovery, MSYS/native path conversion, Windows virtualenv resolution, Unicode checkout paths, UTF-8 subprocess output, joined/rejected single-flight behavior, cancellation forwarding, readiness orchestration, platform-scoped contracts, release guards, firmware guard execution, SwiftLint shell contracts, and security-sensitive candidate fixtures. ## Failure class (fixes) Failure-Class: none
What changed and why
SwiftLint baseline entries contain macOS
file://URLs even when repository checks run on another host. Parse those source URLs withPurePosixPathbefore rebasing their Desktop-relative suffix onto the current checkout, so Windows no longer rejects/Users/...as a non-absolute path.Product invariants affected
none
How it was verified
origin/mainon Windows: a macOS baseline URL is rejected asnot an absolute path.py_compile, andgit diff --checkon the changed file.Tests
The existing
test_baseline_preparer_rebases_file_urls_to_the_current_checkoutandtest_baseline_preparer_rejects_a_location_outside_desktoptests are the regression coverage: they fail against the old implementation on Windows and pass with this change. No test file change is needed because the cross-host contract was already encoded.Failure class (fixes)
Failure-Class: none