Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions .github/workflows/release-experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,14 @@ jobs:
STORAGE_API_KEY: ${{ secrets.BUNNYCDN_STORAGE_API_KEY }}
STORAGE_NAME: ${{ secrets.BUNNYCDN_STORAGE_NAME }}
run: |
set +x
storage_request() {
{ printf 'AccessKey: %s\n' "$STORAGE_API_KEY"; } | curl -H @- "$@"
}
gunzip -t "$TARBALL"
curl -sS -X DELETE -H "AccessKey: $STORAGE_API_KEY" \
storage_request -sS -X DELETE \
"https://storage.bunnycdn.com/$STORAGE_NAME/$CDN_DIR/AgencyZeroExperimental.app.tar.gz" || true
curl -sS --fail-with-body -X PUT -H "AccessKey: $STORAGE_API_KEY" \
storage_request -sS --fail-with-body -X PUT \
-T "$TARBALL" \
"https://storage.bunnycdn.com/$STORAGE_NAME/$CDN_DIR/AgencyZeroExperimental.app.tar.gz"

Expand All @@ -179,7 +183,11 @@ jobs:
ZONE_API_KEY: ${{ secrets.BUNNYCDN_ZONE_API_KEY }}
ZONE_ID: ${{ secrets.BUNNYCDN_ZONE_ID }}
run: |
curl -sS --fail-with-body -X POST -H "AccessKey: $ZONE_API_KEY" \
set +x
zone_request() {
{ printf 'AccessKey: %s\n' "$ZONE_API_KEY"; } | curl -H @- "$@"
}
zone_request -sS --fail-with-body -X POST \
"https://bunnycdn.com/api/pullzone/$ZONE_ID/purgeCache"
LOCAL=$(shasum -a 256 "$TARBALL" | cut -d' ' -f1)
for attempt in 1 2 3 4 5 6; do
Expand All @@ -201,12 +209,19 @@ jobs:
ZONE_API_KEY: ${{ secrets.BUNNYCDN_ZONE_API_KEY }}
ZONE_ID: ${{ secrets.BUNNYCDN_ZONE_ID }}
run: |
curl -sS -X DELETE -H "AccessKey: $STORAGE_API_KEY" \
set +x
storage_request() {
{ printf 'AccessKey: %s\n' "$STORAGE_API_KEY"; } | curl -H @- "$@"
}
zone_request() {
{ printf 'AccessKey: %s\n' "$ZONE_API_KEY"; } | curl -H @- "$@"
}
storage_request -sS -X DELETE \
"https://storage.bunnycdn.com/$STORAGE_NAME/$CDN_DIR/latest.json" || true
curl -sS --fail-with-body -X PUT -H "AccessKey: $STORAGE_API_KEY" \
storage_request -sS --fail-with-body -X PUT \
-T latest-experimental.json \
"https://storage.bunnycdn.com/$STORAGE_NAME/$CDN_DIR/latest.json"
curl -sS --fail-with-body -X POST -H "AccessKey: $ZONE_API_KEY" \
zone_request -sS --fail-with-body -X POST \
"https://bunnycdn.com/api/pullzone/$ZONE_ID/purgeCache"

