Skip to content

ci: Retry apt update on failure during LXD setup#585

Open
Tony-WLB wants to merge 1 commit intocanonical:mainfrom
Tony-WLB:ci-merge
Open

ci: Retry apt update on failure during LXD setup#585
Tony-WLB wants to merge 1 commit intocanonical:mainfrom
Tony-WLB:ci-merge

Conversation

@Tony-WLB
Copy link
Copy Markdown
Contributor

Transient network issues can cause apt update to fail sporadically. Adding a retry mechanism makes the CI step more resilient.

  • Upgraded the actions/checkout step from version 2 to version 4 for improved performance and security.

  • Added configuration to set apt retries (Acquire::Retries "3";) and HTTP timeout (Acquire::http::Timeout "20";) during the dependency installation step, making package installations more resilient to transient network issues.

  • Ensured the same apt retry and timeout settings are applied inside the LXD test environment by adding them as --setup-commands to the autopkgtest invocation.

Transient network issues can cause `apt update` to fail sporadically.
Adding a retry mechanism makes the CI step more resilient.
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