Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate Zero Downtime Scale tests #2259

Merged
merged 5 commits into from
Jul 25, 2024

Conversation

sjberman
Copy link
Contributor

@sjberman sjberman commented Jul 18, 2024

Problem: We want our NFR tests to be fully automated to save developer time for each release cycle, and have a repetitive way of running the tests.

Solution: Automate the zero downtime scaling test. No longer collecting logs as done previously, because error logs would be unreliable to collect for pods that are scaling down (we don't have persistence that we can easily use in the automation to gather historic logs). Ultimately we are still ensuring that traffic is flowing and status updates occur, which are the important pieces here.

Testing: Full NFR test run, as well as just these tests.

Closes #1435

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

Release notes

If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.

NONE

@sjberman sjberman requested a review from a team as a code owner July 18, 2024 20:15
@github-actions github-actions bot added documentation Improvements or additions to documentation tests Pull requests that update tests labels Jul 18, 2024
Copy link

codecov bot commented Jul 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.76%. Comparing base (25c6924) to head (3b2ef69).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2259   +/-   ##
=======================================
  Coverage   87.76%   87.76%           
=======================================
  Files          96       96           
  Lines        6793     6793           
  Branches       50       50           
=======================================
  Hits         5962     5962           
  Misses        774      774           
  Partials       57       57           

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

@sjberman sjberman force-pushed the tests/zero-downtime-scaling branch from d75e499 to f94f9a2 Compare July 18, 2024 21:31
@sjberman sjberman removed the documentation Improvements or additions to documentation label Jul 18, 2024
@sjberman sjberman force-pushed the tests/zero-downtime-scaling branch from f94f9a2 to bdc05b2 Compare July 23, 2024 15:06
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jul 23, 2024
tests/Makefile Show resolved Hide resolved
tests/suite/scale_test.go Show resolved Hide resolved
Copy link
Contributor

@salonichf5 salonichf5 left a comment

Choose a reason for hiding this comment

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

lgtm

tests/README.md Show resolved Hide resolved
@sjberman sjberman removed the documentation Improvements or additions to documentation label Jul 23, 2024
Problem: We want our NFR tests to be fully automated to save developer time for each release cycle, and have a repetitive way of running the tests.

Solution: Automate the zero downtime scaling test. No longer collecting logs as done previously, because error logs would be unreliable to collect for pods that are scaling down (we don't have persistence that we can easily use in the automation to gather historic logs). Ultimately we are still ensuring that traffic is flowing and status updates occur, which are the important pieces here.
@sjberman sjberman force-pushed the tests/zero-downtime-scaling branch from 5f1bccc to 6c4657e Compare July 24, 2024 18:57
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jul 24, 2024
@sjberman sjberman enabled auto-merge (squash) July 25, 2024 17:41
@sjberman sjberman merged commit 4545804 into nginxinc:main Jul 25, 2024
37 checks passed
@sjberman sjberman deleted the tests/zero-downtime-scaling branch July 25, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation tests Pull requests that update tests
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Automate Zero Downtime Scaling Test
3 participants