Deploy verified native itemshop to production with economic backups

This commit is contained in:
shen
2026-10-19 16:59:31 -07:00
parent 32831010c0
commit 275c7e5211
3 changed files with 216 additions and 2 deletions
+36 -2
View File
@@ -31,5 +31,39 @@ award rows. New clients use revision mt20261020. Legacy clients cannot request G
No web recharge service or wheel reward service is enabled.
Acceptance evidence: `metin2-client/docs/AVA2-ITEMSHOP.md` and
`metin2-client/audit/evidence/itemshop/`. Only sbtest was changed; production binaries,
prices, balances and catalogue activation were not deployed by this task.
`metin2-client/audit/evidence/itemshop/`.
## Production release, 2026-10-20 (server CEST)
203 now runs the verified sbtest game/db pair: game `56975b48aa2fd40389c57eab84d017b0a2518cf6e1b573d967bf239f4ae04aba`,
db `dc940401fe6ccc3410c8d90ce98d2a5bad2e2c023279665bcd664c008d011699`.
The deployment retains the existing native battle pass, wiki, calendar and other cumulative game changes.
The release delta is the native shop, DB prototype-index fix, transactional schema and
49 enabled original offers. The remaining 168 offers, recharge and wheel services stay disabled.
Production 70002 was still ITEM_NONE; its text/SQL prototype is now ITEM_USE/USE_SPECIAL,
matching the tested third-hand implementation. Other prototypes were not replaced with test data.
Deployment package: `/root/deploy-features/20261020-itemshop`.
Backup: `/root/backup-itemshop/20261020-014955` (old binaries, original prototype,
full account/player SQL dump and pre-deployment error-log offsets).
`deploy.py` gracefully stops game/auth, then db; backs up SQL before migration; starts
db first and then auth and all 13 production game cores. sbtest remains independent.
Read-only health check:
```
/usr/local/bin/python3.9 /root/deploy-features/20261020-itemshop/deploy.py check
```
Binary rollback:
```
/usr/local/bin/python3.9 /root/deploy-features/20261020-itemshop/deploy.py rollback --backup /root/backup-itemshop/20261020-014955
```
Rollback retains InnoDB, coins, orders, awards and the compatible third-hand prototype.
Never restore the pre-release SQL dump over subsequent player purchases.
CH1 acceptance with a temporary ordinary account verified all 49 catalogue entries/icons,
insufficient funds without an order, a 99-coin purchase, same-token replay without another
charge/order, purchase history and mall redemption into inventory. Test account, character,
coins, orders, awards and items were removed; its one test sale was subtracted without
resetting other sales. Existing players received no test currency. db/auth/13 cores remained
healthy after cleanup. macOS release bundle and connected Android client's APK/resources
were updated; Android in-game purchase acceptance is not claimed by this release.