Author SHA1 Message Date
cflmy 14cd824427 ci: add the protected component release lane (marqdo#96 M1)
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/tag/publish Pipeline was successful
Ordinary lane keeps real CLI tests plus a deterministic packaging self-check through the pinned
root commit/sha256; the tag-only protected lane publishes an immutable Gitea Release with
release-evidence.json. The root repository no longer runs CI/CD (marqdo#102).
2026-12-03 00:13:07 +08:00
cflmy 1a8027beb1 ci: remove the root reconcile notify workflow
ci/woodpecker/push/ci Pipeline was successful
The root repository permanently has no CI/CD configuration (marqdo#102): its build and
reconcile pipelines are removed. This release-event notification only asked the removed
root reconcile workflow to run; a component release must never attempt a root pipeline.
2026-12-03 00:08:38 +08:00
cflmy a202a89ef4 Merge pull request #13
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/release/release Pipeline is pending
ci: move component lane to the rc.6 shared images
2026-12-01 12:10:47 +08:00
cflmy 9c50ca3921 ci: move component lane to the rc.6 shared images
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
2026-12-01 11:30:56 +08:00
cflmy 83dce290e2 Revert "ci: protected publish workflow (#10)"
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
This reverts commit 472c3462a4, reversing
changes made to cfe98c6339.
2026-11-27 20:34:39 +08:00
cflmy 472c3462a4 ci: protected publish workflow (#10)
ci/woodpecker/push/ci Pipeline was successful
ci: protected publish workflow (#10)
2026-11-27 19:23:28 +08:00
cflmy db6f167fba ci: add protected component publish workflow and immutable release helpers
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
Vendor the root component-release helpers, add source packaging plus
release-evidence, and split publish (tag/manual) from notify (release event).
2026-11-27 19:23:02 +08:00
marqdo-ci cfe98c6339 ci: notify the root reconcile on a completed release
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/pr/ci Pipeline is pending
Release event fast path: validate the secret is present, then ask the root
manual `reconcile` workflow to check the authoritative Gitea release. The call
is only a hint; correctness and lost-notification recovery stay in the root
reconcile cron/script.
2026-11-27 14:18:17 +08:00
marqdo-ci 890ed7a8b4 ci: consume the shared shell CI image
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/manual/ci Pipeline is pending
2026-11-27 14:03:34 +08:00
marqdo-ci 5d38c74262 ci: avoid a shell-variable-looking token in the workflow comment
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/pr/ci Pipeline was successful
Woodpecker parses shell-style variables throughout the command strings, including
comments; keep the pinned values literal so pipeline config parsing succeeds.
2026-11-27 13:45:01 +08:00
marqdo-ci 1fde8f75af ci: keep the pinned archive path literal
Woodpecker expands ${...} in commands, which left the version empty. Use the
exact released archive path/SHA so the unified lane is reproducible.
2026-11-27 13:43:57 +08:00
marqdo-ci 52c7bcc1c4 ci: add the unified Woodpecker lane (published CLI/Bundle, one base image)
ci/woodpecker/manual/ci Pipeline is pending
Reuse the released marqdo rc.5 archive and Bundle with a pinned SHA-256 in
ubuntu:24.04; no Rust toolchain download, no CLI build, no sibling checkout.
This keeps component CI independent and cheap while testing the real CLI.
2026-11-27 13:37:47 +08:00
marqdo-norms 1561a6b7b6 docs: adopt the ecosystem repository development conventions
Add the repository AGENTS.md boundary and anti-bloat rules required by
marqdo docs/REPOSITORY-CONVENTIONS.md, with the marker and canonical link so
scripts/check-repo-conventions.py can enforce it.
2026-11-27 11:36:27 +08:00
3 changed files with 99 additions and 0 deletions

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
# Unified Woodpecker CI for a source-only Marqdo component.
#
# The published `marqdo-ci-shell` image is the only runtime dependency: one
# Ubuntu 24.04 base, the released CLI/Bundle, and common test tools. No image
# variance, apt install, Rust toolchain download or sibling checkout.
when:
- event: [pull_request, manual]
- event: push
branch: main
steps:
test:
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.6
commands:
- sh scripts/test.sh
package:
# Deterministic packaging self-check through the single ecosystem release
# implementation (marqdo#96 M1). The root repository no longer builds
# (marqdo#102); this component lane is the release verification.
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.6
depends_on: [test]
commands:
- |
set -eu
kit=$(mktemp -d)
trap 'rm -rf "$kit"' EXIT
base="https://git.cflmy.cn/cflmy/marqdo/raw/commit/c367d1df3ebdaa08578ea304d50bb9419bef16e1"
curl -fsSL --retry 3 "$base/scripts/component-release/release.py" -o "$kit/release.py"
echo "2455bafc6f42975a07583af836b78c58c0741fa02e91984804cb1690725bf402 $kit/release.py" | sha256sum -c -
python3 "$kit/release.py" check \
--repository "$CI_REPO" --component-id std-system --kind stdlib \
--allow modules --allow README.md
+29
View File
@@ -0,0 +1,29 @@
# Protected publish lane: tag events only.
#
# Single ecosystem component release implementation (marqdo#96 M1), pinned by
# root commit and file sha256. Ordinary push/PR never receives the publish
# token; only this protected tag workflow creates the immutable Gitea Release.
when:
event: [tag]
steps:
publish:
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.6
environment:
GITEA_PUBLISH_TOKEN:
from_secret: gitea_publish_token
commands:
- |
set -eu
test -n "${CI_COMMIT_TAG:?publish requires a tag event}"
kit=$(mktemp -d)
trap 'rm -rf "$kit"' EXIT
base="https://git.cflmy.cn/cflmy/marqdo/raw/commit/c367d1df3ebdaa08578ea304d50bb9419bef16e1"
curl -fsSL --retry 3 "$base/scripts/component-release/release.py" -o "$kit/release.py"
echo "2455bafc6f42975a07583af836b78c58c0741fa02e91984804cb1690725bf402 $kit/release.py" | sha256sum -c -
exec python3 "$kit/release.py" publish \
--repository "$CI_REPO" --component-id std-system --kind stdlib \
--allow modules --allow README.md --tag "$CI_COMMIT_TAG" \
--dependency "id=cli,source_sha=63776735e924ade279cdf59d5c733dc24bfdabbb,asset_sha256=8dc0b006302e03c23451b8ea9f8a0fcdae8bf67c80c546bee2434bf69755bfe3" \
--note "Tested by the same-SHA Woodpecker component lane with the shared marqdo-ci-shell:3.0.0-rc.6 image (CLI 3.0.0-rc.6 and the official Stdlib Bundle 0.3.0)." \
--note "Released module bytes are identical to the accepted Stdlib Bundle 0.3.0; this release carries the deterministic source-archive packaging and the protected Woodpecker publish lane."
+37
View File
@@ -0,0 +1,37 @@
<!-- marqdo:repo-conventions v1 -->
# AGENTS.md — std-system
全局规范唯一来源:[marqdo 仓库开发规范](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/REPOSITORY-CONVENTIONS.md)。本文件只写本仓边界,不复制全局规范或合同正文。
## 1. 本仓定位与唯一权威
- catalog ID:`std-system`;父级:根;角色:stdlib;状态:active。
- 职责/本仓拥有:时钟、UTC、环境、进程与随机;唯一模块源码
- 本仓不拥有:CLI 语法/运行时、Bundle 打包实现、其它 stdlib 模块的算法或序列化
- 权威输入/合同:真实 CLI `MARQDO_BIN` + 显式 `MARQDO_STDLIB_DIR` Bundle 的公开模块接口;根 Bundle 生产者
## 2. 必做 / 禁止
| 必做 | 禁止 |
| --- | --- |
| 只在本仓职责内修改,先开本仓工单 | 实现其它仓库功能,复制 parser/实现/合同 |
| 用真实 CLI/制品与独立期望测试 | mock、字符串检查或原型冒充真实验收/PASS |
| 依赖使用固定 SHA/摘要与显式输入 | 依赖父仓 checkout、兄弟仓相对路径、浮动分支 |
| 未运行写 `UNVERIFIED` | 伪造 entry/版本/CI 徽章/gitlink/发布资产 |
| 记录 SHA、制品摘要、平台、命令、退出码 | 提交密钥、凭证、构建产物或本地绝对路径 |
| 跨仓变更走 C2 → B2 → A2 晋升 | 自动 tag/release/合并,或直接改父仓/兄弟仓 |
- 不新增第二 catalog/manifest/lock/版本表/发布流程;不为单功能拆仓或建空壳仓。
- 不在本仓登记其它仓库后代路径;治理树最多两级 gitlink。
## 3. 构建、测试与证据
- CI/验收入口:`scripts/test.sh`(非交互、失败非零、不打印秘密、只写声明输出;构建与发布权限分离)。
- 输入与依赖:真实 CLI `MARQDO_BIN` + 显式 `MARQDO_STDLIB_DIR` Bundle 的公开模块接口;根 Bundle 生产者
- 交付:唯一模块源码 + 断言 + 确定性源码归档/证据(不强制二进制)
- 证据:候选 SHA、依赖/制品 SHA-256、平台/工具链、命令与退出码、日志位置、测试范围;FAIL/UNVERIFIED 不得写成 PASS。
## 4. 工单路由
- 语言/模块加载/Bundle 协议 → `marqdo-cli`;Bundle 装配/路径 → 根 Bundle 生产者;模块语义 → 本仓。
- 模块边界按迁移台账;不复制其它 stdlib 的算法或序列化实现。