Page MenuHomePhabricator

Deploy LuaSandbox 2.0.13
Closed, DuplicatePublic

Description

There's a lot of changes to LuaSandbox queued up, waiting for a release. I merged the latest changes in master into the debian branch, updated the changelog, and created a git tag for 2.0.13. Then I experimentally built the package for trusty on copper.eqiad.wmnet. Remaining questions and tasks:

  • Should there be a debian-jessie branch, for the jessie version? Or should there be a debian-trusty branch, with the debian branch being the latest and debian-trusty for backports? The old debs are 2.0.12 for trusty and 2.0.12~jessie for jessie.
  • What is the reason for the odd php5-dev version dependency (<<5.5)? This won't work on jessie, which has PHP 5.6, and PHP 7 is theoretically supported in the source now. Should there be a patch for the jessie backport or can we make a generic debian/control file?
  • wt:HHVM suggests the following rollout strategy, which might be excessive in this case, but we at least need to do one round of testing prior to full deployment.
    • Deploy to the beta cluster (deployment-prep) (with dpkg -i?)
    • After 2-3 business days, deploy to production only on the canary appservers and api appservers
    • After another 2-3 business days, deploy cluster-wide
  • How do we deploy it to the CI cluster? Does that have to wait until it is in apt?

Event Timeline

tstarling lowered the priority of this task from High to Medium.Jul 21 2017, 5:42 AM

I think we can skip trusty at this point; I hope to have converted the remaining video scalers by end of next week. This leaves snapshot* and silver as the remaining users on trusty, not sure if the changes between 2.0.12 and 2.0.13 are really worth the effort and whether those actually use the extension?

I don't know the origin of the versioned php5-dev dependency, but I assume it's boilerplate from dh-make-pear. Maybe @Joe remembers.

The deployment strategy doesn't seem excessive at all and is virtually the same I'm also using for upgrading HHVM itself. We don't use automated upgrades, so it boils down to:

  • Upload to apt.wikimedia.org, then it's available for apt upgrades in deployment-prep
  • Upgrade canary appservers after 2-3 days along with HHVM restarts
  • Upgrade the remaining fleet after 2-3 days along with HHVM restarts

Since I originally intented to work on T171166 next week, I could also take care of the rollout in production,

The CI cluster picks what we provide on apt.wikimedia.org, we have a task to add a staging repo for that, but that hasn't been implemented yet.

Silver runs the wiki on wikitech.wikimedia.org, so it probably needs the update. If video scalers and snapshot* don't parse wikitext, they're probably safe to ignore here.

I spoke to the WMCS for the status of wikitech.w.o and jessie; new hardware to replace silver has already arrived, it will be replaced by new jessie-based hosts soon.