Skip to content

Fail benchmarks when a memory limit is breached - #1940

Open
renanmagagnin wants to merge 1 commit into
awslabs:mainfrom
renanmagagnin:fail-on-memory-breach
Open

Fail benchmarks when a memory limit is breached#1940
renanmagagnin wants to merge 1 commit into
awslabs:mainfrom
renanmagagnin:fail-on-memory-breach

Conversation

@renanmagagnin

Copy link
Copy Markdown
Contributor

Memory-limited benchmark jobs already report peak RSS breaches in a summary table but still pass. This makes a breach fail the job, after the results have been saved and published.

Testing:

  • render-mem-summary.sh over 5 input shapes locally (no results, all within limit, partial breach, full breach) - correct output and exit code in each.
  • Gate wiring on a real Actions run, 4 cases: a breach fails the job; false and a skipped render step both pass; a breach still fails when an earlier step had already failed.
  • Not covered: a real breaching benchmark run, as --memory-target has a 512 MiB floor.

Supersedes #1935, which was auto-closed when its base branch was deleted. Same change, rebased onto main.

Does this change impact existing behavior?

Yes, intentionally: memory-limited benchmark jobs now fail on a breach. Results are still saved and published first, and other variants are unaffected.

Does this change need a changelog entry? Does it require a version change?

No, this only changes CI benchmark workflows.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

Signed-off-by: Renan Magagnin <renanmag@amazon.co.uk>
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