Files
ubicloud/model/github_installation.rb
Enes Cakir 32bcff4ea2 Fix free premium runner upgrade logic
If a free premium upgrade is enabled for an installation, we bill based
on the original VM size, not the upgraded one.

Previously, runners were upgraded during provisioning when the free
upgrade was active. However, if the upgrade expired before the runner
was destroyed, we ended up charging based on the upgraded VM size, since
the upgrade was no longer active at billing time.

To fix this, we check the free upgrade expiration time against the
runner creation time, not the current time.
2025-07-03 18:14:55 +03:00

2.1 KiB