-
Notifications
You must be signed in to change notification settings - Fork 100
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
Update to skip cleanup of built-in resources in Long Running Tests #8317
Update to skip cleanup of built-in resources in Long Running Tests #8317
Conversation
2e8f499
to
f41a2a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we could use. better naming and we should add a note of why we need some resources to not be deleted.
if: env.SKIP_BUILD != 'true' | ||
run: | | ||
echo "Generating skip-resource-list..." | ||
kubectl get resources.ucp.dev -n radius-system --no-headers -o custom-columns=":metadata.name" > skip-resource-list.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not only going to make us skip the manifest-related resources. I think it is going to make us skip the deletion of a lot of other Radius resources too, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skip-resources-list.txt is generated ONLY when new build is deployed. it will have the only necessary built-in resources we do not want to delete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is going to get all the resources of type resources.ucp.dev
right? Would that include resources other than resource providers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skip-delete-resource-list.txt
The entries for these resource-providers include entries for all resourcetypes and their associated entries including, apiversions supported, locations and their operation statuses. attaching an example from local build. All these entries are good to be preserved across runs before the next build/deploy where the cluster is cleaned out (all above entries deleted) and there is a fresh install and new skip-delete-resource-list.txt is re-generated.
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8317 +/- ##
=======================================
Coverage 59.99% 60.00%
=======================================
Files 591 591
Lines 39554 39554
=======================================
+ Hits 23731 23734 +3
+ Misses 14058 14056 -2
+ Partials 1765 1764 -1 ☔ View full report in Codecov by Sentry. |
f41a2a5
to
ad0abec
Compare
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
ad0abec
to
b40c7f8
Compare
b40c7f8
to
7d687e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's test this out but kubectl get resources.ucp.dev -n radius-system --no-headers -o custom-columns=":metadata.name" > skip-delete-resources-list.txt
will get all Radius resources to the don't delete
list. Correct me if I am wrong.
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
7d687e1
to
2e16a6b
Compare
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
2e16a6b
to
c689e3c
Compare
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
Description
Update to skip cleanup of built-in resources in Long Running Tests.
#8357
Type of change
Contributor checklist
Please verify that the PR meets the following requirements, where applicable: