Skip to content

fix(orion): skip incompatible targets for buck2 builds#1885

Merged
benjamin-747 merged 1 commit into
gitmono-dev:mainfrom
jerry609:fix/buck2-skip-incompatible-targets
Feb 2, 2026
Merged

fix(orion): skip incompatible targets for buck2 builds#1885
benjamin-747 merged 1 commit into
gitmono-dev:mainfrom
jerry609:fix/buck2-skip-incompatible-targets

Conversation

@jerry609

@jerry609 jerry609 commented Feb 2, 2026

Copy link
Copy Markdown
Collaborator

概要

  • 在 buck2 targets 发现阶段加入 --target-platforms prelude//platforms:default,提前过滤不兼容目标。
  • 在 buck2 build 阶段加入 --skip-incompatible-targets,避免 macOS-only crate 在 Linux 上直接失败。

问题

Linux 构建时,目标发现包含 macOS-only crate(例如 system-configuration),构建阶段尝试编译导致失败。

备注

  • 应在 third-party 的 BUCK 中补 target_compatible_with(macOS-only crates)。

Signed-off-by: jerry609 <1772030600@qq.com>
Copilot AI review requested due to automatic review settings February 2, 2026 08:10
@genedna genedna requested a review from benjamin-747 February 2, 2026 08:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Buck2 build failures on Linux caused by macOS-only targets (such as system-configuration crate) by adding platform filtering flags to both target discovery and build phases.

Changes:

  • Added --skip-incompatible-targets flag to buck2 build command to avoid build failures when encountering platform-incompatible targets
  • Added --target-platforms prelude//platforms:default to buck2 targets command to filter incompatible targets during the discovery phase

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
orion/src/buck_controller.rs Adds --skip-incompatible-targets flag to the build command with explanatory comment
orion/buck/run.rs Adds --target-platforms and prelude//platforms:default to the targets discovery arguments for consistent platform filtering

@benjamin-747 benjamin-747 added this pull request to the merge queue Feb 2, 2026
Merged via the queue into gitmono-dev:main with commit 5159e8c Feb 2, 2026
16 of 17 checks passed
Chen-Rong-Zi pushed a commit to Chen-Rong-Zi/mega that referenced this pull request Feb 3, 2026
Chen-Rong-Zi pushed a commit to Chen-Rong-Zi/mega that referenced this pull request Feb 3, 2026
Chen-Rong-Zi pushed a commit to Chen-Rong-Zi/mega that referenced this pull request Feb 3, 2026
AidCheng pushed a commit to AidCheng/mega that referenced this pull request Feb 5, 2026
)

