exp:upgradeverify
Upgrade verify: re-detect every step and report drift; --after: the full check after an upgrade (steps, smoke addresses, tests, error log, autoloads).
Script bin/php/upgradeverify.php, code in kernel/private/classes/commands/upgradeverify.php. Run it from the installation root, as the user the web server runs as:
./console exp:upgradeverify --help
./console exp:upgrade:verify --help
php bin/php/upgradeverify.php --helpHelp text
Upgrade verify
Looks at every step again and lists drift: a step exp:upgrade recorded as done whose effect is
missing now (a table dropped, a policy removed). Exit 1 when there is drift. Changes nothing.
With --after, the check exp:upgrade --apply runs at its end: the steps (no drift, none failed),
the smoke addresses ([UpgradeSettings] SmokeURL[], else velocity.ini WarmUpURL[], else the front
page and the sign-in page: Apache and Velocity), the test suite upgrade-smoke, no new fatal line in
the error logs since --since, and the autoloads. Exit 1 when a check fails.
./console exp:upgrade:verify
./console exp:upgrade:verify --after
./console exp:upgrade:verify --after --url=https://www.example.com/ --no-tests --format=jsonOptions
| Option | Value | Help |
|---|---|---|
--stages | required | Only these stages, a comma list of code, libraries, database, scripts, finish (in that order) |
--format | required | text (default) or json (the machine output exp-upgrade/1) |
--after | The verification after an upgrade: steps, smoke addresses, tests, error log, autoloads | |
--url | required | The addresses the smoke check requests after the deploy (a comma list or repeated); default the front page of SiteURL |
--no-tests | Leave the test suite upgrade-smoke out of the verification | |
--since | required | The error log is read from this moment on: a Unix time (default an hour ago) |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/upgradeverify.php, kernel/private/classes/commands/upgradeverify.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.