GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Stabilize performance test SLAs with tolerance thresholds by aviralgarg05 · Pull Request #16371 · knative/serving

Conversation

@aviralgarg05

@aviralgarg05 aviralgarg05 commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #14793

Context

This change adds tolerance thresholds to SLA checks that previously used strict equality for request counts/rates. Due to timing variations in test execution, actual counts can vary slightly from expected values, causing false SLA failures.

As noted in the PR #14429 discussion, the SLA failures in performance tests were identified as a separate issue to address. The pattern for handling this already exists in load-test/main.go which uses a 0.1% threshold.

Proposed Changes

  • scale-from-zero SLA 3: Changed from strict equality (results.Requests == uint64(parallel)) to allow 1 request tolerance. This handles cases like "24 requests when 25 expected" due to timing.

  • dataplane-probe SLA 2: Changed from strict equality to 0.1% tolerance (minimum 1 request), matching the pattern in load-test.

  • rollout-probe SLA 2: Changed from math.Round(results.Rate) == rate.Rate(time.Second) to allow 1% rate tolerance using math.Abs(results.Rate-expectedRate) <= tolerance.

Files Changed

File Change
test/performance/benchmarks/scale-from-zero/main.go SLA 3: 1 request tolerance
test/performance/benchmarks/dataplane-probe/main.go SLA 2: 0.1% tolerance
test/performance/benchmarks/rollout-probe/main.go SLA 2: 1% rate tolerance

Verification

  • go build ./test/performance/... - Passed
  • go vet ./test/performance/benchmarks/... - Passed
  • gofmt -s -d - No formatting issues
  • DCO sign-off included in commit

Release Note

Performance test SLAs now use tolerance thresholds instead of strict equality checks for request counts/rates, reducing false failures due to timing variations.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aviralgarg05
Stabilize performance test SLAs with tolerance thresholds
737e48a
Fixes knative#14793

This change adds tolerance thresholds to SLA checks that previously
used strict equality for request counts/rates. Due to timing variations
in test execution, actual counts can vary slightly from expected values,
causing false SLA failures.

Changes:
- scale-from-zero SLA 3: Allow 1 request tolerance
- dataplane-probe SLA 2: Allow 0.1% tolerance (min 1 request)
- rollout-probe SLA 2: Allow 1% rate tolerance

This approach follows the pattern already established in load-test.

Signed-off-by: aviralgarg05 <[email protected]>
@knative-prow
knative-prow Bot requested review from dsimansk, linkvt and skonto February 6, 2026 12:03
@knative-prow knative-prow Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 6, 2026
@knative-prow

knative-prow Bot commented Feb 6, 2026

Copy link
Copy Markdown

Hi @aviralgarg05. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Feb 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.23%. Comparing base (2cd582b) to head (58dd8e9).
⚠️ Report is 135 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16371      +/-   ##
==========================================
+ Coverage   80.18%   80.23%   +0.05%     
==========================================
  Files         216      217       +1     
  Lines       13440    13520      +80     
==========================================
+ Hits        10777    10848      +71     
- Misses       2298     2308      +10     
+ Partials      365      364       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dprotaso

dprotaso commented Mar 8, 2026

Copy link
Copy Markdown
Member

/ok-to-test

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 8, 2026
@dprotaso

dprotaso commented Mar 8, 2026

Copy link
Copy Markdown
Member

/test performance-tests_serving_main

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

linkvt
linkvt reviewed Mar 9, 2026
View reviewed changes
Comment thread test/performance/benchmarks/dataplane-probe/main.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread test/performance/benchmarks/scale-from-zero/main.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@aviralgarg05
Fix performance SLA edge cases
98fee4f
@knative-prow knative-prow Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 13, 2026
@aviralgarg05
Fix style check failures
58dd8e9
@dprotaso

dprotaso commented Apr 15, 2026

Copy link
Copy Markdown
Member

/test performance-tests_serving_main

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dprotaso

dprotaso commented Apr 17, 2026

Copy link
Copy Markdown
Member

/lgtm
/approve

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot assigned dprotaso Apr 17, 2026
@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Apr 17, 2026
@knative-prow

knative-prow Bot commented Apr 17, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aviralgarg05, dprotaso

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [dprotaso]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 17, 2026
@knative-prow
knative-prow Bot merged commit fd9529f into knative:main Apr 17, 2026
63 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dprotaso dprotaso dprotaso left review comments
@dsimansk dsimansk Awaiting requested review from dsimansk
@skonto skonto Awaiting requested review from skonto
+1 more reviewer
@linkvt linkvt linkvt left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dprotaso dprotaso

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Investigate unstable performance-test SLAs

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@aviralgarg05 @dprotaso @linkvt
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.