Порівняти коміти

..
Автор SHA1 Повідомлення Дата
l0ng-ai fa12000bcf build: use thin LTO for release builds
Fat LTO's whole-program link outgrew the 16 GB release runners: from
v0.1.39 on, the Linux arm64 build was killed mid-link and had to be rebuilt
with thin LTO by hand. Thin LTO keeps most of the optimisation at a fraction
of the link memory and time.
2026-11-09 22:04:40 +08:00
LU XIANGRUIтаLU XIANGRUI 4c6ebc865e test(markdown): 为 Mermaid 流程图与时序图控制块纯黑补回归测试 (#2363)
- 用 issue 中的流程图原样渲染,断言节点和 subgraph 不是纯黑
- 补时序图 loop 控制块(.labelBox)的断言,#2288 的用例只覆盖了 cluster

Co-authored-by: LU XIANGRUI <[email protected]>
2026-11-09 21:54:41 +08:00
3 змінених файлів з 48 додано та 7 видалено

No files matched your search

+18 -6
Переглянути файл
@@ -12,7 +12,7 @@ permissions:
contents: write
concurrency:
group: release-${{ github.event.inputs.tag || github.ref_name }}-linux-arm64
group: release-${{ github.event.inputs.tag || github.ref_name }}
env:
CARGO_TERM_COLOR: always
@@ -70,6 +70,7 @@ jobs:
const releases = await github.paginate(github.rest.repos.listReleases, { owner, repo });
const existing = releases.find((r) => r.tag_name === tag);
if (existing) {
if (!existing.draft) core.setFailed(`release ${tag} is already published`);
core.setOutput("id", existing.id);
return;
}
@@ -84,15 +85,28 @@ jobs:
name: Build (${{ matrix.name }})
env:
OPENIDEA_OFFICIAL_PLUGIN_KEYS: ${{ needs.create-release.outputs.official_plugin_keys }}
CARGO_PROFILE_RELEASE_LTO: thin
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: "16"
strategy:
fail-fast: false
matrix:
include:
- name: macOS arm64
os: macos-latest
target: aarch64-apple-darwin
- name: macOS x64
os: macos-latest
target: x86_64-apple-darwin
- name: Linux x64
os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
- name: Linux arm64
os: ubuntu-22.04-arm
target: aarch64-unknown-linux-gnu
- name: Windows arm64
os: windows-11-arm
target: aarch64-pc-windows-msvc
- name: Windows x64
os: windows-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
@@ -180,7 +194,6 @@ jobs:
# Linux builds are static (musl), so they run whatever the host's glibc.
server:
needs: create-release
if: false
name: Server (${{ matrix.os }}-${{ matrix.arch }})
strategy:
fail-fast: false
@@ -228,7 +241,6 @@ jobs:
# checks run.
plugins:
needs: create-release
if: false
name: Official plugins
runs-on: ubuntu-22.04
env:
@@ -354,7 +366,7 @@ jobs:
core.info(`latest.json: ${Object.keys(platforms).sort().join(", ")}`);
publish:
needs: [create-release, build, updater-manifest]
needs: [create-release, build, server, plugins, updater-manifest]
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v8
+3 -1
Переглянути файл
@@ -132,7 +132,9 @@ debug = false
[profile.release]
codegen-units = 1
lto = true
# Thin LTO: fat LTO's whole-program link outgrew the 16 GB release runners
# (Linux arm64 was killed mid-link from v0.1.39 on).
lto = "thin"
opt-level = 3
# Unwind, so a panic fails one task or command instead of quitting the IDE.
panic = "unwind"
+27
Переглянути файл
@@ -360,3 +360,30 @@ test("keeps mermaid `<style>` rules scoped to the rendered svg after id rewritin
expect(await css(reply, ".cluster rect", "fill")).not.toBe("rgb(0, 0, 0)");
expect(await css(reply, ".flowchart-link", "fill")).toBe("none");
});
test("keeps mermaid flowchart nodes and sequence control blocks off solid black", async ({ page }) => {
const flow = [
"```mermaid",
"flowchart LR",
' subgraph Client["Client"]',
' A["Local agent"]',
' B["Voice input"]',
" end",
' subgraph Cloud["Cloud"]',
' C["Cloud agent"]',
' D["Memory service"]',
" end",
" B --> A",
" A --> C",
" C --> D",
"```",
].join("\n");
const sequence = ["```mermaid", "sequenceDiagram", " loop every minute", " A->>B: ping", " end", "```"].join(
"\n",
);
const reply = await openReply(page, `Flow:\n\n${flow}\n\nSequence:\n\n${sequence}`);
await expect(reply.locator("[data-mermaid-state='ok'] .mermaid-output svg")).toHaveCount(2);
expect(await css(reply, ".node rect", "fill")).not.toBe("rgb(0, 0, 0)");
expect(await css(reply, ".cluster rect", "fill")).not.toBe("rgb(0, 0, 0)");
expect(await css(reply, ".labelBox", "fill")).not.toBe("rgb(0, 0, 0)");
});