Skip to content

Fix deployment issues, add validation tests, and rebuild - #201

Merged
Goldbarn merged 2 commits into
mainfrom
sebastian/pages-rebuild
Apr 27, 2026
Merged

Fix deployment issues, add validation tests, and rebuild#201
Goldbarn merged 2 commits into
mainfrom
sebastian/pages-rebuild

Conversation

@sbetanco0305

Copy link
Copy Markdown
Collaborator

Rebuilds the game after syncing with main and includes all active deployment fixes. Also adds automated tests to catch deployment regressions.
Changes:

docs/ — Rebuilt with latest changes from main, includes all HiDPI and autoplay fixes
src/render.py — Updated credits to reflect deployment role
src/test_cases/test_deployment.py — 6 new automated deployment validation tests:

No sys.exit() calls in game code (crashes WebAssembly runtime)
No illegal from asyncio import X statements in source files (conflicts with pygbag's event loop)
All sound loads use resolve_asset_path() (bare paths fail on server)
Built docs/index.html contains the HiDPI canvas fix (fixCanvas)
Built docs/index.html does not contain the broken pythonrc.py prefetch
Built docs/index.html does not contain width: 100% canvas sizing

These tests will automatically flag issues like the from asyncio import events bug from PR #194 before they get merged rather than being discovered after deployment.

@Goldbarn
Goldbarn self-requested a review April 27, 2026 22:11
@Goldbarn
Goldbarn merged commit 0292163 into main Apr 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants