Page MenuHomePhabricator

rust-coverage Docker image fails to build: can't find clap = ^4.4.0
Closed, ResolvedPublic

Description

The image docker-registry.wikimedia.org/releng/rust-coverage defined in integration/config.git fails to build when installing the cargo-tarpaulin dependency:

INFO - Step 7/8 : RUN cargo install cargo-tarpaulin 
INFO -
INFO -  ---> Running in 21e4e49878d1 
INFO -     Updating crates.io index
INFO -  Downloading crates ...
INFO -   Downloaded cargo-tarpaulin v0.27.2
INFO -   Installing cargo-tarpaulin v0.27.2
INFO - error: failed to compile `cargo-tarpaulin v0.27.2`, intermediate artifacts can be found at `/tmp/cargo-installvoUz1a`
Caused by:
  failed to select a version for the requirement `clap = "^4.4.0"`
  candidate versions found which didn't match: 3.2.25, 3.2.24, 3.2.23, ...
  location searched: crates.io index
  required by package `cargo-tarpaulin v0.27.2`
 (image.py:210)
ERROR - Build command failed with exit code 101: The command '/bin/sh -c cargo install cargo-tarpaulin' returned a non-zero code: 101

Event Timeline

My guess is @Legoktm is the sole able to help on that front :-]

I think we should just remove the Rust images/jobs from Jenkins, I think I was the only one using them and I've moved all my Rust stuff over to GitLab and published https://gitlab.wikimedia.org/repos/mwbot-rs/rust-ci-pipeline for those.

From Zuul layout, the following Gerrit repositories have rust:

integration/utils-rs
labs/tools/logo-test
labs/tools/newusers
labs/tools/rust-hello-world
labs/tools/shorturls
labs/tools/suggestor
wikimedia/irc/ircservserv

And a couple more have a rust job in the experimental pipeline:

labs/codesearch
labs/libraryupgrader

If they all have been moved to Gitlab, I will go ahead and archive them (empty them up, mark them read-only in Gerrit, archive them in CI, delete the GitHub mirror etc).

I have asked in our Slack internal channel #rust pointing back here.

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

[integration/config@master] Zuul: Mark four repos as archived that have moved to GitLab

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

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

[integration/config@master] Zuul: [integration/utils-rs] Archive, never used

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

Change 990142 merged by jenkins-bot:

[integration/config@master] Zuul: Mark four repos as archived that have moved to GitLab

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

I've marked the four repos I could find migrated as archived; three of them already were marked as such in Gerrit, but https://gerrit.wikimedia.org/r/admin/repos/labs/tools/shorturls,general still isn't.

integration/utils-rs had a WIP initial patch, never merged. I assume it's OK to archive that repo?

This leaves two repos actually still running rust jobs:

  • labs/tools/suggestor (last patch Jan 2021)
  • wikimedia/irc/ircservserv (last patch Jun 2023)

If you're still migrating those, happy to help out. Would it be OK for us to drop CI now?

Change 991610 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] Archive integration/utils-rs

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

Change 991610 abandoned by Hashar:

[integration/config@master] Archive integration/utils-rs

Reason:

Dupe of James patch https://gerrit.wikimedia.org/r/c/integration/config/+/990143

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

Change 990143 merged by jenkins-bot:

[integration/config@master] Zuul: [integration/utils-rs] Archive, never used

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

Mentioned in SAL (#wikimedia-releng) [2024-01-18T15:32:43Z] <hashar> Archived integration/utils-rs | T354594

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

[integration/config@master] Zuul: Drop rust-coverage-publish job usage, broken

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

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

[integration/config@master] jjb: Drop rust-coverage-publish job, broken

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

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

[integration/config@master] Docker: Drop rust-coverage image, broken and now unused

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

Change 991632 merged by jenkins-bot:

[integration/config@master] Zuul: Drop rust-coverage-publish job usage, broken

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

Mentioned in SAL (#wikimedia-releng) [2024-01-18T20:58:26Z] <James_F> Zuul: Drop rust-coverage-publish job usage, broken (for T354594)

Change 991633 merged by jenkins-bot:

[integration/config@master] jjb: Drop rust-coverage-publish job, broken

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

Change 991634 merged by jenkins-bot:

[integration/config@master] Docker: Drop rust-coverage image, broken and now unused

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

Jdforrester-WMF claimed this task.

OK, this is Resolved by virtue of just dropping the image and the job that uses it.

I've filed T355363 for the wider "just drop it all" work.