Compare commits
3
Commits
d8fa201b28
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1a223f53f | ||
|
|
917c12e760 | ||
|
|
6e88100089 |
No files matched your search
@@ -0,0 +1,23 @@
|
||||
# Unified Woodpecker CI for a Rust Marqdo Tool.
|
||||
#
|
||||
# One published `marqdo-ci-rust` image contains the pinned toolchain and the
|
||||
# released CLI/Bundle (`MARQDO_BIN`, `MARQDO_STDLIB_DIR` preset); the lane only
|
||||
# runs this repository's own checks. No per-run rustup/apt/CLI download.
|
||||
when:
|
||||
event: [push, pull_request, manual]
|
||||
|
||||
steps:
|
||||
test:
|
||||
image: git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5
|
||||
environment:
|
||||
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_TEST_BIN: /opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo
|
||||
MARQDO_TOOL_HOME: /tmp/marqdo-tool-home
|
||||
commands:
|
||||
- python3 tools/ci/test_release_metadata.py
|
||||
- cargo fmt --all -- --check
|
||||
- cargo clippy --workspace --all-targets --locked -- -D warnings
|
||||
- cargo test --workspace --locked
|
||||
- cargo build --release --locked
|
||||
- target/release/marqdo-knowledge --help
|
||||
@@ -0,0 +1,18 @@
|
||||
# Fast-path notification: a completed Gitea release asks the root reconcile
|
||||
# workflow to check it. The payload is only a hint; the root reconcile verifies
|
||||
# the release/assets from the authoritative Gitea API. A lost call is recovered
|
||||
# by the root `release-reconcile` cron.
|
||||
when:
|
||||
event: [release]
|
||||
|
||||
steps:
|
||||
notify:
|
||||
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5
|
||||
environment:
|
||||
WOODPECKER_TOKEN:
|
||||
from_secret: woodpecker_token
|
||||
commands:
|
||||
- |
|
||||
set -eu
|
||||
test -n "${WOODPECKER_TOKEN:?woodpecker_token secret missing}"
|
||||
curl -fsS -X POST -H "Authorization: Bearer $WOODPECKER_TOKEN" -H "Content-Type: application/json" -d '{"branch":"main","workflow":"reconcile"}' https://ci.cflmy.cn/api/repos/6/pipelines
|
||||
@@ -0,0 +1,37 @@
|
||||
<!-- marqdo:repo-conventions v1 -->
|
||||
# AGENTS.md — knowledge
|
||||
|
||||
全局规范唯一来源:[marqdo 仓库开发规范](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/REPOSITORY-CONVENTIONS.md)。本文件只写本仓边界,不复制全局规范或合同正文。
|
||||
|
||||
## 1. 本仓定位与唯一权威
|
||||
|
||||
- catalog ID:`knowledge`;父级:根;角色:tool;状态:active。
|
||||
- 职责/本仓拥有:确定性离线知识编译/检索与文档投影
|
||||
- 本仓不拥有:Markdown/语言 parser、CLI 核心、其它业务实现
|
||||
- 权威输入/合同:CLI 公开 Analysis 3;`MARQDO_BIN` 与项目输入
|
||||
|
||||
## 2. 必做 / 禁止
|
||||
|
||||
| 必做 | 禁止 |
|
||||
| --- | --- |
|
||||
| 只在本仓职责内修改,先开本仓工单 | 实现其它仓库功能,复制 parser/实现/合同 |
|
||||
| 用真实 CLI/制品与独立期望测试 | mock、字符串检查或原型冒充真实验收/PASS |
|
||||
| 依赖使用固定 SHA/摘要与显式输入 | 依赖父仓 checkout、兄弟仓相对路径、浮动分支 |
|
||||
| 未运行写 `UNVERIFIED` | 伪造 entry/版本/CI 徽章/gitlink/发布资产 |
|
||||
| 记录 SHA、制品摘要、平台、命令、退出码 | 提交密钥、凭证、构建产物或本地绝对路径 |
|
||||
| 跨仓变更走 C2 → B2 → A2 晋升 | 自动 tag/release/合并,或直接改父仓/兄弟仓 |
|
||||
|
||||
- 不新增第二 catalog/manifest/lock/版本表/发布流程;不为单功能拆仓或建空壳仓。
|
||||
- 不在本仓登记其它仓库后代路径;治理树最多两级 gitlink。
|
||||
|
||||
## 3. 构建、测试与证据
|
||||
|
||||
- CI/验收入口:`scripts/ci.sh`(非交互、失败非零、不打印秘密、只写声明输出;构建与发布权限分离)。
|
||||
- 输入与依赖:CLI 公开 Analysis 3;`MARQDO_BIN` 与项目输入
|
||||
- 交付:Tool bundle + `tool.json` 与知识投影验收证据
|
||||
- 证据:候选 SHA、依赖/制品 SHA-256、平台/工具链、命令与退出码、日志位置、测试范围;FAIL/UNVERIFIED 不得写成 PASS。
|
||||
|
||||
## 4. 工单路由
|
||||
|
||||
- 公共协议/字段缺失 → `marqdo-cli`;检索/投影语义 → 本仓。
|
||||
- 不把知识检索做成第二套文档 parser。
|
||||
Reference in new issue
Block a user