Repository navigation
fix(macos): package apps from paths with glob characters - #123751
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 1:40 PM ET / 17:40 UTC. ClawSweeper reviewWhat this changesThe branch makes macOS framework merging safe for checkout paths containing glob characters and keeps cached extension artifacts fresh when input mtimes have fractional milliseconds. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessThe PR remains necessary: current main retains both deterministic failures, and the two owner-level repairs have focused regression coverage with no blocking findings. Priority: P2 Review scores
Verification
How this fits togethermacOS packaging copies architecture-specific Sparkle frameworks and merges their Mach-O slices into the app bundle. The extension-boundary artifact helper compares inputs and generated outputs to decide whether CI can skip rebuilding declarations. flowchart LR
A[Checkout path] --> B[macOS framework packager]
B --> C[Mach-O slice merger]
C --> D[Packaged app framework]
E[Source inputs] --> F[Artifact freshness owner]
F --> G[Repair output mtimes]
G --> H[Reuse or rebuild CI artifacts]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +72, Other 0. Total +72 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the two owner-boundary fixes after the exact-head required checks pass. Do we have a high-confidence way to reproduce the issue? Yes, source-level reproduction is high confidence: literal Bash prefix removal fails for Is this the best way to solve the issue? Yes. Both changes repair the shared owner boundaries rather than adding downstream workarounds, and the alternatives would leave other framework or artifact consumers exposed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e03d1a42f808. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
|
@clawsweeper re-review Exact-head CI exposed and this branch now fixes a deterministic fractional-mtime race in the boundary-artifact freshness owner. The package-path fix remains unchanged; please review the new second commit at |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
1a01190 to
c467fb9
Compare
|
@clawsweeper re-review The branch is now rebased once onto current |
|
🦞🧹 I asked ClawSweeper to review this item again. |
c467fb9 to
7e3957c
Compare
|
@clawsweeper re-review GitHub reported a server-side conflict after another disjoint |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
7e3957c to
be65e92
Compare
|
@clawsweeper re-review Current |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Land-ready proof for
No relevant proof gap remains. Full signed release packaging is intentionally outside this bounded packaging-path and CI-freshness repair. |
|
Merged via squash.
|
…3751) * fix(macos): handle metacharacters in framework paths * fix(ci): round boundary artifact refresh mtimes
What Problem This Solves
Fixes an issue where developers packaging the macOS app from a checkout path containing shell glob metacharacters, such as square brackets, would see the universal Sparkle framework merge fail with a misleading missing-file error.
Why This Change Was Made
The framework merger now treats the primary framework root as a literal prefix when deriving each relative binary path. It also replaces path separators for temporary slice names with Bash parameter expansion, removing an unnecessary subprocess and its masked exit status.
Exact-head CI then exposed an independent current-main race in boundary-artifact freshness: filesystem mtimes can retain fractional milliseconds while
Datetimestamps are integer milliseconds. The artifact owner now rounds its repair floor upward so a content-hash hit really makes every output at least as new as its newest input.User Impact
macOS app packaging now works from legal checkout paths containing glob characters. Packaging behavior for ordinary paths is unchanged.
CI artifact caches also keep their promised mtime fast path when an input and repair occur within the same millisecond.
Evidence
ERROR: Missing <absolute primary path> in <secondary framework>when the temporary checkout path contained[fixture].31820700472, job94834035780, observed output mtime1786726580662below input mtime1786726580662.0535.1786726813779 < 1786726813779.5.node scripts/run-vitest.mjs test/scripts/package-mac-app.test.ts test/scripts/prepare-extension-package-boundary-artifacts.test.ts— 70 passed.shellcheck -x scripts/package-mac-app.sh— clean.bash -n scripts/package-mac-app.sh— clean.git diff --check— clean..agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main— clean; no accepted/actionable findings.AI-assisted: yes. The change and focused regression proof were reviewed and understood before submission.