Deployment tooling/Notes/What does scap do

Scap ("sync-common-all-php") is a collection of shell scripts used to publish code and configuration to the WMF production web servers.

scap
Scap is started from tin.eqiad.wmnet.


 * 1) Acquire lock on
 * 2) Record start timestamp
 * 3) Ensure that   is available (needed for   to remote hosts)
 * 4) Check for command line flag to limit activities to a particular MW version
 * 5) Export environment variables describing software versions and hosts for sync scripts
 * 6) Lint files in $MW_COMMON_SOURCE/wmf-config and $MW_COMMON_SOURCE/multiversion
 * 7) Runs
 * 8) Runs
 * 9) Runs   to announce that scap is starting
 * 10) Runs   via   on scap-proxies group
 * 11) Randomizes list of hosts to update (All hosts listed in  )
 * 12) Runs   via
 * 13) Runs   via
 * 14) Runs
 * 15) Computes total runtime
 * 16) Runs   to log runtime
 * 17) Runs   to log scap run completion
 * 18) Deletes temp files
 * 19) Releases lock on

sync-common

 * 1) Runs

scap-1

 * 1) Sources
 * 2) If   directory is not found:
 * 3) * Creates  via
 * 4) If   directory is not found:
 * 5) * Creates  via
 * 6) Initialize   variable to first command line argument (could be empty string)
 * 7) Initialize   as an empty variable
 * 8) If   is not an empty string:
 * 9) * Set  via
 * 10) If   is still empty:
 * 11) * Set  to
 * 12) Run   as the user
 * 13) *  invocation