for attempt in 1 2 3 4 5 6; do
Expand Down
35 changes: 27 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,17 +267,21 @@ jobs:
STORAGE_API_KEY: ${{ secrets.BUNNYCDN_STORAGE_API_KEY }}
STORAGE_NAME: ${{ secrets.BUNNYCDN_STORAGE_NAME }}
run: |
set +x
storage_request() {
{ printf 'AccessKey: %s\n' "$STORAGE_API_KEY"; } | curl -H @- "$@"
}
# A truncated or corrupt local build must never reach storage; after
# this gate, any corruption seen at the edge is the CDN's doing.
gunzip -t "$BUNDLE_DIR/AgencyZero.app.tar.gz" || {
echo "::error::the built tarball is not a valid gzip"; exit 1;
}
upload() {
local file="$1" dest="$2" attempt=1 code
curl -sS -X DELETE -H "AccessKey: $STORAGE_API_KEY" \
storage_request -sS -X DELETE \
"https://storage.bunnycdn.com/$STORAGE_NAME/$dest" || true
while [ "$attempt" -le 4 ]; do
code=$(curl -sS -X PUT -H "AccessKey: $STORAGE_API_KEY" \
code=$(storage_request -sS -X PUT \
-T "$file" -o /dev/null -w '%{http_code}' \
"https://storage.bunnycdn.com/$STORAGE_NAME/$dest")
case "$code" in
Expand All @@ -301,11 +305,15 @@ jobs:
ZONE_API_KEY: ${{ secrets.BUNNYCDN_ZONE_API_KEY }}
ZONE_ID: ${{ secrets.BUNNYCDN_ZONE_ID }}
run: |
set +x
zone_request() {
{ printf 'AccessKey: %s\n' "$ZONE_API_KEY"; } | curl -H @- "$@"
}
if [ -z "$ZONE_API_KEY" ] || [ -z "$ZONE_ID" ]; then
echo "::error::BUNNYCDN_ZONE_API_KEY and BUNNYCDN_ZONE_ID are required: a versionless URL that is not purged serves the previous release forever."
exit 1
fi
curl -sS --fail-with-body -X POST -H "AccessKey: $ZONE_API_KEY" \
zone_request -sS --fail-with-body -X POST \
"https://bunnycdn.com/api/pullzone/$ZONE_ID/purgeCache"
echo "purged pull zone $ZONE_ID"

Expand All @@ -314,6 +322,10 @@ jobs:
ZONE_API_KEY: ${{ secrets.BUNNYCDN_ZONE_API_KEY }}
ZONE_ID: ${{ secrets.BUNNYCDN_ZONE_ID }}
run: |
set +x
zone_request() {
{ printf 'AccessKey: %s\n' "$ZONE_API_KEY"; } | curl -H @- "$@"
}
LOCAL=$(shasum -a 256 "$BUNDLE_DIR/AgencyZero.app.tar.gz" | cut -d' ' -f1)
for attempt in 1 2 3 4 5 6; do
curl -sS -L -o edge.tar.gz "$CDN_BASE/AgencyZero.app.tar.gz" || true
Expand All @@ -327,7 +339,7 @@ jobs:
echo "attempt $attempt: edge has $REMOTE, want $LOCAL"
if [ "$attempt" = 3 ]; then
echo "::warning::edge still stale after purge; purging the zone again"
curl -sS --fail-with-body -X POST -H "AccessKey: $ZONE_API_KEY" \
zone_request -sS --fail-with-body -X POST \
"https://bunnycdn.com/api/pullzone/$ZONE_ID/purgeCache" || true
fi
sleep 10
Expand All @@ -343,11 +355,18 @@ jobs:
ZONE_API_KEY: ${{ secrets.BUNNYCDN_ZONE_API_KEY }}
ZONE_ID: ${{ secrets.BUNNYCDN_ZONE_ID }}
run: |
curl -sS -X DELETE -H "AccessKey: $STORAGE_API_KEY" \
set +x
storage_request() {
{ printf 'AccessKey: %s\n' "$STORAGE_API_KEY"; } | curl -H @- "$@"
}
zone_request() {
{ printf 'AccessKey: %s\n' "$ZONE_API_KEY"; } | curl -H @- "$@"
}
storage_request -sS -X DELETE \
"https://storage.bunnycdn.com/$STORAGE_NAME/$CDN_DIR/latest.json" || true
curl -sS --fail-with-body -X PUT -H "AccessKey: $STORAGE_API_KEY" \
storage_request -sS --fail-with-body -X PUT \
-T latest.json "https://storage.bunnycdn.com/$STORAGE_NAME/$CDN_DIR/latest.json"
curl -sS --fail-with-body -X POST -H "AccessKey: $ZONE_API_KEY" \
zone_request -sS --fail-with-body -X POST \
"https://bunnycdn.com/api/pullzone/$ZONE_ID/purgeCache"

# latest.json is the version record, so a stale edge copy here means
Expand All @@ -363,7 +382,7 @@ jobs:
echo "attempt $attempt: edge serves '$LIVE', want '$VERSION'"
if [ "$attempt" = 3 ]; then
echo "::warning::edge still stale after purge; purging the zone again"
curl -sS --fail-with-body -X POST -H "AccessKey: $ZONE_API_KEY" \
zone_request -sS --fail-with-body -X POST \
"https://bunnycdn.com/api/pullzone/$ZONE_ID/purgeCache" || true
fi
sleep 10
Expand Down
17 changes: 4 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ members = [
exclude = ["crates/wt-migrate/v2-reader"]

[workspace.package]
version = "0.8.67"
version = "0.8.69"
edition = "2024"
publish = false

Expand All @@ -27,23 +27,14 @@ agency-proxy-protocol = "^0.1.11"
# The GUI and both storage tools compile the same schema against one resolved
# WorkTable package. A workspace dependency prevents their compatible ranges
# from drifting into separate copies without freezing the selected patch.
worktable = "1.10.0-beta1"
worktable = "^1.11.0"

# Heavy deps are declared per-crate on purpose: only apps/gui pulls in the
# Tauri stack, so agent/proxy builds never trigger a webview toolchain build.

# Local debugging only, alongside the path overrides in apps/gui/Cargo.toml.
# `izumo` takes blitz-dom and blitz-script by path but blitz-shell
# and blitz-traits from git at the same rev. Cargo treats those as two distinct
# crates, so the same trait exists twice and `ScriptDocument` stops satisfying
# `Document`, which reads as eleven unrelated type errors inside a dependency
# nobody edited. Redirect the git source at the checkout the paths already use.
# Same reason as the ps-blitz patch below: a local checkout so the present mode
# can be switched at runtime. FIFO blocks the main thread in `present`, which
# stalls event handling for a whole refresh interval per frame.
# The hybrid backend takes `anyrender` from crates.io while the vello backend
# takes the patched git one, which gives two copies of the trait and a renderer
# that cannot satisfy it. Pin both to the same checkout.
# The Ekojit adapter and renderer crates must resolve from the same checkouts so
# the document and host traits have one identity throughout the graph.
[profile.dev]
# GUI diagnostics come from logs and backtraces. Generating full symbol tables
# for WebKit and Tauri dependencies dominated clean local check time.
Expand Down
17 changes: 10 additions & 7 deletions apps/blitz-preview/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "agencyzero-blitz-preview"
description = "Native Blitz and Boa preview shell for the AgencyZero frontend"
version = "0.5.0"
version = "0.5.1"
edition = "2024"
publish = false
build = "build.rs"
Expand All @@ -17,14 +17,17 @@ anyrender_vello_cpu = { package = "ps-anyrender-vello-cpu", version = "^0.16.0",
# The ps-blitz line has to match izumo's: `izumo::set_document_factory` takes
# a factory returning its own `ps-blitz-script` `ScriptDocument`, and a second
# release line here would be a second, incompatible `ScriptDocument` type.
blitz-dom = { package = "ps-blitz-dom", version = "^0.4", features = ["system-fonts"] }
blitz-paint = { package = "ps-blitz-paint", version = "^0.4", features = ["scrollbars"] }
blitz-script = { package = "ps-blitz-script", version = "^0.4", features = ["system-fonts"] }
blitz-traits = { package = "ps-blitz-traits", version = "^0.4" }
blitz-dom = { package = "ps-blitz-dom", version = "^0.6.5", features = ["system-fonts"] }
blitz-paint = { package = "ps-blitz-paint", version = "^0.6.5", features = ["scrollbars"] }
blitz-script = { package = "ps-blitz-script", version = "^0.6.5", features = ["system-fonts"] }
blitz-script-ekojit = { package = "ps-blitz-script-ekojit", version = "^0.1.0", path = "../../../ekojit/crates/blitz-script-ekojit", features = ["system-fonts"] }
blitz-traits = { package = "ps-blitz-traits", version = "^0.6.5" }
brotli = { version = "^8.0.4", default-features = false, features = ["std"] }
png = { version = "^0.18.1", optional = true }
tauri = { version = "^2.11.5", default-features = false, features = ["compression"] }
izumo = "^0.4"
izumo = "^0.6.5"
blitz-control-protocol = "^0.7.2"
serde_json = "1"
url = "^2.5.8"

# For `--offscreen`: the activation policy has to be set before any window
Expand All @@ -50,7 +53,7 @@ capture = ["dep:anyrender_vello_cpu", "dep:png"]
# `diagnosticsUnavailable`, which reads as a broken harness rather than a
# missing feature. It is idle-cheap: the runtime flag still gates the work.
default = ["diagnostics"]
diagnostics = ["izumo/diagnostics"]
diagnostics = ["izumo/diagnostics", "blitz-script-ekojit/debug-control"]

[profile.release]
codegen-units = 1
Expand Down
Loading