Repository navigation
Skip cloud-only files of unrelated repositories in the per-command storage check - #734
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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>
Contributor
[Medium impact] The PR appears safe to merge. SummarySeparates the lightweight storage check from the full migration scan.
Reviews (4) · Last reviewed commit: "Skip cloud-only files only in the per-co..." · Reviewed by Greptile |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
@greptileai review |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
@greptileai review |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
@greptileai review |
1 task
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` 发版可行性及路径取舍分析
4 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes OR-571
Summary
local::storage::prepare()runs before every lifecycle-locked command and at app startup. Its per-command check callsreferences(), which reads.git/config, worktreegitdirbacklinks and.gitgitfiles 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 projectsand app startup hang on a repository unrelated to the command.references()is now a wrapper aroundscan(data, mappings, skip). Only the per-command check inprepare()passescloud_only, astattest for the macOSSF_DATALESSflag 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_onlyreturnsfalse).Test plan
cargo fmt --check,cargo clippy --all-targets --locked -- -D warnings,cargo test --locked local::storage. The new testcloud_only_external_projects_are_only_skipped_by_storage_checkschecks that the full scan finds the stale remote and the per-command scan skips it.cargo test --lockedlocally: 1166 passed. 3local::projectstests fail only because of this VM's global git identity (expectedOpenResearch <local@openresearch.sh>); they don't touch this change.main(a3a640c): a File Provider domain holds a registered project whose.git/configis 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.orx runstakes 0.011s andorx projects0.010s, and the cloud repo's.git/configstays dataless.Automation improvements
Link to Devin session: https://app.devin.ai/sessions/529c5a6928504841b1c2e8f382eeb2ce
Open in Devin Desktop: https://app.devin.ai/desktop/session/529c5a6928504841b1c2e8f382eeb2ce?variant=devin