Prepare RC.6 with an approved strict-unavailable gate
This commit is contained in:
1 parent
ed86796d6b
commit
6cfdd811b4
11 files changed
+112
-49
No files matched your search
@@ -15,9 +15,8 @@ steps:
|
|||||||
- cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker
|
- cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker
|
||||||
- |
|
- |
|
||||||
set -eu
|
set -eu
|
||||||
# Baseline is the previous published release (rc.4), not the pre-external-
|
# Previous published RC for the rc.6 comparison.
|
||||||
# Bundle beta: both the harness and the workload sources must be identical.
|
baseline_sha=c44b0f943875d563bb7c170f8ccd3fd56a82360f
|
||||||
baseline_sha=452e9a32bd9e40dba427d4180691c58bab74449e
|
|
||||||
git fetch --no-tags origin refs/tags/v3.0.0-rc.5
|
git fetch --no-tags origin refs/tags/v3.0.0-rc.5
|
||||||
test "$(git rev-parse 'FETCH_HEAD^{commit}')" = "$baseline_sha"
|
test "$(git rev-parse 'FETCH_HEAD^{commit}')" = "$baseline_sha"
|
||||||
perf_dir="$(mktemp -d)"
|
perf_dir="$(mktemp -d)"
|
||||||
|
|||||||
@@ -15,6 +15,14 @@ separately and do not follow the product version. Dates use ISO 8601.
|
|||||||
Older sections are release records: a retired option or spec they name is
|
Older sections are release records: a retired option or spec they name is
|
||||||
available at its tagged commit, not in the current tree.
|
available at its tagged commit, not in the current tree.
|
||||||
|
|
||||||
|
## 3.0.0-rc.6 (candidate)
|
||||||
|
|
||||||
|
- The release index binds the packaged CLI and Worker assets to the tested
|
||||||
|
source SHA and the actual stdlib Bundle inputs.
|
||||||
|
- A Linux RC can report strict isolation as unsupported with maintainer
|
||||||
|
approval and same-archive fail-closed evidence. Stable and LTS require a
|
||||||
|
passing disposable-VM gate.
|
||||||
|
|
||||||
## 3.0.0-rc.5 (2026-11-27)
|
## 3.0.0-rc.5 (2026-11-27)
|
||||||
|
|
||||||
Release record for tag `v3.0.0-rc.5` (Linux x86_64, glibc 2.39 prerelease).
|
Release record for tag `v3.0.0-rc.5` (Linux x86_64, glibc 2.39 prerelease).
|
||||||
|
|||||||
Generated
+17
-17
@@ -412,7 +412,7 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-cli"
|
name = "marqdo-cli"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"hex",
|
"hex",
|
||||||
@@ -439,7 +439,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-expression"
|
name = "marqdo-expression"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
"num-bigint",
|
"num-bigint",
|
||||||
@@ -450,7 +450,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-foreign"
|
name = "marqdo-foreign"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"hex",
|
"hex",
|
||||||
"libc",
|
"libc",
|
||||||
@@ -466,7 +466,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-frontend"
|
name = "marqdo-frontend"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-expression",
|
"marqdo-expression",
|
||||||
"marqdo-ir",
|
"marqdo-ir",
|
||||||
@@ -481,7 +481,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-host"
|
name = "marqdo-host"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"flate2",
|
"flate2",
|
||||||
"getrandom 0.4.3",
|
"getrandom 0.4.3",
|
||||||
@@ -510,7 +510,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-host-contract"
|
name = "marqdo-host-contract"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
"marqdo-value",
|
"marqdo-value",
|
||||||
@@ -518,7 +518,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-ir"
|
name = "marqdo-ir"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-expression",
|
"marqdo-expression",
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
@@ -528,7 +528,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-markdown"
|
name = "marqdo-markdown"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"comrak",
|
"comrak",
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
@@ -539,7 +539,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-package"
|
name = "marqdo-package"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"hex",
|
"hex",
|
||||||
"semver",
|
"semver",
|
||||||
@@ -553,7 +553,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-plugin-abi"
|
name = "marqdo-plugin-abi"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-value",
|
"marqdo-value",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -563,7 +563,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-plugin-sdk"
|
name = "marqdo-plugin-sdk"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-plugin-abi",
|
"marqdo-plugin-abi",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -572,7 +572,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-provider-worker"
|
name = "marqdo-provider-worker"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libloading",
|
"libloading",
|
||||||
"marqdo-host",
|
"marqdo-host",
|
||||||
@@ -586,7 +586,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-runtime"
|
name = "marqdo-runtime"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-expression",
|
"marqdo-expression",
|
||||||
"marqdo-frontend",
|
"marqdo-frontend",
|
||||||
@@ -606,7 +606,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-sandbox"
|
name = "marqdo-sandbox"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -614,14 +614,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-span"
|
name = "marqdo-span"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-value"
|
name = "marqdo-value"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
"num-bigint",
|
"num-bigint",
|
||||||
@@ -632,7 +632,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-worker-ipc"
|
name = "marqdo-worker-ipc"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ members = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.89"
|
rust-version = "1.89"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
| 公开版本 | `Cargo.toml` 仍为 `0.1.0`,若干工具兼容样例 `<1` | 3.0.0-beta 发布前必须迁移验证 |
|
| 公开版本 | `Cargo.toml` 仍为 `0.1.0`,若干工具兼容样例 `<1` | 3.0.0-beta 发布前必须迁移验证 |
|
||||||
| 第三方入门 | README 有扩展示例、`spec/` 有协议;Tool v1 标头仍称 Proposed,plugin spec 某段称 Native only | 需要整合并去除失效状态文本 |
|
| 第三方入门 | README 有扩展示例、`spec/` 有协议;Tool v1 标头仍称 Proposed,plugin spec 某段称 Native only | 需要整合并去除失效状态文本 |
|
||||||
|
|
||||||
## 3. 两套必须明确分开的发布策略
|
## 3. 各发行阶段的发布策略
|
||||||
|
|
||||||
### 3.1 Beta(允许明确声明的非安全性缺口)
|
### 3.1 Beta(允许明确声明的非安全性缺口)
|
||||||
|
|
||||||
@@ -45,11 +45,17 @@
|
|||||||
|
|
||||||
**可延期至后续 Beta 或稳定版:** Windows Native/Worker ABI、macOS Provider Worker、strict L2、uv/npm 自动建环境、分布式 registry、JIT、内置 Knowledge/Proof/View、成熟异步/并发模型、未经承诺的平台安装包。明确注明项目默认 `project` 模式不是 OS 沙箱,Worker 也不是完整沙箱。
|
**可延期至后续 Beta 或稳定版:** Windows Native/Worker ABI、macOS Provider Worker、strict L2、uv/npm 自动建环境、分布式 registry、JIT、内置 Knowledge/Proof/View、成熟异步/并发模型、未经承诺的平台安装包。明确注明项目默认 `project` 模式不是 OS 沙箱,Worker 也不是完整沙箱。
|
||||||
|
|
||||||
### 3.2 Stable / LTS(不可用 Beta 例外替代)
|
### 3.2 RC
|
||||||
|
|
||||||
|
- 同 SHA 的归档烟测实际验证 strict 不可用时安全拒绝运行,经维护者批准后,RC 可按 `strict: unsupported` 发行。发布索引、支持范围及门禁记录仍绑定同一候选。通过标准与命令见 [发布手册](releasing.md#linux-rc-preconditions)。
|
||||||
|
- 已观测的隔离缺陷、未运行的烟测、过期证据均阻塞 RC。具备合格一次性 VM 后按同 SHA 取得 strict PASS,可声明相应支持。
|
||||||
|
|
||||||
|
### 3.3 Stable / LTS
|
||||||
|
|
||||||
- Stable `3.0.0`:在公开支持的 Linux 平台上所有承诺功能有安全/兼容/性能证据;公开协议与变更策略清楚;有迁移说明和至少一次真实使用者反馈周期。平台可继续限定 Linux,不要求通过虚假的“全平台 LTS”门禁。
|
- Stable `3.0.0`:在公开支持的 Linux 平台上所有承诺功能有安全/兼容/性能证据;公开协议与变更策略清楚;有迁移说明和至少一次真实使用者反馈周期。平台可继续限定 Linux,不要求通过虚假的“全平台 LTS”门禁。
|
||||||
- LTS(建议后续 `3.2.x`):冻结 `.mq.md` 语言语义、Analysis/Trace/Tool/Plugin/Provider 各自协议主版本和 lockfile 契约;提供安全修复流程、回归 CI、外部仓库兼容矩阵、从 3.0 及 2.9 迁移材料、发布渠道与公告模板。
|
- LTS(建议后续 `3.2.x`):冻结 `.mq.md` 语言语义、Analysis/Trace/Tool/Plugin/Provider 各自协议主版本和 lockfile 契约;提供安全修复流程、回归 CI、外部仓库兼容矩阵、从 3.0 及 2.9 迁移材料、发布渠道与公告模板。
|
||||||
- LTS 应提前承诺支持窗口(建议至少 12 个月,实际长短由维护资源决定),定义安全补丁与非破坏性修复回移规则,明确 API/ABI 哪些会不兼容;不因开发完成某一里程碑自动称 LTS。
|
- LTS 应提前承诺支持窗口(建议至少 12 个月,实际长短由维护资源决定),定义安全补丁与非破坏性修复回移规则,明确 API/ABI 哪些会不兼容;不因开发完成某一里程碑自动称 LTS。
|
||||||
|
- 一次性 VM 上的同 SHA strict G3 通过证据是 stable/LTS 的发布门禁。
|
||||||
- 默认不为旧 `cflmy/marqdo` 的历史语法或旧插件 ABI 建隐性兼容层。需要迁移的由独立迁移工具、教程和示例承担。
|
- 默认不为旧 `cflmy/marqdo` 的历史语法或旧插件 ABI 建隐性兼容层。需要迁移的由独立迁移工具、教程和示例承担。
|
||||||
|
|
||||||
## 4. 3.0.0-beta.1 之前建议拆分的 5 个短 PR
|
## 4. 3.0.0-beta.1 之前建议拆分的 5 个短 PR
|
||||||
|
|||||||
+10
-3
@@ -73,8 +73,12 @@ unsupported/experimental in
|
|||||||
|
|
||||||
Use the frozen-SHA build and archive checks above. Additionally:
|
Use the frozen-SHA build and archive checks above. Additionally:
|
||||||
|
|
||||||
- Strict L1 requires a same-SHA PASS on a disposable VM as a non-root user.
|
- Report strict L1 as `PASS` only with same-SHA evidence from a disposable VM
|
||||||
Record the strict evidence and verify the archived binary on that guest.
|
running as a non-root user. An RC may report `strict: unsupported` with
|
||||||
|
maintainer approval and a same-SHA archive smoke log which confirms strict
|
||||||
|
execution fails closed on the distribution test environment. A skipped
|
||||||
|
test or an observed isolation defect blocks publication. Stable and LTS
|
||||||
|
require the disposable-VM PASS.
|
||||||
- Measure the packaged CLI with 5 warmups and 20 samples or more for each of
|
- Measure the packaged CLI with 5 warmups and 20 samples or more for each of
|
||||||
the nine workloads, or for the changed boundary's representative fixture when
|
the nine workloads, or for the changed boundary's representative fixture when
|
||||||
the gate is scoped by an accepted ADR. Compare against a correctness-verified
|
the gate is scoped by an accepted ADR. Compare against a correctness-verified
|
||||||
@@ -203,7 +207,10 @@ python3 tools/ci/release_evidence.py --profile beta --target-sha "$sha" \
|
|||||||
missing, skipped, failed or SHA-mismatched gate is `DO_NOT_RELEASE`; never
|
missing, skipped, failed or SHA-mismatched gate is `DO_NOT_RELEASE`; never
|
||||||
hand-edit a manifest to PASS. For a Linux RC, use
|
hand-edit a manifest to PASS. For a Linux RC, use
|
||||||
`--profile rc --require-release` and declare both excluded platforms. If
|
`--profile rc --require-release` and declare both excluded platforms. If
|
||||||
the shared-node exception applies, pass
|
strict is unavailable, supply `strict_vm=UNSUPPORTED:<candidate-sha>:<smoke-log>`
|
||||||
|
and `--rc-strict-unsupported-approval <release-notes-reference>`. The smoke
|
||||||
|
log must show strict mode's explicit refusal from the packaged binary. If the
|
||||||
|
shared-node exception applies, pass
|
||||||
`--rc-shared-performance-approval <release-notes-reference>` and supply
|
`--rc-shared-performance-approval <release-notes-reference>` and supply
|
||||||
`performance=WARN:<candidate-sha>:<comparison-evidence>`. Use the generated
|
`performance=WARN:<candidate-sha>:<comparison-evidence>`. Use the generated
|
||||||
`RC_RELEASE_CANDIDATE` decision before running the tagging commands.
|
`RC_RELEASE_CANDIDATE` decision before running the tagging commands.
|
||||||
|
|||||||
+8
-4
@@ -10,8 +10,9 @@ be registered as a dedicated self-hosted security runner.
|
|||||||
> ([`architecture/RFC-LANG-0002-unified-semantics.md`](architecture/RFC-LANG-0002-unified-semantics.md)).
|
> ([`architecture/RFC-LANG-0002-unified-semantics.md`](architecture/RFC-LANG-0002-unified-semantics.md)).
|
||||||
> The lane is only evidence for the **exact SHA in its
|
> The lane is only evidence for the **exact SHA in its
|
||||||
> `strict-evidence.json`**; a PASS at an older SHA or on another host is
|
> `strict-evidence.json`**; a PASS at an older SHA or on another host is
|
||||||
> historical. Every candidate release must rerun `tests/security/run-lane.sh`
|
> historical. A stable or LTS release must rerun `tests/security/run-lane.sh`
|
||||||
> and archive the evidence document. See [`STATUS.md`](STATUS.md).
|
> and archive the evidence document. Linux RCs can use the approved
|
||||||
|
> fail-closed path in [the release procedure](releasing.md#linux-rc-preconditions).
|
||||||
|
|
||||||
**Do not run this on a daily host with valuable data.** The VM is disposable;
|
**Do not run this on a daily host with valuable data.** The VM is disposable;
|
||||||
the commands below do not disable AppArmor or any global host protection.
|
the commands below do not disable AppArmor or any global host protection.
|
||||||
@@ -38,9 +39,9 @@ export SOURCE_SHA="$(git rev-parse HEAD)" # reviewed commit, clean tree
|
|||||||
mkdir -p .tools/vm && cd .tools/vm
|
mkdir -p .tools/vm && cd .tools/vm
|
||||||
# Replace with the reviewed dated release URL, never .../current/...
|
# Replace with the reviewed dated release URL, never .../current/...
|
||||||
curl -L -o ubuntu-base.img \
|
curl -L -o ubuntu-base.img \
|
||||||
https://cloud-images.ubuntu.com/releases/26.04/release-20261120/ubuntu-26.04-server-cloudimg-amd64.img
|
https://cloud-images.ubuntu.com/releases/resolute/release-20261108/ubuntu-26.04-server-cloudimg-amd64.img
|
||||||
curl -L -o SHA256SUMS \
|
curl -L -o SHA256SUMS \
|
||||||
https://cloud-images.ubuntu.com/releases/26.04/release-20261120/SHA256SUMS
|
https://cloud-images.ubuntu.com/releases/resolute/release-20261108/SHA256SUMS
|
||||||
grep 'ubuntu-26.04-server-cloudimg-amd64.img' SHA256SUMS | sha256sum -c -
|
grep 'ubuntu-26.04-server-cloudimg-amd64.img' SHA256SUMS | sha256sum -c -
|
||||||
sha256sum ubuntu-base.img | tee ubuntu-base.img.sha256
|
sha256sum ubuntu-base.img | tee ubuntu-base.img.sha256
|
||||||
qemu-img create -f qcow2 -b ubuntu-base.img -F qcow2 \
|
qemu-img create -f qcow2 -b ubuntu-base.img -F qcow2 \
|
||||||
@@ -159,6 +160,9 @@ mkdir -p ~/marqdo-${SOURCE_SHA}
|
|||||||
tar -C ~/marqdo-${SOURCE_SHA} -xf ~/marqdo-${SOURCE_SHA}.tar
|
tar -C ~/marqdo-${SOURCE_SHA} -xf ~/marqdo-${SOURCE_SHA}.tar
|
||||||
cd ~/marqdo-${SOURCE_SHA}
|
cd ~/marqdo-${SOURCE_SHA}
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
python3 tools/ci/fetch_ecosystem_bundle.py --out target/ecosystem-stdlib
|
||||||
|
export MARQDO_STDLIB_DIR="$PWD/target/ecosystem-stdlib"
|
||||||
|
export MARQDO_TEST_STDLIB_BUNDLE="$MARQDO_STDLIB_DIR"
|
||||||
export MARQDO_TESTED_SHA="$SOURCE_SHA"
|
export MARQDO_TESTED_SHA="$SOURCE_SHA"
|
||||||
export MARQDO_SOURCE_ARCHIVE="$HOME/marqdo-${SOURCE_SHA}.tar"
|
export MARQDO_SOURCE_ARCHIVE="$HOME/marqdo-${SOURCE_SHA}.tar"
|
||||||
export MARQDO_SOURCE_ARCHIVE_SHA256="sha256:<digest from the host>"
|
export MARQDO_SOURCE_ARCHIVE_SHA256="sha256:<digest from the host>"
|
||||||
|
|||||||
Generated
+8
-8
@@ -172,7 +172,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-expression"
|
name = "marqdo-expression"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
"num-bigint",
|
"num-bigint",
|
||||||
@@ -182,7 +182,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-frontend"
|
name = "marqdo-frontend"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-expression",
|
"marqdo-expression",
|
||||||
"marqdo-ir",
|
"marqdo-ir",
|
||||||
@@ -196,7 +196,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-host-contract"
|
name = "marqdo-host-contract"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
"marqdo-value",
|
"marqdo-value",
|
||||||
@@ -204,7 +204,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-ir"
|
name = "marqdo-ir"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-expression",
|
"marqdo-expression",
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
@@ -213,7 +213,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-markdown"
|
name = "marqdo-markdown"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"comrak",
|
"comrak",
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
@@ -224,7 +224,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-runtime"
|
name = "marqdo-runtime"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-expression",
|
"marqdo-expression",
|
||||||
"marqdo-host-contract",
|
"marqdo-host-contract",
|
||||||
@@ -239,14 +239,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-span"
|
name = "marqdo-span"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-value"
|
name = "marqdo-value"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
"num-bigint",
|
"num-bigint",
|
||||||
|
|||||||
Generated
+4
-4
@@ -16,7 +16,7 @@ checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-plugin-abi"
|
name = "marqdo-plugin-abi"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-value",
|
"marqdo-value",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -26,7 +26,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-plugin-sdk"
|
name = "marqdo-plugin-sdk"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-plugin-abi",
|
"marqdo-plugin-abi",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -42,14 +42,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-span"
|
name = "marqdo-span"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-value"
|
name = "marqdo-value"
|
||||||
version = "3.0.0-rc.5"
|
version = "3.0.0-rc.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
"num-bigint",
|
"num-bigint",
|
||||||
|
|||||||
@@ -7,10 +7,9 @@ does not query CI and cannot turn an UNVERIFIED gate into a release.
|
|||||||
|
|
||||||
The `rc` profile requires every gate on the target SHA. For a Linux-only RC,
|
The `rc` profile requires every gate on the target SHA. For a Linux-only RC,
|
||||||
Windows and macOS must be explicitly UNSUPPORTED; the stable profile requires
|
Windows and macOS must be explicitly UNSUPPORTED; the stable profile requires
|
||||||
both to PASS. Strict VM, extension, clean install, version compatibility and
|
both to PASS. An RC can record strict as UNSUPPORTED with same-SHA fail-closed
|
||||||
performance require PASS. RC can record a shared-node performance WARN only
|
evidence and can record a measured shared-node performance WARN. Each
|
||||||
with an explicit maintainer approval reference. The historical beta profile
|
exception requires an explicit maintainer approval reference.
|
||||||
retains its own scoped exceptions.
|
|
||||||
|
|
||||||
Gate spec: `name=STATE:tested_sha:run_url` (url may contain colons).
|
Gate spec: `name=STATE:tested_sha:run_url` (url may contain colons).
|
||||||
|
|
||||||
@@ -106,6 +105,7 @@ def build_manifest(
|
|||||||
gates: list[str],
|
gates: list[str],
|
||||||
profile: str = "stable",
|
profile: str = "stable",
|
||||||
rc_shared_performance_approval: str = "",
|
rc_shared_performance_approval: str = "",
|
||||||
|
rc_strict_unsupported_approval: str = "",
|
||||||
) -> dict:
|
) -> dict:
|
||||||
if not SHA_RE.fullmatch(target_sha):
|
if not SHA_RE.fullmatch(target_sha):
|
||||||
raise ValueError(f"target SHA must be 40 lowercase hex characters: {target_sha!r}")
|
raise ValueError(f"target SHA must be 40 lowercase hex characters: {target_sha!r}")
|
||||||
@@ -114,10 +114,13 @@ def build_manifest(
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
raise ValueError(f"unknown profile {profile!r}; expected {sorted(PROFILES)}") from None
|
raise ValueError(f"unknown profile {profile!r}; expected {sorted(PROFILES)}") from None
|
||||||
approval = rc_shared_performance_approval.strip()
|
approval = rc_shared_performance_approval.strip()
|
||||||
if approval and profile != "rc":
|
strict_approval = rc_strict_unsupported_approval.strip()
|
||||||
raise ValueError("shared-node approval is supported only by the rc profile")
|
if (approval or strict_approval) and profile != "rc":
|
||||||
|
raise ValueError("RC exception approvals are supported only by the rc profile")
|
||||||
if approval:
|
if approval:
|
||||||
accepted_states = {**accepted_states, "performance": {"PASS", "WARN"}}
|
accepted_states = {**accepted_states, "performance": {"PASS", "WARN"}}
|
||||||
|
if strict_approval:
|
||||||
|
accepted_states = {**accepted_states, "strict_vm": {"PASS", "UNSUPPORTED"}}
|
||||||
parsed = {}
|
parsed = {}
|
||||||
for spec in gates:
|
for spec in gates:
|
||||||
name, gate = parse_gate(spec)
|
name, gate = parse_gate(spec)
|
||||||
@@ -150,6 +153,8 @@ def build_manifest(
|
|||||||
recorded = utc_now()
|
recorded = utc_now()
|
||||||
if approval and parsed["performance"]["state"] == "WARN":
|
if approval and parsed["performance"]["state"] == "WARN":
|
||||||
parsed["performance"]["rc_shared_node_approval"] = approval
|
parsed["performance"]["rc_shared_node_approval"] = approval
|
||||||
|
if strict_approval and parsed["strict_vm"]["state"] == "UNSUPPORTED":
|
||||||
|
parsed["strict_vm"]["rc_unsupported_approval"] = strict_approval
|
||||||
return {
|
return {
|
||||||
"schema": SCHEMA,
|
"schema": SCHEMA,
|
||||||
"profile": profile,
|
"profile": profile,
|
||||||
@@ -178,6 +183,11 @@ def main(argv: list[str]) -> int:
|
|||||||
default="",
|
default="",
|
||||||
help="maintainer approval reference for the measured shared-node RC performance WARN",
|
help="maintainer approval reference for the measured shared-node RC performance WARN",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--rc-strict-unsupported-approval",
|
||||||
|
default="",
|
||||||
|
help="maintainer approval reference for same-SHA fail-closed strict evidence on an RC",
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--require-release",
|
"--require-release",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
@@ -186,7 +196,8 @@ def main(argv: list[str]) -> int:
|
|||||||
args = parser.parse_args(argv)
|
args = parser.parse_args(argv)
|
||||||
try:
|
try:
|
||||||
manifest = build_manifest(
|
manifest = build_manifest(
|
||||||
args.target_sha, args.gate, args.profile, args.rc_shared_performance_approval
|
args.target_sha, args.gate, args.profile, args.rc_shared_performance_approval,
|
||||||
|
args.rc_strict_unsupported_approval,
|
||||||
)
|
)
|
||||||
except ValueError as error:
|
except ValueError as error:
|
||||||
print(f"error: {error}", file=sys.stderr)
|
print(f"error: {error}", file=sys.stderr)
|
||||||
|
|||||||
@@ -95,6 +95,34 @@ class ReleaseEvidenceTests(unittest.TestCase):
|
|||||||
with self.assertRaises(ValueError):
|
with self.assertRaises(ValueError):
|
||||||
release_evidence.build_manifest(SHA, inputs, "stable", approval)
|
release_evidence.build_manifest(SHA, inputs, "stable", approval)
|
||||||
|
|
||||||
|
def test_rc_strict_unsupported_requires_same_sha_evidence_and_approval(self) -> None:
|
||||||
|
approval = "release notes: maintainer approved strict unsupported for this RC"
|
||||||
|
inputs = [spec for spec in self.rc_gates() if not spec.startswith("strict_vm=")]
|
||||||
|
manifest = release_evidence.build_manifest(
|
||||||
|
SHA, inputs + [gate("strict_vm", "UNSUPPORTED")], "rc",
|
||||||
|
rc_strict_unsupported_approval=approval,
|
||||||
|
)
|
||||||
|
self.assertEqual(manifest["release_decision"], "RC_RELEASE_CANDIDATE")
|
||||||
|
self.assertEqual(manifest["gates"]["strict_vm"]["state"], "UNSUPPORTED")
|
||||||
|
self.assertEqual(manifest["gates"]["strict_vm"]["rc_unsupported_approval"], approval)
|
||||||
|
for entry in (gate("strict_vm", "UNSUPPORTED", OTHER),
|
||||||
|
gate("strict_vm", "UNSUPPORTED", url=""),
|
||||||
|
gate("strict_vm", "FAIL"), gate("strict_vm", "UNVERIFIED")):
|
||||||
|
with self.subTest(entry=entry):
|
||||||
|
result = release_evidence.build_manifest(
|
||||||
|
SHA, inputs + [entry], "rc", rc_strict_unsupported_approval=approval,
|
||||||
|
)
|
||||||
|
self.assertEqual(result["release_decision"], "DO_NOT_RELEASE")
|
||||||
|
|
||||||
|
def test_stable_rejects_rc_strict_exception(self) -> None:
|
||||||
|
inputs = [gate(name, "UNSUPPORTED" if name == "strict_vm" else "PASS")
|
||||||
|
for name in release_evidence.GATES]
|
||||||
|
result = release_evidence.build_manifest(SHA, inputs)
|
||||||
|
self.assertEqual(result["release_decision"], "DO_NOT_RELEASE")
|
||||||
|
with self.assertRaises(ValueError):
|
||||||
|
release_evidence.build_manifest(SHA, inputs,
|
||||||
|
rc_strict_unsupported_approval="RC approval")
|
||||||
|
|
||||||
def test_stable_requires_extension_install_version_and_performance(self) -> None:
|
def test_stable_requires_extension_install_version_and_performance(self) -> None:
|
||||||
names = ("extension", "clean_install", "version_compat", "performance")
|
names = ("extension", "clean_install", "version_compat", "performance")
|
||||||
for name in names:
|
for name in names:
|
||||||
|
|||||||
Reference in new issue
Block a user