Shell follow-ups: CI cargo caching and wasm-opt for the bundle #26
Labels
No labels
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/factory-game-v3#26
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two deferred items from the #18 shell landing, both quality-of-life rather than blockers.
1. CI cargo caching. With
factory_shellin the workspace, everycargo test --workspacein CI pays a cold Bevy compile inside a fresh container. The gate timeout was raised to 30 minutes to absorb it (#24 commit41fbc51), but a cache would cut most runs to a fraction. Options:actions/cacheover~/.cargo/registry+target/keyed onCargo.lock, or a runner-local shared cache dir if the Forgejo runner supports it. Watch out for cache size - Bevy target dirs are multi-GB, so a registry-only cache may be the sane first step.2. wasm-opt. The shell's release wasm bundle is 76MB un-optimized (
data-wasm-opt="0"in index.html -stripis a no-op for wasm). nginx gzip blunts the wire cost but wasm-opt would cut the raw size several-fold. When enabling it, use the upstream binaryen release, not Debian's - the galaxy-gen Dockerfile documents theWebAssembly.Table.growinstantiation bug the Debian build triggers. This should land with or before the #16 viewer implementation, which will grow the bundle further.Neither item changes shell behavior. Acceptance: CI median run time drops meaningfully with caching, and the deployed bundle shrinks with wasm-opt while still rendering in Chrome.