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

test: re-work test strategy for integration tests #3443

Merged
merged 5 commits into from
Apr 22, 2024

Conversation

odubajDT
Copy link
Contributor

@odubajDT odubajDT commented Apr 19, 2024

security scans:

https://github.com/keptn/lifecycle-toolkit/actions/runs/8752659807

Changes

  • Reworked integration tests cluster setups to batches and run appropriate tests on each setup. Each cluster setup has Keptn installation with a custom values.yaml file, which enables/disables Keptn components or features.

  • A single integration test workflow was divided into multiple, so that each workflow sets up 1-3 different clusters with similar settings and runs the tests on them

  • The installation action for installing Keptn on cluster was simplified to accept fewer parameters (especially path to values.yaml file user for installation of Keptn)

  • Not all tests are ran with all possible combinations of cluster setup -> there is no need for such testing, we are aiming for testing certain functionality with certain cluster setup. Every test is ran at least once, max 3x on different cluster setups (where it makes sense to run).

  • Runtime for integration tests was reduced from ~20min to ~12min.

Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.36%. Comparing base (16afdaa) to head (199ba6e).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3443      +/-   ##
==========================================
+ Coverage   85.31%   85.36%   +0.04%     
==========================================
  Files         167      167              
  Lines        7415     7412       -3     
==========================================
+ Hits         6326     6327       +1     
+ Misses        800      798       -2     
+ Partials      289      287       -2     

see 2 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 69.23% <ø> (ø)
component-tests 58.77% <ø> (+0.89%) ⬆️
lifecycle-operator 83.46% <ø> (+0.03%) ⬆️
metrics-operator 88.32% <ø> (ø)
scheduler 34.74% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@odubajDT odubajDT changed the title Chore/rework integration tests chore: re-work test strategy for integration tests Apr 19, 2024
@odubajDT odubajDT changed the title chore: re-work test strategy for integration tests test: re-work test strategy for integration tests Apr 19, 2024
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
@odubajDT odubajDT marked this pull request as ready for review April 19, 2024 17:25
@odubajDT odubajDT requested a review from a team as a code owner April 19, 2024 17:25
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Copy link

sonarcloud bot commented Apr 22, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@odubajDT odubajDT merged commit ed152f0 into keptn:main Apr 22, 2024
33 checks passed
Vickysomtee pushed a commit to Vickysomtee/keptn-lifecycle-toolkit that referenced this pull request Apr 23, 2024
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: vickysomtee <vickysomtee@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants