Last modified: 2013-03-28 02:31:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42605, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40605 - Supporting MobileFrontend on beta labs
Supporting MobileFrontend on beta labs
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Michelle Grover
:
Depends on: 44041
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-28 19:24 UTC by Arthur Richards
Modified: 2013-03-28 02:31 UTC (History)
13 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Arthur Richards 2012-09-28 19:24:54 UTC
I am super excited about beta labs. It would be awesome if we could get beta labs also mimicking the production setup for mobile/MobileFrontend so we can start doing more accurate pre-deployment testing outside of production.
Comment 1 Antoine "hashar" Musso (WMF) 2012-09-28 20:33:46 UTC
I have done a lot of the work on beta with the assistance of the operations team for anything related to puppet. I have zero knowledge about the mobile architecture and currently focusing on Jenkins for most of October.

I guess you will want to team up a developer with mobile frontend knowledge with someone from op and have them setup the instances in the deployment-prep labs project (that is beta).  I will be glad to offer some guidance as to startup the project sanely, but cant really dedicate any amount of time on that during october.
Comment 2 Arthur Richards 2012-10-24 22:42:17 UTC
Max pointed out on IRC the other day that even getting MobileFrontend enabled on beta labs (without the infrastructural components to mirror production) would be better than nothing and would, I imagine, be pretty straightforward to start with.

As for getting the infrastructure to mirror production, I believe Patrick Reilly and Asher Feldman have the most intimate knowledge of things are set up in prod.
Comment 3 Rob Lanphier 2012-10-26 22:03:38 UTC
In order to make Beta Labs scale from a staffing perspective, we're moving away from a model where you ask Antoine to set something up, and he does all of the magical black box stuff to make it happen.  At this stage, Antoine is playing the role for Beta that Mark Bergsma plays for production.  Deploying to Beta is more and more looking like the same process that we use to deploy to production.  There are definitely differences, but Antoine can guide you on those issues.

Let us know who needs access and training, and Antoine can work with that person to set it up.
Comment 4 Sumana Harihareswara 2012-12-05 17:50:19 UTC
Tomasz, can we talk about this today? Thanks!
Comment 5 Tomasz Finc 2012-12-05 18:40:12 UTC
Sure
Comment 6 Sumana Harihareswara 2012-12-06 23:36:15 UTC
Summary: Michelle ought to look at this issue to decide how/whether to push forward in the next Mobile iteration.

QA's highest priority in terms of new things on the beta cluster is MobileFrontend. The blocker is that infrastructure is not in place on beta the way it is on prod.

First we have to enable the extension & enbable subdomains -- basically, everything we had to do for Wikivoyage.  That's Extension:MobileFrontend, the m. subdomain, and so on.  This is already well-documented on wikitech.wikimedia.org -- I assume that's https://wikitech.wikimedia.org/view/MobileFrontend/Deployment and so on.

Then we also have to ensure that we replicate the cache layer.  Mobile requests go to the squids first (which have device detection), and if we want to serve them the mobile-optimized site then the requests go to the mobile varnish cluster which has MF caching.  Only if the page isn't in varnish does it hit the Apaches.  We need that full stack to feel confident that the environment is production-like and thus worth using for testing.  The puppet scripts for the varnish & squid bits are already in place (I confirmed this today via a conversation with Daniel Zahn & Leslie Carr) per http://doc.wikimedia.org/puppetsource/manifests/site.pp .  So it's feasible for us to use those puppet scripts to replicate the squid layer and the varnish layer in beta.

The relevant WMF folks who'd work on this are Michelle (mobile QA) and possibly Arthur and Max (domain knowledge of MF/varnish/squid setup).  The next mobile sprint is the first or second week of January.  So it's up to Michelle whether this is high-priority enough to make this a story she'd add to that backlog.
Comment 7 Chris McMahon 2012-12-06 23:39:00 UTC
This seems like a good investment to me.  This is a complex enough project that a) it will likely serve as a model for future enhancement to beta labs and b) will likely put infrastructure in place that later enhancements to labs will use.
Comment 8 Arthur Richards 2012-12-07 18:12:33 UTC
There is one challenge that I know of relating to squid configuration that we need to figure out. Squid ACLs (which are used for detecting a mobile device and routing the request to varnish) live in a git repository on Fenari. They are not in a public repo, so I'm not sure what is the best way to manage this.

I propose that we schedule some exploratory time to finish answering unanswered questions and make sure we have the resources we need lined up during our upcoming sprint (18 Dec - 2 Jan), and then possibly slate actually getting MobileFrontend working in beta labs for our following sprint (2 Jan - 14 Jan).
Comment 9 Antoine "hashar" Musso (WMF) 2013-01-16 18:48:21 UTC
This is being worked on as a sprint with the Mobile Team :-]
Comment 10 Greg Grossmeier 2013-03-13 22:42:25 UTC
What's the status of this bug? Is Mobile any closer to being able to do reliable testing on betalabs?
Comment 11 Michelle Grover 2013-03-13 22:46:25 UTC
Hey Greg, we're almost done. There's some code that Antoine is waiting for a code review on and we have a few configuration glitches but other than that we're pretty close http://en.m.wikipedia.beta.wmflabs.org/ is the site.
Comment 12 Michelle Grover 2013-03-28 02:30:48 UTC
MobileFrontend is now configured (http://en.m.wikipedia.beta.wmflabs.org)

The items we would like to finish in Phase II 
    * SSL
    * Automatic mobile redirection

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links