Signed-off-by: jerry609 <1772030600@qq.com>
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>
github-merge-queue Bot pushed a commit that referenced this pull request Feb 11, 2026
…d WebSocket (#1909)

* refactor: some modules (#4)

* feat: add refactor orion module for migration

Signed-off-by: Wangyan <topshihun@foxmail.com>

* fix: add CL for build

Signed-off-by: Wangyan <topshihun@foxmail.com>

* refactor: some modules

Signed-off-by: Wangyan <topshihun@foxmail.com>

---------

Signed-off-by: Wangyan <topshihun@foxmail.com>
Signed-off-by: Aid_C <57825561+AidCheng@users.noreply.github.com>
Co-authored-by: Aid_C <57825561+AidCheng@users.noreply.github.com>

* [orion]REFACTOR: Integrate generic jupiter model with refactored orion structure

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* fix: enforce mount_path semantics and stabilize builds (#1836)

* fix: enforce mount_path semantics and stabilize builds

Consolidate mount_path handling with buck2 prechecks and fix BuildDTO repo handling to avoid moves.

Signed-off-by: jerry609 <1772030600@qq.com>

style: format code with cargo fmt

Signed-off-by: jerry609 <1772030600@qq.com>

chore(orion): remove unused mount helpers

Signed-off-by: jerry609 <1772030600@qq.com>

fix(orion): retry buck2 targets once on failure

Signed-off-by: jerry609 <1772030600@qq.com>

fix(orion): remount and retry target discovery on failure

Signed-off-by: jerry609 <1772030600@qq.com>

style(orion): format buck_controller after retry changes

Signed-off-by: jerry609 <1772030600@qq.com>

fix(orion): annotate changes type for retry path

Signed-off-by: jerry609 <1772030600@qq.com>

fix(orion): appease clippy for mount guards

Signed-off-by: jerry609 <1772030600@qq.com>

test(common): avoid clippy field reassignment lint

Signed-off-by: jerry609 <1772030600@qq.com>

* test(ceres): fix clippy lints in tests

Signed-off-by: jerry609 <1772030600@qq.com>

---------

Signed-off-by: jerry609 <1772030600@qq.com>
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* Feature/comment reanchor (#1874)

* refactor(code_review): add anchor and position to locat code thread

* feat: add reanchor thread function

* fix: seaORM repeated

* fix: rebase error

* fix: lcs_len error

* fix: fix CR problems

* fix: error

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* feat(theme): Complete theme color migration for multiple modules (#1875)

* feat(theme): Complete theme color system migration for CL, Issue, Queue, OrionClient, and Settings modules

* feat(theme): Complete theme color system migration for CL, Issue, Queue, OrionClient, and Settings modules

* feat(theme): Complete theme color system migration for CL, Issue, Queue, OrionClient, and Settings modules

* feat(theme): Complete theme color system migration for CL, Issue, Queue, OrionClient, and Settings modules

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* refactor(mono): convert third-party and buckal-bundles init to script (#1876)

Signed-off-by: MYUU <1405758738@qq.com>
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* chore: move log models under buck2 types (#1878)

Signed-off-by: lvy010 <17338770572@163.com>
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* test(mono): add multi-user support and files-list API (#1881)

* test(mono): Add CL merge and update-branch integration test

Signed-off-by: miliu2cc <miliu2cc@gmail.com>

* test(mono): Add CL merge and update-branch integration test

Signed-off-by: miliu2cc <miliu2cc@gmail.com>

* test(mono): add multi-user support and files-list API

Signed-off-by: miliu2cc <miliu2cc@gmail.com>

* test(mono): add multi-user support and files-list API

Signed-off-by: miliu2cc <miliu2cc@gmail.com>

---------

Signed-off-by: miliu2cc <miliu2cc@gmail.com>
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* fix(script):cleanup per-repo .git after processing (#1884)

Signed-off-by: MYUU <1405758738@qq.com>
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* feat: implement build trigger system (#1880)

* feat: implement build trigger system

Signed-off-by: allure <1550220889@qq.com>

* feat: refactor build trigger system and fix error

Signed-off-by: allure <1550220889@qq.com>

---------

Signed-off-by: allure <1550220889@qq.com>
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* fix(orion): skip incompatible targets for buck2 builds (#1885)

Signed-off-by: jerry609 <1772030600@qq.com>
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* fixed(cl): update UI for checks log section (#1887)

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* refactor: some modules (#4)

* feat: add refactor orion module for migration

Signed-off-by: Wangyan <topshihun@foxmail.com>

* fix: add CL for build

Signed-off-by: Wangyan <topshihun@foxmail.com>

* refactor: some modules

Signed-off-by: Wangyan <topshihun@foxmail.com>

---------

Signed-off-by: Wangyan <topshihun@foxmail.com>
Signed-off-by: Aid_C <57825561+AidCheng@users.noreply.github.com>
Co-authored-by: Aid_C <57825561+AidCheng@users.noreply.github.com>
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* [buck2]REFACTOR: Integrate orion and orion server with generic api and model interface

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* FIX: use correct ProjectRelativePath crate

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* UPDATE: cargo fmt

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* [orion] Replace worker-server commun with WS msg

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* [orion]FIX: update branch and fix conflicts

* [Orion]FIX: workflow error

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* [orion]UPDATE: fix based on copilot suggestions

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* cargo fmt

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* UPDATE: temporary allow unused started at in build info

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* FIX: remove unused import

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* fmt

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

* [jupiter]REMOVE: duplicate migration

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Aid_C <57825561+AidCheng@users.noreply.github.com>

* [jupiter]FIX: temporary remove task.rs

Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>

---------

Signed-off-by: Wangyan <topshihun@foxmail.com>
Signed-off-by: Aid_C <57825561+AidCheng@users.noreply.github.com>
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>
Signed-off-by: jerry609 <1772030600@qq.com>
Signed-off-by: MYUU <1405758738@qq.com>
Signed-off-by: lvy010 <17338770572@163.com>
Signed-off-by: miliu2cc <miliu2cc@gmail.com>
Signed-off-by: allure <1550220889@qq.com>
Co-authored-by: TOP <89700178+topshihun@users.noreply.github.com>
Co-authored-by: Jerry Zhang <1772030600@qq.com>
Co-authored-by: TianYi <2739022972@qq.com>
Co-authored-by: zhaokang <zhaokang.r2cn@isrc.iscas.ac.cn>
Co-authored-by: MYUU <52773565+zhoujiaqi30@users.noreply.github.com>
Co-authored-by: lvy010 <17338770572@163.com>
Co-authored-by: miliu2cc <98928567+miliu2cc@users.noreply.github.com>
Co-authored-by: Yao <1550220889@qq.com>
Co-authored-by: zyd123-cmd <yingdong.r2cn@isrc.iscas.ac.cn>
Co-authored-by: Tianxing Ye <benjamin.747@outlook.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants