Skip to content

Skip cloud-only files of unrelated repositories in the per-command storage check - #734

Merged
small-angel merged 6 commits into
mainfrom
devin/1792618518-or571-skip-cloud-only-config
Nov 6, 2026
Merged

small-angel merged 6 commits into
mainfrom
devin/1792618518-or571-skip-cloud-only-config

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes OR-571

Summary

  • local::storage::prepare() runs before every lifecycle-locked command and at app startup. Its per-command check calls references(), which reads .git/config, worktree gitdir backlinks and .git gitfiles of every registered project. When a project lives in iCloud/Dropbox (macOS File Provider) and one of those files is cloud-only (dataless), the read waits for the download. As a result, orx runs, orx projects and app startup hang on a repository unrelated to the command.
  • references() is now a wrapper around scan(data, mappings, skip). Only the per-command check in prepare() passes cloud_only, a stat test for the macOS SF_DATALESS flag that does not trigger a download. It skips dataless files of repositories outside the migration source/target. Real migration (repair_paths) still reads everything, so no repair is skipped. A skipped repository is rechecked on every command and repaired once it is downloaded. Non-macOS behaviour is unchanged (cloud_only returns false).

Test plan

  • cargo fmt --check, cargo clippy --all-targets --locked -- -D warnings, cargo test --locked local::storage. The new test cloud_only_external_projects_are_only_skipped_by_storage_checks checks that the full scan finds the stale remote and the per-command scan skips it.
  • Full cargo test --locked locally: 1166 passed. 3 local::projects tests fail only because of this VM's global git identity (expected OpenResearch <local@openresearch.sh>); they don't touch this change.
  • Native macOS 26.6.2 reproduction on main (a3a640c): a File Provider domain holds a registered project whose .git/config is evicted (compressed,dataless). orx runs <local project> --experiment <id> takes 1:36 at 0% CPU. Before reproducing, Claude replied live in the native OpenResearch.app.
  • Post-fix on 03067f6: the native OpenResearch.app starts immediately and Claude replies live. orx runs takes 0.011s and orx projects 0.010s, and the cloud repo's .git/config stays dataless.

Bug reproduction on main

Post-fix check on this branch

Automation improvements

  • The macOS snapshot has no File Provider test domain, so I had to build and enable a temporary one to make files dataless. Prebaking it, or a skill that covers it, would save most of the setup time for iCloud bugs.

Link to Devin session: https://app.devin.ai/sessions/529c5a6928504841b1c2e8f382eeb2ce
Open in Devin Desktop: https://app.devin.ai/desktop/session/529c5a6928504841b1c2e8f382eeb2ce?variant=devin

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@greptile-apps

greptile-apps Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Separates the lightweight storage check from the full migration scan.

  • Storage checks skip cloud-only files in unrelated repositories.

Reviews (4) · Last reviewed commit: "Skip cloud-only files only in the per-co..." · Reviewed by Greptile

Comment thread src/local/storage.rs Resolved
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@sox8502

sox8502 commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

@greptileai review

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@sox8502

sox8502 commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

@greptileai review

Comment thread src/local/storage.rs Resolved
Comment thread src/local/storage.rs Resolved
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@sox8502

sox8502 commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

@greptileai review

@devin-ai-integration devin-ai-integration Bot changed the title Skip cloud-only repositories during storage migration scan Skip cloud-only files of unrelated repositories in the per-command storage check Oct 21, 2026
@sox8502 sox8502 self-assigned this Oct 21, 2026
@sox8502 sox8502 added the awaiting review Devin bugfix PR is open and needs human review before merge label Oct 21, 2026
@small-angel
small-angel merged commit 66ddab7 into main Nov 6, 2026
18 checks passed
@small-angel
small-angel deleted the devin/1792618518-or571-skip-cloud-only-config branch November 6, 2026 01:09
qianyuliu pushed a commit to CMCC-AI/OpenResearch that referenced this pull request Nov 17, 2026
- 回迁上游 alphaXiv#734:在 `src/local/storage.rs` 为每条命令的快速存储检查跳过外部仓库 macOS 云端占位文件,同时保持完整迁移全量扫描与权限保护
- 拆出 `src/local/chat/mod.rs`、`src/store.rs` 与 `src/commands/up.rs` 内联单元测试至独立 `*_tests.rs` / `tests.rs` 文件,累计减少 11,700 余行主文件体积
- 保持原有测试模块路径与全部 1,523 项单元测试及 7 套集成测试行为不变
qianyuliu pushed a commit to CMCC-AI/OpenResearch that referenced this pull request Nov 17, 2026
- 在 `upstream-v0.2.25-review-2026-11-09.md` 与 `upstream-v0.2.24-backports.md` 同步 `alphaXiv#734` 落地状态及三大模块瘦身行数
- 更新 `release-notes/v0.2.24-mobilesci.1.md` 反映云占位检查修复与模块拆出结果
- 在 `next-cycle-plan.md` 补充大小版本确定规则与 `0.2.25-mobilesci.1` 发版可行性及路径取舍分析
@sox8502 sox8502 mentioned this pull request Nov 24, 2026
4 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review Devin bugfix PR is open and needs human review before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants