3232 python3 -m unittest discover -s scripts/tests -v
3333 (cd src/test/resources/opencli-contracts/v1 && sha256sum -c SHA256SUMS)
3434 (cd src/test/resources/opencli-contracts/v1/structured-help-1.8.8 && sha256sum --strict -c SHA256SUMS)
35+ (cd src/test/resources/opencli-contracts/v1/browser-output-1.8.8 && sha256sum --strict -c SHA256SUMS)
3536 - name : Install pinned official OpenSpec
3637 run : npm install --prefix "$RUNNER_TEMP/opencli-openspec" --ignore-scripts --no-audit --no-fund @fission-ai/openspec@1.13.1
3738 - name : Validate all proposals and each change with strict mode
@@ -128,6 +129,14 @@ jobs:
128129 --suite process=io.github.easy4j.opencli.contract.OpenCliProcessContractTest \
129130 --suite process=io.github.easy4j.opencli.contract.OpenCliProcessBoundaryTest \
130131 --suite process=io.github.easy4j.opencli.core.support.SubprocessCleanupFaultTest \
132+ --suite protocol=io.github.easy4j.opencli.center.ws.OpenCliWsReverseAgentSessionTest \
133+ --suite protocol=io.github.easy4j.opencli.center.ws.OpenCliWsCollectRequestsTest \
134+ --suite protocol=io.github.easy4j.opencli.remote.OpenCliRemoteAgentHttpClientTest \
135+ --suite protocol=io.github.easy4j.opencli.contract.OpenCliErrorEnvelopeTest \
136+ --suite typed-result=io.github.easy4j.opencli.contract.OpenCliBrowserResultTest \
137+ --suite typed-result=io.github.easy4j.opencli.contract.OpenCliBrowserEvidenceResultTest \
138+ --suite typed-result=io.github.easy4j.opencli.capability.OpenCliDiagnosticsTest \
139+ --suite argv=io.github.easy4j.opencli.capability.OpenCliInvocationContextTest \
131140 --output contract-evidence/report.json
132141 - name : Upload actual JVM evidence
133142 if : always()
@@ -177,7 +186,7 @@ jobs:
177186 mvn -version > platform-evidence/maven.txt 2>&1
178187 result=0
179188 mvn -B --no-transfer-progress \
180- -Dtest=OpenCliArgvContractTest,OpenCliStructuredArgvContractTest,OpenCliProcessContractTest,OpenCliProcessBoundaryTest,SubprocessCleanupFaultTest,OpenCliWsReverseAgentSessionTest,OpenCliWsCollectRequestsTest,OpenCliProcessPrivacyTest,OpenCliArgSupportTest#shouldKeepConversionExceptionAndNestedCausePrivate,SubprocessExecutionSupportTest#shouldKeepNativePathOutOfDefaultHandlerException \
189+ -Dtest=OpenCliErrorEnvelopeTest,OpenCliBrowserResultTest,OpenCliBrowserEvidenceResultTest,OpenCliDiagnosticsTest,OpenCliInvocationContextTest, OpenCliArgvContractTest,OpenCliStructuredArgvContractTest,OpenCliProcessContractTest,OpenCliProcessBoundaryTest,SubprocessCleanupFaultTest,OpenCliWsReverseAgentSessionTest,OpenCliWsCollectRequestsTest,OpenCliProcessPrivacyTest,OpenCliArgSupportTest#shouldKeepConversionExceptionAndNestedCausePrivate,SubprocessExecutionSupportTest#shouldKeepNativePathOutOfDefaultHandlerException \
181190 test > platform-evidence/maven.log 2>&1 || result=$?
182191 tail -100 platform-evidence/maven.log
183192 python scripts/contract_report.py \
@@ -197,25 +206,16 @@ jobs:
197206 --suite process=io.github.easy4j.opencli.core.OpenCliProcessPrivacyTest \
198207 --suite argv=io.github.easy4j.opencli.core.OpenCliArgSupportTest \
199208 --suite process=io.github.easy4j.opencli.core.support.SubprocessExecutionSupportTest \
209+ --suite protocol=io.github.easy4j.opencli.contract.OpenCliErrorEnvelopeTest \
210+ --suite typed-result=io.github.easy4j.opencli.contract.OpenCliBrowserResultTest \
211+ --suite typed-result=io.github.easy4j.opencli.contract.OpenCliBrowserEvidenceResultTest \
212+ --suite typed-result=io.github.easy4j.opencli.capability.OpenCliDiagnosticsTest \
213+ --suite argv=io.github.easy4j.opencli.capability.OpenCliInvocationContextTest \
200214 --output platform-evidence/report.json
201215 exit "$result"
202216 - name : Verify npm-installed OpenCLI on Windows
203217 if : runner.os == 'Windows'
204- run : |
205- install_dir="$RUNNER_TEMP/opencli-launcher-check"
206- npm install --prefix "$install_dir" --ignore-scripts --no-audit --no-fund @jackwener/opencli@1.8.8
207- package_dir="$install_dir/node_modules/@jackwener/opencli"
208- cli_entry="$package_dir/dist/src/main.js"
209- registry="$install_dir/registry.json"
210- node "$cli_entry" --version | tee platform-evidence/installed-opencli-version.txt
211- grep -Fx '1.8.8' platform-evidence/installed-opencli-version.txt
212- node "$cli_entry" list -f json > "$registry"
213- OPENCLI_INSTALLED_NODE="$(node -p 'process.execPath')"
214- OPENCLI_INSTALLED_ENTRY="$(cygpath -w "$cli_entry")"
215- OPENCLI_INSTALLED_REGISTRY="$(cygpath -w "$registry")"
216- OPENCLI_INSTALLED_BATCH_SHIM="$(cygpath -w "$install_dir/node_modules/.bin/opencli.cmd")"
217- export OPENCLI_INSTALLED_NODE OPENCLI_INSTALLED_ENTRY OPENCLI_INSTALLED_REGISTRY OPENCLI_INSTALLED_BATCH_SHIM
218- mvn -B --no-transfer-progress -Dtest=OpenCliInstalledLauncherIT,OpenCliCapabilityOverrideIT,OpenCliReadOnlyDiagnosticsIT test
218+ run : bash scripts/run_installed_contracts.sh mvn
219219 - name : Upload platform subprocess evidence
220220 if : always()
221221 uses : actions/upload-artifact@v7
0 commit comments