All checks were successful
standards workspaces build + test / which workspaces this change touches (pull_request) Successful in 9s
wai-audit collector and player integration / does this change touch it (pull_request) Successful in 11s
WAI breaking changes and the conformance runner / WAI breaking · does this change touch WAI (pull_request) Successful in 17s
WAI operation catalogue / does this change touch it (pull_request) Successful in 1m16s
WAI conformance / does this change touch it (pull_request) Successful in 51s
wai-quantum on every processor / emulated · aarch64-unknown-linux-gnu (pull_request) Successful in 2m13s
WAI energy receipts / does this change touch it (pull_request) Successful in 11s
WAI examples / WAI examples · does this change touch them (pull_request) Successful in 10s
wai-quantum contract / does this change touch it (pull_request) Successful in 12s
wai-quantum command line / does this change touch it (pull_request) Successful in 13s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 32s
wai-quantum dataflow member / does this change touch it (pull_request) Successful in 6s
wai-quantum CUDA member / does this change touch it (pull_request) Successful in 8s
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (pull_request) Successful in 2m46s
wai-quantum docs, course and locales / does this change touch it (pull_request) Successful in 8s
wai-quantum signal processor / does this change touch it (pull_request) Successful in 8s
wai-quantum editors / does this change touch it (pull_request) Successful in 6s
wai-quantum resource estimation / does this change touch it (pull_request) Successful in 7s
wai-quantum FPGA member / does this change touch it (pull_request) Successful in 7s
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (pull_request) Successful in 2m31s
wai-quantum HIP member / does this change touch it (pull_request) Successful in 7s
wai-quantum on every processor / emulated · loongarch64-unknown-linux-gnu (pull_request) Successful in 3m1s
wai-quantum for JavaScript / does this change touch it (pull_request) Successful in 8s
wai-quantum OpenQASM reader / does this change touch it (pull_request) Successful in 9s
wai-quantum CUDA member / member · CUDA (jetson-hub) (pull_request) Successful in 31s
wai-quantum Metal member / does this change touch it (pull_request) Successful in 10s
wai-quantum npu-cores member / does this change touch it (pull_request) Successful in 10s
wai-quantum neural-processor member / does this change touch it (pull_request) Successful in 9s
wai-quantum OpenCL member / does this change touch it (pull_request) Successful in 8s
wai-quantum for Python / does this change touch it (pull_request) Successful in 8s
wai-quantum error correction and mitigation / does this change touch it (pull_request) Successful in 7s
WAI conformance / codec wrappers · fuzz smoke, text decode limits, C entry points, provenance, the semantic path (pull_request) Successful in 1m24s
wai-quantum-qpu / does this change touch it (pull_request) Successful in 7s
wai-quantum matrix-extension member / does this change touch it (pull_request) Successful in 8s
wai-quantum service / does this change touch it (pull_request) Successful in 9s
wai-quantum studio and desktop / does this change touch it (pull_request) Successful in 9s
wai-quantum tensor-engine member / does this change touch it (pull_request) Successful in 8s
wai-quantum portable tensor program / does this change touch it (pull_request) Successful in 10s
wai-quantum CPU vector units / does this change touch it (pull_request) Successful in 9s
wai-quantum OpenCL member / member · OpenCL GPU and CPU (jetson-hub) (pull_request) Successful in 32s
wai-quantum verdicts and repairs / does this change touch it (pull_request) Successful in 10s
wai-quantum views in agent hosts / does this change touch it (pull_request) Successful in 12s
wai-quantum WebGPU member / does this change touch it (pull_request) Successful in 17s
wai-sink-android native sink library / does this change touch it (pull_request) Successful in 18s
wai-sink-swift native sink package / does this change touch it (pull_request) Successful in 17s
wai-quantum on every processor / emulated · armv7-unknown-linux-gnueabihf (pull_request) Successful in 4m33s
WAI Studio / does this change touch it (pull_request) Successful in 28s
wai-web wasm32 / does this change touch it (pull_request) Successful in 27s
WAI conformance / fast integer kernels, every x86_64 kernel set (AVX-512 silicon) (pull_request) Successful in 2m59s
wai-quantum service / service energy · linux packages (pull_request) Successful in 1m22s
wai-quantum HIP member / member · HIP (framework-128gb) (pull_request) Successful in 31s
wai-quantum portable tensor program / tensor program · GPUs (jetson-hub) (pull_request) Successful in 23s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 1m8s
wai-quantum command line / command line · macos (pull_request) Successful in 2m39s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 6m13s
wai-quantum on every processor / emulated · powerpc64le-unknown-linux-gnu (pull_request) Successful in 6m26s
wai-web reach builds / wai-web reach · does this change touch it (pull_request) Successful in 6s
wai-quantum dataflow member / member · dataflow device absent (macos) (pull_request) Successful in 45s
wai-quantum editors / editors · macos (pull_request) Successful in 59s
wai-quantum npu-cores member / member · npu-cores, neural processor (framework-128gb silicon) (pull_request) Successful in 1m36s
wai-quantum OpenCL member / member · OpenCL GPU (framework-128gb) (pull_request) Successful in 25s
wai-audit collector and player integration / collector · linux (pull_request) Successful in 1m23s
wai-quantum portable tensor program / tensor program · integrated GPU (framework-128gb) (pull_request) Successful in 12s
wai-quantum on every processor / emulated · s390x-unknown-linux-gnu (pull_request) Successful in 6m5s
wai-quantum CPU vector units / member · vector units, avx2 and avx512 (framework-128gb silicon) (pull_request) Successful in 23s
wai-quantum FPGA member / member · FPGA datapath, simulated (macos) (pull_request) Successful in 2m30s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 7m22s
wai-quantum on every processor / emulated · i686-unknown-linux-gnu (pull_request) Successful in 5m30s
WAI breaking changes and the conformance runner / WAI breaking · wire, record and API against main · linux (pull_request) Successful in 2m11s
wai-quantum Metal member / member · Metal (macos) (pull_request) Successful in 57s
wai-quantum on every processor / emulated · powerpc64-unknown-linux-gnu (pull_request) Successful in 10m31s
wai-quantum OpenCL member / member · OpenCL GPU (macos) (pull_request) Successful in 37s
wai-quantum-qpu / credentials in the keychain (macos) (pull_request) Successful in 27s
WAI breaking changes and the conformance runner / WAI breaking and conform · their tests, and the independent verifiers through wai conform · linux (pull_request) Successful in 2m49s
wai-quantum matrix-extension member / member · matrix extension absent (macos) (pull_request) Successful in 15s
wai-quantum neural-processor member / member · neural processor (macos) (pull_request) Successful in 4m31s
wai-quantum WebGPU member / member · DX12 and Vulkan (cbio-windows) (pull_request) Successful in 12m24s
wai-quantum for Python / python · macos (pull_request) Successful in 2m7s
wai-quantum service / service · macos (pull_request) Successful in 1m17s
wai-quantum on every processor / emulated · riscv64gc-unknown-linux-gnu (pull_request) Successful in 12m42s
wai-quantum portable tensor program / tensor program · Metal and the arm64 CPU (macos) (pull_request) Successful in 23s
wai-quantum CPU vector units / member · vector unit absent (macos) (pull_request) Successful in 20s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 35s
WAI examples / WAI examples · the archive, the readiness check, the browser and Apple · macos (pull_request) Successful in 10m23s
WAI conformance / faces from keypoints under wasm32-wasip2 (wasmtime) (pull_request) Successful in 2m17s
WAI conformance / quantum core and corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 3m40s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Successful in 10m4s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 3m22s
WAI operation catalogue / the catalogue and every door · linux (pull_request) Successful in 5m29s
wai-quantum WebGPU member / member · browser WebGPU (macos) (pull_request) Successful in 2m44s
wai-quantum command line / command line · linux (pull_request) Successful in 3m15s
wai-quantum WebGPU member / member · Metal (macos) (pull_request) Successful in 4m36s
wai-quantum on every processor / emulated · sparc64-unknown-linux-gnu (pull_request) Successful in 14m48s
wai-quantum contract / the policy is linked, and the deprecations page reads (pull_request) Successful in 8s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 5m29s
wai-quantum WebGPU member / member · integrated GPU, Vulkan (framework-128gb) (pull_request) Successful in 10m43s
wai-quantum contract / API compatibility · linux (pull_request) Successful in 5m31s
wai-quantum studio and desktop / desktop app · windows (pull_request) Successful in 9m7s
wai-quantum contract / schemas and the committed tool lists · linux (pull_request) Successful in 5m12s
wai-quantum CUDA member / member · CUDA absent (linux) (pull_request) Successful in 40s
WAI examples / WAI examples · portable · linux (pull_request) Successful in 9m56s
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:401e) (pull_request) Successful in 2m21s
wai-quantum docs, course and locales / the Studio's words in every locale · linux (pull_request) Successful in 20s
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:b140) (pull_request) Successful in 6m37s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 23m0s
wai-quantum docs, course and locales / the course and the command line's languages · linux (pull_request) Successful in 1m55s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Successful in 11m38s
wai-quantum resource estimation / estimation and calibration · linux, release (pull_request) Successful in 1m53s
WAI Studio / Studio in Chromium and Firefox · macos (pull_request) Successful in 11m55s
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Successful in 13m15s
wai-quantum FPGA member / member · FPGA simulation absent (linux) (pull_request) Successful in 22s
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 12s
wai-quantum editors / editors · linux (pull_request) Successful in 2m47s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 33s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 24m19s
wai-quantum WebGPU member / member · discrete GPU, Vulkan (jetson-hub) (pull_request) Successful in 23m6s
wai-quantum OpenQASM reader / reader and corpus · linux (pull_request) Successful in 1m58s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 1m46s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 16m56s
wai-quantum OpenQASM reader / corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 43s
wai-quantum Metal member / member · Metal absent (linux) (pull_request) Successful in 27s
wai-quantum for JavaScript / javascript · linux (pull_request) Successful in 2m51s
wai-quantum neural-processor member / member · neural processor absent (linux) (pull_request) Successful in 22s
wai-quantum OpenCL member / member · OpenCL absent (linux) (pull_request) Successful in 28s
wai-quantum-qpu / clients against their contracts (linux) (pull_request) Successful in 40s
wai-quantum matrix-extension member / member · matrix extension, emulated (aarch64 Linux) (pull_request) Successful in 22s
wai-quantum for Python / python · linux (pull_request) Successful in 2m48s
wai-quantum error correction and mitigation / codes, decoders, texts and mitigation · linux, release (pull_request) Successful in 2m43s
wai-quantum service / service · linux (pull_request) Successful in 1m51s
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Successful in 4m48s
wai-quantum HIP member / member · HIP absent (linux-arm64) (pull_request) Successful in 25s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 25m52s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 7m8s
wai-quantum npu-cores member / member · npu-cores absent (linux-arm64) (pull_request) Successful in 25s
wai-quantum tensor-engine member / member · tensor engine absent (linux-arm64) (pull_request) Successful in 19s
wai-quantum portable tensor program / tensor program · CPU, mutants, GPU builds (pull_request) Successful in 1m4s
wai-quantum CPU vector units / member · vector unit, rvv 1024-bit (riscv64, emulated) (pull_request) Successful in 32s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Successful in 2m9s
wai-quantum CPU vector units / member · vector unit, sve 128-bit (aarch64, emulated) (pull_request) Successful in 44s
wai-quantum CPU vector units / member · vector unit, rvv 128-bit (riscv64, emulated) (pull_request) Successful in 14s
wai-quantum CPU vector units / member · vector unit, sve 2048-bit (aarch64, emulated) (pull_request) Successful in 10s
wai-quantum studio and desktop / studio · browser (pull_request) Successful in 5m26s
wai-quantum CPU vector units / member · vector unit, avx2 (x86_64 silicon) (pull_request) Successful in 21s
wai-quantum CPU vector units / member · vector unit, sve 512-bit (aarch64, emulated) (pull_request) Successful in 21s
wai-quantum signal processor / processor and member · signal processor, emulated (pull_request) Successful in 15m43s
wai-quantum verdicts and repairs / the intent set and the verdict under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m28s
wai-quantum verdicts and repairs / verdicts, repairs and the intent set · linux (pull_request) Successful in 1m55s
wai-quantum studio and desktop / desktop app · linux (pull_request) Successful in 7m53s
wai-quantum views in agent hosts / views · the page and its engine (pull_request) Successful in 2m36s
wai-quantum tensor-engine member / member · tensor engine, the kernel toolchain's simulator (linux) (pull_request) Successful in 8m1s
WAI Studio / the catalogue's actions, the unit tests and the core · linux (pull_request) Successful in 1m8s
wai-quantum WebGPU member / member · software Vulkan (linux) (pull_request) Successful in 2m33s
wai-quantum views in agent hosts / views · a scripted host (pull_request) Successful in 3m40s
wai-quantum docs, course and locales / every command and snippet in the docs · linux (pull_request) Successful in 21m55s
wai-quantum WebGPU member / shader checks · browser build · wasip2 inertness · MSRV (pull_request) Successful in 4m9s
wai-web reach builds / wai-web reach builds · the package of record, every output as recorded (pull_request) Successful in 2m54s
wai-web reach builds / wai-web reach builds · this tree's wai-web, every rung on its engine line (pull_request) Successful in 4m53s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 6m59s
WAI Studio / Studio in WebKit · linux (pull_request) Successful in 10m43s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 1h1m21s
The app asked latest.json on a pre-release, wai-quantum-desktop-latest, which each signed release replaced. That release would have sat in the repository's release list beside the versioned ones. Now: - the app asks https://wai.transaction.science/quantum-studio-desktop/latest.json; - each signed release attaches its own latest.json and nothing else; - the website takes it from that release when it is next deployed, with scripts/sync-desktop-update.sh <version> in its repository. That script refuses a manifest for another version, an update not on that release, a signature not made for that version, or a version older than the one the site serves. manifests.py loses its pointer file and the check for a newer manifest, which moves to the website's script. publish.sh loses RELEASE_PRERELEASE and RELEASE_BODY, which only that release used. Co-Authored-By: Claude Opus 5.5 <[email protected]>
175 lines
6.9 KiB
Python
175 lines
6.9 KiB
Python
"""The package managers' entries and the update manifest for a Quantum Studio
|
|
desktop release, from the assets attached to it:
|
|
|
|
python3 release/manifests.py <version> <tag> <forge-api> <owner/repo> <public-url> <out-dir>
|
|
|
|
Writes into <out-dir>:
|
|
|
|
wai-quantum-desktop.rb a Homebrew cask (macOS), from the disk images and their SHA-256 files
|
|
(wai-quantum-desktop.rb.in);
|
|
wai-quantum-desktop.json a Scoop manifest (Windows), from the portable archive and its SHA-256
|
|
(wai-quantum-desktop.json.in);
|
|
latest.json the update manifest, from the update signatures: written only when
|
|
the builds were signed for updates. The website serves it to the app
|
|
(its scripts/sync-desktop-update.sh takes it from this release).
|
|
|
|
A platform whose assets are not attached is left out, and stderr says so; with nothing at
|
|
all, it fails. The cask says `auto_updates true` only when the macOS builds were signed for
|
|
updates, since only then does the app update itself.
|
|
|
|
The environment: FORGE_TOKEN (optional) for the API; ASSETS_DIR reads the assets from a
|
|
local folder instead of the release (the test does); MACOS_NOTARISED=true leaves out the
|
|
cask's caveat for an app signed ad hoc.
|
|
"""
|
|
|
|
import json
|
|
import os
|
|
import pathlib
|
|
import string
|
|
import sys
|
|
import urllib.request
|
|
|
|
version, tag, api, repo, public, out = sys.argv[1:7]
|
|
here = pathlib.Path(__file__).resolve().parent
|
|
token = os.environ.get("FORGE_TOKEN", "")
|
|
# A user agent of our own: the public address refuses the library's default one.
|
|
headers = {"User-Agent": "wai-quantum-release"}
|
|
if token:
|
|
headers["Authorization"] = f"token {token}"
|
|
# The forge's own address, as the API's: assets are read there, over the private network,
|
|
# not through the public address the entries point users to.
|
|
web = api.rsplit("/api/v1", 1)[0]
|
|
local = os.environ.get("ASSETS_DIR")
|
|
notarised = os.environ.get("MACOS_NOTARISED", "") == "true"
|
|
|
|
|
|
def get(url):
|
|
with urllib.request.urlopen(urllib.request.Request(url, headers=headers), timeout=60) as r:
|
|
return r.read()
|
|
|
|
|
|
if local:
|
|
names = set(os.listdir(local))
|
|
published = None
|
|
|
|
def read(name):
|
|
return pathlib.Path(local, name).read_text()
|
|
else:
|
|
release = json.loads(get(f"{api}/repos/{repo}/releases/tags/{tag}"))
|
|
names = {a["name"] for a in release.get("assets", [])}
|
|
published = release.get("published_at") or release.get("created_at")
|
|
|
|
def read(name):
|
|
return get(f"{web}/{repo}/releases/download/{tag}/{name}").decode()
|
|
|
|
|
|
def asset(triple, suffix):
|
|
return f"wai-quantum-desktop-{version}-{triple}{suffix}"
|
|
|
|
|
|
def url(name):
|
|
return f"{public}/releases/download/{tag}/{name}"
|
|
|
|
|
|
def digest(name):
|
|
"""The SHA-256 its .sha256 file states, or None when either is missing."""
|
|
if name not in names or name + ".sha256" not in names:
|
|
print(f"note: {name} is not attached; left out", file=sys.stderr)
|
|
return None
|
|
return read(name + ".sha256").split()[0]
|
|
|
|
|
|
def signature(name):
|
|
"""Its update signature (the .sig file's text, base64), or None."""
|
|
if name not in names:
|
|
return None
|
|
if name + ".sig" not in names:
|
|
print(f"note: {name} has no update signature; no update for it", file=sys.stderr)
|
|
return None
|
|
return read(name + ".sig").strip()
|
|
|
|
|
|
out_dir = pathlib.Path(out)
|
|
out_dir.mkdir(parents=True, exist_ok=True)
|
|
wrote = []
|
|
|
|
# The update manifest: each platform's update, under the names the updater looks for
|
|
# ({os}-{arch}-{installer}, then {os}-{arch}).
|
|
updates = [
|
|
(["darwin-aarch64"], "aarch64-apple-darwin", ".app.tar.gz"),
|
|
(["darwin-x86_64"], "x86_64-apple-darwin", ".app.tar.gz"),
|
|
(["linux-x86_64", "linux-x86_64-appimage"], "x86_64-unknown-linux-gnu", ".AppImage"),
|
|
(["linux-x86_64-deb"], "x86_64-unknown-linux-gnu", ".deb"),
|
|
(["linux-x86_64-rpm"], "x86_64-unknown-linux-gnu", ".rpm"),
|
|
(["linux-aarch64", "linux-aarch64-appimage"], "aarch64-unknown-linux-gnu", ".AppImage"),
|
|
(["linux-aarch64-deb"], "aarch64-unknown-linux-gnu", ".deb"),
|
|
(["linux-aarch64-rpm"], "aarch64-unknown-linux-gnu", ".rpm"),
|
|
(["windows-x86_64", "windows-x86_64-nsis"], "x86_64-pc-windows-msvc", "-setup.exe"),
|
|
]
|
|
platforms = {}
|
|
for keys, triple, suffix in updates:
|
|
name = asset(triple, suffix)
|
|
sig = signature(name)
|
|
if sig:
|
|
for k in keys:
|
|
platforms[k] = {"signature": sig, "url": url(name)}
|
|
if platforms:
|
|
manifest = {"version": version, "notes": f"Quantum Studio {version}: {public}/releases/tag/{tag}"}
|
|
if published:
|
|
manifest["pub_date"] = published
|
|
manifest["platforms"] = dict(sorted(platforms.items()))
|
|
(out_dir / "latest.json").write_text(json.dumps(manifest, indent=2) + "\n")
|
|
wrote.append(f"the update manifest ({', '.join(sorted(platforms))})")
|
|
else:
|
|
print("note: no update is signed (the release had no update key), so there is no update manifest", file=sys.stderr)
|
|
|
|
|
|
# The Homebrew cask, for the disk images.
|
|
blocks = []
|
|
for cpu, triple in (("arm", "aarch64-apple-darwin"), ("intel", "x86_64-apple-darwin")):
|
|
name = asset(triple, ".dmg")
|
|
sha = digest(name)
|
|
if sha:
|
|
blocks.append(
|
|
f' on_{cpu} do\n sha256 "{sha}"\n url "{url(name)}",\n'
|
|
f' verified: "{public.split("://", 1)[1]}/"\n end\n'
|
|
)
|
|
if blocks:
|
|
self_updating = any(k.startswith("darwin-") for k in platforms)
|
|
caveats = "" if notarised else (
|
|
'\n caveats <<~EOS\n'
|
|
' Quantum Studio is signed ad hoc and not yet notarised. If macOS blocks its first launch, run:\n'
|
|
' xattr -dr com.apple.quarantine "/Applications/Quantum Studio.app"\n'
|
|
' EOS\n'
|
|
)
|
|
cask = string.Template((here / "wai-quantum-desktop.rb.in").read_text()).substitute(
|
|
version=version,
|
|
arch_blocks="".join(blocks),
|
|
auto_updates="\n auto_updates true\n" if self_updating else "",
|
|
caveats=caveats,
|
|
)
|
|
(out_dir / "wai-quantum-desktop.rb").write_text(cask)
|
|
wrote.append("the Homebrew cask" + (" (the app updates itself)" if self_updating else ""))
|
|
|
|
# The Scoop manifest, for the portable archive.
|
|
win = asset("x86_64-pc-windows-msvc", "")
|
|
win_sha = digest(win + ".zip")
|
|
if win_sha:
|
|
fill = {"version": version, "url": url(win + ".zip"), "hash": win_sha, "extract_dir": win}
|
|
|
|
def filled(v):
|
|
if isinstance(v, str):
|
|
return string.Template(v).substitute(fill)
|
|
if isinstance(v, list):
|
|
return [filled(x) for x in v]
|
|
if isinstance(v, dict):
|
|
return {k: filled(x) for k, x in v.items()}
|
|
return v
|
|
|
|
scoop = filled(json.loads((here / "wai-quantum-desktop.json.in").read_text()))
|
|
(out_dir / "wai-quantum-desktop.json").write_text(json.dumps(scoop, indent=2) + "\n")
|
|
wrote.append("the Scoop manifest")
|
|
|
|
if not wrote:
|
|
sys.exit("no installer is attached to the release")
|
|
print(f"wrote {', '.join(wrote)} for Quantum Studio {version}")
|