hex/tests/fixtures/release-protocol/manifests.json

29 lines
10 KiB
JSON

{
"description": "Manifests referenced by decisions.json. Each `manifest` is the exact text a client would fetch.",
"manifests": {
"base": {
"note": "2.4.0 at 25% rollout, minimum 2.0.0, 2.3.9 revoked; brew current, npm lagging at 2.3.8, aur pending.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 10,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.4.0\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 25,\n \"minimum_version\": \"2.0.0\",\n \"revoked_versions\": [\n \"2.3.9\"\n ],\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ]\n }\n}"
},
"halted": {
"note": "Rollout set to 0: nobody new receives 2.4.0, but the minimum still applies.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 11,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.4.0\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 0,\n \"minimum_version\": \"2.0.0\",\n \"revoked_versions\": [\n \"2.3.9\"\n ],\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ]\n }\n}"
},
"rollback": {
"note": "2.4.0 revoked; the channel points back at 2.3.8.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 12,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.3.8\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.3.8\",\n \"rollout_percent\": 25,\n \"minimum_version\": \"2.0.0\",\n \"revoked_versions\": [\n \"2.3.9\",\n \"2.4.0\"\n ],\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.3.8\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ]\n }\n}"
},
"dev": {
"note": "Dev channel prerelease 2.5.0-dev.10 at full rollout.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"dev\",\n \"sequence\": 10,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.5.0-dev.10\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 100,\n \"revoked_versions\": [],\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ]\n }\n}"
},
"malformed": {
"note": "version is not semver.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 10,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.4\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 25,\n \"minimum_version\": \"2.0.0\",\n \"revoked_versions\": [\n \"2.3.9\"\n ],\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ]\n }\n}"
},
"future-fields": {
"note": "Unknown fields, which clients ignore.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 10,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.4.0\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 25,\n \"minimum_version\": \"2.0.0\",\n \"revoked_versions\": [\n \"2.3.9\"\n ],\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ],\n \"highlights\": []\n },\n \"mirror\": \"ignored\"\n}"
}
}
}