Page MenuHomePhabricator

Automate WDQS GUI deployment
Closed, ResolvedPublic

Description

Now, when new path is merged in WDQS GUI repo, we need to manually deploy it by doing:

  • grunt deploy in GUI directory of WDQS
  • Merge the resulting patch in wikidata/query/gui-deploy repo

It'd be nice if these steps would be automatically executed post-merge by scripts, namely:

  • In post-merge step, run grunt deploy like script (better make different target so we can still deploy manually)
  • Commit the result to wikidata/query/gui-deploy
  • Move the gui submodule branch in wikidata/query/deploy to point to the new commit (this step we can leave to manual for starters, to ensure the process works)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Smalyshev triaged this task as Medium priority.Mar 20 2017, 7:32 PM

Also it would be nice to automatically update wdqs-test.wmflabs.org.

@Jonas we have https://wdqs.wmflabs.org for that, but it has been broken lately and I didn't fix it yet. Hopefully will find time to do that soon.

Smalyshev updated the task description. (Show Details)
Smalyshev updated the task description. (Show Details)
Smalyshev added a project: User-Smalyshev.

Change 415769 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[integration/config@master] Create job for building WDQS GUI

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

@hashar I was told you could help me with setting this up. Could you check out the patch above and also help me with figuring out how to set up credentials for CI?

We did something very similar for the Wikimedia portal website ( T180777 ). Stas has a definitely promising patchset, I will take a look at it.

@hashar: Thanks for taking a look at the change. Readers Web are also interested in this topic in general as we maintain an extension that also uses a build step (Page Previews) (see T158980: [EPIC] Generate compiled assets from continuous integration). Transitioning to an automated build step would be a boon for us.

greg subscribed.

(releng is on the relevant subtasks)

Change 415769 merged by jenkins-bot:
[integration/config@master] Create job for building WDQS GUI

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

Change 428969 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[integration/config@master] Use npm since grunt seems to be not in the path

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

Change 428969 merged by jenkins-bot:
[integration/config@master] Use npm since grunt seems to be not in the path

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

Smalyshev claimed this task.

Autobuild is working now. Still have to move it to mailing list, but main part is done.