Page MenuHomePhabricator

Install Arcanist in toollabs::dev_environ
Closed, ResolvedPublic

Description

We want to allow tool labs developers interact with Phabricator instance, for example this one.

To ease that, we install Arcanist, the Phabricator CLI client.

Event Timeline

Restricted Application added a subscriber: TerraCodes. · View Herald Transcript
Dereckson moved this task from Triage to In Progress on the Cloud-Services board.
Dereckson moved this task from To Triage to Doing on the Phabricator board.
Dereckson moved this task from Triage to Waiting for code review on the Toolforge board.

Change 297975 had a related patch set uploaded (by Dereckson):
Install arcanist in toollabs::dev_environ

https://gerrit.wikimedia.org/r/297975

Dereckson added a subscriber: mmodell.

According @mmodell, the Arcanist package is distro agnostic .

We need it for every distro we support in apt.wm.o

@Dereckson: According to T137770#2426038, the package was uploaded to Trusty and Jessie.

The package has been created via T137770: Package xhpast (libphutil) for both Trusty and Jessie:

Trusty

$ apt-cache madison arcanist
  arcanist | 0~git20160620-0wmf2 | http://apt.wikimedia.org/wikimedia/ trusty-wikimedia/universe amd64 Packages

$ cat /etc/apt/sources.list.d/wikimedia.list
deb http://apt.wikimedia.org/wikimedia trusty-wikimedia main universe thirdparty
deb-src http://apt.wikimedia.org/wikimedia trusty-wikimedia main universe thirdparty

Jessie

$ apt-cache madison arcanist
  arcanist | 0~git20160620-0wmf2 | http://apt.wikimedia.org/wikimedia/ jessie-wikimedia/backports amd64 Packages

$ cat /etc/apt/sources.list.d/wikimedia.list
deb http://apt.wikimedia.org/wikimedia jessie-wikimedia main backports thirdparty
deb-src http://apt.wikimedia.org/wikimedia jessie-wikimedia main backports thirdparty

If you can't see them, that would mean the Puppet class apt is not realized on the instance. It is taking care of creating the /etc/apt/sources.list.d/wikimedia.list apt configuration file which points to our repos.


For Precise, it comes with Zend PHP 5.3 and I am not sure whether Arcanist support it. @mmodell would confirm.

I don't want to be annoying but: if you are still using Ubuntu Precise, it is really time to migrate to Debian Jessie.

rOPUP:modules/toollabs/manifests/dev_environ.pp already has differences for what is installed and not just version, but software themselves (eg bundler is installed on jessie but not precise).

If people are being blocked on work here, I suggest we merge the patch as is (installing on Trusty and Jessie) and if there's a need for people using Precise (who?) to install it, then we can later.

FWIW I am pretty sure arcanist works with php 5.3. In fact, it works with 5.2:

From the arcanist documentation:

"Arcanist should run on PHP 5.2 and newer."

As there is a consensus to merge this right now and take care of Precise later if needed, this change has been scheduled to next Puppet SWAT Tuesday, December 13 17:00 UTC.

Dereckson triaged this task as Medium priority.Dec 11 2016, 11:59 PM

Puppet patch https://gerrit.wikimedia.org/r/#/c/297975/ will add arcanist on tools development environment for Trust and Jessie. Precise is legacy / being phased out, if people are willing to switch to Arcanist they will have to switch to Trusty/Jessie first.

Related is T94792: Remove support for precise OGE exec hosts which has:

March 2017: Jobs started with jsub -l release=precise will no longer function and will crash with an error.

Change 297975 merged by Filippo Giunchedi:
Install arcanist in toollabs::dev_environ

https://gerrit.wikimedia.org/r/297975

Dereckson closed this task as Resolved.EditedDec 13 2016, 7:01 PM

Change has been deployed this puppet SWAT, thnaks to Filippo.

This means Arcanist is now available on main tools. server and we don't have a use case for the tasks grid to use arc, so we can consider this solved.