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(k8s): fix naming + pn error in nightly tests #2511

Merged
merged 5 commits into from
Apr 9, 2024

Conversation

Mia-Cross
Copy link
Contributor

@Mia-Cross Mia-Cross commented Apr 8, 2024

The nightly tests randomly come across this error when deleting resources after a test :
Error: scaleway-sdk-go: precondition failed: resource is still in use, Private Network must be empty to be deleted

This might be due to the delete_additional_resources = true attribute found in most clusters in the tests, which makes the kapsule API delete the attached private network, when we should let Terraform delete all resources. Indeed Terraform guarantees that actions will be performed in the right order and will be properly waited for.

@Mia-Cross Mia-Cross self-assigned this Apr 8, 2024
@Mia-Cross Mia-Cross added k8s Kubernetes Kapsule issues, bugs and feature requests tests labels Apr 8, 2024
@Mia-Cross Mia-Cross force-pushed the k8s_test_fix_naming_and_others branch from 4dcc110 to 45cff66 Compare April 8, 2024 22:46
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.33%. Comparing base (fe86049) to head (45cff66).
Report is 12 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2511      +/-   ##
==========================================
+ Coverage   71.43%   75.33%   +3.89%     
==========================================
  Files         277      277              
  Lines       35875    30660    -5215     
==========================================
- Hits        25628    23098    -2530     
+ Misses       8028     5339    -2689     
- Partials     2219     2223       +4     

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

@Mia-Cross Mia-Cross marked this pull request as ready for review April 9, 2024 08:54
@remyleone remyleone added this pull request to the merge queue Apr 9, 2024
Merged via the queue into scaleway:master with commit b565b53 Apr 9, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k8s Kubernetes Kapsule issues, bugs and feature requests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants