Currently the wikimedia-portals repo contains all the source files and build artifacts for the wikimedia portals.
The build artifacts change frequently because of a cache-busting hash on the build file names, and running a build effectively deletes and adds hundreds of files.
https://phabricator.wikimedia.org/rWPOR3862e2f5c2c3196872b960a6e63cc5f1a70e9a2b
Because of this, most Gerrit patches are only submitted with the source files to make it clear what the functional changes are. Then, occasionally, a patch with a build is submitted that changes the build artifacts.
Placing the build artifacts in their own repo would make it easier to track the portal builds and lighten the source repo significantly. The repo with the build artifacts can then be included into the source repo as a submodule.
Steps
- create a new wikimedia/portals/deploy repository in Gerrit
- replace the prod folder in the wikimedia-portals repo with a submodule of wikimedia-portals-deploy (393223, 393224)
- move the files sync-portals and urls-to-purge.txt into the root of the wikimedia-portals-deployrepo
- change line 5 in sync-portals
scap sync-file portals/prod/wikipedia.org/assets $* to scap sync-file portals/wikipedia.org/assets $*
- change the portals submodule in mediawiki-config from wikimedia-portals to wikimedia-portals-deploy(393239)
- change the following symlink in mediawiki-config (393239)
/mediawiki-config/docroot/wwwportal/portal@ -> ../../portals/prod to /mediawiki-config/docroot/wwwportal/portal@ -> ../../portals
- Set the Jenkins job to commit the build assets from portals to the wikimedia/portals/deploy repo (393252)