Page MenuHomePhabricator

Provide a dedicated for Abstract Wikipedia Rust image
Closed, ResolvedPublic

Description

Description

This image should have up-to-date versions of Rust and Cargo (>=1.81) to obviate the workarounds currently used to run Rust things in CI.

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • Have the image agreed, made, and published
  • Switch function-evaluator Rust prototype over to use it

Completion checklist

Event Timeline

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

[operations/docker-images/production-images@master] Provide a base iamge for Rust 1.63, based on Bookworm

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

What are the support requirements for such an image ? I 'll ask the team, but I have my doubts SRE has built any kind of significant enough knowledge to support Rust at this point in time. And it would arguably be confusing to publish such an image if we can not provide support for it.

What are the support requirements for such an image ? I 'll ask the team, but I have my doubts SRE has built any kind of significant enough knowledge to support Rust at this point in time. And it would arguably be confusing to publish such an image if we can not provide support for it.

None expected (beyond being part of the regular base-image-gets-rebuilt-every-Monday system). We intend to support this image inside the Abstract team (but defer to SRE if you want to take it over more officially, of course).

What are the support requirements for such an image ? I 'll ask the team, but I have my doubts SRE has built any kind of significant enough knowledge to support Rust at this point in time. And it would arguably be confusing to publish such an image if we can not provide support for it.

None expected (beyond being part of the regular base-image-gets-rebuilt-every-Monday system). We intend to support this image inside the Abstract team (but defer to SRE if you want to take it over more officially, of course).

If the Abstract team intends to support that image, why not provide it also in the first place? That should avoid wrongfully set expectations to the wider org that SRE maintains that image (which at this point in time doesn't yet have the experience to do so).

What are the support requirements for such an image ? I 'll ask the team, but I have my doubts SRE has built any kind of significant enough knowledge to support Rust at this point in time. And it would arguably be confusing to publish such an image if we can not provide support for it.

None expected (beyond being part of the regular base-image-gets-rebuilt-every-Monday system). We intend to support this image inside the Abstract team (but defer to SRE if you want to take it over more officially, of course).

If the Abstract team intends to support that image, why not provide it also in the first place? That should avoid wrongfully set expectations to the wider org that SRE maintains that image (which at this point in time doesn't yet have the experience to do so).

As discussed with your team which led to this task, this is because your team enforces the helm restriction on images used in production on k8s to be from here, and we want to use the weekly re-build infrastructure. Are you saying that that requirement can be waived?

As discussed with your team which led to this task, this is because your team enforces the helm restriction on images used in production on k8s to be from here

Not sure what "here" refers to, since we have multiple places where images can originate from, using different ways of being built, Gerrit, Gitlab, base images and production images.

What we do enforce is that the images used in production are from docker-registry.discovery.wmnet and that only trusted paths are able to publish to the registry.

All of this is that as far as I know we don't have a rule somewhere that says "don't build a Rust image in e.g. Gitlab and use it". That is still an option.

Are you saying that that requirement can be waived?

No, most definitely not. What I did wonder is why it needed to be part of the production images that SRE maintains and supports if SRE can't (as of yet at least) support it.

we want to use the weekly re-build infrastructure

This is a good technical reason, we 'll need to discuss within SRE what that would mean and how we would avoid setting false expectations of support for that image until/if we are able to support it.

This is a good technical reason, we 'll need to discuss within SRE what that would mean and how we would avoid setting false expectations of support for that image until/if we are able to support it.

Per the last AW-Security-SRE meeting, we 'll be going forward with a specifically marked for AW Rust image. The intent being to make absolutely clear to everybody else wondering whether they should be using that image that Rust is not (for now) a language supported by SRE (we don't have the capabilities for such an endeavor)

This is a good technical reason, we 'll need to discuss within SRE what that would mean and how we would avoid setting false expectations of support for that image until/if we are able to support it.

Per the last AW-Security-SRE meeting, we 'll be going forward with a specifically marked for AW Rust image. The intent being to make absolutely clear to everybody else wondering whether they should be using that image that Rust is not (for now) a language supported by SRE (we don't have the capabilities for such an endeavor)

Thanks! Done in patchset 4.

Change #1102983 merged by Alexandros Kosiaris:

[operations/docker-images/production-images@master] Provide a base image for Rust, based on Bookworm using 'rustc-web' now at 1.78

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

Change #1119831 had a related patch set uploaded (by Alexandros Kosiaris; author: Alexandros Kosiaris):

[operations/docker-images/production-images@master] Fix name of abstract wiki rest web image

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

Change #1119831 merged by Alexandros Kosiaris:

[operations/docker-images/production-images@master] Fix name of abstract wiki rust web image

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

akosiaris claimed this task.

The image is published and hopefully the name makes it clear that it shouldn't be reused for other purposes. We can always rename when needed.

https://docker-registry.wikimedia.org/abstractwiki-rust-web/tags/

I 'll resolve this one, feel free to reopen.

akosiaris renamed this task from Have SRE provide a production-ready Rust image upstream to Provide a dedicated for Abstract Wikipedia Rust image.Jul 16 2025, 1:54 PM