frrouting/.github
Vincent Jardin 8c98139471 ci: add retry logic for apt and curl to handle transient failures
Ubuntu package mirrors can experience transient failures during CI
runs, causing builds to fail with 404 errors even though the packages
exist. Similarly, fetching GPG keys from external servers may fail
due to temporary network issues.

This patch introduces an APT_RETRIES build argument (defaulting to 3)
that controls the number of retry attempts for network operations.
The apt configuration is updated to use Acquire::Retries along with
reasonable timeouts for http and https connections.

The apt-get update commands are wrapped in retry loops that sleep for
10 seconds between attempts, giving mirrors time to recover. The same
pattern is applied to the curl command that fetches the FRR GPG key
for the package repository.

The github-ci.yml workflow receives the same retry treatment for its
apt-get update call during test environment setup.

Signed-off-by: Vincent Jardin <vjardin@free.fr>
2026-01-08 10:11:18 +01:00
..
ISSUE_TEMPLATE github: Replace issue template with issue form 2024-02-15 03:16:54 -05:00
PULL_REQUEST_TEMPLATE .github: move pr template to subdir 2019-03-29 16:51:58 +00:00
workflows ci: add retry logic for apt and curl to handle transient failures 2026-01-08 10:11:18 +01:00
commitlint.config.js tools: Do not force Sentence-case for commit messages 2023-03-03 14:10:36 +02:00