You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add retina mode support for perf-test and abstract common e2e setups (#1244)
# Description
This pull request includes several changes to the end-to-end (E2E)
testing framework for the retina project. The main update is addition of
running perf tests in advanced mode for Retina. The other updates
involve the addition of new utility functions, refactoring of existing
code for better modularity, and improvements to the performance testing
workflow.
### New Utility Functions:
* Added `RetinaChartPath`, `RetinaAdvancedProfilePath`, and
`KubeConfigFilePath` functions to dynamically generate file paths.
(`test/e2e/common/common.go`)
### Refactoring:
* Moved the `CreateAzureTempK8sInfra` function to a new file
`azure_temp_infra_setup.go` to modularize infrastructure setup.
(`test/e2e/infra/azure_temp_infra_setup.go`)
* Removed redundant code and simplified the `TestE2ERetina` and
`TestE2EPerfRetina` functions by using new utility functions and the
`CreateAzureTempK8sInfra` function. (`test/e2e/retina_e2e_test.go`,
`test/e2e/retina_perf_test.go`)
[[1]](diffhunk://#diff-66cf931d4cbc2a8832e1fcb70af2838ef6913eedb0294d0666fec1aa6787999bL24-R46)
[[2]](diffhunk://#diff-4c195fe24e6f8e7cfb68381dd2d389ca275dc11282f0dfe785526a503dae509eL6-R62)
### Performance Testing:
* Moved the performance test logic to a new file `perf.go` and added
support for running tests in different retina modes (basic, advanced).
(`test/e2e/jobs/perf.go`)
* Updated the `PublishPerfResults` function to include the retina mode
in telemetry data. (`test/e2e/scenarios/perf/publish-perf-results.go`)
### Code Cleanup:
* Removed unused imports and redundant code blocks from various files to
improve readability and maintainability. (`test/e2e/jobs/jobs.go`,
`test/e2e/scale_test.go`)
[[1]](diffhunk://#diff-96a5238dd492978468cfd659ceca6877583744425053d5f2ebbf9a62ae47e535L16)
[[2]](diffhunk://#diff-cb7aaaca572345df6e4fbb0f6d5e54f8f392870192227f9746a244e095dcdaa8L52-R56)
These changes collectively enhance the modularity, readability, and
functionality of the E2E testing framework, making it easier to maintain
and extend in the future.
## Checklist
- [X] I have read the [contributing
documentation](https://retina.sh/docs/contributing).
- [X] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [X] I have correctly attributed the author(s) of the code.
- [X] I have tested the changes locally.
- [X] I have followed the project's style guidelines.
- [] I have updated the documentation, if necessary.
- [] I have added tests, if applicable.
## Screenshots (if applicable) or Testing Completed
I have tested the relevant changes locally and have verified that it
works as nintended.
## Additional Notes
Add any additional notes or context about the pull request here.
---
Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.
0 commit comments