From 068f91cd31da56f9b1859630580e3dbabd798b8b Mon Sep 17 00:00:00 2001 From: cflmy Date: Fri, 27 Nov 2026 16:17:23 +0800 Subject: [PATCH] ci: publish the web CI image and run the domain browser lane - Update ci/images/Dockerfile.web to build from Ubuntu 24.04 + Node/Playwright Chromium from the domestic npmmirror binary source (the MCR base pull was too slow) and use the full Chromium channel (headless-shell asset is absent from the mirror). - Pin the Web domain to marqdo-ci-web:3.0.0-rc.5 (digest 0cccda99...) and fix the ext-web gitlink to its domain CI commit; pipeline 1 passed all three cases and the production API/Chromium E2E. - Evidence records the image digest, pipeline result and the ghproxy/npmmirror mirror decision. Refs cflmy/marqdo#10 --- ci/images/Dockerfile.web | 45 ++++++++++--------- ci/images/README.md | 2 +- .../2026-11-27-ci-images-reconcile.md | 5 ++- extensions/web | 2 +- 4 files changed, 29 insertions(+), 25 deletions(-) diff --git a/ci/images/Dockerfile.web b/ci/images/Dockerfile.web index fffe2e6..98377d9 100644 --- a/ci/images/Dockerfile.web +++ b/ci/images/Dockerfile.web @@ -1,24 +1,27 @@ -# Shared Web-domain CI image: Playwright base (Node 20/Chromium, glibc 2.39), -# the published CLI/Bundle and the packaged preview web Tool. The domain runs -# its real browser acceptance without installing a Rust toolchain. -FROM mcr.microsoft.com/playwright:v1.49.0-noble - -RUN apt-get update \ - && 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 \ +FROM ubuntu:24.04 +ENV DEBIAN_FRONTEND=noninteractive \ + PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \ + PLAYWRIGHT_DOWNLOAD_HOST=https://cdn.npmmirror.com/binaries/playwright \ + NPM_CONFIG_REGISTRY=https://registry.npmmirror.com \ + 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_WEB_TOOL_JSON=/opt/web-tool/tool.json \ - PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \ MARQDO_CLI_VERSION=3.0.0-rc.5 - -RUN test -x "$MARQDO_BIN" && "$MARQDO_BIN" --version && test -f "$MARQDO_WEB_TOOL_JSON" +RUN apt-get update \ + && 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" diff --git a/ci/images/README.md b/ci/images/README.md index 5337f83..99edf11 100644 --- a/ci/images/README.md +++ b/ci/images/README.md @@ -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-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: diff --git a/docs/evidence/2026-11-27-ci-images-reconcile.md b/docs/evidence/2026-11-27-ci-images-reconcile.md index 7e9d99f..891952e 100644 --- a/docs/evidence/2026-11-27-ci-images-reconcile.md +++ b/docs/evidence/2026-11-27-ci-images-reconcile.md @@ -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-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 凭据。 - 单仓工作流因此只剩本仓入口命令;例如 stdlib/extension/conformance 为: @@ -30,6 +30,7 @@ | 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 已清理 | @@ -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 镜像。 - 组件 release 发布工作流(source archive/tool bundle 上传 + 快速通知)尚未全部落地;当前 CLI rc.5 已发布,reconcile 可追踪新发布。 - registry 镜像 digest/扫描策略、runner 拉取缓存与多架构未验证;CI 账号最小权限仍沿用现有项目 token(M0 记录限制)。 diff --git a/extensions/web b/extensions/web index b11cbea..a3ddccd 160000 --- a/extensions/web +++ b/extensions/web @@ -1 +1 @@ -Subproject commit b11cbeac572cad4160a905eaf2bed968937b1c0b +Subproject commit a3ddccd8a434706bcb28fdbf50c3cc99b5f0e692 -- 2.54.1