Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4584c8d65b | ||
|
|
69212ae01f | ||
|
|
068f91cd31 | ||
|
|
c5e9180404 |
No files matched your search
+18
-4
@@ -1,13 +1,26 @@
|
|||||||
when:
|
when:
|
||||||
event: [push, pull_request, manual]
|
- event: [pull_request, manual]
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
layout:
|
layout:
|
||||||
image: rust:1.100-bookworm
|
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5@sha256:8184439a201da451271f37596f4e38afeab16e044d7591853779887ef5ec28c1
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get install -y --no-install-recommends ca-certificates git python3
|
|
||||||
- python3 scripts/check-layout.py
|
- python3 scripts/check-layout.py
|
||||||
- python3 -m unittest discover -s tests/integration
|
- python3 -m unittest discover -s tests/integration
|
||||||
|
|
||||||
|
checkouts:
|
||||||
|
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5@sha256:8184439a201da451271f37596f4e38afeab16e044d7591853779887ef5ec28c1
|
||||||
|
depends_on: [layout]
|
||||||
|
when: &needs_candidate
|
||||||
|
- event: manual
|
||||||
|
- event: [push, pull_request]
|
||||||
|
path:
|
||||||
|
# Governance, executable Markdown, packaging and unknown paths stay in scope.
|
||||||
|
exclude: [README.md, 'docs/evidence/*.md']
|
||||||
|
on_empty: true
|
||||||
|
commands:
|
||||||
- git submodule update --init
|
- git submodule update --init
|
||||||
- |
|
- |
|
||||||
set -eu
|
set -eu
|
||||||
@@ -21,7 +34,8 @@ steps:
|
|||||||
candidate:
|
candidate:
|
||||||
# Match the Linux/glibc environment already used by View for the RC.4 artifact.
|
# Match the Linux/glibc environment already used by View for the RC.4 artifact.
|
||||||
image: mcr.microsoft.com/playwright:v1.49.0-noble
|
image: mcr.microsoft.com/playwright:v1.49.0-noble
|
||||||
depends_on: [layout]
|
depends_on: [checkouts]
|
||||||
|
when: *needs_candidate
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
set -eu
|
set -eu
|
||||||
|
|||||||
@@ -131,3 +131,5 @@ python3 -m unittest discover -s tests/integration
|
|||||||
[各仓库任务](docs/REPOSITORY-TASKS.md) · [组件目录](components.toml) · [架构边界](docs/ARCHITECTURE.md) · [开发流程](docs/DEVELOPMENT.md) · [迁移台账](docs/MIGRATION.md) · [架构决策记录](docs/adr/README.md) · [AGENTS](AGENTS.md)
|
[各仓库任务](docs/REPOSITORY-TASKS.md) · [组件目录](components.toml) · [架构边界](docs/ARCHITECTURE.md) · [开发流程](docs/DEVELOPMENT.md) · [迁移台账](docs/MIGRATION.md) · [架构决策记录](docs/adr/README.md) · [AGENTS](AGENTS.md)
|
||||||
|
|
||||||
旧版实现与文档可在历史标签查阅。 [v2.9.1 历史树](https://git.cflmy.cn/cflmy/marqdo/src/tag/v2.9.1)
|
旧版实现与文档可在历史标签查阅。 [v2.9.1 历史树](https://git.cflmy.cn/cflmy/marqdo/src/tag/v2.9.1)
|
||||||
|
|
||||||
|
根仓 CI 的触发条件见 [开发流程](docs/DEVELOPMENT.md#递归校验与组合检查)。
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# Lean shared Rust CI image: shell base + host-only Rust toolchain and a warm
|
||||||
|
# cargo cache. Cross targets, rust docs and unused manifests are stripped to
|
||||||
|
# keep the registry pull small. Published by immutable tag; components only run
|
||||||
|
# their own scripts/ci.sh.
|
||||||
|
FROM marqdo-ci-shell:3.0.0-rc.5
|
||||||
|
|
||||||
|
COPY rust-toolchain /opt/rust
|
||||||
|
COPY cargo-home /opt/cargo-home
|
||||||
|
ENV PATH=/opt/rust/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
||||||
|
CARGO_HOME=/opt/cargo-home
|
||||||
|
|
||||||
|
RUN cargo --version && rustc --version && cargo fmt --version && cargo clippy --version
|
||||||
+24
-21
@@ -1,24 +1,27 @@
|
|||||||
# Shared Web-domain CI image: Playwright base (Node 20/Chromium, glibc 2.39),
|
FROM ubuntu:24.04
|
||||||
# the published CLI/Bundle and the packaged preview web Tool. The domain runs
|
ENV DEBIAN_FRONTEND=noninteractive \
|
||||||
# its real browser acceptance without installing a Rust toolchain.
|
PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \
|
||||||
FROM mcr.microsoft.com/playwright:v1.49.0-noble
|
PLAYWRIGHT_DOWNLOAD_HOST=https://cdn.npmmirror.com/binaries/playwright \
|
||||||
|
NPM_CONFIG_REGISTRY=https://registry.npmmirror.com \
|
||||||
RUN apt-get update \
|
MARQDO_BIN=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo \
|
||||||
&& apt-get install -y --no-install-recommends ca-certificates curl git python3 \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
COPY marqdo.tar.gz /tmp/marqdo.tar.gz
|
|
||||||
COPY marqdo-web-preview.tgz /tmp/marqdo-web-preview.tgz
|
|
||||||
|
|
||||||
RUN mkdir -p /opt/marqdo /opt/web-tool \
|
|
||||||
&& tar -xzf /tmp/marqdo.tar.gz -C /opt/marqdo \
|
|
||||||
&& tar -xzf /tmp/marqdo-web-preview.tgz -C /opt/web-tool --strip-components=1 \
|
|
||||||
&& rm /tmp/marqdo.tar.gz /tmp/marqdo-web-preview.tgz
|
|
||||||
|
|
||||||
ENV MARQDO_BIN=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo \
|
|
||||||
MARQDO_STDLIB_DIR=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/stdlib \
|
MARQDO_STDLIB_DIR=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/stdlib \
|
||||||
MARQDO_WEB_TOOL_JSON=/opt/web-tool/tool.json \
|
MARQDO_WEB_TOOL_JSON=/opt/web-tool/tool.json \
|
||||||
PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \
|
|
||||||
MARQDO_CLI_VERSION=3.0.0-rc.5
|
MARQDO_CLI_VERSION=3.0.0-rc.5
|
||||||
|
RUN apt-get update \
|
||||||
RUN test -x "$MARQDO_BIN" && "$MARQDO_BIN" --version && test -f "$MARQDO_WEB_TOOL_JSON"
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
ca-certificates curl git python3 nodejs npm xz-utils unzip fonts-noto-cjk \
|
||||||
|
&& npm install -g playwright@1.49.0 \
|
||||||
|
&& npx playwright install-deps chromium \
|
||||||
|
&& curl -fsSL --retry 3 -o /tmp/chromium.zip "https://cdn.npmmirror.com/binaries/playwright/builds/chromium/1148/chromium-linux.zip" \
|
||||||
|
&& mkdir -p /ms-playwright/chromium-1148 \
|
||||||
|
&& unzip -q /tmp/chromium.zip -d /ms-playwright/chromium-1148 \
|
||||||
|
&& touch /ms-playwright/chromium-1148/INSTALLATION_COMPLETE \
|
||||||
|
&& rm /tmp/chromium.zip \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
COPY marqdo.tar.gz /tmp/marqdo.tar.gz
|
||||||
|
COPY marqdo-web-preview.tgz /tmp/web.tgz
|
||||||
|
RUN mkdir -p /opt/marqdo /opt/web-tool \
|
||||||
|
&& tar -xzf /tmp/marqdo.tar.gz -C /opt/marqdo \
|
||||||
|
&& tar -xzf /tmp/web.tgz -C /opt/web-tool --strip-components=1 \
|
||||||
|
&& rm /tmp/marqdo.tar.gz /tmp/web.tgz \
|
||||||
|
&& test -x "$MARQDO_BIN" && "$MARQDO_BIN" --version && test -f "$MARQDO_WEB_TOOL_JSON"
|
||||||
+1
-1
@@ -7,7 +7,7 @@ container registry, per released CLI version:
|
|||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| `git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5` | Ubuntu 24.04 (glibc 2.39), git/curl/python3/build tools, released CLI + Bundle (`MARQDO_BIN`/`MARQDO_STDLIB_DIR` preset) | standard library, extension, conformance and reconcile lanes |
|
| `git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5` | Ubuntu 24.04 (glibc 2.39), git/curl/python3/build tools, released CLI + Bundle (`MARQDO_BIN`/`MARQDO_STDLIB_DIR` preset) | standard library, extension, conformance and reconcile lanes |
|
||||||
| `git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5` | shell image + pinned Rust 1.100 toolchain (rustfmt/clippy) + warm cargo cache | Design/Preview and Rust tool lanes |
|
| `git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5` | shell image + pinned Rust 1.100 toolchain (rustfmt/clippy) + warm cargo cache | Design/Preview and Rust tool lanes |
|
||||||
| `git.cflmy.cn/cflmy/marqdo-ci-web:3.0.0-rc.5` (planned) | Playwright Chromium/Node + released CLI/Bundle + packaged preview web Tool | Web domain browser acceptance |
|
| `git.cflmy.cn/cflmy/marqdo-ci-web:3.0.0-rc.5` (digest `0cccda995d77...`) | Ubuntu 24.04 + Node/Playwright Chromium(npmmirror 二进制源)+ released CLI/Bundle + packaged preview web Tool | Web domain browser acceptance |
|
||||||
|
|
||||||
Rules:
|
Rules:
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ bash scripts/integration.sh # 生态候选:真实 CLI 制品 +
|
|||||||
- 校验器读取 Git tree 中固定提交的 catalog,不以工作区改动替代候选;`--checkouts` 需要子模块已初始化,缺失、错误 HEAD、脏工作区、错误入口都明确 FAIL/UNVERIFIED,不静默跳过。CI 先验证并检出直属子模块,再用 `--domain-paths` 校验领域的子模块远端,最后逐个领域检出直属子库。
|
- 校验器读取 Git tree 中固定提交的 catalog,不以工作区改动替代候选;`--checkouts` 需要子模块已初始化,缺失、错误 HEAD、脏工作区、错误入口都明确 FAIL/UNVERIFIED,不静默跳过。CI 先验证并检出直属子模块,再用 `--domain-paths` 校验领域的子模块远端,最后逐个领域检出直属子库。
|
||||||
- 没有 active 领域时,新校验规则同样接受合法的直属功能组件,这不是历史协议兼容。
|
- 没有 active 领域时,新校验规则同样接受合法的直属功能组件,这不是历史协议兼容。
|
||||||
- 未知的 active 入口、未声明的 gitlink、目录与 catalog 不一致都必须让候选失败。`planned` 不进入验收计数。
|
- 未知的 active 入口、未声明的 gitlink、目录与 catalog 不一致都必须让候选失败。`planned` 不进入验收计数。
|
||||||
- 当前 CI 为 `layout` 与 `candidate` 两段;统一 CLI 制品准备、声明驱动调度与递归影响分析仍在推进(见 `.woodpecker/eco.yml` 与主仓库工单),不得以本文件描述当作已实现。
|
- 根 `eco` 在 PR、`main` 推送和显式手动运行时执行。PR 始终保留 `layout` 状态。仅改动根 `README.md` 或 `docs/evidence/` 下的 Markdown 记录时,自动运行只执行轻量结构校验和脚本测试。混合改动、其他路径、缺失变更列表和手动运行都执行递归检出及完整生态验收。
|
||||||
|
|
||||||
## 三层验收
|
## 三层验收
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| `git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5` | `sha256:8184439a201d...` | Ubuntu 24.04/glibc 2.39、git/curl/python3/build 工具、已发布 CLI+Bundle(`MARQDO_BIN`/`MARQDO_STDLIB_DIR` 预置) | stdlib、extension、conformance、reconcile |
|
| `git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5` | `sha256:8184439a201d...` | Ubuntu 24.04/glibc 2.39、git/curl/python3/build 工具、已发布 CLI+Bundle(`MARQDO_BIN`/`MARQDO_STDLIB_DIR` 预置) | stdlib、extension、conformance、reconcile |
|
||||||
| `git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5` | `sha256:73481a353391...` | shell 镜像 + Rust 1.100(rustfmt/clippy)+ 预热 cargo cache | Design/Preview 与 Rust Tool |
|
| `git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5` | `sha256:73481a353391...` | shell 镜像 + Rust 1.100(rustfmt/clippy)+ 预热 cargo cache | Design/Preview 与 Rust Tool |
|
||||||
| `git.cflmy.cn/cflmy/marqdo-ci-web:3.0.0-rc.5` | 未发布(Playwright 基础镜像拉取超时) | 计划:Playwright/Node + CLI/Bundle + 打包 preview web Tool | Web 领域浏览器验收 |
|
| `git.cflmy.cn/cflmy/marqdo-ci-web:3.0.0-rc.5` | `sha256:0cccda995d77...` | Ubuntu 24.04 + Node 18/Playwright 1.49 Chromium(npmmirror 二进制源,`channel: chromium`)+ CLI/Bundle + 打包 preview web Tool | Web domain 浏览器验收(pipeline 1 **success**) |
|
||||||
|
|
||||||
- 镜像通过 `ci/images/build.sh [--push]` 从**已发布 rc.5 CLI 归档**(sha256 固定)与固定预览包构建;标签不可变,按 CLI 版本发布;公开匿名拉取,CI 不需要 registry push 凭据。
|
- 镜像通过 `ci/images/build.sh [--push]` 从**已发布 rc.5 CLI 归档**(sha256 固定)与固定预览包构建;标签不可变,按 CLI 版本发布;公开匿名拉取,CI 不需要 registry push 凭据。
|
||||||
- 单仓工作流因此只剩本仓入口命令;例如 stdlib/extension/conformance 为:
|
- 单仓工作流因此只剩本仓入口命令;例如 stdlib/extension/conformance 为:
|
||||||
@@ -22,6 +22,18 @@
|
|||||||
```
|
```
|
||||||
Rust 组件为 `marqdo-ci-rust` + `scripts/ci.sh`。CLI/根仍保留各自专用镜像与门禁(CLI Windows 交叉、根 Playwright/Docker 冷安装),属有限例外。
|
Rust 组件为 `marqdo-ci-rust` + `scripts/ci.sh`。CLI/根仍保留各自专用镜像与门禁(CLI Windows 交叉、根 Playwright/Docker 冷安装),属有限例外。
|
||||||
|
|
||||||
|
## 实际流水线结果(2026-11-27 本机观测)
|
||||||
|
|
||||||
|
| lane | 结果 |
|
||||||
|
| --- | --- |
|
||||||
|
| stdlib ×6 / extension ×3 / conformance(shell 镜像) | push/PR/manual lane **success**(例:conformance #12、std-text #12、collections #12、data #11、fs #11、io #11、system #11、ext-http #11、ext-regex #11、ext-archive #11) |
|
||||||
|
| Design / Preview(rust 镜像) | pipeline 6/7 **success** |
|
||||||
|
| knowledge / lint / prove(rust 镜像) | pipeline 22 / 12 / 17 **success** |
|
||||||
|
| View(rust 构建 + Playwright 浏览器两步) | pipeline 24 **success**(rc.5 CLI 适配) |
|
||||||
|
| Web domain(web 镜像:三案例 + 生产 API/Chromium E2E) | pipeline 1 **success** |
|
||||||
|
| 根 release 对账 | manual #71 **success**(创建 rc.5 追踪 Issue #22);cron #72 **success**(幂等 tracked) |
|
||||||
|
| 发布快速通知 | 临时 release 触发 std-text release pipeline #23 **success** → 根 manual #73 **success** 并创建追踪 Issue;测试 release/tag/Issue 已清理 |
|
||||||
|
|
||||||
## Woodpecker 接入
|
## Woodpecker 接入
|
||||||
|
|
||||||
- 19 个仓库已在 Woodpecker 激活(std ×6、ext ×3、conformance、Design/Preview、tool ×4、ext-web domain、根、CLI)。
|
- 19 个仓库已在 Woodpecker 激活(std ×6、ext ×3、conformance、Design/Preview、tool ×4、ext-web domain、根、CLI)。
|
||||||
@@ -40,7 +52,7 @@
|
|||||||
|
|
||||||
## 未完成 / 限制
|
## 未完成 / 限制
|
||||||
|
|
||||||
- `marqdo-ci-web` 未发布:本地拉取 Playwright 基础镜像超时;Web 领域 CI lane 与浏览器验收仍待该镜像或等价的 runner 缓存方案。当前 Web 组件已有 Design/Preview 的 Rust image lane,domain 只有入口脚本。
|
- `marqdo-ci-web` 已改为 Ubuntu + Node/Playwright Chromium(npmmirror 镜像源,避免 MCR 拉取超时)并发布;Web domain pipeline 1 success。ghproxy `https://ghproxy.cflmy.top` 对 GitHub 资源可用,但本轮浏览器资源使用 npmmirror,未依赖 ghproxy。
|
||||||
- Tool(view/knowledge/lint/prove)仍保留既有工作流/镜像,尚未全部迁到共享镜像;需在验证后统一。
|
- View 已迁到 rust + Playwright 两步;knowledge/lint/prove 已迁到共享 rust 镜像。
|
||||||
- 组件 release 发布工作流(source archive/tool bundle 上传 + 快速通知)尚未全部落地;当前 CLI rc.5 已发布,reconcile 可追踪新发布。
|
- 组件 release 发布工作流(source archive/tool bundle 上传 + 快速通知)尚未全部落地;当前 CLI rc.5 已发布,reconcile 可追踪新发布。
|
||||||
- registry 镜像 digest/扫描策略、runner 拉取缓存与多架构未验证;CI 账号最小权限仍沿用现有项目 token(M0 记录限制)。
|
- registry 镜像 digest/扫描策略、runner 拉取缓存与多架构未验证;CI 账号最小权限仍沿用现有项目 token(M0 记录限制)。
|
||||||
+1
-1
Submodule extensions/archive updated: 3e01878584...9af27f0eb6.
+1
-1
Submodule extensions/http updated: 32a15fac65...a42db224e9.
+1
-1
Submodule extensions/regex updated: c81c4746d8...a9088ae457.
+1
-1
Submodule extensions/web updated: 246ef7692c...a3ddccd8a4.
+1
-1
Submodule stdlib/collections updated: a04aa949f5...60f0e82737.
+1
-1
Submodule stdlib/data updated: b9bf22b19e...0775c1af3c.
+1
-1
Submodule stdlib/fs updated: 39a7846c51...ef9e1a8cad.
+1
-1
Submodule stdlib/io updated: b4f097bf9e...efcf1a0fb4.
+1
-1
Submodule stdlib/system updated: 890ed7a8b4...cfe98c6339.
+1
-1
Submodule stdlib/text updated: f4e51b504f...161600102d.
+1
-1
Submodule tests/conformance updated: d617894bac...4a6f564ea5.
+1
-1
Submodule tools/knowledge updated: 6e88100089...a1a223f53f.
+1
-1
Submodule tools/lint updated: aa0bdac7de...c21e1a9d8a.
+1
-1
Submodule tools/prove updated: e9fce68551...5201d8b6a3.
+1
-1
Submodule tools/view updated: 48e5309358...13f89f758d.
Reference in new issue
Block a user