x/build/app/appengine: automatically hide and stop testing old versions #34097
We make a change like CL 193477 every 6 months. It's usually a one line diff, but it still needs to be remembered, made, reviewed, and deployed each time.
Maybe it's time we automate it to reduce the amount of manual work to be done for each release.
By now, we have an endpoint
Edit on 2020-02-28: Found a related older issue #21556.
The text was updated successfully, but these errors were encountered:
We don't really even need to make an RPC.
It already reads from the datastore first and then uses that map to filter. We could just encode the policy into the dashboard instead (last two releases) and not list out what the last two releases are. We have the various branch/version parsing code now too, which makes it easier.
Also, because this is the first CL in this package to add tests, add a helper to return the right template filename depending on the environment (go test vs prod) so tests don't panic in init. Fixes golang/go#34097 Updates golang/go#34116 Change-Id: I4b3e83c2417611cfbdc32e27941dbb90687eb509 Reviewed-on: https://go-review.googlesource.com/c/build/+/194643 Reviewed-by: Dmitri Shuralyov <firstname.lastname@example.org>