Page MenuHomePhabricator

Limit Android CI jobs to running only when relevant files change
Closed, ResolvedPublic

Description

We have three CI jobs that run as part of the with each change submitted to Gerrit for review:

It's not uncommon for apps-android-wikipedia-test to be the only relevant test for a given change, and for it to have finished but for the patch to remain queued in Zuul, awaiting a chance to run one or both of the others, for much longer. Eliminating this condition would considerably improve our CI response times.

It seems possible to restrict jobs to running only when changes include specific types of files.[1] We should see about doing this for the npm and tox jobs. The latter, in particular, should very rarely be invoked, since our Python scripts almost never change.

[1] For example: https://github.com/wikimedia/integration-config/blob/d67981d0a88619ecbb6f0ae059799fb5fbbbc1e8/zuul/layout.yaml#L767-L769

Event Timeline

Change 382837 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[integration/config@master] Set file filter for apps-android-wikipedia-tox-jessie

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

Change 382837 merged by jenkins-bot:
[integration/config@master] Set file filter for apps-android-wikipedia-tox-jessie

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

Mholloway claimed this task.

Change 384531 had a related patch set uploaded (by Mholloway; owner: Mholloway):
[integration/config@master] Run apps-android-wikipedia-npm-node-6-jessie only when js files change

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

Change 384531 abandoned by Mholloway:
Run apps-android-wikipedia-npm-node-6-jessie only when js files change

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