Skip to content

Boot production rails server in preflight stage

David Dieulivol requested to merge ddieulivol-rails_server_boot_preflight into master

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

Screenshot_2023-03-09_at_16.29.47

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.

Edited by David Dieulivol

Merge request reports

Loading