Skip to content

ci: stop DPDK AMI cleanup from deleting TRex and Graviton AMIs - #139

Merged
gspivey merged 1 commit into
developmentfrom
fix/dpdk-ami-cleanup-filter
Oct 26, 2026
Merged

gspivey merged 1 commit into
developmentfrom
fix/dpdk-ami-cleanup-filter

Conversation

@gspivey

@gspivey gspivey commented Oct 26, 2026

Copy link
Copy Markdown
Owner

What broke

PR #138's perf runs failed with The image id '[ami-0e4c5917a5313cbfd]' does not exist. That was the live TRex AMI: built 2026-10-22 and still referenced by SSM /dpdk-stdlib-rust/ami/trex-latest.

Why

The "keep last 3" cleanup in build-dpdk-ami.yml filters on Name=name,Values=*dpdk*. Every AMI we build is named dpdk-stdlib-rust-…, so the filter also matches TRex and Graviton AMIs. The step keeps the 3 newest across all three types and deletes the rest, snapshots included.

Evidence from the run logs:

  • Run 40096224458 (2026-10-24 13:28 UTC) deregistered ami-0e4c5917a5313cbfd (TRex, live) and ami-05439add3b26fd1aa (Graviton).
  • Run 39884939342 (2026-10-23) deregistered ami-06ab0eeb63c469ffa (TRex) and ami-05bfc498515518cda (Graviton).

The TRex AMI is rebuilt only once a week. The x86 and Graviton DPDK AMIs are rebuilt weekly and also on every packer change. Three of those builds in one week push the TRex AMI out of the top 3. Graviton survived only because its newest AMI always stayed in the top 3.

Fix

Filter on the exact DPDK name prefix dpdk-stdlib-rust-dpdk-* and architecture=x86_64. This excludes TRex (named -trex-) and Graviton (arm64, same name pattern). The TRex and Graviton cleanup steps were already scoped correctly.

Notes

  • Merging this to development triggers one x86 DPDK AMI build, because the workflow file is in its push paths. That build runs the fixed filter.
  • tokio UDP perf (0.3.1): tokio-echo fair/concurrent modes #138 still needs a new TRex AMI. The weekly TRex build (Mon 04:00 UTC) creates one, or it can be dispatched by hand.

🤖 Generated with Claude Code

The x86 DPDK AMI build keeps the newest 3 AMIs matching name *dpdk*.
Every AMI name starts with dpdk-stdlib-rust-, so the filter also matched
TRex and Graviton AMIs. On 2026-10-24 run 40096224458 deregistered the
live TRex AMI ami-0e4c5917a5313cbfd (and its snapshots), which broke the
perf stack on PR #138. Match dpdk-stdlib-rust-dpdk-* and x86_64 only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gspivey
gspivey merged commit f8a81f1 into development Oct 26, 2026
1 check passed
@gspivey
gspivey deleted the fix/dpdk-ami-cleanup-filter branch October 26, 2026 03:01
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