⚓ T354875 build: Update SVGO to latest v3.2.0 in Wikimedia deployed repos
Page MenuHomePhabricator

build: Update SVGO to latest v3.2.0 in Wikimedia deployed repos
Closed, ResolvedPublic

Description

Background

SVGO makes the next promising update after v3.0.5, v3.2.0, which features further byte-saving optimizations for our clients in a huge number of our SVG assets.
It includes three optimizations on converting path commands, which

  • improves closing paths and how we determine if to use absolute or relative commands.
  • round arc or convert to lines based on the geometric sagitta
  • convert cubic Bézier curves to quadratic Bézier curves where possible

Those changes lead to SVG file size reduction of up to 7% per icon file in our already strongly optimized Codex WikimediaUI theme icon files.
One example of the savings there is the 'articleNotFound' icon, which is reduced from
842 bytes to 786 bytes (6.6% reduction before gzip).

Goal

Update 'svgo' package to latest in all Wikimedia deployed repos (CodeSearch).

Acceptance criteria

Update dependencies and re-crush assets throughout:

Extension:Wikibase uses cssnano, which itself uses outdated version svgo 2.8.0
Note, that I've also filed a task report for femiwiki repos, that are listed in CodeSearch.

Details

SubjectRepoBranchLines +/-
mediawiki/extensions/CentralNoticewmf_deploy+0 -0
mediawiki/extensions/CentralNoticemaster+13 -11
mediawiki/skins/MonoBookmaster+54 -52
mediawiki/extensions/MobileFrontendmaster+23 -21
mediawiki/extensions/MultimediaViewermaster+77 -80
mediawiki/extensions/TimedMediaHandlermaster+13 -11
mediawiki/extensions/UniversalLanguageSelectormaster+34 -32
mediawiki/extensions/Thanksmaster+14 -12
mediawiki/extensions/GuidedTourmaster+13 -11
mediawiki/extensions/Translatemaster+63 -53
mediawiki/extensions/NearbyPagesmaster+20 -18
mediawiki/extensions/GrowthExperimentsmaster+1 -1
mediawiki/extensions/Echomaster+2 -2
mediawiki/skins/Timelessmaster+44 -42
mediawiki/extensions/Popupsmaster+15 -13
mediawiki/extensions/TwoColConflictmaster+28 -26
mediawiki/extensions/RevisionSlidermaster+29 -27
mediawiki/extensions/Kartographermaster+14 -12
mediawiki/extensions/ChessBrowsermaster+43 -41
mediawiki/coremaster+24 -22
mediawiki/skins/MinervaNeuemaster+17 -15
mediawiki/skins/Vectormaster+96 -128
mediawiki/extensions/GrowthExperimentsmaster+890 -891
mediawiki/extensions/Echomaster+40 -38
Show related patches Customize query in gerrit

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

Change 989912 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/Echo@master] build: Update 'svgo' to latest v3.2.0

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

Change 989960 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/GrowthExperiments@master] build: Update 'svgo' to latest v3.2.0

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

Change 989962 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/skins/Vector@master] build: Update 'svgo' to latest v3.2.0

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

Change 989912 merged by jenkins-bot:

[mediawiki/extensions/Echo@master] build: Update 'svgo' to latest v3.2.0

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

Change 989960 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] build: Update 'svgo' to latest v3.2.0

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

Change 989962 merged by jenkins-bot:

[mediawiki/skins/Vector@master] build: Update 'svgo' to latest v3.2.0

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

Change 990153 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/skins/MinervaNeue@master] build: Update 'svgo' to latest v3.2.0

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

Change 990154 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/MobileFrontend@master] build: Update 'svgo' to latest v3.2.0

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

Change 990155 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/core@master] build: Update 'svgo' to latest v3.2.0

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

Change 990155 merged by jenkins-bot:

[mediawiki/core@master] build: Update 'svgo' to latest v3.2.0

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

Change 990153 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] build: Update 'svgo' to latest v3.2.0

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

Change 990403 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/Kartographer@master] build: Update 'svgo' to latest v3.2.0

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

Change 990404 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/ChessBrowser@master] build: Update 'svgo' to latest v3.2.0

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

Change 990404 merged by jenkins-bot:

[mediawiki/extensions/ChessBrowser@master] build: Update 'svgo' to latest v3.2.0

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

Change 990403 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] build: Update 'svgo' to latest v3.2.0

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

Change 990742 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/MultimediaViewer@master] build: Update 'svgo' to latest v3.2.0 and re-crush SVGs

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

Change 990743 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/Thanks@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 990772 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/TimedMediaHandler@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVG

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

Change 990781 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/Popups@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 990783 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/RevisionSlider@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 990784 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/TwoColConflict@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 990786 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/skins/MonoBook@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 990787 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/skins/Timeless@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 990783 merged by jenkins-bot:

[mediawiki/extensions/RevisionSlider@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 990784 merged by jenkins-bot:

[mediawiki/extensions/TwoColConflict@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 990781 merged by jenkins-bot:

[mediawiki/extensions/Popups@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 990787 merged by jenkins-bot:

[mediawiki/skins/Timeless@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 991009 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/Echo@master] build: Unify on `minify:svg` command

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

Change 991012 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/GrowthExperiments@master] build: Pin 'svgo' to 3.2.0 in 'package-lock.json'

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

Change 991013 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/Translate@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 991014 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/UniversalLanguageSelector@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 991018 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/CentralNotice@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 991019 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/NearbyPages@master] build: Update 'svgo' to latest v3.2.0 & re-minify SVGs

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

Change 991023 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/GuidedTour@master] build: Update 'svgo' to latest v3.2.0

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

Change 991012 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] build: Pin 'svgo' to 3.2.0 in 'package-lock.json'

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

Change 991009 merged by jenkins-bot:

[mediawiki/extensions/Echo@master] build: Unify on `minify:svg` command

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

Jdlrobson triaged this task as Medium priority.Jan 17 2024, 12:03 AM

Change 991013 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 991014 merged by jenkins-bot:

[mediawiki/extensions/UniversalLanguageSelector@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 991023 merged by jenkins-bot:

[mediawiki/extensions/GuidedTour@master] build: Update 'svgo' to latest v3.2.0

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

Change 991019 merged by jenkins-bot:

[mediawiki/extensions/NearbyPages@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 990743 merged by jenkins-bot:

[mediawiki/extensions/Thanks@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 990772 merged by jenkins-bot:

[mediawiki/extensions/TimedMediaHandler@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVG

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

Volker_E updated the task description. (Show Details)

Change 990742 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] build: Update 'svgo' to latest v3.2.0 and re-crush SVGs

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

Change 990154 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] build: Update 'svgo' to latest v3.2.0

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

Change 990786 merged by jenkins-bot:

[mediawiki/skins/MonoBook@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Change 991018 merged by jenkins-bot:

[mediawiki/extensions/CentralNotice@master] build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

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

Volker_E claimed this task.
Volker_E updated the task description. (Show Details)

Change #1052668 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/CentralNotice@wmf_deploy] Merge branch 'master' into wmf_deploy

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

Change #1052668 merged by jenkins-bot:

[mediawiki/extensions/CentralNotice@wmf_deploy] Merge branch 'master' into wmf_deploy

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