Boot production rails server in preflight stage
What does this MR do and why?
Closes gitlab-org/quality/engineering-productivity/team#178 (closed)
Boot the production rails server in the preflight stage, to help us detect pre-boot errors.
We run the rails server
command in the background, then we do a few retries on http://0.0.0.0:3000
. As soon as a retry passes, the job will succeed.
Note: The job took 2 minutes and 34 seconds. Since no important jobs will wait for them thanks to needs:
, it shouldn't be a problem.
Screenshots or screen recordings
https://gitlab.com/gitlab-org/gitlab/-/jobs/3912524366:
<html><body>You are being <a href="http://0.0.0.0:3000/users/sign_in">redirected</a>.</body></html>$ kill $(jobs -p)
- Gracefully stopping, waiting for requests to finish
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by David Dieulivol