Skip to content

Skip APT when native xDR build prerequisites are installed - #220

Merged
tpn merged 1 commit into
mainfrom
codex/xdr-ci-installed-prerequisites
Nov 22, 2026
Merged

tpn merged 1 commit into
mainfrom
codex/xdr-ci-installed-prerequisites

Conversation

@tpn

@tpn tpn commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

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, and zlib1g-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.

@tpn
tpn requested a review from melo-gonzo as a code owner November 22, 2026 03:30
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1

  • ai-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

@melo-gonzo melo-gonzo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@tpn
tpn force-pushed the codex/xdr-ci-installed-prerequisites branch from 1463470 to cce3a7b Compare November 22, 2026 20:06
@tpn
tpn merged commit 344327a into main Nov 22, 2026
59 checks passed
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.

2 participants