Compare commits

...
Author SHA1 Message Date
cflmy 0f63ced004 build: record the installed CLI runtime identity in app release evidence
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/tag/ci Pipeline was canceled
2026-12-02 16:42:01 +08:00
cflmy 1bdc6cbc6f test: read the expected product version from the package manifest
ci/woodpecker/push/ci Pipeline is pending
2026-12-02 16:36:24 +08:00
cflmy 5573c7cacc release: prepare MQDH 0.1.0-beta.1 against CLI 3.0.0-rc.7
ci/woodpecker/push/ci Pipeline was canceled
Bump the product version to the public beta channel and pin the CI runtime
input to the root-accepted CLI v3.0.0-rc.7 archive digest.
2026-12-02 16:32:46 +08:00
cflmy 73e4f6e57d Merge pull request #22
ci/woodpecker/push/ci Pipeline was successful
test: real Gitea feedback submission acceptance (#16)
2026-12-01 13:43:20 +08:00
4 changed files with 11 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@marqdo/mqdh-harness",
"version": "0.1.0",
"version": "0.1.0-beta.1",
"description": "Marqdo Harness product services: ecosystem transactions, document-native execution, private knowledge and the /mqdh workbench",
"private": true,
"type": "module",
@@ -146,6 +146,7 @@ async function makeUpdater(authority: string): Promise<{
}
test('checks, verifies, activates and rolls back a signed application release', async () => {
const productVersion = JSON.parse(await readFile(new URL('../package.json', import.meta.url), 'utf8')).version as string
const target = (await detectPlatform()).target
const root = await mkdtemp(join(tmpdir(), 'mqdh-release-build-'))
const v2 = await buildRelease({ root, version: '0.2.0', target })
@@ -162,7 +163,7 @@ test('checks, verifies, activates and rolls back a signed application release',
assert.equal(checked.latest?.notes, '修复启动问题并更新默认 Bundle。')
assert.match(checked.latest?.release_url ?? '', /releases\/tag\/mqdh-v0\.3\.0$/)
assert.equal(checked.update_available, true)
assert.equal(checked.current?.version, '0.1.0')
assert.equal(checked.current?.version, productVersion)
const installed = await updater.install({ confirm: true, version: '0.2.0' })
assert.equal(installed.current?.version, '0.2.0')
+2 -2
View File
@@ -34,10 +34,10 @@ if [ -z "$cli_sha" ] && [ -n "${MARQDO_BIN:-}" ]; then
cli_sha="$(cat "$(dirname "$MARQDO_BIN")/SOURCE_SHA" 2>/dev/null || true)"
fi
if [ -z "$cli" ]; then
version="3.0.0-rc.6"
version="3.0.0-rc.7"
archive="$work/marqdo-$version.tar.gz"
url="https://git.cflmy.cn/cflmy/marqdo-cli/releases/download/v$version/marqdo-$version-x86_64-unknown-linux-gnu.tar.gz"
expected="8dc0b006302e03c23451b8ea9f8a0fcdae8bf67c80c546bee2434bf69755bfe3"
expected="10714820c9620b1b7b0da59e8d3930fc71b769a722aa80ede6fa889659de4613"
echo "mqdh ci: downloading pinned CLI $version"
curl -fsSL --retry 3 --max-time 300 -o "$archive" "$url"
actual="$(sha256sum "$archive" | awk '{print $1}')"
+6
View File
@@ -140,6 +140,12 @@ const evidence = {
signature: signed ? 'ed25519' : 'unsigned',
app: { source_sha: sourceSha, dsh_upstream_sha: upstreamSha, node },
compatibility: payload.compatibility,
dependencies: (() => {
const cliSha = (process.env.MQDH_CLI_SOURCE_SHA ?? '').trim()
if (cliSha === '') return []
if (!/^[0-9a-f]{40}$/.test(cliSha)) throw new Error('MQDH_CLI_SOURCE_SHA must be a full commit SHA')
return [{ id: 'cli', source_sha: cliSha }]
})(),
commands: [
`node scripts/release-manifest.ts --archive ${basename(archivePath)} --target ${target}`,
],