Earlier detection of rails application errors when deploying review apps
Context
Some review-apps deployments fail because of application misconfiguration in the MR:
https://gitlab.com/gitlab-org/gitlab/-/jobs/2601399781
Please specify a valid ruby command or the path of a script to run. Run 'rails runner -h' for help. undefined method `personal_access_tokens' for nil:NilClass command terminated with exit code 1
Unfortunately, I don't have a lot of recent examples, as their namespaces got deleted...
Goal
I think application errors preventing the rails app to boot could be detected way earlier in the pipeline, ensuring that the application is runnable.
Possible implementations ideas
- Run the rails app, and expecting a "database not present error", which would mean that the application container itself ran successfully
- Deploy the helm chart to a Kubernetes-IN-Docker (kind) container (we also have some docs on kind)
Edited by David Dieulivol