Skip to content

backport: make release/v0.5.2-hotfix a superset of release/v0.5.0-hotfix - #6976

Merged
baojun-zhang merged 9 commits into
release/v0.5.2-hotfixfrom
backport/v0.5.2-hotfix-from-v0.5.0-hotfix
Nov 4, 2026
Merged

baojun-zhang merged 9 commits into
release/v0.5.2-hotfixfrom
backport/v0.5.2-hotfix-from-v0.5.0-hotfix

Conversation

@ZaynJarvis

Copy link
Copy Markdown
Collaborator

What

Cherry-picks (-x) every release/v0.5.0-hotfix commit that 0.5.2-hotfix was missing, so release/v0.5.2-hotfix becomes a superset of release/v0.5.0-hotfix.

# Commit (0.5.0-hotfix) Orig PR Main PR Result Resolution
1 d8dd90d fix(ragfs): multiwrite hotfixes #6607 #6595+#6604 clean Only 1 file still differed
2 ae29842 feat(ragfs): gate existing data reconciliation (reconcile_existing_data, default off) #6618 #6617 clean
3 36258b3 fix(storage): PathLock sidecar protocol #6632 #6631 conflict _ops.py: kept 0.5.2's recursive vector_store.delete_uris(..., recursive=True) branch. test_session_delete_storage.py: kept 0.5.2's side, which already had the outer-lease test and the TTL native-tree-lease test, plus 0.5.2's recursive-delete assertions
4 14d622d refactor(session): remove legacy path compatibility (main #6642) #6642 conflict docs/{en,zh}/api/12-content.md: took the new URI bullet (old viking://session/... → INVALID_URI) and kept 0.5.2's privacy bullet. _access.py: kept 0.5.2's inspect import, dropped the now-unused json import
5 3d46710 feat(multiwrite): IOPS #6648 #6646 clean
6 b8bc624 feat(multiwrite): reduce metadata IO #6688 #6686 clean
7 8ae4f14 fix(reindex): converge user orphan vectors — #6663 (6afd9ba) conflict (5 files) Before this pick, 0.5.2-hotfix's reindex_executor.py, reindex_processor.py and test_admin_rebuild_api.py were byte-identical to main 6afd9ba3^, so I took main's #6663 version of those three files (8ae4f14 is a re-port of 6afd9ba onto v0.5.0's older wait-tracker architecture, which 0.5.2 doesn't have). viking_vector_index_backend.py: added get_reindex_inventory_under_uri; the file now equals main's 6afd9ba apart from 0.5.2's existing delete_uris(recursive=). test_semantic_queue_memory_dedupe.py: 0.5.2 already had the same test under another name, so kept ours. The rest auto-merged and matches main 6afd9ba, plus 8ae4f14's 4 new test files (test_reindex_{memory_sources,namespace_scopes,orphan_safety,semantic_chunk_safety}.py), which pass here
8 5e45a87 perf(admin): list users from memory #6629 — (main backport: #6974) conflict 0.5.2 moved the refresh into LegacyAPIKeyManager.list_users_page(fresh=False) (api_keys/legacy.py). Kept the 0.5.2 handlers and removed the refresh from the non-fresh path; fresh=True still reads the store. Kept the rewritten test_list_users_reads_memory_without_storage
— 324c339 fix(tasks): remove store I/O limiter #6261 #6265 skipped 0.5.2-hotfix already contains #6265 (b727b81). No StoreIOLimiter, _store_io or max_concurrent_store_io remains
9 9c49188 test(session): seed canonical session path — as in main new Since #4, test_session_storage_uses_canonical_uri (0.5.2-only test) had to seed the canonical user/{id}/sessions path, as main does

Superset check: for each of the 21 commits in v0.5.0..origin/release/v0.5.0-hotfix, I checked every added line (≥12 chars) still present at the 0.5.0-hotfix tip against this branch. The 7 listed commits plus #6629 are fully present, except 8ae4f14, where 15 v0.5.0-only shim lines (get_request_wait_tracker, executor_lease/lease_guard reconstruction, the old test name and assertions) are intentionally replaced by main's version. The older 0.5.0-hotfix commits (#6046, #5741, #6270, #6175, #6265, #6165, #6178, #4548, #6153, #6045, #5926, #5772, and 236e3c4) are already on 0.5.2-hotfix by PR number. Their few "missing" lines are places where 0.5.2 later refactored the code.

Risk notes

Tests (local)

  • cargo check -p ragfs: OK (warnings only). cargo test -p ragfs --lib multibackend: 9 passed, 0 failed.
  • pytest, per touched file (Python 3.12, empty {} ov.conf): all pass except:
    • test_admin_api.py::test_create_account (400 != 200). Fails the same way on unmodified main, so it's an environment issue.
    • test_session_service_metrics.py::test_user_memory_policy_prefers_user_setting_and_falls_back_to_server_default and test_viking_fs_tree.py::test_ls_agent_preserves_metadata_acl_and_summary_controls. Both fail on unmodified release/v0.5.2-hotfix too.
    • Reindex, session-delete, vector-transfer, reindex_msg, resource_rfv and the 4 new reindex test files all pass (16 + 22 + 24 + 44 + 10 + 29 + 105 + 10 + 24 …).
    • tests/server/test_api_sessions.py didn't run: every test hit a fixture-setup timeout in this local environment, so there's no result.
  • Integration tests: running on Tesla ovtest.

🤖 Generated with Claude Code

baojun-zhang and others added 9 commits November 3, 2026 21:40
* fix(ragfs): 在外部租约下跳过冗余加密锁

(cherry picked from commit 002b27f)

* fix(multiwrite): 取消删除 v1 元数据时 glob 操作,在 import account 阶段进行删除 && 增加迁移阶段执行进度日志

(cherry picked from commit 42d99d8)
(cherry picked from commit d8dd90d)
Add a multi-write backup option to control whether startup scans pre-existing primary files into V2 metadata.

Document the default disabled behavior and the conditions where historical backfill can be skipped.

(cherry picked from commit 56e8bea)
(cherry picked from commit ae29842)
* fix(storage): 修复递归删除导致 PathLock 提前失效

将目录锁迁移到父目录 sidecar,并兼容旧锁与 handoff;删除获锁后重新确认目标状态,避免并发请求沿用过期判断。

(cherry picked from commit 014bd7c)

* test(storage): 补充 PathLock 路径关系矩阵

使用共享文件系统上的独立 Manager 验证祖先、后代与兄弟路径的冲突和非冲突语义,防止 sidecar 迁移引入锁范围回归。

(cherry picked from commit c60e67a)

* fix(storage): 收敛 PathLock sidecar 迁移协议

拆分 Tree 路径解析并修正根路径寻址,撤回无关的 Snapshot 行为变化,同时明确新旧锁协议的切换约束,降低迁移影响范围。

(cherry picked from commit 10ec440)

---------

Co-authored-by: zhanghe.1216 <@bytedance.com>
(cherry picked from commit 36258b3)
Stop probing obsolete session storage paths during normal operations and
reject the legacy session URI alias. Update bundled callers to use current
session URIs.

(cherry picked from commit 68b1ea6)
(cherry picked from commit 14d622d)
1. 去除启动 checkpoint ticker,避免重复启动导致的 IOPS 峰值
2. 增加随机值设置初次 checkpoint 时机,防止多实例同时启动导致并发 IOPS 峰值
3. flush worker 使用内存缓存记录account 分区信息,而不是每个 batch 查询 account 分区信息
4. 增加部分进度日志

(cherry picked from commit 3d46710)
- 缓存账号路由快照,减少重复读取分区 manifest
- 记录 dirty scope,让 catch-up 只同步已变更分区
- 使用内存快照维护多写 lag 指标,避免 metrics scrape 扫描元数据
- 降低 catch-up lease 刷新频率,并缩小 append 锁范围以减少 sidecar 写入

(cherry picked from commit b8bc624)
Backport the reindex orphan reconciliation and inventory batching from 6afd9ba to the v0.5.0 task and wait architecture.

Co-authored-by: TRAE CLI <traecli@bytedance.com>
(cherry picked from commit 8ae4f14)
14d622d removed legacy session path compatibility; align
test_session_storage_uses_canonical_uri with main (#6642), which seeds
the canonical user/{id}/sessions path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@baojun-zhang
baojun-zhang merged commit fa0552d into release/v0.5.2-hotfix Nov 4, 2026
4 of 5 checks passed
@baojun-zhang
baojun-zhang deleted the backport/v0.5.2-hotfix-from-v0.5.0-hotfix branch November 4, 2026 02:42
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants