droboticflow/docs/feature-overview-playwright-validation-2026-04-15.html
2026-06-16 20:06:00 +08:00

669 lines
20 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Drobodata 功能介绍与线上验收报告</title>
<style>
:root {
--bg: #0a0d14;
--panel: rgba(20, 26, 38, 0.88);
--panel-strong: #101826;
--text: #edf3ff;
--muted: #9fb2d0;
--line: rgba(125, 161, 224, 0.16);
--blue: #4d8dff;
--cyan: #59d2ff;
--green: #49d17d;
--amber: #f4b84e;
--shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
background:
radial-gradient(circle at top left, rgba(77, 141, 255, 0.2), transparent 28%),
radial-gradient(circle at top right, rgba(89, 210, 255, 0.14), transparent 24%),
linear-gradient(180deg, #08101d 0%, #0a0d14 36%, #0d111a 100%);
color: var(--text);
}
a {
color: inherit;
}
.shell {
width: min(1200px, calc(100vw - 32px));
margin: 0 auto;
}
.hero {
padding: 56px 0 32px;
}
.hero-card {
position: relative;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 28px;
background:
linear-gradient(135deg, rgba(19, 34, 62, 0.94), rgba(12, 17, 28, 0.92)),
linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
box-shadow: var(--shadow);
padding: 40px;
}
.hero-card::before {
content: "";
position: absolute;
inset: auto -10% -35% auto;
width: 340px;
height: 340px;
border-radius: 50%;
background: radial-gradient(circle, rgba(89, 210, 255, 0.22), transparent 68%);
pointer-events: none;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 8px 14px;
border-radius: 999px;
background: rgba(77, 141, 255, 0.12);
color: #b4d0ff;
font-size: 13px;
letter-spacing: 0.06em;
text-transform: uppercase;
}
h1 {
margin: 18px 0 16px;
max-width: 780px;
font-size: clamp(34px, 5vw, 56px);
line-height: 1.06;
letter-spacing: -0.03em;
}
.hero p {
margin: 0;
max-width: 760px;
color: var(--muted);
font-size: 17px;
line-height: 1.8;
}
.hero-actions,
.anchor-row {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.hero-actions {
margin-top: 26px;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 44px;
padding: 0 18px;
border-radius: 999px;
border: 1px solid transparent;
text-decoration: none;
font-weight: 600;
}
.btn-primary {
background: linear-gradient(135deg, var(--blue), #2461d8);
color: white;
}
.btn-secondary {
border-color: rgba(140, 177, 244, 0.22);
background: rgba(255, 255, 255, 0.03);
color: #d7e5ff;
}
.metrics {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
margin-top: 28px;
}
.metric {
border: 1px solid var(--line);
border-radius: 22px;
background: rgba(255, 255, 255, 0.035);
padding: 18px 18px 16px;
}
.metric strong {
display: block;
margin-top: 8px;
font-size: 30px;
letter-spacing: -0.03em;
}
.metric span {
color: var(--muted);
font-size: 13px;
}
main {
padding-bottom: 80px;
}
section {
margin-top: 28px;
border: 1px solid var(--line);
border-radius: 28px;
background: var(--panel);
box-shadow: var(--shadow);
padding: 30px;
backdrop-filter: blur(8px);
}
section h2 {
margin: 0 0 10px;
font-size: 28px;
letter-spacing: -0.02em;
}
section > p,
section li,
section td,
section th {
color: var(--muted);
line-height: 1.8;
}
.intro-grid,
.card-grid,
.gallery {
display: grid;
gap: 18px;
}
.intro-grid {
grid-template-columns: 1.2fr 0.8fr;
align-items: start;
}
.card-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
border: 1px solid var(--line);
border-radius: 24px;
padding: 22px;
background: rgba(255, 255, 255, 0.025);
}
.card h3 {
margin: 0 0 10px;
font-size: 20px;
}
.tag {
display: inline-flex;
align-items: center;
margin-bottom: 12px;
padding: 6px 10px;
border-radius: 999px;
font-size: 12px;
background: rgba(73, 209, 125, 0.12);
color: #aef0c6;
}
.warning {
border-left: 4px solid var(--amber);
padding-left: 16px;
color: #e4c684;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 12px;
overflow: hidden;
border-radius: 18px;
}
th,
td {
padding: 14px 16px;
border-bottom: 1px solid rgba(140, 177, 244, 0.1);
text-align: left;
vertical-align: top;
}
th {
color: #d7e5ff;
font-size: 14px;
background: rgba(255, 255, 255, 0.03);
}
tbody tr:last-child td {
border-bottom: none;
}
.gallery {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
figure {
margin: 0;
border: 1px solid var(--line);
border-radius: 22px;
overflow: hidden;
background: rgba(7, 10, 16, 0.85);
}
figure img {
display: block;
width: 100%;
height: auto;
}
figcaption {
padding: 14px 16px 16px;
}
figcaption strong {
display: block;
margin-bottom: 6px;
color: #edf3ff;
}
.video-wrap {
border: 1px solid var(--line);
border-radius: 24px;
overflow: hidden;
background: #070b12;
}
video {
display: block;
width: 100%;
height: auto;
background: black;
}
.small {
font-size: 14px;
}
.footer {
padding: 22px 0 10px;
color: #8ea4c6;
font-size: 13px;
}
@media (max-width: 980px) {
.metrics,
.intro-grid,
.card-grid,
.gallery {
grid-template-columns: 1fr;
}
.hero-card,
section {
padding: 24px;
}
}
</style>
</head>
<body>
<div class="shell">
<header class="hero">
<div class="hero-card">
<div class="eyebrow">Drobodata Platform Validation</div>
<h1>Drobodata 功能介绍与线上验收报告</h1>
<p>
本页基于 2026-04-15 对 Kubernetes 部署环境
<code><deployed-api-base-url></code>
的真实验收结果生成。内容同时包含功能说明、Playwright 回归范围、页面截图和一份可回放的录屏。
</p>
<div class="hero-actions">
<a class="btn btn-primary" href="../output/playwright/playwright-functional-check.webm">打开演示视频</a>
<a class="btn btn-secondary" href="./feature-overview-playwright-validation-2026-04-15.md">查看 Markdown 报告</a>
<a class="btn btn-secondary" href="#coverage">跳转测试覆盖</a>
</div>
<div class="metrics">
<div class="metric">
<span>活跃项目</span>
<strong>11</strong>
</div>
<div class="metric">
<span>已注册算子</span>
<strong>26</strong>
</div>
<div class="metric">
<span>当日 Run</span>
<strong>33</strong>
</div>
<div class="metric">
<span>通过结论</span>
<strong style="color: var(--green)">核心链路通过</strong>
</div>
</div>
</div>
</header>
<main>
<section>
<div class="intro-grid">
<div>
<h2>报告摘要</h2>
<p>
当前线上环境已经具备作为演示和持续开发基础的完整主链路:项目创建、工作流编排、BOS 扫描、Kubernetes Job
执行、人工审核、执行监控、模板沉淀与复用都已被真实跑通。
</p>
<div class="anchor-row" style="margin-top: 18px">
<a class="btn btn-secondary" href="#modules">功能模块</a>
<a class="btn btn-secondary" href="#workflow">工作流主链路</a>
<a class="btn btn-secondary" href="#screens">关键截图</a>
</div>
</div>
<div class="card">
<div class="tag">环境快照</div>
<p class="small">
BOS 连接:2<br />
业务 Mongo 连接:4<br />
模板:6<br />
源数据集合:0<br />
成品包:0<br />
抽检任务:0
</p>
<p class="warning small">
线上环境仍保留 <code>k8s.enabled</code> 与“启用 K8s 调度”开关,尚未完全同步到当前仓库的 Kubernetes-only 设计。
</p>
</div>
</div>
</section>
<section id="modules">
<h2>一级功能模块</h2>
<table>
<thead>
<tr>
<th>模块</th>
<th>入口</th>
<th>核心能力</th>
<th>验证结果</th>
</tr>
</thead>
<tbody>
<tr>
<td>仪表盘</td>
<td><code>/</code></td>
<td>聚合项目、算子、作业和审核概览</td>
<td>通过</td>
</tr>
<tr>
<td>项目管理</td>
<td><code>/projects</code></td>
<td>创建项目并承载工作流资产</td>
<td>通过</td>
</tr>
<tr>
<td>工作流编辑器</td>
<td><code>/workflow/:id</code></td>
<td>DAG 编排、保存、运行、边产物查看</td>
<td>通过</td>
</tr>
<tr>
<td>算子管理</td>
<td><code>/operators</code></td>
<td>内置算子浏览与自定义算子 CRUD</td>
<td>通过</td>
</tr>
<tr>
<td>工作流模板</td>
<td><code>/templates</code></td>
<td>模板导出、搜索、复用</td>
<td>通过</td>
</tr>
<tr>
<td>执行监控</td>
<td><code>/monitoring</code></td>
<td>Run 列表、日志、资源、产出数据</td>
<td>通过</td>
</tr>
<tr>
<td>任务审核</td>
<td><code>/audit</code></td>
<td>人工审核节点的 approve / reject</td>
<td>通过</td>
</tr>
<tr>
<td>业务数据库</td>
<td><code>/database</code></td>
<td>Mongo 连接、集合、索引和查询</td>
<td>通过</td>
</tr>
<tr>
<td>对象存储</td>
<td><code>/object-storage</code></td>
<td>BOS 连接、目录浏览、对象操作</td>
<td>通过</td>
</tr>
<tr>
<td>数据资产 / 抽检</td>
<td><code>/data-assets</code> / <code>/sampling</code></td>
<td>结果查看与质量抽检入口</td>
<td>页面可用,当前环境无样例数据</td>
</tr>
<tr>
<td>用户与系统配置</td>
<td><code>/users</code> / <code>/settings</code></td>
<td>角色管理、K8s/Worker/时区/AI 配置</td>
<td>通过</td>
</tr>
</tbody>
</table>
</section>
<section id="workflow">
<h2>工作流主链路</h2>
<div class="card-grid">
<article class="card">
<div class="tag">场景 A</div>
<h3>BOS 增量扫描工作流</h3>
<p>
实测添加 <code>BOS 增量扫描</code> 算子,配置连接、Bucket 和 Prefix,收藏常用路径,触发运行并验证增量状态写入与重置。
</p>
<p class="small">
结论:对象存储接入、收藏路径和 checkpoint 状态管理已经形成闭环。
</p>
</article>
<article class="card">
<div class="tag">场景 B</div>
<h3>普通处理工作流</h3>
<p>
实测 <code>真实数据源 -&gt; 人工审核 -&gt; 结果上传</code>
链路,从编辑器直接启动 Run,经审核页处理后完成下游推进。
</p>
<p class="small">
结论:编辑器、Run、审核、监控之间的数据流和控制流是连通的。
</p>
</article>
</div>
</section>
<section id="coverage">
<h2>Playwright 覆盖范围</h2>
<table>
<thead>
<tr>
<th>验证项</th>
<th>动作</th>
<th>结果</th>
</tr>
</thead>
<tbody>
<tr>
<td>系统配置保存</td>
<td>修改轮询间隔并保存,再改回原值</td>
<td>通过</td>
</tr>
<tr>
<td>算子 CRUD</td>
<td>创建、编辑、搜索、删除自定义算子</td>
<td>通过</td>
</tr>
<tr>
<td>BOS 扫描工作流</td>
<td>创建、配置、收藏路径、运行、重置状态</td>
<td>通过</td>
</tr>
<tr>
<td>普通工作流执行</td>
<td>编辑器内发起运行并停留当前页面</td>
<td>通过</td>
</tr>
<tr>
<td>人工审核</td>
<td>分别验证 approve 与 reject</td>
<td>通过</td>
</tr>
<tr>
<td>执行监控</td>
<td>搜索 Run,打开日志、资源和产出数据</td>
<td>通过</td>
</tr>
<tr>
<td>边输出面板</td>
<td>验证 running / completed / failed 三种状态</td>
<td>通过</td>
</tr>
<tr>
<td>模板复用</td>
<td>导出模板、搜索模板、回填到项目</td>
<td>通过</td>
</tr>
<tr>
<td>用户管理</td>
<td>创建、编辑、删除用户</td>
<td>通过</td>
</tr>
</tbody>
</table>
<p class="small">
执行命令:
<code>PLAYWRIGHT_SOURCE_PATH=&lt;path-visible-to-operator-runner&gt; BASE_URL=&lt;deployed-api-base-url&gt; node scripts/playwright-functional-check.mjs</code>
</p>
<p class="small">
<code>PLAYWRIGHT_SOURCE_PATH</code> 必须指向 operator-runner 可读取的真实数据路径;脚本会把
<code>bos://bucket/prefix</code> 自动识别为 <code>BOS</code>,其余文件系统或 PVC 路径识别为
<code>LOCAL</code>。历史的 <code>PLAYWRIGHT_SOURCE_DATA_SOURCE=FILESYSTEM</code> 会归一为
<code>LOCAL</code>;只有需要覆盖自动推断时才设置 <code>PLAYWRIGHT_SOURCE_DATA_SOURCE</code>。
</p>
</section>
<section id="screens">
<h2>关键截图</h2>
<div class="gallery">
<figure>
<img src="../output/playwright/01-dashboard.png" alt="仪表盘" />
<figcaption>
<strong>仪表盘</strong>
活跃项目、算子数和当日 Job 执行概览。
</figcaption>
</figure>
<figure>
<img src="../output/playwright/03-operators.png" alt="算子管理" />
<figcaption>
<strong>算子管理</strong>
内置算子和自定义算子统一管理。
</figcaption>
</figure>
<figure>
<img src="../output/playwright/10-workflow-editor-scan.png" alt="BOS 扫描工作流" />
<figcaption>
<strong>BOS 增量扫描</strong>
对象存储输入源配置与增量扫描入口。
</figcaption>
</figure>
<figure>
<img src="../output/playwright/11-workflow-editor.png" alt="普通工作流编辑器" />
<figcaption>
<strong>工作流编辑器</strong>
DAG 编排、保存、执行和工作流配置切换。
</figcaption>
</figure>
<figure>
<img src="../output/playwright/12-monitoring.png" alt="执行监控" />
<figcaption>
<strong>执行监控</strong>
Run 检索、状态跟踪和结果查看。
</figcaption>
</figure>
<figure>
<img src="../output/playwright/15-audit.png" alt="任务审核" />
<figcaption>
<strong>任务审核</strong>
人工审核任务列表与审核工作区。
</figcaption>
</figure>
</div>
</section>
<section>
<h2>演示视频</h2>
<div class="video-wrap">
<video controls preload="metadata" src="../output/playwright/playwright-functional-check.webm"></video>
</div>
<p class="small" style="margin-top: 14px">
如果当前环境无法直接内嵌播放,请改用
<a href="../output/playwright/playwright-functional-check.webm">独立打开视频文件</a>。
</p>
</section>
<section>
<h2>当前建议</h2>
<div class="card-grid">
<article class="card">
<div class="tag">部署一致性</div>
<h3>同步 Kubernetes-only 配置语义</h3>
<p>
建议下一次发布时移除线上设置页中的 <code>k8s.enabled</code> 旧语义,避免用户误解为仍支持本地模式切换。
</p>
</article>
<article class="card">
<div class="tag">演示完整度</div>
<h3>补齐数据资产与抽检样例</h3>
<p>
当前环境的源数据、成品数据和抽检任务为空。补一套最小演示数据后,数据资产模块的说明会更完整。
</p>
</article>
</div>
</section>
<div class="footer">
生成时间:2026-04-15 · 关联材料:
<a href="./feature-overview-playwright-validation-2026-04-15.md">Markdown 报告</a>
·
<a href="../output/playwright/">Playwright 产物目录</a>
</div>
</main>
</div>
</body>
</html>