Page MenuHomePhabricator

Move mwscript wrapper from base image to copy on build
Closed, ResolvedPublic

Description

Currently, the mwscript wrapper that is called by all mw-cron jobs lives in the production-images repo

This means that every change to it requires:

  1. A rebuild of the php-fpm base images
  2. A scap run with full rebuild

This process takes between 30 minutes to an hour, and is extremely cumbersome.

  1. Move the script to puppet
  2. Have puppet write the script somewhere build-images.py has access to
  3. Copy the script and create the symlinks on build from the mediawiki-cli Dockerfile

Event Timeline

Clement_Goubert changed the task status from Open to In Progress.
Clement_Goubert triaged this task as High priority.

Change #1135912 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/puppet@production] scap::scripts: Add mwscript-mwcron wrapper

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

Change #1135922 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/docker-images/production-images@master] php-fpm-multiversion-base: Stop copying mwcron scripts

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

Change #1135929 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/deployment-charts@master] mw-cron: Add statsd-exporter release

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

Change #1135912 abandoned by Clément Goubert:

[operations/puppet@production] scap::scripts: Add mwscript-mwcron wrapper

Reason:

Scripts added directly to the build repo https://gitlab.wikimedia.org/repos/releng/release/-/merge_requests/161

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

Change #1135922 merged by Clément Goubert:

[operations/docker-images/production-images@master] php-fpm-multiversion-base: Stop copying mwcron scripts

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

Mentioned in SAL (#wikimedia-operations) [2025-04-16T11:06:04Z] <claime> Rebuilding php base images to pick up 1135922 - T391665

Mentioned in SAL (#wikimedia-operations) [2025-04-16T11:10:21Z] <cgoubert@deploy1003> Started scap sync-world: Move mwscript wrapper from base image to copy on build - T391665

Mentioned in SAL (#wikimedia-operations) [2025-04-16T12:00:54Z] <cgoubert@deploy1003> Finished scap sync-world: Move mwscript wrapper from base image to copy on build - T391665 (duration: 50m 43s)

Change #1136994 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/docker-images/production-images@master] php-fpm-multiversion-base: Cleanup unused scripts

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

Change #1136994 merged by Clément Goubert:

[operations/docker-images/production-images@master] php-fpm-multiversion-base: Cleanup unused scripts

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