Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/docker: increase cargo retry and verbosity #24334

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

andrewhsu
Copy link
Member

@andrewhsu andrewhsu commented Nov 27, 2024

jira: DEVPROD-2419

occasionally, cargo fails with error:

2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu: + cargo build --release
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu:     Updating crates.io index
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu: warning: spurious network error (3 tries remaining): [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds)
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu: warning: spurious network error (2 tries remaining): [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds)
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu: warning: spurious network error (1 tries remaining): [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds)
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu: error: failed to get `tokio` as a dependency of package `client-swarm v1.0.0 (/tmp/client-swarm)`
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu:
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu: Caused by:
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu:   failed to query replaced source registry `crates-io`
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu:
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu: Caused by:
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu:   download of to/ki/tokio failed
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu:
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu: Caused by:
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu:   failed to download from `https://index.crates.io/to/ki/tokio`
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu:
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu: Caused by:
2024-11-19 18:07:22 UTC	==> redpanda-testing.amazon-ebs.ubuntu:   [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds)

this PR enables verbose output which will print download time and speed. also, doubled number of retry attempts because when this failed in the past, clicking on retry for the buildkite step resolved the issue.

also bumped the base ubuntu jammy version to latest.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.3.x
  • v24.2.x
  • v24.1.x

Release Notes

  • none

> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match
Enabling cargo verbose will print helpful info to diagnose network
issues. Verbose output has info related to download speed.
Enabling cargo verbose will print helpful info to diagnose network
issues. Verbose output has info related to download speed.
@andrewhsu andrewhsu marked this pull request as ready for review November 27, 2024 02:13
@andrewhsu andrewhsu requested a review from a team as a code owner November 27, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant