Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35234edb3f | ||
|
|
69212ae01f | ||
|
|
068f91cd31 |
No files matched your search
+22
-11
@@ -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
|
||||||
@@ -19,14 +32,14 @@ steps:
|
|||||||
- python3 scripts/check-repo-conventions.py
|
- python3 scripts/check-repo-conventions.py
|
||||||
|
|
||||||
candidate:
|
candidate:
|
||||||
# Match the Linux/glibc environment already used by View for the RC.4 artifact.
|
image: git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5@sha256:73481a35339157b1a3f3b23076517e96e302fbb5158e6ffcb1582acf22c6af94
|
||||||
image: mcr.microsoft.com/playwright:v1.49.0-noble
|
depends_on: [checkouts]
|
||||||
depends_on: [layout]
|
when: *needs_candidate
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
set -eu
|
set -eu
|
||||||
for attempt in 1 2 3; do
|
for attempt in 1 2 3; do
|
||||||
if apt-get -o Acquire::By-Hash=force -o Acquire::Retries=3 update --error-on=any; then
|
if apt-get -o Acquire::By-Hash=force -o Acquire::http::Timeout=30 update --error-on=any; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
if [ "$attempt" -eq 3 ]; then
|
if [ "$attempt" -eq 3 ]; then
|
||||||
@@ -34,8 +47,6 @@ steps:
|
|||||||
fi
|
fi
|
||||||
sleep 15
|
sleep 15
|
||||||
done
|
done
|
||||||
apt-get -o Acquire::Retries=3 install -y --no-install-recommends ca-certificates curl git python3 python3-jsonschema build-essential
|
apt-get -o Acquire::Retries=3 -o Acquire::http::Timeout=30 install -y --no-install-recommends python3-jsonschema util-linux
|
||||||
curl -fsSL --retry 3 https://sh.rustup.rs -o /tmp/marqdo-rustup.sh
|
unset MARQDO_BIN MARQDO_STDLIB_DIR
|
||||||
sh /tmp/marqdo-rustup.sh -y --profile minimal --default-toolchain 1.100.0 --no-modify-path
|
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
|
||||||
bash scripts/integration.sh
|
bash scripts/integration.sh
|
||||||
+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"
|
||||||
+4
-5
@@ -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:
|
||||||
|
|
||||||
@@ -16,9 +16,8 @@ Rules:
|
|||||||
- Images are public for anonymous pull; CI never needs registry push credentials.
|
- Images are public for anonymous pull; CI never needs registry push credentials.
|
||||||
- Component lanes contain only their own `scripts/*` entry command. No per-repo
|
- Component lanes contain only their own `scripts/*` entry command. No per-repo
|
||||||
image variance, apt installs, Rust toolchain downloads or CLI rebuilds.
|
image variance, apt installs, Rust toolchain downloads or CLI rebuilds.
|
||||||
- Core CLI keeps its specialized Rust/Windows-cross gates; the root ecosystem
|
- Core CLI keeps its specialized Rust/Windows-cross gates. The root ecosystem
|
||||||
candidate keeps its Playwright/rustup image because it must build consumers and
|
candidate uses the shared Rust toolchain to build the fixed CLI/Worker/Bundle
|
||||||
run Docker archive checks. These two exceptions are documented in the
|
combination. View and Web keep browser coverage in their own workflows.
|
||||||
repository conventions, not copied per component.
|
|
||||||
- The images are CI infrastructure, not product releases; their provenance is
|
- The images are CI infrastructure, not product releases; their provenance is
|
||||||
recorded here and in `docs/evidence/`.
|
recorded here and in `docs/evidence/`.
|
||||||
+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 为:
|
||||||
@@ -30,6 +30,7 @@
|
|||||||
| Design / Preview(rust 镜像) | pipeline 6/7 **success** |
|
| Design / Preview(rust 镜像) | pipeline 6/7 **success** |
|
||||||
| knowledge / lint / prove(rust 镜像) | pipeline 22 / 12 / 17 **success** |
|
| knowledge / lint / prove(rust 镜像) | pipeline 22 / 12 / 17 **success** |
|
||||||
| View(rust 构建 + Playwright 浏览器两步) | pipeline 24 **success**(rc.5 CLI 适配) |
|
| 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 对账 | 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 已清理 |
|
| 发布快速通知 | 临时 release 触发 std-text release pipeline #23 **success** → 根 manual #73 **success** 并创建追踪 Issue;测试 release/tag/Issue 已清理 |
|
||||||
|
|
||||||
@@ -51,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。
|
||||||
- View 已迁到 rust + Playwright 两步;knowledge/lint/prove 已迁到共享 rust 镜像。
|
- 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/web updated: b11cbeac57...a3ddccd8a4.
Reference in new issue
Block a user