Page MenuHomePhabricator

Trigger RESTRouter image builds on push/tag
Closed, ResolvedPublic0 Estimated Story Points

Description

Before we can start using RESTRouter in k8s, we need to start building images for it. We need to add a Jenkins job for the RESTBase source gerrit repository that builds said images on either a branch push or a tag push. This can be done by adding the repository to the Zuul job configuration:

- name: mediawiki/services/restbase
  <trigger>:
    - trigger-service-pipeline-test-and-publish

Here, <trigger> can either be post (for branch push) or publish (for a tag push).

NOTE: Before we enable the job in CI, we have to have the Blubbler configuration merged

Event Timeline

mobrovac triaged this task as High priority.Jun 25 2019, 4:48 PM
mobrovac created this task.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 25 2019, 4:48 PM
mobrovac updated the task description. (Show Details)Jun 25 2019, 4:56 PM

Change 520437 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[integration/config@master] Build and publish RESTBase image on branch push.

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

After discussion with @mobrovac we have decided to go with publishing on branch push. Since currently RESTBase is primarily developed on github, we can actually have a deploy branch on github that we manually sync with gerrit to trigger build images. This will allow us to cherry-pick whatever we need to deploy which would be a great improvement compared now whatever is merged into master on GH goes into production.

Ok, doing what's proposed in the task description doesn't really work, cause it breaks CI tests (the tests for the integration/config repo) failing an assertion that all the repos have gate-and-submit job specified.

Change 520437 merged by jenkins-bot:
[integration/config@master] Build and publish RESTRouter image.

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

Pchelolo closed this task as Resolved.Jul 9 2019, 3:45 PM
Pchelolo claimed this task.

This has been done and we've got our first image built via the pipeline https://docker-registry.wikimedia.org/v2/wikimedia/mediawiki-services-restbase/tags/list

Resolved!