Repository navigation
Skip APT when native xDR build prerequisites are installed - #220
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 1
Please check the settings in the CodeRabbit UI or the
|
melo-gonzo
left a comment
There was a problem hiding this comment.
Approving. The step skips APT only when all three packages report ok installed for the native architecture (.github/workflows/coverage.yml:197-202). Any other result runs the original apt-get update and install commands. That includes a missing package, a half-configured one, and a failed dpkg --print-architecture. shell: bash runs the step with -eo pipefail, so an APT failure still fails the job.
This PR's native xDR coverage run took the fast path. The step finished in under a second and logged no APT output. The install path did not run here, but its commands match main.
When all three packages are installed, the job no longer upgrades them to newer versions. Keeping them current now falls to runner maintenance.
An index refresh can consume the native coverage job before the build starts. Check the native package states first and use the existing APT setup when a prerequisite is missing or needs repair. Signed-off-by: Trent Nelson <trentn@nvidia.com>
1463470 to
cce3a7b
Compare
The native xDR coverage job can spend its entire 30-minute window refreshing APT indexes before CFITSIO starts building. Three recent jobs timed out in that step, and a successful retry found all three build prerequisites already installed. Example timeout · Successful retry
Check the runner’s native architecture and the installed state of
build-essential,pkg-config, andzlib1g-dev. When all three native packages are healthy, the job proceeds directly to the build. A missing or unhealthy package, or a failed lookup, runs the existing APT update and install commands. Both paths continue through the CFITSIO build and native xDR coverage.Verified the workflow step against 27 package-state and failure cases, including multiarch installations, partial installs, query errors, and APT failures. The all-installed path also passed against a real dpkg database. ShellCheck and the repository’s all-file pre-commit checks passed.