Skip to content

Add performance tests #1033

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

Merged
merged 67 commits into from
May 5, 2025
Merged

Conversation

MarekMichali
Copy link
Contributor

@MarekMichali MarekMichali commented Apr 23, 2025

Description

Changes proposed in this pull request:

More details about the tests are in the documentation in the PR

  • Add performance tests for PR and release

Related issue(s)

See #1032

Copy link

Add one of following labels

- kind/feature -> Use it when you want to submit a new feature

- kind/enhancement -> Use it when you modify or improve an existing feature

- kind/bug -> Use it when you fix a bug


### Performance Tests

The [workflow](/.github/workflows/run-performance-tests-reusable.yaml) runs performance and tests on the k3s cluster. The following parameters are required from the calling workflow:
Copy link
Contributor

Choose a reason for hiding this comment

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

runs performance and tests or just runs performance tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Runs performance tests. I will fix it.

- **Purpose**: Evaluates the system's response time and reconciliation success rate when the `sap-btp-manager` secret is updated frequently.
- **Steps**:
- Patches the `sap-btp-manager` secret in a loop to simulate frequent updates.
- Fetches metrics from the `btp-manager-controller-manager` to measure average reconcile time, reconcile errors, and other reconciliation statistics.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Fetches metrics from the `btp-manager-controller-manager` to measure average reconcile time, reconcile errors, and other reconciliation statistics.
- Fetches metrics from `btp-manager-controller-manager` to measure average reconcile time, reconcile errors, and other reconciliation statistics.

Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't reconcile time, reconcile errors be reconciliation time, reconciliation errors?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will change it to reconciliation.

Copy link
Contributor

@IwonaLanger IwonaLanger May 5, 2025

Choose a reason for hiding this comment

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

Please also change reconcile to reconciliation in the following lines: 122, 123, 133, 135, 136, and 141. And maybe line 128 - not sure if I get it right.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

- **Steps**:
- Patches the `sap-btp-manager` secret in a loop to simulate frequent updates.
- Fetches metrics from the `btp-manager-controller-manager` to measure average reconcile time, reconcile errors, and other reconciliation statistics.
- **Failure Handling**:
Copy link
Contributor

Choose a reason for hiding this comment

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

Failure Handling implies some information on how to cope with the failure, which is not the case here. How about:
The test fails in the following conditions:

  • The average reconcile time exceeds the defined threshold.
  • Some reconcile errors are detected.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. I will change it to The test fails in the following conditions

@kyma-gopher-bot kyma-gopher-bot merged commit c833165 into kyma-project:main May 5, 2025
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Categorizes issue or PR as related to modifying or improving an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants