From sandbox to production: what the test data left behind
The Payme keys arrived and the sandbox tests passed. Switching to production turned out to be mostly about cleaning up after the tests.
My Thoughts
13 posts
The Payme keys arrived and the sandbox tests passed. Switching to production turned out to be mostly about cleaning up after the tests.
Budget limits set in the bot now show up in the Mini App, and income and expenses can be viewed for any period. Testing it on a "phone" took a trick.
With several goals, "I took 2 million out of the car savings" was always taken from the main goal. Five small bugs explained why.
Automatic payment for Tanga goes through Payme's Merchant API. Most of it is in the docs; three edge cases I had to take from Payme's own reference code.
The tangabot.uz landing page ships no JavaScript at all, so its new 3D motion had to be pure CSS.
A new System page in the admin panel shows whether the bot is alive, which scheduled jobs ran and what failed — without the panel touching private records.
admin.tangabot.uz stopped opening while the service reported itself as running. Two threads were waiting for each other inside the database driver.
The admin panel learned to broadcast video. The trick was to upload the file once and send everyone a reference to it.
The project moved to its own domain. Along the way: DNS, a deploy script that had never once run, and a health check still pointing at the old address.
The bot sent me "⚠️ Bot error". On inspection the problem wasn't in my code but on Telegram's servers.
Two days after switching to Gemini I opened the bill: most of the money went somewhere I didn't expect.
There were 334 tests and all of them passed. Reading the whole codebase still turned up six logic bugs the tests never covered.