Homec4science

Split setup check phases into "preflight" and "post-config"

Authored by epriestley <git@epriestley.com> on Sep 6 2016, 21:25.

Description

Split setup check phases into "preflight" and "post-config"

Summary:
Ref T11589. This runs:

  • preflight checks (critical checks: PHP version stuff, extensions);
  • configuration;
  • normal checks.

The PHP checks are split into critical ("bad version") and noncritical ("sub-optimal config").

I tidied up the extension checks slightly, we realistically depend on cURL nowadays.

Test Plan:

  • Faked a preflight failure.
  • Hit preflight check.
  • Got expected error screen.
  • Loaded normal pages.
  • Hit a normal setup check.
  • Used DarkConsole "Startup" tab to verify that preflight checks take <1ms to run (we run them on every page without caching, at least for now, but they only do trivial checks like PHP versions).

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11589

Differential Revision: https://secure.phabricator.com/D16500

Details

Committed
epriestley <git@epriestley.com>Sep 6 2016, 23:20
Pushed
aubortJan 31 2017, 17:16
Parents
rPHaf5769a6be28: Add a "--copy" flag to "bin/files migrate"
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH309960146344: Split setup check phases into "preflight" and "post-config" (authored by epriestley <git@epriestley.com>).Sep 6 2016, 23:20