Improve DPDK installation and CI error reporting#14
Merged
Conversation
The AMI build was failing intermittently on main (3-5min vs 28min for success), likely due to EC2 capacity issues with c5n.large in certain availability zones. Changes: - Switch build instance from c5n.large to m5.large (broadly available, sufficient for DPDK compilation; AMI works on any x86_64 instance) - Add subnet_filter to select default VPC subnets with public IP mapping - Add retry logic (up to 3 attempts with backoff) for transient failures https://claude.ai/code/session_012bWBrKMs2ApjXQfjQebPFs
$GITHUB_STEP_SUMMARY has no REST API for reading (only browser). Annotations ARE readable via gh api .../check-runs/.../annotations, so include the actual Packer error text in ::error:: and ::warning:: annotations. This lets LLM agents diagnose failures without needing to download logs/artifacts. https://claude.ai/code/session_012bWBrKMs2ApjXQfjQebPFs
AL2023 recently moved to kernel 6.12, where the new kernel6.12-headers package conflicts with the legacy kernel-headers (6.1) package. The install script was failing because dnf couldn't install kernel-headers alongside the pre-installed kernel6.12-headers. Fix: make kernel-devel/kernel-headers installation non-fatal since DPDK is built with -Denable_kmods=false (no kernel modules) and the running kernel's headers are already pre-installed. Also improve error annotations to include actual Packer error text, making failures diagnosable via the GitHub API without downloading logs. https://claude.ai/code/session_012bWBrKMs2ApjXQfjQebPFs
Integration Test Failure (Run 22434514067)Branch: No failure-summary.json found receiver-user-data.log (7021 bytes, last 80 lines)sender-user-data.log (7021 bytes, last 80 lines)receiver-console-output.log (25793 bytes, last 80 lines)sender-console-output.log (26057 bytes, last 80 lines)All instance-logs files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves the robustness of DPDK installation on Amazon Linux 2023 and enhances error visibility in CI/CD pipelines by providing more detailed failure diagnostics.
Key Changes
DPDK Installation: Modified kernel header installation to handle conflicts on AL2023 with kernel 6.12. Since DPDK is built without kernel modules (
-Denable_kmods=false), the pre-installed headers from the running kernel are sufficient. The installation now gracefully handles the conflict between legacykernel-headers(6.1) and newkernel6.12-headerspackages.CI Error Reporting: Enhanced the Packer build failure error message in GitHub Actions to include:
Implementation Details
https://claude.ai/code/session_012bWBrKMs2ApjXQfjQebPFs