Skip to content

Commit bf4498d

Browse files
committed
Require pinned structured help evidence in OpenCLI CI
1 parent 98f2834 commit bf4498d

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
java-version: '17'
3535
cache: maven
3636

37+
- name: Verify pinned structured help samples
38+
working-directory: src/test/resources/opencli-contracts/v1/structured-help-1.8.8
39+
run: sha256sum --strict -c SHA256SUMS
40+
3741
- name: Build and verify with JaCoCo coverage
3842
run: ./mvnw -B --no-transfer-progress clean verify
3943

‎.github/workflows/contracts.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
run: |
3232
python3 -m unittest discover -s scripts/tests -v
3333
(cd src/test/resources/opencli-contracts/v1 && sha256sum -c SHA256SUMS)
34+
(cd src/test/resources/opencli-contracts/v1/structured-help-1.8.8 && sha256sum --strict -c SHA256SUMS)
3435
- name: Install pinned official OpenSpec
3536
run: npm install --prefix "$RUNNER_TEMP/opencli-openspec" --ignore-scripts --no-audit --no-fund @fission-ai/openspec@1.13.1
3637
- name: Validate all proposals and each change with strict mode
@@ -120,6 +121,7 @@ jobs:
120121
--java-version-file contract-evidence/java.txt \
121122
--maven-version-file contract-evidence/maven.txt \
122123
--exit-code "$(cat contract-evidence/maven.exit)" \
124+
--suite enumeration=io.github.easy4j.opencli.contract.OpenCliStructuredHelpFixtureTest \
123125
--suite argv=io.github.easy4j.opencli.contract.OpenCliArgvContractTest \
124126
--suite argv=io.github.easy4j.opencli.contract.OpenCliStructuredArgvContractTest \
125127
--suite process=io.github.easy4j.opencli.contract.OpenCliProcessContractTest \

‎openspec/changes/enforce-opencli-branch-contract-parity/tasks.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ OC-PARITY-004:维护线原 CI 将 JaCoCo 参数丢在 Surefire JVM 之外,
4040
| 21 | 4.0.0-rc-5 | 3.2.1 | `fa7e001da203d31fd5afb2921f90c3f428db2d5b` | 2144 | 3028/3285(92.18%) | [44356116107](https://github.com/easy-4-java/opencli-java-sdk/actions/runs/44356116107) |
4141

4242
上述记录覆盖文档事实和分支构建。最终集成门禁仍按第 3 节逐项验收。
43+
44+
### 结构化帮助证据门禁
45+
46+
OC-PARITY-003/004:在 `98f28346e7bc3307608122a0086a8e1072e39536` 的 GitHub 工件中,Surefire 记录了三个通过的 `OpenCliStructuredHelpFixtureTest` 用例,契约报告的枚举层仍显示 `NOT_RUN`。从该工件重放报告命令并声明枚举套件后,枚举层显示 `PASS`、执行三项,真实 CLI 执行层仍为 `NOT_RUN`。移除套件报告时,报告命令返回非零。三条开发线使用同一份 SHA-256 清单检查九个帮助样本,在临时副本的 `root.json` 末尾追加换行会使校验失败。样本提供离线结构证据,实时能力发现和真实执行由对应任务另行验收。

0 commit comments

Comments
 (0)