Skip to content

build+ci(docs-infra): remove unused contributor images and add CI check - #41290

Closed
gkalpak wants to merge 2 commits into
angular:masterfrom
gkalpak:ci-aio-unused-bio-images
Closed

gkalpak wants to merge 2 commits into
angular:masterfrom
gkalpak:ci-aio-unused-bio-images

Conversation

@gkalpak

@gkalpak gkalpak commented Mar 19, 2021

Copy link
Copy Markdown
Member

This PR removes some unused contributor images and adds a check to ensure no unused images exist.
See individual commits for details.

@gkalpak gkalpak added area: build & ci Related the build and CI infrastructure of the project comp: docs-infra target: patch This PR is targeted for the next patch release labels Mar 19, 2021
@gkalpak gkalpak added this to the docs-infra-tooling milestone Mar 19, 2021
@google-cla google-cla Bot added the cla: yes label Mar 19, 2021
@mary-poppins

Copy link
Copy Markdown

@gkalpak
gkalpak force-pushed the ci-aio-unused-bio-images branch from e26b3f8 to 2fd8d75 Compare March 22, 2021 17:01
gkalpak added 2 commits March 22, 2021 19:06
This commit removes some contributor images that are no longer
referenced in `contributors.json` (i.e. they belong to contributors that
have since been removed).

BTW, removing these unused images saves ~720KB off the total size of the
assets that are deployed along with the app.
When a contributor was removed from `contributors.json`, the
corresponding image should also be removed from
`aio/content/images/bios/`. However, this was often overlooked,
resulting in unused images remaining in `aio/content/images/bios/`.

This commit adds a check to ensure that all images in
`aio/content/images/bios/` are referenced in `contributors.json`.
@gkalpak
gkalpak force-pushed the ci-aio-unused-bio-images branch from 2fd8d75 to 066b1ec Compare March 22, 2021 17:06
@mary-poppins

Copy link
Copy Markdown

@gkalpak gkalpak added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 22, 2021
@gkalpak
gkalpak marked this pull request as ready for review March 22, 2021 17:24
@pullapprove
pullapprove Bot requested a review from twerske March 22, 2021 17:25

@twerske twerske left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - thank you for this! adding preview to check that everyone is still there :)

@gkalpak

gkalpak commented Mar 22, 2021

Copy link
Copy Markdown
Member Author

adding preview to check that everyone is still there :)

You don't have to add the preview label to my PRs 😉
I have a deal with @mary-poppins: I regularly send her brown paper packages tied up with strings (which apparently she likes 🤷‍♂️) and she auto-adds previews to my PRs 🦄

@petebacondarwin

Copy link
Copy Markdown
Contributor

Here's a picture of @gkalpak with @mary-poppins:

image

@twerske

twerske commented Mar 22, 2021

Copy link
Copy Markdown
Contributor

I'd prefer raindrops on roses and whiskers on kittens!

also ty, good to know re: mary poppins

@gkalpak

gkalpak commented Mar 23, 2021

Copy link
Copy Markdown
Member Author

I'd prefer raindrops on roses and whiskers on kittens!

Totally! These work really well if you live nearby and can deliver them in person.
(Pro tip: I've find out that brown paper packages work really well when you have to mail the items to @mary-poppins 😉)

@gkalpak gkalpak added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 23, 2021
josephperrott pushed a commit that referenced this pull request Mar 23, 2021
This commit removes some contributor images that are no longer
referenced in `contributors.json` (i.e. they belong to contributors that
have since been removed).

BTW, removing these unused images saves ~720KB off the total size of the
assets that are deployed along with the app.

PR Close #41290
josephperrott pushed a commit that referenced this pull request Mar 23, 2021
When a contributor was removed from `contributors.json`, the
corresponding image should also be removed from
`aio/content/images/bios/`. However, this was often overlooked,
resulting in unused images remaining in `aio/content/images/bios/`.

This commit adds a check to ensure that all images in
`aio/content/images/bios/` are referenced in `contributors.json`.

PR Close #41290
josephperrott pushed a commit that referenced this pull request Mar 23, 2021
When a contributor was removed from `contributors.json`, the
corresponding image should also be removed from
`aio/content/images/bios/`. However, this was often overlooked,
resulting in unused images remaining in `aio/content/images/bios/`.

This commit adds a check to ensure that all images in
`aio/content/images/bios/` are referenced in `contributors.json`.

PR Close #41290
@gkalpak
gkalpak deleted the ci-aio-unused-bio-images branch March 23, 2021 16:52
TeriGlover pushed a commit to TeriGlover/angular that referenced this pull request Apr 5, 2021
This commit removes some contributor images that are no longer
referenced in `contributors.json` (i.e. they belong to contributors that
have since been removed).

BTW, removing these unused images saves ~720KB off the total size of the
assets that are deployed along with the app.

PR Close angular#41290
TeriGlover pushed a commit to TeriGlover/angular that referenced this pull request Apr 5, 2021
When a contributor was removed from `contributors.json`, the
corresponding image should also be removed from
`aio/content/images/bios/`. However, this was often overlooked,
resulting in unused images remaining in `aio/content/images/bios/`.

This commit adds a check to ensure that all images in
`aio/content/images/bios/` are referenced in `contributors.json`.

PR Close angular#41290
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project cla: yes target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants