KampányMűvek / 15 September 2026
alpha.10 broke the site-upgrade CLI — so a regression test protects it now
After the new image feature, a lifecycle import regression broke `site-upgrade`. The fix did not stop at restoring the code: it added a regression test that executes a real upgrade path.

Situation
A platform feature breaking the very tool responsible for rolling that version out is a particularly bad failure mode. After the alpha.10 image optimization work, one dynamic-import path in the lifecycle CLI became invalid. The build itself still worked, but the upgrade lifecycle did not.
Approach
We restored the stable alpha.9 lifecycle implementation while keeping the new image feature. Then we added two safeguards: a test for the problematic literal dynamic-import pattern and a real `site-upgrade` CLI installation/execution regression test that exercises the lifecycle path rather than only module loading.
Outcome
`site-upgrade` worked again, and the same class of failure could no longer return unnoticed. The regression became a test that directly protects one of the platform's most critical lifecycle capabilities.