Page MenuHomePhabricator

Write a test to ensure all jobs in Zuul are defined in JJB
Closed, ResolvedPublic

Description

T103839: mwext-Flow-qunit fails integration/slave-scripts/bin/mw-set-env-qunit.sh: No such file or directory was caused by Flow still triggering mwext-Flow-qunit although the repo has been migrated to mwext-qunit

We already have a job on +2 that verify jobs are populated. We also need a test to ensure jobs triggered by Zuul are still defined in JJB configuration file.

Event Timeline

hashar raised the priority of this task from to Needs Triage.
hashar updated the task description. (Show Details)
hashar subscribed.

Change 345321 had a related patch set uploaded (by Hashar):
[integration/config@master] (WIP) ensure all jobs in Zuul are in JJB

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

Gave it a try with the patch above:

tox -e py27 -- tests/test_integration.py:IntegrationTests.test_jjb_zuul_jobs

FAILURE: Job analytics-libanon not defined
FAILURE: Job analytics-udp-filters not defined
FAILURE: Job analytics-webstatscollector not defined
FAILURE: Job analytics-wikistats not defined

Which is T97514

Test work. I used it to find out some bit rotting analytics jobs T97514 that were defined in Zuul but were gone from JJB.

That will prevent ones from triggering non defined jobs.

hashar claimed this task.

Can be run with:

tox -e py27 -- --logging-level=ERROR tests/test_integration.py

Change 345321 merged by jenkins-bot:
[integration/config@master] (WIP) ensure all jobs in Zuul are in JJB

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