Skip to content

Commit 329ef47

Browse files
committed
fix(orion): narrow Buck target discovery for subproject all-added imports
Scope discovery to changed subtrees and rk8s subproject roots so all-added CLs build rust_library/rust_binary targets instead of :vendor filegroups or entire third-party graphs. Add graph-based rdeps when uquery fails, platform --config injection, toolchain helper filtering, and optional ORION_BUCK_REMOTE_CACHE. Move troubleshooting docs to orion/docs and extend orion-scheduler VM/image deploy support.
1 parent d924034 commit 329ef47

25 files changed

Lines changed: 2723 additions & 754 deletions

Cargo.lock

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

moon/apps/web/components/ClView/components/Checks/cpns/Task.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { LoadingSpinner } from '@gitmono/ui/Spinner'
77

88
import { usePostRetryBuild } from '@/hooks/SSE/usePostRetryBuild'
99

10-
import { BuildDTO, getLatestBuildId, isTaskQueued, Status, TaskInfoDTO } from './store'
1110
import { TERMINAL_BUILD_STATUSES } from '../hooks/logUtils'
11+
import { BuildDTO, getLatestBuildId, isTaskQueued, Status, TaskInfoDTO } from './store'
1212

1313
/**
1414
* Format ISO date string to readable format
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
import { TaskInfoDTO } from './store'
22

3-
/** Stable signature so effects only re-run when build ids or statuses change. */
3+
/**
4+
* Stable signature so effects only re-run when build ids/statuses or target states
5+
* change. Target states must be included: a build can stay `Building` while
6+
* targets move from `Uninitialized` (queued) to `Building` (worker picked up).
7+
*/
48
export function getTasksSignature(tasks: TaskInfoDTO[]): string {
5-
return tasks.map((t) => `${t.task_id}:${t.build_list?.map((b) => `${b.id}:${b.status}`).join(',') ?? ''}`).join('|')
9+
return tasks
10+
.map((t) => {
11+
const builds = t.build_list?.map((b) => `${b.id}:${b.status}`).join(',') ?? ''
12+
const targets = t.targets?.map((tg) => tg.state).join(',') ?? ''
13+
14+
return `${t.task_id}:${builds}:${targets}`
15+
})
16+
.join('|')
617
}

orion-scheduler/FUSE_MOUNT_ISSUES.md

Lines changed: 0 additions & 127 deletions
This file was deleted.

orion-scheduler/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ sudo modprobe nbd max_part=8
130130
sudo bash scripts/build-custom-image.sh
131131
```
132132

133+
> 镜像发布到**调用者**的 qlean 目录(`sudo``orion` 运行时即 `/home/orion/.local/share/qlean/images/`,不是 `/root/...`)。`orion-scheduler``cargo run` 也读该路径。可用 `OUTPUT_DIR=...` 覆盖。
134+
133135
> 基础镜像下载源默认指向 USTC 镜像(`https://mirrors.ustc.edu.cn/debian-cdimage/cloud/trixie/latest`)。如需更换为官方源或其他镜像,通过 `BASE_MIRROR_URL` 覆盖(注意 `sudo` 需加 `-E` 传递环境变量):
134136
>
135137
> ```bash

0 commit comments

Comments
 (0)